TeTeX

From CBLFS
Revision as of 03:21, 17 September 2009 by Rabenkind (talk | contribs)
Jump to navigationJump to search
Download Source: ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-src-3.0.tar.gz
Required Macros and Fonts: ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-texmf-3.0.tar.gz
Optional 'texmf' Sources: ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-texmfsrc-3.0.tar.gz
Optional 'cm-super' Sources: http://anduin.linuxfromscratch.org/sources/BLFS/svn/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.

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

Only apply the 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

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

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

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

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