TeTeX

From CBLFS
Jump to navigationJump to search
Download Source: ftp://tug.ctan.org/tex-archive/obsolete/systems/unix/teTeX/3.0/distrib/tetex-src-3.0.tar.gz
Required Macros and Fonts: ftp://tug.ctan.org/tex-archive/obsolete/systems/unix/teTeX/3.0/distrib/tetex-texmf-3.0.tar.gz
Optional 'texmf' Sources: ftp://tug.ctan.org/tex-archive/obsolete/systems/unix/teTeX/3.0/distrib/tetex-texmfsrc-3.0.tar.gz
Optional 'cm-super' Sources: http://ftp.osuosl.org/pub/blfs/6.3/t/tetex-cm-super.tar.bz2
Download Patch: http://svn.cross-lfs.org/svn/repos/patches/tetex-src/tetex-src-3.0-gcc_4.4-1.patch

Introduction to TeTeX

teTeX is a complete TeX distribution for UNIX compatible systems developed by Thomas Esser. It is based on the web2c distribution which is currently maintained by Olaf Weber.

Caution.png

Note

This package has been marked as obsolete and replaced by TeXLive, http://cblfs.cross-lfs.org/index.php/TeXLive. For more information, http://www.mail-archive.com/ctan-ann@dante.de/msg01091.html

TeX is a typesetting language developed by Donald Knuth. Instead of visually formatting your text, you type your manuscript text combined with commands in a plain text file. You then run TeX to produce the final layout. Thus, in contrast to standard word processors, the source (TeX commands) is a separate file that does not pretend to be a representation of the final typeset document, and thus can be edited by any text editor.

texmf contains programs to create and manipulate TeX fonts. texmfsrc contains sources for packages that are contained in the texmf tarball. cm-super package contains Type 1 fonts converted from METAFONT fonts and covers entire EC/TC, EC Concrete, EC Bright and LH fonts (Computer Modern font families).

Project Homepage: http://www.tug.org/tetex/

Dependencies

Required

Optional

Non-Multilib

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 tarball 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 -)

Apply this patch when using GCC 4.4:

patch -Np1 -i ../tetex-src-3.0-gcc_4.4-1.patch

Compile the package:

./configure --prefix=/usr \
            --enable-shared \
            --exec-prefix=/usr \
            --bindir=/usr/bin \
            --without-texinfo \
            --with-x=no \
            --with-system-ncurses \
            --with-system-zlib &&
make all

Install the package:

make install &&
texconfig-sys dvips paper letter &&
texconfig-sys font rw
Caution.png

Note

If you get an error message like:
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found.

then do (as root)

texconfig rehash

and then retry

texconfig-sys dvips paper letter &&
texconfig-sys font rw

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

mktexlsr &&
updmap-sys &&

unset FONTDIR

Multilib

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 tarball 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 -)

32Bit

Apply this patch when using GCC 4.4:

patch -Np1 -i ../tetex-src-3.0-gcc_4.4-1.patch

Compile the package:

CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 \
./configure --prefix=/usr \
            --exec-prefix=/usr \
            --enable-shared \
            --bindir=/usr/bin \
            --without-texinfo \
            --with-x=no \
            --with-system-ncurses \
            --with-system-zlib &&
make all

Install the package:

make install

N32

Apply this patch when using GCC 4.4:

patch -Np1 -i ../tetex-src-3.0-gcc_4.4-1.patch

Compile the package:

CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" USE_ARCH=n32 \
./configure --prefix=/usr \
            --exec-prefix=/usr --libdir=/usr/lib32 \
            --enable-shared \
            --bindir=/usr/bin \
            --without-texinfo \
            --with-x=no \
            --with-system-ncurses \
            --with-system-zlib &&
[ -f texk/libtool ] && sed -i "/sys_lib_search_path_spec=/s:/lib:&32:g" texk/libtool;
make all

Install the package:

make install

64Bit

Apply this patch when using GCC 4.4:

patch -Np1 -i ../tetex-src-3.0-gcc_4.4-1.patch

Compile the package:

CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 \
./configure --prefix=/usr \
            --exec-prefix=/usr --libdir=/usr/lib64 \
            --enable-shared \
            --bindir=/usr/bin \
            --without-texinfo \
            --with-x=no \
            --with-system-ncurses \
            --with-system-zlib &&
[ -f texk/libtool ] && sed -i "/sys_lib_search_path_spec=/s:/lib:&64:g" texk/libtool;
make all

Install the package:

make install &&
texconfig-sys dvips paper letter &&
texconfig-sys font rw

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

mktexlsr &&
updmap-sys &&

unset FONTDIR