texinfo.xml 6.6 KB

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