ltx2rtf [-V] [-D] [-m] (-M] [ -o outputfile] [ -C code page] [inputfile]
The ltx2rtf command converts a LaTeX file into RTF text format. The text and much of the formatting information is translated to RTF making the new file look very similar to the original. If
inputfile
is not specified, standard input is read. Unless an
outputfile
is specified the resulting RTF is produced in a file of name taken from the source with the .rtf suffix.
as pictures.
format string into the RTF file you can add these commands to the direct.cfg configuration file. See format description below.
User defined LaTeX commands can be expanded using
exp-macr
which is provided with the distribution.
config.cfg indicates the name/location of procedures to LaTeX equations in the %TMPDIR% directory and the convert the DVI into a PBM file.
configuration file. You have to specify the font names you use and how
the LaTeX default font names should be converted to RTF. See format
description below.
itself. They will be simply ignored. To let ltx2rtf know the names of
variables you can add them in the ignore.cfg file. See format
description below.
support files (all files ending in .cfg). Support files are searched first in theIf no file is found during the current directory, then in
files are not found at all the program aborts. to correctly edit the resulting file in the target word processor.
CAUTION
Please make sure that the input file is a correct LaTeX file. Use LaTeX
to find and correct errors before using ltx2rtf. The conversion command
does not properly handle all errors because of corrupt input files.
direct.cfg, fonts.cfg, config.cfg
are in the correct directory.
direct.cfg is used for converting LaTeX commands by simple text exchange.
when the command is recognized in the LaTeX file.
*fontname*.
fontname
is listed in the fonts configuration file at least as dummy.
example:
\\alpha,{\\f*Symbol* a}. #alpha under Windows Symbol Font \\copyright,{\\ansi\\'a9\\pc}.
fonts.cfg
contains the fonts conversion table.
name in RTF. The end is marked by a dot.
only the first is used.
default font.
used or not.
a Symbol font used in
direct.cfg
\- use a dummy LaTeX name like in the following example:
ignore.cfg is the file for defining how to ignore certain commands.
variables, and some simple commands. All variables are ignored but the converter must know the names to correctly ignore assignments to variables. Write the variable-name with backslash, followed by comma then write the type of the variable followed by `.'. Possible Types are:
and from there to next space. eg. \\setbox\\bak=\\hbox
of anything but a letter. eg. \\newbox\\bak
Example:
\\pagelenght,MEASURE.
the included information and convert things if possible.
be an internal representation of the configuration files that is read once and then consulted by more efficient mechanisms.
SEE ALSO