Introduction to teTeX
teTeX is an implementation of
Donald Knuth's TeX typesetting program. This package is able to
create documents in a variety of formats. The optional texmfsrc (TeX METAFONT) tarball contains source
code for programs to create and manipulate TeX fonts.
Package Information
Additional Downloads
Required Macros and Fonts
Optional 'texmf' Sources:
Optional 'cm-super' Sources:
teTeX Dependencies
Required
Ed-0.2
Optional
libpng-1.2.12, X Window System, Tk-Perl-804.027,
t1lib, and GD
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/tetex
Installation of teTeX
Before building teTeX, the
macros and fonts package (texmf
tarball) must be installed. Install the macros and fonts using
the following commands as the root
user:
install -v -d -m755 /usr/share/texmf &&
gzip -dc ../tetex-texmf-3.0.tar.gz \
| (umask 0; cd /usr/share/texmf; tar -xvf -)
If the optional texmfsrc source code
TAR ball was downloaded, unpack it now as the root user:
gzip -dc ../tetex-texmfsrc-3.0.tar.gz \
| (umask 0; cd /usr/share/texmf; tar -xvf -)
Install teTeX by running the
following commands:
./configure --prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--without-texinfo \
--with-x=no \
--with-system-ncurses \
--with-system-zlib &&
make all
To test the results, issue: make
check. The tests should complete without errors
(there may be some errors which are ignored).
Now, as the root user:
make install &&
texconfig-sys dvips paper letter &&
texconfig-sys font rw
Note
The paper size may be changed to a4, as is used in most
countries.
To install the optional cm-super fonts, perform the following
instructions as the root user:
tar -xf ../tetex-cm-super.tar.bz2 &&
FONTDIR=$(kpsewhich --expand-var '$TEXMFMAIN') &&
mkdir -v -p $FONTDIR/fonts/afm/public/cm-super \
$FONTDIR/fonts/type1/public/cm-super \
$FONTDIR/fonts/enc/dvips/cm-super \
$FONTDIR/fonts/map/dvips/cm-super &&
cp -v cm-super/pfb/*.pfb $FONTDIR/fonts/type1/public/cm-super/ &&
gunzip cm-super/afm/* &&
cp -v cm-super/afm/*.afm $FONTDIR/fonts/afm/public/cm-super/ &&
cp -v cm-super/dvips/*.enc $FONTDIR/fonts/enc/dvips/cm-super/ &&
cp -v cm-super/dvips/*.map $FONTDIR/fonts/map/dvips/cm-super/ &&
cat >> $FONTDIR/web2c/updmap.cfg << "EOF" &&
MixedMap cm-super-t1.map
MixedMap cm-super-t2a.map
MixedMap cm-super-t2b.map
MixedMap cm-super-t2c.map
MixedMap cm-super-ts1.map
MixedMap cm-super-x2.map
EOF
install -v -m644 -D cm-super/type1ec.sty \
$FONTDIR/tex/latex/cm-super/type1ec.sty &&
mktexlsr &&
updmap-sys &&
unset FONTDIR
Command Explanations
--with-x=no: This switch will
avoid any X dependencies.
teTeX can be compiled with
X support, notably for
xdvi. If this is
desired, remove this parameter.
--exec-prefix=/usr
--bindir=/usr/bin: These switches ensure that
teTeX binaries are installed in
/usr/bin.
--without-texinfo: A default
LFS installation already has the Texinfo package installed. This switch will
avoid overwriting it with the included Texinfo package.
--with-system-ncurses: This
switch specifies using the already installed libncurses library.
--with-system-zlib: A default
LFS installation already has the Zlib library installed. This switch will
avoid replacing it with the included Zlib library.
--disable-a4: Use this option to set the
default paper size to letter and the default unit to inch.
texconfig-sys dvips paper
letter: This command sets the default paper size
for teTeX.
texconfig-sys font
rw: This command specifies creating and using a
directory for globally writeable fonts.
mktexlsr: This
command recreates the teTeX
ls-R databases after installing the
CM-Super fonts.
updmap-sys: This
command updates the system-wide font configuration to include the
CM-Super fonts.
Tip
Run ./configure
--help for information about using other
switches which will enable the build to use other installed
packages you may have on your system.