texinfo.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. <screen role="nodump"><userinput>cd /usr/share/info
  67. rm dir
  68. for f in *
  69. do install-info $f dir 2&gt;/dev/null
  70. done</userinput></screen>
  71. </sect2>
  72. <sect2 id="contents-texinfo" role="content">
  73. <title>Contents of Texinfo</title>
  74. <segmentedlist>
  75. <segtitle>Installed programs</segtitle>
  76. <seglistitem>
  77. <seg>info, infokey, install-info, makeinfo, texi2dvi, texi2pdf, and
  78. texindex</seg>
  79. </seglistitem>
  80. </segmentedlist>
  81. <variablelist>
  82. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  83. <?dbfo list-presentation="list"?>
  84. <?dbhtml list-presentation="table"?>
  85. <varlistentry id="info">
  86. <term><command>info</command></term>
  87. <listitem>
  88. <para>Used to read info pages which are similar to man pages, but
  89. often go much deeper than just explaining all the available command
  90. line options. For example, compare <command>man bison</command> and
  91. <command>info bison</command>.</para>
  92. <indexterm zone="ch-system-texinfo info">
  93. <primary sortas="b-info">info</primary>
  94. </indexterm>
  95. </listitem>
  96. </varlistentry>
  97. <varlistentry id="infokey">
  98. <term><command>infokey</command></term>
  99. <listitem>
  100. <para>Compiles a source file containing Info customizations into a
  101. binary format</para>
  102. <indexterm zone="ch-system-texinfo infokey">
  103. <primary sortas="b-infokey">infokey</primary>
  104. </indexterm>
  105. </listitem>
  106. </varlistentry>
  107. <varlistentry id="install-info">
  108. <term><command>install-info</command></term>
  109. <listitem>
  110. <para>Used to install info pages; it updates entries in the
  111. <command>info</command> index file</para>
  112. <indexterm zone="ch-system-texinfo install-info">
  113. <primary sortas="b-install-info">install-info</primary>
  114. </indexterm>
  115. </listitem>
  116. </varlistentry>
  117. <varlistentry id="makeinfo">
  118. <term><command>makeinfo</command></term>
  119. <listitem>
  120. <para>Translates the given Texinfo source documents into
  121. info pages, plain text, or HTML</para>
  122. <indexterm zone="ch-system-texinfo makeinfo">
  123. <primary sortas="b-makeinfo">makeinfo</primary>
  124. </indexterm>
  125. </listitem>
  126. </varlistentry>
  127. <varlistentry id="texi2dvi">
  128. <term><command>texi2dvi</command></term>
  129. <listitem>
  130. <para>Used to format the given Texinfo document into a
  131. device-independent file that can be printed</para>
  132. <indexterm zone="ch-system-texinfo texi2dvi">
  133. <primary sortas="b-texi2dvi">texi2dvi</primary>
  134. </indexterm>
  135. </listitem>
  136. </varlistentry>
  137. <varlistentry id="texi2pdf">
  138. <term><command>texi2pdf</command></term>
  139. <listitem>
  140. <para>Used to format the given Texinfo document into a
  141. Portable Document Format (PDF) file</para>
  142. <indexterm zone="ch-system-texinfo texi2pdf">
  143. <primary sortas="b-texi2pdf">texi2pdf</primary>
  144. </indexterm>
  145. </listitem>
  146. </varlistentry>
  147. <varlistentry id="texindex">
  148. <term><command>texindex</command></term>
  149. <listitem>
  150. <para>Used to sort Texinfo index files</para>
  151. <indexterm zone="ch-system-texinfo texindex">
  152. <primary sortas="b-texindex">texindex</primary>
  153. </indexterm>
  154. </listitem>
  155. </varlistentry>
  156. </variablelist>
  157. </sect2>
  158. </sect1>