1
0

texinfo.xml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/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. <sect1info condition="script">
  10. <productname>texinfo</productname>
  11. <productnumber>&texinfo-version;</productnumber>
  12. <address>&texinfo-url;</address>
  13. </sect1info>
  14. <title>Texinfo-&texinfo-version;</title>
  15. <indexterm zone="ch-system-texinfo">
  16. <primary sortas="a-Texinfo">Texinfo</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>Texinfo 软件包包含阅读、编写和转换 info 页面的程序。</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&texinfo-ch6-sbu;</seg>
  26. <seg>&texinfo-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>安装 Texinfo</title>
  32. <para>修复一个在退化测试中产生大量失败的文件:</para>
  33. <screen><userinput remap="pre">sed -i '5481,5485 s/({/(\\{/' tp/Texinfo/Parser.pm</userinput></screen>
  34. <para>准备安装 Texinfo:</para>
  35. <screen><userinput remap="configure">./configure --prefix=/usr --disable-static</userinput></screen>
  36. <variablelist>
  37. <title>配置选项的含义:</title>
  38. <varlistentry>
  39. <term><parameter>--disable-static</parameter></term>
  40. <listitem>
  41. <para>在本例中,顶层配置脚本会抱怨说这是一个无法识别的选项,
  42. 但 XSParagraph 配置脚本能够识别它,并禁止将静态库
  43. <filename class="libraryfile">XSParagraph.a</filename>
  44. 安装到
  45. <filename class="directory">/usr/lib/texinfo</filename>。
  46. </para>
  47. </listitem>
  48. </varlistentry>
  49. </variablelist>
  50. <para>编译该软件包:</para>
  51. <screen><userinput remap="make">make</userinput></screen>
  52. <para>运行以下命令以测试编译结果:</para>
  53. <screen><userinput remap="test">make check</userinput></screen>
  54. <para>安装该软件包:</para>
  55. <screen><userinput remap="install">make install</userinput></screen>
  56. <para>可选地,安装属于 TeX 环境的组件:</para>
  57. <!-- FIXME: doesn't the TeX installation in BLFS overwrite files there? -->
  58. <screen><userinput remap="install">make TEXMF=/usr/share/texmf install-tex</userinput></screen>
  59. <variablelist>
  60. <title>make 命令参数的含义:</title>
  61. <varlistentry>
  62. <term><parameter>TEXMF=/usr/share/texmf</parameter></term>
  63. <listitem>
  64. <para><envar>TEXMF</envar> Makefile 变量包含之后可能安装的 TeX
  65. 软件包的 TeX 目录树根位置。</para>
  66. </listitem>
  67. </varlistentry>
  68. </variablelist>
  69. <!--para>The Info documentation system uses a plain text file to hold its list of
  70. menu entries. The file is located at <filename>/usr/share/info/dir</filename>.
  71. Unfortunately, due to occasional problems in the Makefiles of various packages,
  72. it can sometimes get out of sync with the info pages installed on the system.
  73. If the <filename>/usr/share/info/dir</filename> file ever needs to be
  74. recreated, the following optional commands will accomplish the task:</para-->
  75. <para>Info 文档系统使用纯文本文件保存目录项的列表,
  76. 该文件位于 <filename>/usr/share/info/dir</filename>。
  77. 不幸的是,由于一些软件包 Makefile 中的偶然问题,
  78. 它偶尔会与系统实际安装的 info 页面不同步。
  79. 如果需要重新创建 <filename>/usr/share/info/dir</filename> 文件,
  80. 可以运行以下命令完成这一工作:</para>
  81. <screen role="nodump"><userinput>pushd /usr/share/info
  82. rm -v dir
  83. for f in *
  84. do install-info $f dir 2&gt;/dev/null
  85. done
  86. popd</userinput></screen>
  87. </sect2>
  88. <sect2 id="contents-texinfo" role="content">
  89. <title>Texinfo 的内容</title>
  90. <segmentedlist>
  91. <segtitle>安装的程序</segtitle>
  92. <segtitle>安装的库</segtitle>
  93. <segtitle>安装的目录</segtitle>
  94. <seglistitem>
  95. <seg>info, install-info, makeinfo (到 texi2any 的链接),
  96. pdftexi2dvi, pod2texi, texi2any, texi2dvi, texi2pdf, 以及 texindex</seg>
  97. <seg>XSParagraph.so</seg>
  98. <seg>/usr/share/texinfo 和 /usr/lib/texinfo</seg>
  99. </seglistitem>
  100. </segmentedlist>
  101. <variablelist>
  102. <bridgehead renderas="sect3">简要描述</bridgehead>
  103. <?dbfo list-presentation="list"?>
  104. <?dbhtml list-presentation="table"?>
  105. <varlistentry id="info">
  106. <term><command>info</command></term>
  107. <listitem>
  108. <para>用于阅读和 man 页面类似的 info 页面,
  109. man 页面一般只解释可用的命令行选项,而 info 页面更为深入
  110. [例如,可以对比 <command>man bison</command> 和
  111. <command>info bison</command>。]</para>
  112. <indexterm zone="ch-system-texinfo info">
  113. <primary sortas="b-info">info</primary>
  114. </indexterm>
  115. </listitem>
  116. </varlistentry>
  117. <varlistentry id="install-info">
  118. <term><command>install-info</command></term>
  119. <listitem>
  120. <para>用于安装 info 页面;该命令更新
  121. <command>info</command> 索引文件</para>
  122. <indexterm zone="ch-system-texinfo install-info">
  123. <primary sortas="b-install-info">install-info</primary>
  124. </indexterm>
  125. </listitem>
  126. </varlistentry>
  127. <varlistentry id="makeinfo">
  128. <term><command>makeinfo</command></term>
  129. <listitem>
  130. <para>将给定 Texinfo 源代码文档转换成 info 页面、
  131. 纯文本或 HTML</para>
  132. <indexterm zone="ch-system-texinfo makeinfo">
  133. <primary sortas="b-makeinfo">makeinfo</primary>
  134. </indexterm>
  135. </listitem>
  136. </varlistentry>
  137. <varlistentry id="pdftexi2dvi">
  138. <term><command>pdftexi2dvi</command></term>
  139. <listitem>
  140. <para>将给定 Texinfo 文档格式化为可移植文档格式(PDF)文件</para>
  141. <indexterm zone="ch-system-texinfo pdftexi2dvi">
  142. <primary sortas="b-pdftexi2dvi">pdftexi2dvi</primary>
  143. </indexterm>
  144. </listitem>
  145. </varlistentry>
  146. <varlistentry id="pod2texi">
  147. <term><command>pod2texi</command></term>
  148. <listitem>
  149. <para>将 Pod 转换成 Texinfo 格式</para>
  150. <indexterm zone="ch-system-texinfo pod2texi">
  151. <primary sortas="b-pod2texi">pod2texi</primary>
  152. </indexterm>
  153. </listitem>
  154. </varlistentry>
  155. <varlistentry id="texi2any">
  156. <term><command>texi2any</command></term>
  157. <listitem>
  158. <para>将 Texinfo 文档转换成其他几种格式</para>
  159. <indexterm zone="ch-system-texinfo texi2any">
  160. <primary sortas="b-texiany">texi2any</primary>
  161. </indexterm>
  162. </listitem>
  163. </varlistentry>
  164. <varlistentry id="texi2dvi">
  165. <term><command>texi2dvi</command></term>
  166. <listitem>
  167. <para>将给定 Texinfo 文档格式化为可打印的设备无关文件</para>
  168. <indexterm zone="ch-system-texinfo texi2dvi">
  169. <primary sortas="b-texi2dvi">texi2dvi</primary>
  170. </indexterm>
  171. </listitem>
  172. </varlistentry>
  173. <varlistentry id="texi2pdf">
  174. <term><command>texi2pdf</command></term>
  175. <listitem>
  176. <para>将给定 Texinfo 文档格式化为可移植文档格式(PDF)文件</para>
  177. <indexterm zone="ch-system-texinfo texi2pdf">
  178. <primary sortas="b-texi2pdf">texi2pdf</primary>
  179. </indexterm>
  180. </listitem>
  181. </varlistentry>
  182. <varlistentry id="texindex">
  183. <term><command>texindex</command></term>
  184. <listitem>
  185. <para>用于排序 Texinfo 索引文件</para>
  186. <indexterm zone="ch-system-texinfo texindex">
  187. <primary sortas="b-texindex">texindex</primary>
  188. </indexterm>
  189. </listitem>
  190. </varlistentry>
  191. </variablelist>
  192. </sect2>
  193. </sect1>