LATEX2RTF(1)
๐
LATEX2RTF(1) โ the latex2rtf manual, but make it make sense ๐
okay bestie, welcome to the glow-up of the latex2rtf man page. This is the User Commands page for latex2rtf, and yes we're gonna read the whole thing together, no skipping. โจ
โจ NAME โจ
latex2rtf โ the icon that converts a LaTeX file to an RTF file. periodt. ๐
๐ฆ SYNTAX ๐ฆ
latex2rtf [-hlpFSVW] [ -d# ] [ -D# ] [ -M# ] [ -se#] [ -sf#] [ -t# ] [
-Z# ] [ -a auxfile ] [ -b bblfile ] [ -C codepage ] [ -i language ] [
-o outputfile ] [ -P /path/to/cfg ] [ -T /path/to/tmp ] [ inputfile ]
๐ฅ DESCRIPTION ๐ฅ
The latex2rtf command converts a LaTeX file into RTF text format. The text and much of the formatting information is translated to RTF. lowkey magic, highkey useful. ๐ช
-aauxfile โ used to specify a particular cross-referencing file. When this option is omitted, the auxfile is assumed to be the same as inputfile with the.texsuffix replaced by.aux.-bbblfile โ used to specify a particular bibliography file. When this option is omitted, the bblfile is assumed to be the same as inputfile with the.texsuffix replaced by.bbl.-Ccodepage โ used to specify the character set (code page) used in the LaTeX document for non-ansi characters. codepage may be one of the following:ansinew,applemac,cp437,cp437de,cp850,cp852,cp855,cp865,cp866,decmulti,cp1250,cp1252,koi8-r,koi8-u,latin1,latin2,latin3,latin4,latin5,latin9,maccyr,macukr,next,raw,raw437,raw852,raw1250,raw1251, andraw1253. The default behavior is to useansinew(same ascp1252). For convenience, just the numbers437,437de,850,852,855,866,1250or1252may be specified.
The raw character set encoding prevents any 8-bit character translation. The RTF file is marked to use the same encoding as the default encoding for the program interpreting the RTF file. This is particularly useful when translating a file written in a language (e.g., czech) that maps poorly into the ansinew (western european) character set. ๐ซถ
-d#โ write extra debugging output tostderr. Higher numbers cause more debugging output and range from0(only errors) to6(absurdly many messages). The default is1(Warnings and Errors only). ngl the6setting is giving "spiral notebook covered in stickers" energy ๐ญ-Ddots_per_inch โ used to specify the number of dots per inch in equations that are converted to bitmaps and for graphics that must be converted. Default is300dpi.-E#โ where#selects the type of figure handling desired. RTF does not support insertion of PS, PDF, or EPS file types. These figures must be converted to a bitmap format and then inserted. One trick is to insert the filenames into the RTF file and then in post-processing, insert the file. These options can be added together.-E3insert all figures (DEFAULT) ๐-E0no figures in the RTF-E1insert figures having RTF-supported formats-E2convert and insert unsupported figure formats-E4insert only filenames for supported file formats-E8insert only filenames for unsupported file formats
-fuse fields-f0do not use fields in RTF. This is handy when primitive RTF editors are being used to view the RTF output.-f1use fields for equations but not\refand\cite.-f2use fields for\refand\citebut not equations.-f3use fields when possible. This is the default and is most useful when the RTF file is being exported to be used in Word. This retains the most information from the original LaTeX file. ๐
-Fโ use LaTeX to create bitmaps for all figures. This may help when figures are not translated properly.-hโ print a short usage note.-ilanguage โ used to set the idiom or language used in the LaTeX document. language may be one of the following:afrikaans,bahasa,basque,brazil,breton,catalan,croatian,czech,danish,dutch,english,esperanto,estonian,finnish,french,galician,german,icelandic,irish,italian,latin,lsorbian,magyar,norsk,nynorsk,polish,portuges,romanian,russian,samin,scottish,serbian,slovak,slovene,spanish,swedish,turkish,usorbian,welsh. The default isenglish. ๐ (yes,portugesis spelled that way in here โ that's the literal list, bestie, don't come for me ๐)-lโ assume LaTeX source uses ISO 8859-1 (Latin-1) special characters (default behavior).-ooutputfile โ redirect output to outputfile. Unless an outputfile is specified with the-ooption, the resulting RTF is produced in a file with.texreplaced by.rtf.-M#โ where#selects the type of equation conversion.-M1displayed equations to RTF-M2inline equations to RTF-M4displayed equations to bitmap-M8inline equations to bitmap-M16insert Word comment field containing the raw LaTeX equation-M32insert raw LaTeX equation delimited by$...$and\[...\]-M64displayed equations to EPS files with filenames in RTF-M128inline equations to EPS files with filenames in RTF
These options may be added together to get different results:
-M0no equations fields in the RTF.-M3converts both inline and displayed equations to RTF (DEFAULT). โญ-M12converts inline and displayed equations to bitmaps.-M192converts inline and displayed equations to eps files and inserts a tag in RTF.
Bitmap conversion requires a working latex2png script. Producing bitmaps is slow. ๐ด (fr fr, it is not fast)
-pโ escape printed parentheses in mathematical formulas, as some versions of Word (e.g Word 2000) have deep psychological problems with EQ fields using quoted parentheses. If Word displays some formulas with parentheses as'Error!', try this option. See also the-Soption. ๐ (Word 2000 catching strays and honestly? deserved)-P/path/to/cfgโ used to specify the directory that contains the@code{.cfg}files.-se#โ selects the scale for equation conversion, where#is the scale factor (default1.00).-sf#โ selects the scale for figure conversion, where#is the scale factor (default1.00).-Sโ use semicolons to separate arguments in RTF fields. This is needed when the machine opening the RTF file has a version of Word that uses commas for decimal points. This also can fix displaying some formulas as'Error!'. You may also need to try the-poption.-t#โ selects the type of table conversion.-t1convert tables to RTF (default)-t2convert tables to bitmaps
-T/path/to/tmpโ used to specify the folder where to put temporary files.-Vโ prints version on standard output and exits.-Wโ emit warnings directly in RTF file. Handy for catching things that do not get translated correctly.-Z#โ add#close braces to end of RTF file. (Handy when file is not converted correctly and will not open in another word processor.) ๐ฉน
๐ง CONFIGURATION FILES ๐ง
The configuration files are searched first in any directory specified by -P, then in the location specified by the environment variable RTFPATH, and finally in the location CFGDIR specified when latex2rtf was compiled. If the configuration files are not found then latex2rtf aborts. The configuration files allow additional fonts to be recognized, additional simple commands to be translation, and additional commands to be ignored. โจ
bestie, that search order matters โ-PbeatsRTFPATHbeatsCFGDIR, and if none of them hit, it's over, the program just aborts. ๐
โ ๏ธ CAUTION โ ๏ธ
The input file must be a valid LaTeX file. Use LaTeX to find and fix errors before converting with latex2rtf.
The configuration files direct.cfg and fonts.cfg are in the correct directory. You may have to change fonts.cfg or direct.cfg to suit your needs.
๐ BUGS ๐
Some might consider RTF to be a bug. ๐ (no comment, moving on)
Some environments are currently ignored.
Translation without a LaTeX generated .aux file is poor. so like, generate the .aux first, okay? ๐ญ
๐ฎ REPORTING BUGS ๐ฎ
Report bugs to the bug tracking system at http://sourceforge.net/projects/latex2rtf/. Only report bugs for the latest version of latex2rtf that is available. Please identify your operating system.
If the program produces wrong output or does not work for you, INCLUDE A SHORT LATEX FILE that demonstrates the problem. The shorter the LaTeX file, the quicker your bug will get addressed. Bug reports with non-existent LaTeX files are not welcomed by the developers. Do not bother to send RTF files, since these are usually unhelpful.
๐ซถ real talk: attach a tiny .tex file that actually reproduces the problem. No file, no fix. And please, for the love of everything, don't send the RTF. ๐
๐ธ SEE ALSO ๐ธ
latex(1), rtf2LaTeX2e(1), LaTeX User's Guide & Reference Manual by Leslie Lamport
For complete, current documentation, refer to the Info file latex2rtf.info, the PDF file latex2rtf.pdf or the HTML file latex2rtf.html which are made from the TeXInfo source file latex2rtf.texi.
okay that's the whole page, you ate that ๐๐ โ and for the record, this iconic little document is latex2rtf 2.3, dated October 2012. yes, 2012. she's vintage, she's still slaying, we love a legacy queen ๐โจ
๐ฆ where this page comes from
- epel 9: latex2rtf 2.3.18-5.el9 ยท GPLv2+
- fedora 43: latex2rtf 2.3.18-16.fc43 ยท GPL-2.0-or-later
- fedora 44: latex2rtf 2.3.18-17.fc44 ยท GPL-2.0-or-later
- opensuse-leap 16.0: latex2rtf 2.3.18a-bp160.1.11 ยท GPL-2.0-or-later
- opensuse-leap 16.0: latex2rtf 2.3.18a-bp160.1.11 ยท GPL-2.0-or-later
- opensuse-leap 16.0: latex2rtf 2.3.18a-bp160.1.11 ยท GPL-2.0-or-later
- opensuse-leap 16.0: latex2rtf 2.3.18a-bp160.1.11 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms