1LATEX2RTF(1) User Commands LATEX2RTF(1)
2
3
4
6 latex2rtf - Convert a LaTeX file to an RTF file
7
9 latex2rtf [-hlpFSVW] [ -d# ] [ -D# ] [ -M# ] [ -se#] [ -sf#] [ -t# ] [
10 -Z# ] [ -a auxfile ] [ -b bblfile ] [ -C codepage ] [ -i language ] [
11 -o outputfile ] [ -P /path/to/cfg ] [ -T /path/to/tmp ] [ 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 -E# where # selects the type of figure handling desired. RTF does
57 not support insertion of PS, PDF, or EPS file types. These fig‐
58 ures must be converted to a bitmap format and then inserted.
59 One trick is to insert the filenames into the RTF file and then
60 in post-processing, insert the file. These options can be added
61 together.
62 -E3 insert all figures (DEFAULT)
63 -E0 no figures in the RTF
64 -E1 insert figures having RTF-supported formats
65 -E2 convert and insert unsupported figure formats
66 -E4 insert only filenames for supported file formats
67 -E8 insert only filenames for unsupported file formats
68
69 -f use fields
70 -f0 do not use fields in RTF. This is handy when primitive RTF
71 editors are being used to view the RTF output.
72 -f1 use fields for equations but not \ref and \cite.
73 -f2 use fields for \ref and \cite but not equations.
74 -f3 use fields when possible. This is the default and is most
75 useful when the RTF file is being exported to be used in Word.
76 This retains the most information from the original LaTeX file.
77
78 -F use LaTeX to create bitmaps for all figures. This may help when
79 figures are not translated properly.
80
81 -h Print a short usage note
82
83 -i language
84 used to set the idiom or language used in the LaTeX document
85 language may be one of the following afrikaans, bahasa, basque,
86 brazil, breton, catalan, croatian, czech, danish, dutch, eng‐
87 lish, esperanto, estonian, finnish, french, galician, german,
88 icelandic, irish,italian, latin, lsorbian, magyar, norsk,
89 nynorsk, polish, portuges, romanian, russian, samin, scottish,
90 serbian, slovak, slovene, spanish, swedish, turkish, usorbian,
91 welsh. The default is english.
92
93 -l Assume LaTeX source uses ISO 8859-1 (Latin-1) special characters
94 (default behavior).
95
96 -o outputfile
97 Redirect output to outputfile Unless an outputfile is specified
98 with the -o option, the resulting RTF is produced in a file with
99 .tex replaced by .rtf.
100
101 -M# where # selects the type of equation conversion.
102 -M1 displayed equations to RTF
103 -M2 inline equations to RTF
104 -M4 displayed equations to bitmap
105 -M8 inline equations to bitmap
106 -M16 insert Word comment field containing the raw LaTeX equation
107 -M32 insert raw LaTeX equation delimited by $...$ and \[...\]
108 -M64 displayed equations to EPS files with filenames in RTF
109 -M128 inline equations to EPS files with filenames in RTF
110
111 These options may be added together to get different results
112 -M0 no equations fields in the RTF.
113 -M3 converts both inline and displayed equations to RTF
114 (DEFAULT).
115 -M12 converts inline and displayed equations to bitmaps.
116 -M192 converts inline and displayed equations to eps files and
117 inserts a tag in RTF.
118 Bitmap conversion requires a working latex2png script. Produc‐
119 ing bitmaps is slow.
120
121 -p Escape printed parentheses in mathematical formulas, as some
122 versions of Word (e.g Word 2000) have deep psychological prob‐
123 lems with EQ fields using quoted parentheses. If Word displays
124 some formulas with parentheses as 'Error!', try this option.
125 See also the -S option.
126
127 -P /path/to/cfg
128 used to specify the directory that contains the @code{.cfg}
129 files
130
131 -se# selects the scale for equation conversion, where # is the scale
132 factor (default 1.00).
133
134 -sf# selects the scale for figure conversion, where # is the scale
135 factor (default 1.00).
136
137 -S Use semicolons to separate arguments in RTF fields. This is
138 needed when the machine opening the RTF file has a version of
139 Word that uses commas for decimal points. This also can fix
140 displaying some formulas as 'Error!' You may also need to try
141 the -p option.
142
143 -t# selects the type of table conversion.
144 -t1 convert tables to RTF (default)
145 -t2 convert tables to bitmaps
146
147 -T /path/to/tmp
148 used to specify the folder where to put temporary files.
149
150 -V Prints version on standard output and exits.
151
152 -W Emit warnings directly in RTF file. Handy for catching things
153 that do not get translated correctly.
154
155 -Z# Add # close braces to end of RTF file. (Handy when file is not
156 converted correctly and will not open in another word proces‐
157 sor.)
158
160 The configuration files are searched first in any directory specified
161 by -P, then in the location specified by the environment variable RTF‐
162 PATH, and finally in the location CFGDIR specified when latex2rtf was
163 compiled. If the configuration files are not found then latex2rtf
164 aborts. The configuration files allow additional fonts to be recog‐
165 nized, additional simple commands to be translation, and additional
166 commands to be ignored.
167
169 The input file must be a valid LaTeX file. Use LaTeX to find and fix
170 errors before converting with latex2rtf.
171
172 The configuration files direct.cfg and fonts.cfg are in the correct
173 directory. You may have to change fonts.cfg or direct.cfg to suit your
174 needs.
175
177 Some might consider RTF to be a bug.
178
179 Some environments are currently ignored.
180
181 Translation without a LaTeX generated .aux file is poor.
182
184 Report bugs to to the bug tracking system at http://source‐
185 forge.net/projects/latex2rtf/. Only report bugs for the latest version
186 of latex2rtf that is available. Please identify your operating system.
187
188
189 If the program produces wrong output or does not work for you, INCLUDE
190 A SHORT LATEX FILE that demonstrates the problem. The shorter the
191 LaTeX file, the quicker your bug will get addressed. Bug reports with
192 non-existent LaTeX files are not welcomed by the developers. Do not
193 bother to send RTF files, since these are usually unhelpful.
194
196 latex(1), rtf2LaTeX2e(1), LaTeX User's Guide & Reference Manual by
197 Leslie Lamport
198
199 For complete, current documentation, refer to the Info file
200 latex2rtf.info, the PDF file latex2rtf.pdf or the HTML file
201 latex2rtf.html which are made from the TeXInfo source file
202 latex2rtf.texi.
203
204
205
206
207latex2rtf 2.3 October 2012 LATEX2RTF(1)