summaryrefslogtreecommitdiff
path: root/help/wp-conv/textopc.html
blob: 6a4a283e4a89f9569a4400141ca5ec4e14268cda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en-us"><head><title>Converters from LaTeX to PC Textprocessors - Overview</title>



<meta name="author" content="Wilfried Hennings">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></head><body>
<p>Up to the <a href="http://tug.org">TUG homepage
(external link)</a><br>
Up to <a href="index.html">Converters between LaTeX and
PC Textprocessors homepage</a></p>
<h1>Converters from LaTeX to PC Textprocessors - Overview</h1>
<p><strong>Switch conversion direction: <a href="pctotex.html">From PC to LaTeX</a></strong></p>
<p>Author: Wilfried Hennings (texconvfaq "at" gmx.de), this page
last updated on April 24, 2021<br>
The url of this page is <a href="http://tug.org/utilities/texconv/textopc.html">
http://tug.org/utilities/texconv/textopc.html</a> </p>
<p>I maintain these pages because I need converters between LaTeX
and PC Textprocessors for my work and I want to share the information
with others who need it. Because I maintain them in my spare time (uh,
what is spare time?), I
can not answer individual questions.</p>
<p><strong>This list is as good or as bad as its support,
and it needs YOUR support to update and supplement this list.</strong>
Please supplement if you know more and/or better ones. There are some
more converters on the CTAN sites, but the following seem to be most
promising for conversion to and from the current versions of
wordprocessors. </p>
<p>Neither correctness nor completeness is guaranteed. <br>
All opinions mentioned (if any) are my own. Please
send corrections, enhancements and supplements (auch in deutscher
Sprache) to the following address: <br>
texconvfaq "at" gmx.de</p>
<p>Note that this FAQ list contains information about converters
<strong>ONLY</strong> between LaTeX and PC word processors.
Converters to and from <strong>other formats may have own FAQ
lists</strong>
- e.g. see the link for converters to and from HTML.</p>
<hr>
<p>For the impatient, here is a <a href="tx2pctbl.html">table
with overview of features</a> of the most recent converters.</p>
<hr>
<h2>General Remarks</h2>
<p>Before looking for a converter, stop and think about a
principal question: </p>
<h3>What do you want to be converted in which way?</h3>
<p>Do you want to convert the <strong>document structure</strong>,
i.e. a heading should remain a heading, a list should remain a list
etc., no matter how it will look like in the target format?<br>
Or do you want to convert the <strong>appearance</strong>,
i.e. how it looks like, no matter how it is represented in the target
format?<br>
Or do you want a mixture of both?<br>So, not only practically there is no converter which is good for
everyone and every purpose, but this is even principally impossible
because there are no well-defined requirements which a converter should
meet. </p>
<p>An additional problem is that TeX/LaTeX can be extended by an
unlimited number of macros. Unless the converter contains a full-scale
TeX system, it can at best support the publicly available macro
commands, not the ones privately written by individual users.
Practically you can expect that it supports the standard LaTeX commands
and perhaps a few more widely used packages. The only converter which
uses a full-scale TeX system is TeX4ht. </p>
<p>So keep this in mind when looking through the following list
of converters, try yourself and decide what you need.</p>
<h3>There are several ways to convert. </h3>
<p>To illustrate these, let me restrict it to the Microsoft Word
case:</p>
<ul>
<li>directly type or paste LaTeX code into Word <br>
<br>
</li>
<li>use a Word import filter <br>
<br>
</li>
<li>use a Word macro: load LaTeX file as plain text, then
search for LaTeX markup and replace the markup by formatting, special
characters and equations. <br>
<br>
</li>
<li>use an external converter: </li>
</ul>
<ol>
<li>LaTeX -&gt; RTF, then use Word's
own RTF import,</li>
<li>LaTeX -&gt; HTML, then use Word's internet assistant or
built-in html converter,</li>
  <li>LaTeX -&gt; OpenOffice (or LibreOffice) writer, then save as Word docx<br>
  </li>

