source: chapter06/texinfo.xml@ dd03426

Last change on this file since dd03426 was 28b40e2, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Finished the PDF fixes.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/6.2/BOOK@7737 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 6.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-texinfo" role="wrap">
9 <?dbhtml filename="texinfo.html"?>
10
11 <title>Texinfo-&texinfo-version;</title>
12
13 <indexterm zone="ch-system-texinfo">
14 <primary sortas="a-Texinfo">Texinfo</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Texinfo package contains programs for reading, writing, and
21 converting info pages.</para>
22
23 <segmentedlist>
24 <segtitle>&buildtime;</segtitle>
25 <segtitle>&diskspace;</segtitle>
26
27 <seglistitem>
28 <seg>&texinfo-ch6-sbu;</seg>
29 <seg>&texinfo-ch6-du;</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 </sect2>
34
35 <sect2 role="installation">
36 <title>Installation of Texinfo</title>
37
38 <para>The <command>info</command> program makes assumptions such as that
39 a string occupies the same number of character cells on the screen and
40 bytes in memory and that one can break the string anywhere, which fail
41 in UTF-8 based locales. The patch below makes them valid by falling back
42 to English messages when a multibyte locale is in use:</para>
43
44<screen><userinput>patch -Np1 -i ../&texinfo-multibyte-patch;</userinput></screen>
45
46 <para>Texinfo allows local users to overwrite arbitrary files via a symlink
47 attack on temporary files. Apply the following patch to fix this:</para>
48
49<screen><userinput>patch -Np1 -i ../&texinfo-tempfile_fix-patch;</userinput></screen>
50
51 <para>Prepare Texinfo for compilation:</para>
52
53<screen><userinput>./configure --prefix=/usr</userinput></screen>
54
55 <para>Compile the package:</para>
56
57<screen><userinput>make</userinput></screen>
58
59 <para>To test the results, issue:
60 <userinput>make check</userinput>.</para>
61
62 <para>Install the package:</para>
63
64<screen><userinput>make install</userinput></screen>
65
66 <para>Optionally, install the components belonging in a TeX
67 installation:</para>
68 <!-- FIXME: doesn't the TeX installation in BLFS overwrite files there? -->
69
70<screen><userinput>make TEXMF=/usr/share/texmf install-tex</userinput></screen>
71
72 <variablelist>
73 <title>The meaning of the make parameter:</title>
74
75 <varlistentry>
76 <term><parameter>TEXMF=/usr/share/texmf</parameter></term>
77 <listitem>
78 <para>The <envar>TEXMF</envar> makefile variable holds the location
79 of the root of the TeX tree if, for example, a TeX package will be
80 installed later.</para>
81 </listitem>
82 </varlistentry>
83
84 </variablelist>
85
86 <para>The Info documentation system uses a plain text file to hold its list of
87 menu entries. The file is located at <filename>/usr/share/info/dir</filename>.
88 Unfortunately, due to occasional problems in the Makefiles of various packages,
89 it can sometimes get out of sync with the info pages installed on the system.
90 If the <filename>/usr/share/info/dir</filename> file ever needs to be
91 recreated, the following optional commands will accomplish the task:</para>
92
93 <beginpage/>
94
95<screen role="nodump"><userinput>cd /usr/share/info
96rm dir
97for f in *
98do install-info $f dir 2&gt;/dev/null
99done</userinput></screen>
100
101 </sect2>
102
103 <sect2 id="contents-texinfo" role="content">
104 <title>Contents of Texinfo</title>
105
106 <segmentedlist>
107 <segtitle>Installed programs</segtitle>
108
109 <seglistitem>
110 <seg>info, infokey, install-info, makeinfo, texi2dvi, texi2pdf, and
111 texindex</seg>
112 </seglistitem>
113 </segmentedlist>
114
115 <variablelist>
116 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
117 <?dbfo list-presentation="list"?>
118 <?dbhtml list-presentation="table"?>
119
120 <varlistentry id="info">
121 <term><command>info</command></term>
122 <listitem>
123 <para>Used to read info pages which are similar to man pages, but
124 often go much deeper than just explaining all the available command
125 line options. For example, compare <command>man bison</command> and
126 <command>info bison</command>.</para>
127 <indexterm zone="ch-system-texinfo info">
128 <primary sortas="b-info">info</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 <varlistentry id="infokey">
134 <term><command>infokey</command></term>
135 <listitem>
136 <para>Compiles a source file containing Info customizations into a
137 binary format</para>
138 <indexterm zone="ch-system-texinfo infokey">
139 <primary sortas="b-infokey">infokey</primary>
140 </indexterm>
141 </listitem>
142 </varlistentry>
143
144 <varlistentry id="install-info">
145 <term><command>install-info</command></term>
146 <listitem>
147 <para>Used to install info pages; it updates entries in the
148 <command>info</command> index file</para>
149 <indexterm zone="ch-system-texinfo install-info">
150 <primary sortas="b-install-info">install-info</primary>
151 </indexterm>
152 </listitem>
153 </varlistentry>
154
155 <varlistentry id="makeinfo">
156 <term><command>makeinfo</command></term>
157 <listitem>
158 <para>Translates the given Texinfo source documents into
159 info pages, plain text, or HTML</para>
160 <indexterm zone="ch-system-texinfo makeinfo">
161 <primary sortas="b-makeinfo">makeinfo</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 <varlistentry id="texi2dvi">
167 <term><command>texi2dvi</command></term>
168 <listitem>
169 <para>Used to format the given Texinfo document into a
170 device-independent file that can be printed</para>
171 <indexterm zone="ch-system-texinfo texi2dvi">
172 <primary sortas="b-texi2dvi">texi2dvi</primary>
173 </indexterm>
174 </listitem>
175 </varlistentry>
176
177 <varlistentry id="texi2pdf">
178 <term><command>texi2pdf</command></term>
179 <listitem>
180 <para>Used to format the given Texinfo document into a
181 Portable Document Format (PDF) file</para>
182 <indexterm zone="ch-system-texinfo texi2pdf">
183 <primary sortas="b-texi2pdf">texi2pdf</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="texindex">
189 <term><command>texindex</command></term>
190 <listitem>
191 <para>Used to sort Texinfo index files</para>
192 <indexterm zone="ch-system-texinfo texindex">
193 <primary sortas="b-texindex">texindex</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 </variablelist>
199
200 </sect2>
201
202</sect1>
Note: See TracBrowser for help on using the repository browser.