PageRenderTime 26ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/texi2html-1.82/test/manuals/res/texinfo_nodes/Using-Texinfo.html

#
HTML | 196 lines | 144 code | 9 blank | 43 comment | 0 complexity | bd7251cf9fb5b2c8b266651a4f80baaf MD5 | raw file
Possible License(s): GPL-2.0, CC-BY-SA-3.0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
  2. <html>
  3. <!-- This manual is for GNU Texinfo (version 4.2, 28 March 2002),
  4. a documentation system that can produce both online information and a
  5. printed manual from a single source.
  6. Copyright (C) 1988, 90, 91, 92, 93, 95, 96, 97, 98, 99, 2000, 01, 02
  7. Free Software Foundation, Inc.
  8. Permission is granted to copy, distribute and/or modify this document
  9. under the terms of the GNU Free Documentation License, Version 1.1 or
  10. any later version published by the Free Software Foundation; with no
  11. Invariant Sections, with the Front-Cover texts being "A GNU Manual,"
  12. and with the Back-Cover Texts as in (a) below. A copy of the license is
  13. included in the section entitled "GNU Free Documentation License."
  14. (a) The FSF's Back-Cover Text is: "You have freedom to copy and modify
  15. this GNU Manual, like GNU software. Copies published by the Free
  16. Software Foundation raise funds for GNU development."
  17. -->
  18. <!-- Created on a sunny day by texi2html
  19. texi2html was written by:
  20. Lionel Cons <Lionel.Cons@cern.ch> (original author)
  21. Karl Berry <karl@freefriends.org>
  22. Olaf Bachmann <obachman@mathematik.uni-kl.de>
  23. and many others.
  24. Maintained by: Many creative people.
  25. Send bugs and suggestions to <texi2html-bug@nongnu.org>
  26. -->
  27. <head>
  28. <title>GNU Texinfo 4.2: 1.2 Using Texinfo</title>
  29. <meta name="description" content="GNU Texinfo 4.2: 1.2 Using Texinfo">
  30. <meta name="keywords" content="GNU Texinfo 4.2: 1.2 Using Texinfo">
  31. <meta name="resource-type" content="document">
  32. <meta name="distribution" content="global">
  33. <meta name="Generator" content="texi2html">
  34. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  35. <style type="text/css">
  36. <!--
  37. a.summary-letter {text-decoration: none}
  38. blockquote.smallquotation {font-size: smaller}
  39. pre.display {font-family: serif}
  40. pre.format {font-family: serif}
  41. pre.menu-comment {font-family: serif}
  42. pre.menu-preformatted {font-family: serif}
  43. pre.smalldisplay {font-family: serif; font-size: smaller}
  44. pre.smallexample {font-size: smaller}
  45. pre.smallformat {font-family: serif; font-size: smaller}
  46. pre.smalllisp {font-size: smaller}
  47. span.roman {font-family:serif; font-weight:normal;}
  48. span.sansserif {font-family:sans-serif; font-weight:normal;}
  49. ul.toc {list-style: none}
  50. -->
  51. </style>
  52. </head>
  53. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  54. <a name="Using-Texinfo"></a>
  55. <table cellpadding="1" cellspacing="1" border="0">
  56. <tr><td valign="middle" align="left">[<a href="Reporting-Bugs.html#Reporting-Bugs" title="Previous section in reading order"> &lt; </a>]</td>
  57. <td valign="middle" align="left">[<a href="Info-Files.html#Info-Files" title="Next section in reading order"> &gt; </a>]</td>
  58. <td valign="middle" align="left"> &nbsp; </td>
  59. <td valign="middle" align="left">[<a href="Overview.html#Overview" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
  60. <td valign="middle" align="left">[<a href="Overview.html#Overview" title="Up section"> Up </a>]</td>
  61. <td valign="middle" align="left">[<a href="Texinfo-Mode.html#Texinfo-Mode" title="Next chapter"> &gt;&gt; </a>]</td>
  62. <td valign="middle" align="left"> &nbsp; </td>
  63. <td valign="middle" align="left"> &nbsp; </td>
  64. <td valign="middle" align="left"> &nbsp; </td>
  65. <td valign="middle" align="left"> &nbsp; </td>
  66. <td valign="middle" align="left">[<a href="texinfo.html#Top" title="Cover (top) of document">Top</a>]</td>
  67. <td valign="middle" align="left">[<a href="texinfo_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
  68. <td valign="middle" align="left">[<a href="Command-and-Variable-Index.html#Command-and-Variable-Index" title="Index">Index</a>]</td>
  69. <td valign="middle" align="left">[<a href="texinfo_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
  70. </tr></table>
  71. <hr size="1">
  72. <a name="Using-Texinfo-1"></a>
  73. <h2 class="section">1.2 Using Texinfo</h2>
  74. <a name="index-Using-Texinfo-in-general"></a>
  75. <a name="index-Texinfo_002c-introduction-to"></a>
  76. <a name="index-Introduction-to-Texinfo"></a>
  77. <p>Using Texinfo, you can create a printed document with the normal
  78. features of a book, including chapters, sections, cross references, and
  79. indices. From the same Texinfo source file, you can create a
  80. menu-driven, online Info file with nodes, menus, cross references, and
  81. indices. You can also create from that same source file an HTML output
  82. file suitable for use with a web browser, or an XML file. <cite>The GNU
  83. Emacs Manual</cite> is a good example of a Texinfo file, as is this manual.
  84. </p>
  85. <p>To make a printed document, you process a Texinfo source file with the
  86. TeX typesetting program (but the Texinfo language is very different
  87. and much stricter than TeX&rsquo;s usual language, plain TeX). This
  88. creates a DVI file that you can typeset and print as a book or report
  89. (see section <a href="Hardcopy.html#Hardcopy">Formatting and Printing Hardcopy</a>).
  90. </p>
  91. <a name="index-makeinfo"></a>
  92. <p>To output an Info file, process your Texinfo source with the
  93. <code>makeinfo</code> utility or Emacs&rsquo;s <code>texinfo-format-buffer</code> command.
  94. You can install the result in your Info tree (see section <a href="Installing-an-Info-File.html#Installing-an-Info-File">Installing an Info File</a>).
  95. </p>
  96. <p>To output an HTML file, run <code>makeinfo --html</code> on your Texinfo
  97. source. You can (for example) install the result on your web site.
  98. </p>
  99. <a name="index-Docbook_002c-converting-to-Texinfo"></a>
  100. <a name="index-Conversion_002c-from-Docbook-to-Texinfo"></a>
  101. <p>To output an XML file, run <code>makeinfo --xml</code> on your Texinfo source.
  102. To output DocBook (a particular form of XML), run <code>makeinfo
  103. --docbook</code>. If you want to convert from Docbook <em>to</em> Texinfo,
  104. please see <a href="http://docbook2X.sourceforge.net/">http://docbook2X.sourceforge.net/</a>.
  105. </p>
  106. <a name="index-Output-formats_002c-supporting-more"></a>
  107. <a name="index-SGML_002dtools-output-format"></a>
  108. <p>If you are a programmer and would like to contribute to the GNU project
  109. by implementing additional output formats for Texinfo, that would be
  110. excellent. But please do not write a separate translator texi2foo for
  111. your favorite format foo! That is the hard way to do the job, and makes
  112. extra work in subsequent maintenance, since the Texinfo language is
  113. continually being enhanced and updated. Instead, the best approach is
  114. modify <code>makeinfo</code> to generate the new format, as it does now for
  115. Info, plain text, HTML, XML, and DocBook.
  116. </p>
  117. <p>TeX works with virtually all printers; Info works with virtually all
  118. computer terminals; the HTML output works with virtually all web
  119. browsers. Thus Texinfo can be used by almost any computer user.
  120. </p>
  121. <a name="index-Source-file"></a>
  122. <p>A Texinfo source file is a plain <small>ASCII</small> file containing text and
  123. <em>@-commands</em> (words preceded by an &lsquo;<samp>@</samp>&rsquo;) that tell the
  124. typesetting and formatting programs what to do. You may edit a Texinfo
  125. file with any text editor; but it is especially convenient to use GNU
  126. Emacs since that editor has a special mode, called Texinfo mode, that
  127. provides various Texinfo-related features. (See section <a href="Texinfo-Mode.html#Texinfo-Mode">Using Texinfo Mode</a>.)
  128. </p>
  129. <p>Before writing a Texinfo source file, you should learn about nodes,
  130. menus, cross references, and the rest, for example by reading this
  131. manual.
  132. </p>
  133. <p>You can use Texinfo to create both online help and printed manuals;
  134. moreover, Texinfo is freely redistributable. For these reasons, Texinfo
  135. is the official documentation format of the GNU project. More
  136. information is available at the <a href="http://www.gnu.org/doc/">GNU documentation web page</a>.
  137. </p>
  138. <a name="index-Man-page-output_002c-not-supported"></a>
  139. <p>From time to time, proposals are made to generate traditional Unix man
  140. pages from Texinfo source. This is not likely to ever be supported,
  141. because man pages have a very strict conventional format. Merely
  142. enhancing <code>makeinfo</code> to output troff format would be
  143. insufficient. Generating a good man page therefore requires a
  144. completely different source than the typical Texinfo applications of
  145. writing a good user tutorial or a good reference manual. This makes
  146. generating man pages incompatible with the Texinfo design goal of not
  147. having to document the same information in different ways for different
  148. output formats. You might as well just write the man page directly.
  149. </p>
  150. <a name="index-help2man"></a>
  151. <a name="index-O_0027Dea_002c-Brendan"></a>
  152. <p>Man pages still have their place, and if you wish to support them, the
  153. program <code>help2man</code> may be useful; it generates a traditional man
  154. page from the &lsquo;<samp>--help</samp>&rsquo; output of a program. In fact, this is
  155. currently used to generate man pages for the Texinfo programs
  156. themselves. It is GNU software written by Brendan O&rsquo;Dea, available from
  157. <a href="ftp://ftp.gnu.org/gnu/help2man/">ftp://ftp.gnu.org/gnu/help2man/</a>.
  158. </p>
  159. <hr size="1">
  160. <table cellpadding="1" cellspacing="1" border="0">
  161. <tr><td valign="middle" align="left">[<a href="Reporting-Bugs.html#Reporting-Bugs" title="Previous section in reading order"> &lt; </a>]</td>
  162. <td valign="middle" align="left">[<a href="Info-Files.html#Info-Files" title="Next section in reading order"> &gt; </a>]</td>
  163. <td valign="middle" align="left"> &nbsp; </td>
  164. <td valign="middle" align="left">[<a href="Overview.html#Overview" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
  165. <td valign="middle" align="left">[<a href="Overview.html#Overview" title="Up section"> Up </a>]</td>
  166. <td valign="middle" align="left">[<a href="Texinfo-Mode.html#Texinfo-Mode" title="Next chapter"> &gt;&gt; </a>]</td>
  167. <td valign="middle" align="left"> &nbsp; </td>
  168. <td valign="middle" align="left"> &nbsp; </td>
  169. <td valign="middle" align="left"> &nbsp; </td>
  170. <td valign="middle" align="left"> &nbsp; </td>
  171. <td valign="middle" align="left">[<a href="texinfo.html#Top" title="Cover (top) of document">Top</a>]</td>
  172. <td valign="middle" align="left">[<a href="texinfo_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
  173. <td valign="middle" align="left">[<a href="Command-and-Variable-Index.html#Command-and-Variable-Index" title="Index">Index</a>]</td>
  174. <td valign="middle" align="left">[<a href="texinfo_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
  175. </tr></table>
  176. <p>
  177. <font size="-1">
  178. This document was generated by <em>a tester</em> on <em>a sunny day</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html</em></a>.
  179. </font>
  180. <br>
  181. </p>
  182. </body>
  183. </html>