<li>maybe other external format(s).</li>
</ol>
<p>The converters being most complete and currently maintained /
supported are: </p>
<p><a href="#tex2word">TeX2Word</a> - a
shareware LaTeX import filter for MS Word</p>
<p><a href="#GrindEQ">GrindEQ</a> - a commercial LaTeX import filter for MS Word</p>
<p><a href="#latex2rtf">latex2rtf</a> - a free
standalone LaTeX -&gt; RTF
converter for PC, Macintosh and Unix, </p>
<p><a href="#TeX4ht">TeX4ht</a> - a free LaTeX
to html or XML converter for PC and Unix produces html which is good
for loading into Word. TeX4ht relies on other software, it needs at
least a full TeX system.</p>
<p>There are also converters to Powerpoint and to FrameMaker (see
further below).</p>
<hr>
<h2>Directly type or paste LaTeX code into Word</h2>
All of these only allow typing or pasting LaTeX coded <span style="font-style: italic;">equations</span> in Word,
not LaTeX coded text elements.<br>
<p><b>"LaTeX in Word"</b>:
See <a href="http://latexinword.sourceforge.net/">homepage
(external link)</a>
(Freeware, GPL). <br>
It allows to enter LaTeX equations in word
processors such as MS Word in LaTeX markup, and the
formatted equation is inserted in the Wordprocessor as a png
bitmap. It needs a server which performs the conversion. Server
installation files are available from the <a href="http://sourceforge.net/project/showfiles.php?group_id=186573">download
page (external link)</a>.</p>
<p><a href="https://www.dessci.com/en/products/mathtype/"><b>MathType</b>
(external link)</a> allows typing and pasting equations in LaTeX
markup and also direct conversion of an equation in LaTeX markup which
is part of the Word document text.</p>
<p><b>OpenOffice (or LibreOfiice)</b>
allows typing equations in LaTeX-like markup. </p>
<hr>
<h2>Use a Word import filter</h2>
<p><a name="tex2word"></a><b>TeX2Word:</b>
Shareware, 99$ (45$ academic). <br>
Current version: 3.0, Feb 2011.<br>
Support for more document styles and packages will be available with
future versions. You can also supply support for document styles,
packages and user defined macros by yourself (needs TeX programming
knowledge).<br>
Needs:<br></p>
<p>
Word &gt;97, also <a href="https://www.dessci.com/en/products/mathtype/">MathType
(external
link)</a>
4
or later is needed (full version of the Equation Editor which comes
with MS Word). Note that without registration and payment it will
revert to the free version which is sufficient for this purpose.<br></p>

See <a href="http://www.tex2word.com/">homepage
(external link)</a>
<p><a name="GrindEQ"></a><b>GrindEQ
LaTeX-to-Word:</b> Shareware, 99EUR (49EUR academic).<br>
converts LaTeX, AMS-LaTeX, Plain TeX, or AMS-TeX documents to Microsoft
Word format.<br>
You can choose the following formats for TeX/LaTeX equations: Microsoft
Equation 2007, Microsoft Equation 3.x, or MathType. <br>
Works with Microsoft Word 2003 and up and Microsoft Windows Vista and up.<br>
Evaluation version is restricted to 10 launches.<br>
See <a href="http://www.grindeq.com/">homepage
(external link)</a></p>
<hr>
<h2>Convert to RTF</h2>
<h3>Free:</h3>
<p><a name="latex2rtf"></a><b>latex2rtf</b>:
LaTeX-to-RTF-converter. See the <a href="latex2rtf.html">more
detailed page</a>. </p>
<hr><h2>Use a Word macro</h2>
<h3>Free:</h3>

<p><b>ltx2word</b>,
by myself: LaTeX to WinWord 6, WinWord 7(95) and WinWord 97 converter,
written as Word macros. No tables. Not compatible with Word 2000 and
up, no further development.<br>
See <a href="ltx2word.html">more detailed page</a>.</p>
<hr>
<h2>Use a Word add-in</h2>
<p>The following are no full converters but only allow
typing or pasting LaTeX code into Word:</p>

