2005-05-17 01:41:04 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-04-04 04:52:42 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-06-14 13:45:05 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
2004-06-29 06:09:39 +08:00
|
|
|
|
2005-04-07 04:24:46 +08:00
|
|
|
<!ENTITY tex-download-http "http://www.tug.org/ftp/tex-archive/systems/unix/teTeX/&tex-version;/distrib/tetex-src-&tex-version;.tar.gz" >
|
|
|
|
<!ENTITY tex-download-ftp "ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/&tex-version;/distrib/tetex-src-&tex-version;.tar.gz">
|
|
|
|
<!ENTITY tex-md5sum "944a4641e79e61043fdaf8f38ecbb4b3">
|
|
|
|
<!ENTITY tex-size "12.7 MB">
|
2005-09-02 14:43:57 +08:00
|
|
|
<!ENTITY tex-buildsize "423 MB (549 MB with optional tarball, additional 231 MB for CM-Super fonts)">
|
2005-08-17 10:18:47 +08:00
|
|
|
<!ENTITY tex-time "2.1 SBU">
|
2005-04-07 04:24:46 +08:00
|
|
|
|
|
|
|
<!ENTITY texmf-download-http "http://www.tug.org/ftp/tex-archive/systems/unix/teTeX/&tex-version;/distrib/tetex-texmf-&tex-version;.tar.gz" >
|
|
|
|
<!ENTITY texmf-download-ftp "ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/&tex-version;/distrib/tetex-texmf-&tex-version;.tar.gz">
|
|
|
|
<!ENTITY texmf-md5sum "11aa15c8d3e28ee7815e0d5fcdf43fd4">
|
|
|
|
<!ENTITY texmf-size "91.7 MB">
|
|
|
|
|
|
|
|
<!ENTITY texmfsrc-download-http "http://www.tug.org/ftp/tex-archive/systems/unix/teTeX/&tex-version;/distrib/tetex-texmfsrc-&tex-version;.tar.gz" >
|
|
|
|
<!ENTITY texmfsrc-download-ftp "ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/&tex-version;/distrib/tetex-texmfsrc-&tex-version;.tar.gz">
|
2005-11-10 07:14:44 +08:00
|
|
|
<!ENTITY texmfsrc-md5sum "66c32a11964a49982ba2a32d3bbfe7f5">
|
|
|
|
<!ENTITY texmfsrc-size "57.7 MB">
|
2005-08-17 10:18:47 +08:00
|
|
|
|
2005-11-10 07:14:44 +08:00
|
|
|
<!ENTITY cmsupersrc-download-http "http://anduin.linuxfromscratch.org/sources/BLFS/svn/t/tetex-cm-super.tar.bz2" >
|
|
|
|
<!ENTITY cmsupersrc-download-ftp "ftp://anduin.linuxfromscratch.org/BLFS/svn/t/tetex-cm-super.tar.bz2">
|
|
|
|
<!ENTITY cmsupersrc-md5sum "d7c89fcb35f625b02853a0881a4ec760">
|
|
|
|
<!ENTITY cmsupersrc-size "63.8 MB">
|
2004-06-14 13:45:05 +08:00
|
|
|
]>
|
|
|
|
|
2005-01-11 07:55:51 +08:00
|
|
|
<sect1 id="tex" xreflabel="TeX-&tex-version;">
|
2005-05-17 01:41:04 +08:00
|
|
|
<?dbhtml filename="tex.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
2005-12-08 03:52:35 +08:00
|
|
|
<keywordset>
|
|
|
|
<keyword role="package">tetex-src-&tex-version;.tar</keyword>
|
2005-12-09 04:31:54 +08:00
|
|
|
<keyword role="ftpdir">tetex</keyword>
|
2005-12-08 03:52:35 +08:00
|
|
|
</keywordset>
|
2005-05-17 01:41:04 +08:00
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>TeX-&tex-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="tex">
|
|
|
|
<primary sortas="a-TeX">TeX</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to TeX</title>
|
|
|
|
|
|
|
|
<para><application>TeX</application> is a typesetting package, able to create
|
|
|
|
documents in a variety of formats. The optional <filename>texmfsrc</filename>
|
|
|
|
TAR ball contains source code for packages that are contained in the
|
|
|
|
<filename>texmf</filename> TAR ball, including the docstrip sources.</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&tex-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&tex-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &tex-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &tex-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &tex-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &tex-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<title>Required Macros and Fonts</title>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&texmf-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&texmf-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &texmf-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &texmf-size;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<title>Optional 'texmf' Sources:</title>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&texmfsrc-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&texmfsrc-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &texmfsrc-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &texmfsrc-size;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2005-02-17 05:46:41 +08:00
|
|
|
|
2005-08-17 10:18:47 +08:00
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<title>Optional 'cm-super' Sources:</title>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&cmsupersrc-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&cmsupersrc-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &cmsupersrc-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &cmsupersrc-size;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2004-06-14 13:45:05 +08:00
|
|
|
|
2005-05-17 01:41:04 +08:00
|
|
|
<bridgehead renderas="sect3">TeX Dependencies</bridgehead>
|
2004-07-29 05:07:09 +08:00
|
|
|
|
2005-05-17 01:41:04 +08:00
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2005-12-08 03:52:35 +08:00
|
|
|
<para role="required"><xref linkend="ed"/></para>
|
2005-05-17 01:41:04 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2005-12-08 03:52:35 +08:00
|
|
|
<para role="optional"><xref linkend="libpng"/>,
|
2005-05-17 01:41:04 +08:00
|
|
|
<xref linkend="x-installing"/>,
|
2005-07-14 09:47:54 +08:00
|
|
|
<xref linkend="perl-tk"/>,
|
|
|
|
<ulink url="http://gd.tuwien.ac.at/visual/ibiblio/libs/graphics/t1lib-5.1.0.tar.gz">
|
2005-05-17 01:41:04 +08:00
|
|
|
t1lib</ulink>
|
|
|
|
and <ulink url="http://www.boutell.com/gd/">GD</ulink></para>
|
2004-07-03 00:37:19 +08:00
|
|
|
|
2005-05-17 01:41:04 +08:00
|
|
|
</sect2>
|
2004-06-14 13:45:05 +08:00
|
|
|
|
2005-05-17 01:41:04 +08:00
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of TeX</title>
|
2004-06-14 13:45:05 +08:00
|
|
|
|
2005-05-17 01:41:04 +08:00
|
|
|
<para>Before building <application>TeX</application>, the macros and
|
|
|
|
fonts package (<filename>texmf</filename> tarball) must be installed.
|
|
|
|
Install the macros and fonts using the following commands as the
|
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
2004-06-14 13:45:05 +08:00
|
|
|
|
2005-05-17 01:41:04 +08:00
|
|
|
<screen role="root"><userinput>install -v -d -m755 /usr/share/texmf &&
|
2004-06-14 13:45:05 +08:00
|
|
|
gzip -dc ../tetex-texmf-&tex-version;.tar.gz \
|
2005-11-26 21:29:53 +08:00
|
|
|
| (umask 0; cd /usr/share/texmf; tar -xvf -)</userinput></screen>
|
2004-06-14 13:45:05 +08:00
|
|
|
|
2005-05-17 01:41:04 +08:00
|
|
|
<para>If the optional <filename>texmf</filename> source code TAR ball
|
|
|
|
was downloaded, untar it now as the <systemitem
|
|
|
|
class="username">root</systemitem> user:</para>
|
2004-07-03 00:37:19 +08:00
|
|
|
|
2005-05-17 01:41:04 +08:00
|
|
|
<screen role="root"><userinput>gzip -dc ../tetex-texmfsrc-&tex-version;.tar.gz \
|
2005-11-26 21:29:53 +08:00
|
|
|
| (umask 0; cd /usr/share/texmf; tar -xvf -)</userinput></screen>
|
2004-06-14 13:45:05 +08:00
|
|
|
|
2005-05-17 01:41:04 +08:00
|
|
|
<para>Install <application>TeX</application> by running the following
|
|
|
|
commands:</para>
|
2005-01-11 07:55:51 +08:00
|
|
|
|
2005-05-17 01:41:04 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
2005-04-07 04:24:46 +08:00
|
|
|
--exec-prefix=/usr --bindir=/usr/bin \
|
|
|
|
--without-texinfo --with-x=no \
|
|
|
|
--with-system-ncurses --with-system-zlib &&
|
2005-05-17 01:41:04 +08:00
|
|
|
make all</userinput></screen>
|
2005-01-31 01:59:50 +08:00
|
|
|
|
2005-12-07 18:16:30 +08:00
|
|
|
<para>To test the results, issue: <command>make check</command>. The tests
|
|
|
|
should complete without errors (there may be some errors which are
|
|
|
|
ignored).</para>
|
|
|
|
|
2005-05-17 01:41:04 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
2005-01-31 01:59:50 +08:00
|
|
|
|
2005-05-17 01:41:04 +08:00
|
|
|
<screen role="root"><userinput>make install &&
|
2005-09-02 14:43:57 +08:00
|
|
|
texconfig-sys dvips paper letter &&
|
|
|
|
texconfig-sys font rw</userinput></screen>
|
2005-05-17 01:41:04 +08:00
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>The paper size may be changed to a4, as is used in most
|
|
|
|
countries.</para>
|
|
|
|
</note>
|
|
|
|
|
2005-08-17 10:18:47 +08:00
|
|
|
<para>To install the optional cm-super fonts, perform the following
|
|
|
|
instructions as the <systemitem class="username">root</systemitem>
|
|
|
|
user:</para>
|
|
|
|
|
2005-09-02 15:03:51 +08:00
|
|
|
<screen><userinput>tar -xf ../tetex-cm-super.tar.bz2 &&
|
2005-09-02 14:43:57 +08:00
|
|
|
FONTDIR=$(kpsewhich --expand-var '$TEXMFMAIN') &&
|
2005-08-17 10:18:47 +08:00
|
|
|
mkdir -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 &&
|
2005-11-30 03:07:13 +08:00
|
|
|
|
2005-08-17 10:18:47 +08:00
|
|
|
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/ &&
|
|
|
|
|
2005-09-02 14:43:57 +08:00
|
|
|
cat >> $FONTDIR/web2c/updmap.cfg << "EOF" &&
|
2005-11-30 03:07:13 +08:00
|
|
|
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
|
2005-08-17 10:18:47 +08:00
|
|
|
EOF
|
|
|
|
|
2005-09-02 14:43:57 +08:00
|
|
|
mktexlsr &&
|
|
|
|
updmap-sys &&
|
2005-11-30 03:07:13 +08:00
|
|
|
|
2005-08-17 10:18:47 +08:00
|
|
|
unset FONTDIR</userinput></screen>
|
|
|
|
|
2005-05-17 01:41:04 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<para><parameter>--with-x=no</parameter>: This switch will avoid any
|
|
|
|
<application>X</application> dependencies. <application>TeX</application>
|
|
|
|
can be compiled with <application>X</application> support, notably for
|
2005-09-02 14:43:57 +08:00
|
|
|
<command>xdvi</command>. If this is desired, remove this parameter.</para>
|
2005-05-17 01:41:04 +08:00
|
|
|
|
|
|
|
<para><parameter>--exec-prefix=/usr --bindir=/usr/bin</parameter>: These
|
|
|
|
switches ensure that <application>TeX</application> binaries are installed
|
|
|
|
in <filename class="directory">/usr/bin</filename>.</para>
|
|
|
|
|
|
|
|
<para><parameter>--without-texinfo</parameter>: A default LFS installation
|
|
|
|
already has the <application>Texinfo</application> package installed; this
|
|
|
|
switch will avoid overwriting it with the included
|
|
|
|
<application>Texinfo</application> package.</para>
|
|
|
|
|
|
|
|
<para><parameter>--with-system-ncurses</parameter>: This switch specifies
|
|
|
|
using the already installed <filename
|
|
|
|
class="libraryfile">libncurses</filename> library.</para>
|
|
|
|
|
2005-09-02 14:43:57 +08:00
|
|
|
<para><parameter>--with-system-zlib</parameter>: LFS systems include the
|
|
|
|
<application>Zlib</application> library; this switch avoids building it
|
|
|
|
here.</para>
|
2005-05-17 01:41:04 +08:00
|
|
|
|
|
|
|
<para><option>--disable-a4</option>: Use this option to set the default
|
|
|
|
paper size to letter and the default unit to inch.</para>
|
|
|
|
|
2005-09-02 14:43:57 +08:00
|
|
|
<para><command>texconfig-sys dvips paper letter</command>: This command
|
|
|
|
sets the default paper size for <application>TeX</application>.</para>
|
|
|
|
|
|
|
|
<para><command>texconfig-sys font rw</command>: This command specifies
|
|
|
|
creating and using a directory for globally writable fonts.</para>
|
|
|
|
|
|
|
|
<para><command>mktexlsr</command>: This command recreates the
|
|
|
|
<application>TeX</application> <filename>ls-R</filename> databases after
|
|
|
|
installing the CM-Super fonts.</para>
|
|
|
|
|
|
|
|
<para><command>updmap-sys</command>: This command updates the system-wide
|
|
|
|
font configuration to include the CM-Super fonts.</para>
|
|
|
|
|
2005-05-17 01:41:04 +08:00
|
|
|
<tip>
|
|
|
|
<para>Run <command>./configure --help</command> for information about
|
2005-09-02 14:43:57 +08:00
|
|
|
using other switches which will enable the build to use other installed
|
2005-05-17 01:41:04 +08:00
|
|
|
packages you may have on your system.</para>
|
|
|
|
</tip>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>100 separate binaries and scripts along with 30 symlinks to these
|
|
|
|
programs.</seg>
|
|
|
|
<seg>libkpathsea.a</seg>
|
2005-09-02 14:43:57 +08:00
|
|
|
<seg>/usr/include/kpathsea, /usr/share/texinfo/html, /usr/share/texmf,
|
|
|
|
/usr/share/texi2html, /usr/share/texmf-var and /var/tmp/texfonts</seg>
|
2005-05-17 01:41:04 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="tex-programs">
|
|
|
|
<term><command>TeX programs</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>included in the <application>TeX</application> package are too
|
|
|
|
numerous to individually list. Please refer to the individual program
|
|
|
|
man pages and <ulink url="file:///usr/share/texmf/doc/index.html"/>
|
|
|
|
for details, as well as a tour of the expansive
|
|
|
|
<application>TeX</application> documentation.</para>
|
|
|
|
<indexterm zone="tex tex-programs">
|
|
|
|
<primary sortas="b-TeX-programs">TeX programs</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libkpathsea">
|
|
|
|
<term><filename class='libraryfile'>libkpathsea.a</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>contains functions used by <application>TeX</application>
|
|
|
|
for searching and cataloging path names.</para>
|
|
|
|
<indexterm zone="tex libkpathsea">
|
|
|
|
<primary sortas="c-libkpathsea">libkpathsea.a</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2002-08-24 18:19:19 +08:00
|
|
|
|
|
|
|
</sect1>
|