source: pst/typesetting/tex.xml@ 68df39bf

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 68df39bf was 68df39bf, checked in by Randy McMurchy <randy@…>, 20 years ago

Added flex patch and required dependency 'ed' to TeX instructions to build against LFS >5.1.1

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2512 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.5 KB
Line 
1<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
2 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../../general.ent">
4 %general-entities;
5
6 <!ENTITY tex-download-ftp "ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-src-&tex-version;.tar.gz">
7 <!ENTITY texmf-download-ftp "ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-texmf-&tex-version;.tar.gz">
8 <!ENTITY texmfsrc-download-ftp "ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-texmfsrc-&tex-version;.tar.gz">
9 <!ENTITY tex-size "64 MB">
10 <!ENTITY tex-optional-size "87 MB">
11 <!ENTITY tex-buildsize "344 MB">
12 <!ENTITY tex-optional-buildsize "415 MB">
13 <!ENTITY tex-time "2.97 SBU">
14]>
15
16<sect1 id="pst-typesetting-tex" xreflabel="TeX-&tex-version;">
17<?dbhtml filename="tex.html"?>
18<title>TeX-&tex-version;</title>
19
20<sect2>
21<title>Introduction to <application>TeX</application></title>
22
23<para><application>TeX</application> is a typesetting package, able to create
24documents in a variety of formats. The optional <filename>texmfsrc</filename>
25<acronym>TAR</acronym> ball contains source code for packages that are
26contained in the <filename>texmf</filename> <acronym>TAR</acronym> ball,
27including the docstrip sources.</para>
28
29<sect3><title>Package information</title>
30<itemizedlist spacing='compact'>
31<listitem><para>Required Download (FTP): <ulink
32url="&tex-download-ftp;"/></para></listitem>
33<listitem><para>Required Download (FTP): <ulink
34url="&texmf-download-ftp;"/></para></listitem>
35<listitem><para>Optional Download (FTP): <ulink
36url="&texmfsrc-download-ftp;"/></para></listitem>
37<listitem><para>Download size:
38&tex-size; (&tex-optional-size; with optional tarball)</para></listitem>
39<listitem><para>Estimated Disk space required:
40&tex-buildsize; (&tex-optional-buildsize; with optional tarball)</para>
41</listitem>
42<listitem><para>Estimated build time:
43&tex-time;</para></listitem></itemizedlist>
44</sect3>
45
46<sect3><title>Additional Downloads</title>
47<itemizedlist spacing='compact'>
48<listitem><para>Required Patch (if using Glibc >2.3.3): <ulink
49url="&patch-root;/tetex-src-&tex-version;-flex-1.patch"/></para>
50</listitem>
51<listitem><para>Recommended Patch: <ulink
52url="&patch-root;/tetex-src-&tex-version;-remove_readlink-1.patch"/></para>
53</listitem>
54</itemizedlist></sect3>
55
56<sect3><title><application>TeX</application> dependencies</title>
57<sect4><title>Required</title>
58<para><xref linkend="ed"/></para>
59</sect4>
60
61<sect4><title>Optional</title>
62<para><xref linkend="x-installing"/>,
63<xref linkend="openssl"/>,
64<xref linkend="mysql"/> and
65<xref linkend="perl-modules"/>: Tk-&Perl-Tk-version;</para>
66</sect4>
67</sect3>
68
69</sect2>
70
71<sect2>
72<title>Installation of <application>TeX</application></title>
73
74<para><application>TeX</application> is installed from the source
75directory (usually <filename class="directory">/usr/src</filename>) and untarring
76instructions are included below instead of the usual assumption that you
77have already untarred the package. The source directory should contain
78the two required packages and the optional package, if desired.</para>
79
80<para>Install <application>TeX</application> by running the following
81commands:</para>
82
83<screen><userinput><command>mkdir -p /usr/share/texmf &amp;&amp;
84tar zxvf tetex-src-&tex-version;.tar.gz &amp;&amp;
85cd tetex-src-&tex-version; &amp;&amp;
86gzip -dc ../tetex-texmf-&tex-version;.tar.gz \
87 | (umask 0; cd /usr/share/texmf; tar xvf -)</command></userinput></screen>
88
89<para>If the optional <filename>texmf</filename> source code
90<acronym>TAR</acronym> ball was downloaded, untar it now:</para>
91
92<screen><userinput><command>gzip -dc ../tetex-texmfsrc-&tex-version;.tar.gz \
93 | (umask 0; cd /usr/share/texmf; tar xvf -)</command></userinput></screen>
94
95<screen><userinput><command>patch -Np1 -i ../tetex-src-&tex-version;-flex-1.patch &amp;&amp;
96patch -Np1 -i ../tetex-src-&tex-version;-remove_readlink-1.patch &amp;&amp;
97./configure --with-x=no --prefix=/usr \
98 --without-texinfo --with-system-ncurses --with-system-zlib \
99 --exec-prefix=/usr --bindir=/usr/bin &amp;&amp;
100make world &amp;&amp;
101texconfig dvips paper letter &amp;&amp;
102texconfig font rw</command></userinput></screen>
103
104<note><para>
105The paper size may be changed to a4, as is used in most countries.
106</para></note>
107
108</sect2>
109
110<sect2>
111<title>Installation command explanations</title>
112
113<para><screen><command>gzip -dc ../tetex-texmf-&tex-version;.tar.gz \
114 | (umask 0; cd /usr/share/texmf; tar xvf -)</command></screen>
115Untar the <application>TeX</application> fonts and macro libraries.</para>
116
117<para><parameter>--with-x=no</parameter>: This switch will avoid any
118<application>XFree86</application> dependencies.
119<application>TeX</application> can be compiled with
120<application>XFree86</application> support, notably for
121<command>xdvi</command>. If this is desired, remove this
122configure option.</para>
123
124<para><parameter>--exec-prefix=/usr --bindir=/usr/bin</parameter>: This switch
125will ensure that <application>TeX</application> binaries will be installed in
126<filename class="directory">/usr/bin</filename>.</para>
127
128<para><option>--without-texinfo</option>: A default
129<acronym>LFS</acronym> installation already has the
130<application>texinfo</application> package
131installed; this switch will avoid overwriting it with the included
132<application>texinfo</application>
133package.</para>
134
135<para><option>--with-system-ncurses</option>: This switch specifies using the
136already installed <filename class="libraryfile">libncurses</filename>
137library.</para>
138
139<para><option>--with-system-zlib</option>:
140<acronym>LFS</acronym> systems starting with version 4.0 have
141<application>Zlib</application> installed as part of the
142base operating system; this switch avoids building it here.</para>
143
144<para><command>texconfig dvips paper letter</command>: This command sets the
145default paper size for <application>TeX</application>.</para>
146
147<para><command>texconfig font rw</command>: This command specifies writable
148fonts.</para>
149
150</sect2>
151
152<sect2>
153<title>Contents</title>
154
155<para>The <application>TeX</application> package contains 101 separate
156binaries and shell scripts, and another 37 symlinks to these programs.
157<application>TeX</application> also builds the
158<filename class='libraryfile'>libkpathsea</filename> library.
159Please refer to <ulink url="file:///usr/share/texmf/doc/index.html"/>
160for details, as well as a tour of the expansive
161<application>TeX</application> documentation.</para>
162</sect2>
163
164</sect1>
Note: See TracBrowser for help on using the repository browser.