glfs/archive/tetex.xml

346 lines
14 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!-- <!ENTITY tetex-download-http "http://www.tug.org/tex-archive/systems/unix/teTeX/&tetex-version;/distrib/tetex-src-&tetex-version;.tar.gz" > -->
<!-- <!ENTITY tetex-download-ftp "ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/&tetex-version;/distrib/tetex-src-&tetex-version;.tar.gz"> -->
<!ENTITY tetex-download-http "&sources-anduin-http;/t/tetex-src-&tetex-version;.tar.gz" >
<!ENTITY tetex-download-ftp "&sources-anduin-ftp;/t/tetex-src-&tetex-version;.tar.gz">
<!ENTITY tetex-md5sum "944a4641e79e61043fdaf8f38ecbb4b3">
<!ENTITY tetex-size "12.7 MB">
<!ENTITY tetex-buildsize "423 MB (549 MB with optional tarball, additional 231 MB for CM-Super fonts)">
<!ENTITY tetex-time "2.1 SBU">
<!-- <!ENTITY texmf-download-http "http://www.tug.org/tex-archive/systems/unix/teTeX/&tetex-version;/distrib/tetex-texmf-&tetex-version;.tar.gz" > -->
<!-- <!ENTITY texmf-download-ftp "ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/&tetex-version;/distrib/tetex-texmf-&tetex-version;.tar.gz"> -->
<!ENTITY texmf-download-http "&sources-anduin-http;/t/tetex-texmf-&tetex-version;.tar.gz" >
<!ENTITY texmf-download-ftp "&sources-anduin-ftp;/t/tetex-texmf-&tetex-version;.tar.gz">
<!ENTITY texmf-md5sum "ed9d30d9162d16ac8d5065cde6e0f6fa">
<!ENTITY texmf-size "87.1 MB">
<!-- <!ENTITY texmfsrc-download-http "http://www.tug.org/tex-archive/systems/unix/teTeX/&tetex-version;/distrib/tetex-texmfsrc-&tetex-version;.tar.gz" > -->
<!-- <!ENTITY texmfsrc-download-ftp "ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/&tetex-version;/distrib/tetex-texmfsrc-&tetex-version;.tar.gz"> -->
<!ENTITY texmfsrc-download-http "&sources-anduin-http;/t/tetex-texmfsrc-&tetex-version;.tar.gz" >
<!ENTITY texmfsrc-download-ftp "&sources-anduin-ftp;/t/tetex-texmfsrc-&tetex-version;.tar.gz">
<!ENTITY texmfsrc-md5sum "66c32a11964a49982ba2a32d3bbfe7f5">
<!ENTITY texmfsrc-size "57.7 MB">
<!ENTITY cmsupersrc-download-http "&sources-anduin-http;/t/tetex-cm-super.tar.bz2" >
<!ENTITY cmsupersrc-download-ftp "&sources-anduin-ftp;/t/tetex-cm-super.tar.bz2">
<!ENTITY cmsupersrc-md5sum "d7c89fcb35f625b02853a0881a4ec760">
<!ENTITY cmsupersrc-size "63.8 MB">
]>
<sect1 id="tetex" xreflabel="teTeX-&tetex-version;">
<?dbhtml filename="tetex.html"?>
<sect1info>
<date>$Date$</date>
</sect1info>
<title>teTeX-&tetex-version;</title>
<indexterm zone="tetex">
<primary sortas="a-teTeX">teTeX</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to teTeX</title>
<para><application>teTeX</application> is an implementation of Donald
Knuth's TeX typesetting program. This package is able to create documents
in a variety of formats. The optional <filename>texmfsrc</filename> (TeX
METAFONT) tarball contains source code for programs to create and
manipulate TeX fonts.</para>
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&tetex-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&tetex-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &tetex-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &tetex-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &tetex-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &tetex-time;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing='compact'>
<title>Required Patches</title>
<listitem>
<para><ulink url="&patch-root;/tetex-&tetex-version;-gcc_4.4-1.patch"/></para>
</listitem>
<listitem>
<para><ulink url="&patch-root;/tetex-&tetex-version;-glibc-1.patch"/></para>
</listitem>
</itemizedlist>
<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>
<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>
<bridgehead renderas="sect3">teTeX Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required"><xref linkend="ed"/></para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional"><xref linkend="libpng"/>,
<xref linkend="x-window-system"/>,
<xref linkend="tk-perl"/>,
<ulink url="http://www.sfr-fresh.com/linux/misc/t1lib">t1lib</ulink>, and
<ulink url="http://www.boutell.com/gd/">GD</ulink></para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/tetex"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of teTeX</title>
<para>Before building <application>teTeX</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>
<screen role="root"><userinput>install -v -d -m755 /usr/share/texmf &amp;&amp;
gzip -dc ../tetex-texmf-&tetex-version;.tar.gz \
| (umask 0; cd /usr/share/texmf; tar -xvf -)</userinput></screen>
<para>If the optional <filename>texmfsrc</filename> source code TAR ball
was downloaded, unpack it now as the <systemitem
class="username">root</systemitem> user:</para>
<screen role="root"><userinput>gzip -dc ../tetex-texmfsrc-&tetex-version;.tar.gz \
| (umask 0; cd /usr/share/texmf; tar -xvf -)</userinput></screen>
<para>Install <application>teTeX</application> by running the following
commands:</para>
<screen><userinput>patch -Np1 -i ../tetex-&tetex-version;-gcc_4.4-1.patch &amp;&amp;
patch -Np1 -i ../tetex-&tetex-version;-glibc-1.patch &amp;&amp;
./configure --prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--without-texinfo \
--with-x=no \
--with-system-ncurses \
--with-system-zlib &amp;&amp;
make all</userinput></screen>
<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>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make install &amp;&amp;
texconfig-sys dvips paper letter &amp;&amp;
texconfig-sys font rw</userinput></screen>
<note>
<para>The paper size may be changed to a4, as is used in most
countries.</para>
</note>
<para>To install the optional cm-super fonts, perform the following
instructions as the <systemitem class="username">root</systemitem>
user:</para>
<screen><userinput>tar -xf ../tetex-cm-super.tar.bz2 &amp;&amp;
FONTDIR=$(kpsewhich --expand-var '$TEXMFMAIN') &amp;&amp;
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 &amp;&amp;
cp -v cm-super/pfb/*.pfb $FONTDIR/fonts/type1/public/cm-super/ &amp;&amp;
gunzip cm-super/afm/* &amp;&amp;
cp -v cm-super/afm/*.afm $FONTDIR/fonts/afm/public/cm-super/ &amp;&amp;
cp -v cm-super/dvips/*.enc $FONTDIR/fonts/enc/dvips/cm-super/ &amp;&amp;
cp -v cm-super/dvips/*.map $FONTDIR/fonts/map/dvips/cm-super/ &amp;&amp;
cat &gt;&gt; $FONTDIR/web2c/updmap.cfg &lt;&lt; "EOF" &amp;&amp;
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 &amp;&amp;
mktexlsr &amp;&amp;
updmap-sys &amp;&amp;
unset FONTDIR</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para><parameter>--with-x=no</parameter>: This switch will avoid any
<application>X</application> dependencies. <application>teTeX</application>
can be compiled with <application>X</application> support, notably for
<command>xdvi</command>. If this is desired, remove this parameter.</para>
<para><parameter>--exec-prefix=/usr --bindir=/usr/bin</parameter>: These
switches ensure that <application>teTeX</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>
<para><parameter>--with-system-zlib</parameter>: A default LFS installation
already has the <application>Zlib</application> library installed. This
switch will avoid replacing it with the included
<application>Zlib</application> library.</para>
<para><option>--disable-a4</option>: Use this option to set the default
paper size to letter and the default unit to inch.</para>
<para><command>texconfig-sys dvips paper letter</command>: This command
sets the default paper size for <application>teTeX</application>.</para>
<para><command>texconfig-sys font rw</command>: This command specifies
creating and using a directory for globally writeable fonts.</para>
<para><command>mktexlsr</command>: This command recreates the
<application>teTeX</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>
<tip>
<para>Run <command>./configure --help</command> for information about
using other switches which will enable the build to use other installed
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>
<seg>/usr/include/kpathsea, /var/tmp/texfonts and the following
subdirectories of /usr/share/: texi2html, texinfo/html, texmf,
texmf-config and texmf-var</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="tetex-programs">
<term><command>teTeX programs</command></term>
<listitem>
<para>included in the <application>teTeX</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>teTeX</application> documentation.</para>
<indexterm zone="tetex tetex-programs">
<primary sortas="b-teTeX-programs">teTeX programs</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libkpathsea">
<term><filename class='libraryfile'>libkpathsea.a</filename></term>
<listitem>
<para>contains functions used by <application>teTeX</application>
for searching and cataloging path names.</para>
<indexterm zone="tetex libkpathsea">
<primary sortas="c-libkpathsea">libkpathsea.a</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>