1latex2rtf(1) General Commands Manual latex2rtf(1)
2
3
4
6 latex2rtf - Convert a LaTeX file to an RTF file
7
9 latex2rtf [-hlpFSV] [ -d# ] [ -M# ] [ -a auxfile ] [ -b bblfile ] [ -C
10 codepage ] [ -D dots_per_inch ] [ -i language ] [ -o outputfile ] [ -P
11 /path/to/cfg ] [ inputfile ]
12
14 The latex2rtf command converts a LaTeX file into RTF text format. The
15 text and much of the formatting information is translated to RTF.
16
17 -a auxfile
18 Used to specify a particular cross-referencing file. When this
19 option is omitted, the auxfile is assumed to be the same as
20 inputfile with the .tex suffix replaced by .aux.
21
22 -b bblfile
23 Used to specify a particular bibliography file When this option
24 is omitted, the bblfile is assumed to be the same as inputfile
25 with the .tex suffix replaced by .bbl.
26
27 -C codepage
28 used to specify the character set (code page) used in the LaTeX
29 document for non-ansi characters. codepage may be one of the
30 following: ansinew, applemac, cp437, cp437de, cp850, cp852,
31 cp855, cp865, cp866, decmulti, cp1250, cp1252, koi8-r, koi8-u,
32 latin1, latin2, latin3, latin4, latin5, latin9, maccyr, macukr,
33 next, raw, raw437, raw852, raw1250, raw1251, and raw1253. The
34 default behavior is to use ansinew (same as cp1252). For conve‐
35 nience, just the numbers 437, 437de, 850, 852, 855, 866, 1250 or
36 1252 may be specified.
37
38 The raw character set encoding prevents any 8-bit character
39 translation. The RTF file is marked to use the same encoding as
40 the default encoding for the program interpreting the RTF file.
41 This is particularly useful when translating a file written in a
42 language (e.g., czech) that maps poorly into the ansinew (west‐
43 ern european) character set.
44
45
46 -d# Write extra debugging output to stderr. Higher numbers cause
47 more debugging output and range from 0 (only errors) to 6
48 (absurdly many messages). The default is 1 (Warnings and Errors
49 only).
50
51 -D dots_per_inch
52 Used to specify the number of dots per inch in equations that
53 are converted to bitmaps and for graphics that must be con‐
54 verted. Default is 300 dpi.
55
56 -F use LaTeX to create bitmaps for all figures. This may help when
57 figures are not translated properly.
58
59 -h Print a short usage note
60
61 -i language
62 used to set the idiom or language used in the LaTeX document
63 language may be one of the following afrikaans, bahasa, basque,
64 brazil, breton, catalan, croatian, czech, danish, dutch, eng‐
65 lish, esperanto, estonian, finnish, french, galician, german,
66 icelandic, irish,italian, latin, lsorbian, magyar, norsk,
67 nynorsk, polish, portuges, romanian, russian, samin, scottish,
68 serbian, slovak, slovene, spanish, swedish, turkish, usorbian,
69 welsh. The default is english.
70
71 -l Assume LaTeX source uses ISO 8859-1 (Latin-1) special characters
72 (default behavior).
73
74 -o outputfile
75 Redirect output to outputfile Unless an outputfile is specified
76 with the -o option, the resulting RTF is produced in a file with
77 .tex replaced by .rtf.
78
79 -M# where # selects the type of equation conversion. -M3 is the
80 default and converts both inline and displayed equations to RTF.
81 -M6 converts inline equations to RTF and displayed equations to
82 bitmaps. -M12 converts inline and displayed equations to bit‐
83 maps. Bitmap conversion requires a working latex2png script.
84 Producing bitmaps is slow.
85
86 -p do not quote printed parentheses in mathematical formulas, as
87 some versions of Word (e.g Word 2000) have deep psychological
88 problems with EQ fields using quoted parentheses. If Word dis‐
89 plays some formulas with parentheses as 'Error!', try this
90 option. See also the -S option.
91
92 -P /path/to/cfg
93 used to specify the directory that contains the @code{.cfg}
94 files
95
96 -S Use semicolons to separate arguments in RTF fields. This is
97 needed when the machine opening the RTF file has a version of
98 Word that uses commas for decimal points. This also can fix
99 displaying some formulas as 'Error!' You may also need to try
100 the -p option.
101
102 -V Prints version on standard output and exits.
103
104 -W Emit warnings directly in RTF file. Handy for catching things
105 that do not get translated correctly.
106
107 -Z# Add # close braces to end of RTF file. (Handy when file is not
108 converted correctly and will not open in another word proces‐
109 sor.)
110
112 The configuration files are searched first in any directory specified
113 by -P, then in the location specified by the environment variable RTF‐
114 PATH, and finally in the location CFGDIR specified when latex2rtf was
115 compiled. If the configuration files are not found then latex2rtf
116 aborts. The configuration files allow additional fonts to be recog‐
117 nized, additional simple commands to be translation, and additional
118 commands to be ignored.
119
121 The input file must be a valid LaTeX file. Use LaTeX to find and fix
122 errors before converting with latex2rtf.
123
124 The configuration files direct.cfg and fonts.cfg are in the correct
125 directory. You may have to change fonts.cfg or direct.cfg to suit your
126 needs.
127
129 Some might consider RTF to be a bug.
130
131 Some environments are currently ignored.
132
133 Translation without a LaTeX generated .aux file is poor.
134
136 Report bugs to to the bug tracking system at http://source‐
137 forge.net/projects/latex2rtf/. Only report bugs for the latest version
138 of latex2rtf that is available. Please identify your operating system.
139
140
141 If the program produces wrong output or does not work for you, INCLUDE
142 A SHORT LATEX FILE that demonstrates the problem. The shorter the
143 LaTeX file, the quicker your bug will get addressed. Bug reports with
144 non-existent LaTeX files are not welcomed by the developers. Do not
145 bother to send RTF files, since these are usually unhelpful.
146
148 latex(1), rtf2LaTeX2e(1), LaTeX User's Guide & Reference Manual by
149 Leslie Lamport
150
151 For complete, current documentation, refer to the Info file
152 latex2rtf.info, the PDF file latex2rtf.pdf or the HTML file
153 latex2rtf.html which are made from the TeXInfo source file
154 latex2rtf.texi.
155
156
157
158
159 latex2rtf(1)