1
0

texinfo.xml 8.0 KB

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