latex2rtf foo convert foo.tex to foo.rtf latex2rtf <foo >foo.RTF convert foo to foo.RTF latex2rtf -M12 foo replace equations with bitmaps latex2rtf -i russian foo assume russian tex conventions latex2rtf -C raw foo retain font encoding in rtf file latex2rtf -d4 foo lots of debugging information
LaTeX to RTF convertor written in GNU C, text mode (no GUI), aimed at platform independence
Usage: latex2rtf [options] input[.tex] Options: -a auxfile use LaTeX auxfile rather than input.aux -b bblfile use BibTex bblfile rather than input.bbl) -C codepage latex encoding charset (latin1, cp850, raw, etc.) -d level debugging output (level is 0-6) -F use LaTeX to convert all figures to bitmaps -D dpi number of dots per inch for bitmaps -h display help -i language idiom or language (e.g., german, french) -l use latin1 encoding (default) -M # math equation handling -M1 displayed equations to RTF -M2 inline equations to RTF -M3 inline and displayed equations to RTF (default) -M4 displayed equations to bitmap -M6 inline equations to RTF and displayed equations to bitmaps -M8 inline equations to bitmap -M12 inline and displayed equations to bitmaps -M16 insert Word comment field that the original equation text -o outputfile file for RTF output -p option to avoid bug in Word for some equations -P /path/to/cfg directory containing .cfg files -S use ';' to separate args in RTF fields -se# scale factor for bitmap equations -sf# scale factor for bitmap figures -T /path/to/tmp temporary directory -v version information -V version information -W include warnings in RTF -Z # add # of '}'s at end of rtf file (# is 0-9)
LaTeX2RTF understands most of the commands introduced with LaTeX2e . It supports both the old 2.09 version of `\documentstyle[options]{format#}' and the newer `\documentclass[options]{format}'.
It is not necesary to specify the `-C' option if you use `\usepackage{isolatin1}' or `\documentstyle[isolatin1]{...}'. LaTeX2RTF automagically detects these packages/style options and switches to processing of ISO-Latin1 codes.
Many languages from the Babel package are supported. However, the support is limited to translate various words usually emitted by LaTeX during processing. For example, this ensures that the LaTeX2RTF will provide the correct translation of the word "Chapter" in the converted document.
Cross references include everything that you might expect and then some: bibliographic citations, equation references, table references, figure references, and section references. Section, equation, table and figure references are implemented by placing RTF bookmarks around the equation number (or table number or figure number).
There are four separate levels of equation translation based on the -M switch. Each equation is now converted either to an EQ field or to a bitmap.
There is now rudimentary support for `\includegraphics'. Three file types will be inserted into the RTF file without needing conversion: .pict, .jpeg, and .png files. EPS files are converted to PNG using `convert' from the ImageMagick package.
If there is no `\pagestyle' command, the RTF output is generated as with plain pagestyle, i.e. each page get's its page number centered at the bottom.
You must turn this off with the \pagestyle{empty} command in the LaTeX file if you don't want pagenumbers. The headings and myheadings styles are silently ignored by now. The twosided option to the \documentstyle or \documentclass produces the corresponding RTF tokens. Note that these features require RTF Version 1.4.
Warning line=5 Unknown style option comment ignored{ Error! line=6 \begin{comment} found before \begin{document}. Giving up. Sorry Warning line=6 Mismatched '{' in RTF file, Conversion may cause problems. Warning line=6 Try translating with 'latex2rtf -Z1 (null)'} $ latex2rtf -Z1 < textest.tex > /tmp/textest.rtf Warning line=5 Unknown style option comment ignored{ Error! line=6 \begin{comment} found before \begin{document}. Giving up. Sorry Warning line=6 Mismatched '{' in RTF file, Conversion may cause problems.} }