Previous: Command line options, Up: Usage

3.2 Step-by-step conversion

This awkward way is only necessary if you have installed texi2latex without make, as in Manual installation.

Let's assume your original Texinfo document is stored in the file mymanual.texi.

  1. Create mymanual.xml by invoking
              makeinfo --xml mymanual.texi
  2. Edit the file mymanual.xml. In the second line, the URL to texinfo.dtd must be changed to the file path to your local texinfo.dtd. For example, on my system this is /home/bronger/xml/texi2latex/xslt/texinfo.dtd.
  3. Convert the XML file to LaTeX with
              saxon mymanual.xml /path/to/texi2latex.xsl | \
                  /path/to/tbrplent > mymanual.ltx

    Here you can also give the command line options, see Command line options.

  4. Call LaTeX or pdfLaTeX to get a DVI or PDF file, respectively:
              latex mymanual.ltx
              pdflatex mymanual.ltx
  5. If your document contains indices, the LaTeX document that texi2latex produces will write a file called makeindex.bat in the current directory. Depending on your system and shell configuration, you can call it with one of the following lines:
              bash makeindex.bat

    It will call makeindex with all appropriate parameters to create the indices. You will have to call LaTeX again for including them into the document.