summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/wp-conv/rtf2latex.html
blob: d1fae3204bf557edbc1fdabd8bfbae2eb01d0d24 (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
<HTML>
 
<HEAD>
<TITLE>rtf2TeX and rtf2LaTeX converters</TITLE>
</HEAD>
 
<BODY>
 
<P> Up to the <A HREF="http://tug.org">TUG homepage</A><BR>
Up to <A HREF="pctotex.html">Converters from PC Textprocessors to LaTeX -
Overview</A></P>
 
<H1>rtf2TeX and rtf2LaTeX</H1>
 
<P>last update: July 28, 1998</P>
 
<P>(written in C). <BR>
The Word document must first be saved to disk in RTF format. I'd like to hear
of experiences with these. <BR>
(They only handle RTF versions up to WinWord 2, not yet WinWord 6; there are
great differences between these rtf versions and I definitely have problems
with WinWord6-rtf with any rtf-converter.) </P>
 
<P>First, Paul Dubois &lt;dubois "at" primate.wisc.edu&gt; wrote an RTF reader and
converter to plain text or troff. The version is dated April 1991. </P>
 
<P>a) Based on this reader, Robert Lupton &lt;rhl "at" astro.princeton.edu&gt; wrote
the <STRONG>rtf2TeX</STRONG> converter. Last revision date: May 1992 </P>
 
<P>He comments on this as follows (README-file): <BR>
citation begin&gt;&gt; <BR>
This is a first attempt at an RTF to TeX converter. The parts that handle fonts
and such like seem to work pretty well, although they could be improved, but
the table handling is a problem. I had a good deal of trouble trying to figure
out what particular rtf control codes were supposed to do; this makes it hard
to convert them into TeX. I have tried to produce good TeX, but this is not
easy due to the sloppy way that many RTF writers generate redundant font and
other changes. <BR>
Many things are not handled at all, more due to my lacking motivation than to
their intrinsic difficulty. For example, I don't support double columns, but it
would be easy enough to do (I'd generate a control sequence to do it, and add
the TeX code required to the TeX_defs file. I even have the TeX somewhere...).
<BR>
&lt;&lt;citation end</P>
 
<P>So far the beginning of the README file. Later he commented: <BR>
citation begin&gt;&gt; <BR>
Most (all?) RTF is hopelessly unstructured <BR>
(the equivalent of \bf \it Hello \rm World \bf He \it \rm said. ) <BR>
and the code that I wrote tries valiantly to convert this to something
sensible, in this case <BR>
{\it Hello\/} World {\bf He} said. <BR>
It is this attempt to make the output TeX usable that makes the code
complicated... <BR>
I did not try to convert equations or tables as I could find no adaquate
description of either; I don't think that it would be very hard. <BR>
&lt;&lt;citation end</P>
 
<P>My comment is: Tables yes, but formulas will be difficult. <BR>
Can be found on all CTAN sites, dir .../support/rtf2tex </P>
 
<P>b) Based on these two, Erwin Wechtl wrote the rtf2LaTeX converter. <BR>
Last revision date: Aug. 1993 </P>
 
<P>He comments on this as follows (README-file): <BR>
citation begin&gt;&gt; <BR>
<STRONG>rtf2LaTeX</STRONG> is a filter built on Paul DuBois' RTF reader that
converts RTF (Microsoft's Rich Text Format) into LaTeX. rtf2LaTeX expends a
good deal of effort in an attempt to make the resulting LaTeX maintainable and
modifiable. <BR>
&lt;&lt;citation end</P>
 
<P>At the moment converts text elements, but no formulas and no graphics. <BR>
C-source and an executable for MSDOS can be found on all CTAN sites, dir
.../support/rtf2latex <BR>
(The ... stands for a host specific base directory, which often is either
&quot;/pub/tex&quot; or &quot;/tex-archive&quot;) </P>
 
<HR>
 
<P>This HTML page is part of the texconv pages.<BR>
Copyright &copy; 1998, 1999, 2000 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 (W.Hennings "at" fz-juelich.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>