address Logo

TeX Live

目次

2003/07

このページは単なる僕のメモです

TeX Live

http://www.tug.org/texlive/
CD でも手に入る
Net では

version の確認

bunzip2 --help
bunzip2 を実行する

bash$ bunzip2 -k texlive7-20020604-cd1.iso.bz2
bash$ bunzip2 -k texlive7-20020604-cd2.iso.bz2

すると

が生成される

ISO イメージファイルを(Plan9 と異なり)マウントできない。従って一旦 CD-ROM に焼きつける必要がある。

焼きつけられたCD-ROM の名称は TeXLive-7-20020603 となっていた。
この版の /source/source.tar.bz にはバグがある。( http://www.tug.org/texlive/bugs.html を見よ) このバグは何に影響を与えたか?

README-MAC-OSX を読む事
index.html を開き PDF または HTML を読む事

bash$ cd /Volumes/TeXLive-7-20020603
root# bash install-cd.sh
...

インストレーションメニュー: P,B,S,C,L,D を順に実行し最後に I を実行する

    Proposed platform: Mac OSX/Darwin 5.3
    <P> over-ride system detection and choose platform
    <B> binary systems:         1 out of  3
    <S> Installation scheme (texlive_full)
    [customizing installation scheme:
       <C> standard collections   <L> language collections]
    57 out of 57, disk space required:  17160 kB
    <D> directories:
      TEXDIR      (The main TeX directory)        : /usr/TeX     
      TEXMFLOCAL  (Directory for local styles etc): /usr/TeX/texmf-local
      VARTEXMF (Directory for local config)       : /usr/TeX/texmf-var
    <O> options:
       [ ] alternate directory for generated fonts ()
       [ ] create symlinks in standard directories
       [ ] do not install macro/font doc tree
       [ ] do not install macro/font source tree
    <R> do not install files, set up to run off CD-ROM
    <I> start installation,  <H> help,  <Q> quit

Enter command: 

I を実行すると

....
Now you are finished. 
For future configuration, edit files in /usr/TeX/texmf-var
You should make sure that /usr/TeX/bin/powerpc-darwin5.3
is added to your PATH for future sessions.

Welcome to the TeX Live system!

The TUG Web site (http://www.tug.org/texlive/)
will contain any updates and corrections to this system.

root# 

/usr/TeX にインストールされた

注意:
/usr/local/bin/ には既にインストール済みの omega が入っている。
このほうが CD の omega より新しい。
omega は以上の他に

    /usr/local/teTeX/bin/powerpc-apple-darwin5.4/omega

にもある。

環境変数

PATH と VARTEXMF

case CD からの起動

cdname=TeXLive-7-20020603
case tcsh

    setenv PATH /Volumes/$cdname/bin/powerpc-darwin5.3:${PATH}
    setenv VARTEXMF /usr/TeX/texmf-var 

case bash

    PATH=/Volumes/$cdname/bin/powerpc-darwin5.3:$PATH
    VARTEXMF=/usr/TeX/texmf-var
    export PATH
    export VARTEXMF
case HD からの起動

case bash

    PATH=/usr/TeX/bin/powerpc-darwin5.3:$PATH
    VARTEXMF=/usr/TeX/texmf-var
    export PATH
    export VARTEXMF

TEXINPUTS

?

ls-R

ls-R は kpathsea のためのデータベースである。

    /usr/TeX/tefmf/ls-R

既に作成されている。更新するには、

    cd /usr/TeX/tefmf && ls -LAR ./ >ls-R

kpathsea

texmf.cnf

Location:

TeX のサンプルの動作確認

TeX Live 7 の CD には TeX のサンプルが載っていないようだ。

Plain TeX

Let's Try:

\TeX \ is Logo of the TeX.

\rm Roman Font

\sl Slant Font

\it Italic Font

\tt Typewriter Font

\bf Bold Font

\end

このファイルを plaintex-1.tex とすると、

bash$ tex plaintex-1.tex
This is TeX, Version 3.14159 (Web2C 7.3.7x)
(./plaintex-1.tex [1] )
Output written on plaintex-1.dvi (1 page, 536 bytes).
Transcript written on plaintex-1.log.
bash$ dvipdf plaintex-1.dvi

plaintex-1.pdf が作成されている。成功

LaTeX

bash$ latex latex-1.tex
This is TeX, Version 3.14159 (Web2C 7.4.1)
(./latex-1.tex
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
(/usr/local/share/texmf/tex/latex/base/latex209.def
...

なぜ /usr/local/share/texmf/tex/latex/base/latex209.def が使われたか?
なぜ /usr/TeX/texmf/tex/latex/base/latex209.def が使われなかったのか?
答え
PATH=/usr/TeX/bin/powerpc-darwin5.3:$PATH
export PATH
が実行されていなかった。
すなわち、TeX Live 7 の latex が実行されなかった。
参考: latex の内容

#!/bin/sh
test -f "`kpsewhich latex.fmt`" || fmtutil --byfmt latex
exec tex -fmt=latex "$@"
bash$ strings tex
...
This is TeX, Version 3.14159
...

/usr/local/teTeX/share/texmf/
が内部で使用されている。文字列 /usr/TeX が現れない。

トラブル

Could not undump ...

omega: fatal: Could not undump 1 4-byte item(s).

The "could not undump" problems is fixed on my system by regenerating
the .fmt file,....

Is this while compiling a file or while creating a format? While the Mac
OS X binary on TeX Live may not work (I recall that there were some
last-minute fixes which may not have made it to the Mac OS X binaries on
TL7), as far as I know, my distributions contain a working omega 1.23.

TeX Live 7 CD の Omega の BUG らしい