<p><b>"LaTeX in Word"</b>: It allows to enter
equations in word processors such as MS Word in LaTeX markup, and the
formatted equation is inserted in the Wordprocessor as a png
bitmap. It needs a server which performs the conversion. <br>
See <a href="http://latexinword.sourceforge.net/">homepage
(external link)</a> (Freeware, GPL)<br>
Server installation files are available from the <a href="http://sourceforge.net/project/showfiles.php?group_id=186573">download
page (external link)</a>.</p><hr>
<h2>HTML as intermediate format</h2>
<h3>LaTeX to HTML</h3>
<p>cost free unless otherwise stated</p>
<p>Because HTML is a structured format, the conversion between
HTML and LaTeX is rather straightforward. However there remain the
limitations of HTML compared to LaTeX, i.e. there are many elements in
LaTeX which can not (yet?) be represented in HTML. Converters from
LaTeX to HTML are:</p>
<p><a name="TeX4ht"></a><strong>Recommended</strong>
if you have TeX installed or don't mind to install it: <a href="http://tug.org/applications/tex4ht/mn.html">
<b>TeX4ht</b> (external link)</a>
is a highly configurable TeX-based converter to hypertext. It comes
with a built-in default setting for plain TeX, LaTeX and TeXinfo, and
it generates html with accompanying css stylesheet, xhtml, or xml. The
converter needs a full TeX installation, but this gives the advantage
that TeX's full support for macros and styles is available (with only
few exceptions).<br>
Equations are converted to either bitmaps or MathML. There are some
different MathML flavors around which can be chosen by an option.
(Following description is partially copied from the TeX4ht web site.)<br>
The special command <br>
<tt>oolatex</tt> <br>
is available for producing xml compatible with OpenOffice and LibreOffice. The output of the command <tt>oolatex
&lt;filename&gt;</tt> is a zipped file with same name and
a ".odt" extension (containing the document in xml format which does
not suffer the limitations of html). <br>
The resulting .odt file can directly be opened in OpenOffice or
LibreOffice, converted equations are editable in OpenOffice's or
LibreOffice's own equation editor. OpenOffice and LibreOffice
can save the document in MS Word 97/2000/XP (.doc) and Word 2003-2010 (.docx) format, but
some equations may not be converted correctly to Word. <br>
A command of the form <br>
<tt>htlatex filename "html,word"&nbsp;"symbol/!"</tt><br>
asks for HTML output tuned toward Microsoft Word. Such a format,
however, relies on bitmaps for mathematical formulas.<br>
Conversion to bitmaps additionally needs Ghostscript and ImageMagic or
netpbm. <br>
For more information see
<a href="http://tug.org/applications/tex4ht/mn.html">http://tug.org/applications/tex4ht/mn.html
(external link)</a>.
</p>
<p><a href="http://hutchinson.belmont.ma.us/tth/"><b>TTH</b>
(external link)</a>:
LaTeX-to-HTML converter which translates LaTeX into HTML 4.0 markup.
Formulae are also translated into standard html markup. (Free for
non-commercial applications.) <br>
A sister of tth, <a href="http://hutchinson.belmont.ma.us/tth/mml/">TtM
(external link)</a>,
converts formulae to MathML (Linux version for free, Windows version
must be paid).</p>
<p><a href="http://www.ctan.org/tex-archive/support/ltoh"><b>ltoh</b>
(external
link)</a>:
LaTeX-to-HTML converter which is highly customizable, i.e. you can
define how the LaTeX macros which are used in your document are to be
translated. Requires that the input file conforms to LaTeX2e (see
documentation). It was last updated 1997, and it seems
that the homepage is no longer available, so look on
CTAN in .../support/ltoh/ .</p>
<p><a href="http://para.inria.fr/%7Emaranget/hevea/"><b>HEVEA</b>
(external link)</a>:
LaTeX-to-HTML converter which translates LaTeX into HTML5 markup.
Formulae are also translated into standard html markup (not yet using
MathML).</p>
<p><a href="http://hyperlatex.sourceforge.net/"><b>Hyperlatex</b>
(external link)</a>
allows the use of a subset of LaTeX to produce documents in HTML .</p>

<h3>HTML to Wordprocessor</h3>
<p>Word 8 (97) and up contain the html converter by default (but
its installation may have to be explicitly chosen during the Word setup
in user-defined mode). <br>
</p>
<p></p><p>OpenOffice and LibreOffice can also import html, but much better is using
tex4ht for lossless conversion to native OO format.</p>
<hr>
<h2>Other intermediate formats</h2>

<p>An upcoming format is <b>XML</b>, a subset of
which can be exported and imported by Microsoft Office 2000 and up,
OpenOffice uses it as its native format, and the browser programmers
are working on implementing XML. It actually is an instance of SGML. As
it is more powerful than HTML,
conversion from LaTeX to XML would lose much less information than
conversion from LaTeX to HTML. There are good chances that it could be
used as a general exchange format in the future. <a href="#TeX4ht">TeX4ht</a>
already has scripts for converting to XML (TEI or DOCBOOK). MS Word
2000 and earlier can not import XML, for these target systems convert
to html+css using the xwtex and xwlatex scripts. MS Word 2003 can
export and import XML, but I haven't yet tested whether it can import
the TEI or DOCBOOK files produced by TeX4ht. <br>
The most successful path is using <a href="textopc.html#TeX4ht">TeX4ht</a>
to convert to the OpenOffice format (.sxw, which actually is a zip
compressed archive containing the document and vector graphics as XML
and the bitmap graphics as bitmap files) and open this in OpenOffice.
One could stop there, as OpenOffice is publicly available, or go on and
save from OpenOffice as a "MS Word 97/2000/XP"
file.</p>
<p>Most astonishing, one could also use <b>PDF</b>
as intermediate format.
Generating PDF from LaTeX is straightforward if you have a full TeX
implementation installed. If you have the full commercial version of
Adobe Acrobat or pdf exchange editor, you can open the pdf and "save as" e.g. Word doc, or plain
text. Or you can use other commercial software to convert PDF to Word,
just do a www search for "pdf to word" to get several hits. In this
path of conversion however the document strucure and probably some
formatting will be lost. </p>
<p>Finally, you can use OCR software to convert any printed
document to word or plain text. To avoid the inaccuracy introduced by
printing to paper and scanning, you can convert the TeX output to ps or
pdf, convert this to a bitmap (using ghostscript), and feed this bitmap
into the ocr software.</p><hr>
<p>This HTML page is part of the texconv pages.<br>
Copyright © 1998 &#8230; 2021 Wilfried Hennings<br>
You may copy and redistribute it under the following conditions:</p>
<ul>
<li>it must remain intact and the contents unchanged; if you'd
like to have something changed, contact me (texconvfaq "at" gmx.de).
Reformatting (e.g. from HTML to some other presentation
format) is granted as long as the contents are unchanged. </li>
<li>you may NOT ask money for it except a reasonable cost for
media and distribution</li>
</ul>
<p>Please also note the <a href="index.html#disclaimer">disclaimer</a>.</p>

</body></html>