ltx2rtf is a compiler that translates LATEX2e source text into the RTF format used by several text processors, including Microsoft Word and Word for Windows. It was written by Fernando Dorner and Andreas Granzer in a one-semester course in Vienna (Austria) and is currently found as latex2rtf in CTAN servers.
It was heavily corrected and adapted to LATEX2e in 1997 by Daniel Taupin. The distribution was intended mainly for use within the MS-DOS window of Win95 and Win3.11, but all sources can be compiled on unix computers having GCC compilers.
Like most of the audience of TUG and other TEXperts' meetings, I usually write most of my papers in LATEX2e. But problems arise when needing to transmit these documents to non-LATEX users.
Transmitting a LATEX document to other LATEX users is no problem, since all LATEX formats at least recognise the 7-bit representation of accented letters. The problem arises only when the addressee is reluctant to use a LATEX representation:
This obvious (poor) solution fails because accented letters have at least three commonly used codings, the 850 for PCs, the Mac encoding and the ISO-latin1 coding, notwithstanding eastern European countries which use other ISO-8859 codings. Even the possible 7-bit bypass is often rejected since people who are not computer scientists seem allergic to the 7-bit representation r\'esum\'e instead of résumé.
This is the apparently good solution used by everyone in scientific areas. But it may fail for several reasons:
One could think of sending images of the document, rather than the text with its layout. In fact, this is rather satisfactory if the document is one or two pages: a scanner can be used to produce GIF files, or several packages are available to help the knowledgeable producer of a complex document in converting it from DVI, PostScript, PCL to GIF, a format whose advantage is being compressed. However:
The sender of a LATEX document - as well as the sender of a C or F77 source program - is therefore faced with a portability problem.
Unfortunately, the person who exposes these difficulties is likely to get answers of the form: why don't you get rid of your Windows system and move to unix?, why don't you discard your old Epson printer and have a PostScript printer?, why don't you move from Microsoft's text editors and use LATEX?, why don't you install GhostScript, GhostView, prfile10, or a Linux partition to your PC?, etc.
All these common sense answers are right, but they just forget one thing: the problem is not my with personal installation when sending/mailing a document, the problem is with the installation of the addressees, whose skill I perhaps do not know at all, and who are probably unable to install software other than what they got when buying their personal computer or when registering on some multi-user workstation.
When sending a document to a variety of addressees, one should think of which software is most wide-spread among them; the answer is thanks to Micro$oft's powerful advertisements, they all possess2 a version of Word[perfect] which can read RTF files.
In fact, whatever many people claim about Microsoft's way of managing its software, RTF specifications are published by this company, and are available at:
a self-extracting zipped file yielding a *.DOC file3. Thus, using this specification file (130 pages) and testing the actual behaviour of Word4, one can obtain a means of producing RTF from a LATEX source.
This was attempted in 1994 by students at an institution which appears to be a Technical University in Vienna (Austria) and widely posted on CTAN under the name latex2rtf. Their translator is provided as several C source files which can be easily compiled with a satisfactory makefile.
The C coding is clean and well structured but, unfortunately, the students did not have a knowledge of LATEX of the same quality as their C programming skill; thus many things had to be revised concerning font management, sectioning, itemize, enumerate, description and tabular environments, notwithstanding LATEX2e more recent specifications.
Anyway, even with its deficiencies, latex2rtf produces a RTF file which is quite satisfactory in the sense that it can be processed using Word, and nicely printed after several manual corrections, without the need to retype the whole of the text and add the font changes.
In the same way as latex2html, ltx2rtf compiles the LATEX source and directly produces RTF output, instead of HTML.
Part, chapter and section numbering all use Word (and RTF) built-in macros to provide section numbers which can be updated when inserting new sections (i.e. title levels) as provided by Word. Optionally, these numberings can be computed by ltx2rtf itself, in such a way they are frozen for further Word updates. Conversely, enumerate environments produce frozen numbers, mainly because Word's built-in features inhibit unnumbered paragraphs within that environment.
Western European accented letters - including capitals - are correctly treated, including the famous ISO-latin1 excluded . In the same way, additional abbreviation features provided by Bernard Gaulle's french.sty and Daniel Taupin's smallcap.sty (which enables a \scfamily command instead of \scshape to provide bold and/or slanted small capitals).
Two options are provided for maths handling.
From the LATEX-er's view point, output (text and moreover maths) is much better than the results obtained by average Wordists, especially with respect to lists.
Therefore the RTF produced is very good when one wants to e-mail a LATEX-typeset text to unkwnown (or known) addressees whose probability of possessing Word is 95%, but of having at least DVI printers/viewers or easy access to PostScript printers is only 5%.
From the producer's viewpoint, one sees the same installation difficulties as with latex2html with the exception that neither Perl nor GDBM/DBM are needed.
But more major inconveniences are seen from the addressee's viewpoint:
The reason is that the ltx2rtf-generated format (format in the Word sense) is definitely different from those which are provided as standard in Word's clicking windows. This results in the impossibility for the addressee to modify the RTF file except for pure text corrections and, perhaps, changes in sectioning (but not in section numbering style).
Software can be obtained from: ftp://ftp.lps.u-psud.fr/pub/ltx2rtf/ltx2rtf.zip
In the same way that DVIPS is not intended to help typesetters moving from LaTeX to PostScript, ltx2rtf is not intended to help them moving from LATEX to Word, but to help them in sending or posting nicely typeset papers, thus multiplying by tens the number of persons able to display and print it on their own Microsoft-addicted devices.
1 Which does not work with network connected printers.
2 Whether they actually bought the license is the addressee's problem, not mine.
3 Unzipping it seems however to fail since that last posting. No comment...
4 An old Word 6.0 did not exactly respect the specifications...
5 Thanks to Emmanuel Bigler who provided this alternate solution.
6 Other picture specifications are described, but they all fail with Word 6.0; therefore we kept to the only one succeeding.