summaryrefslogtreecommitdiff
path: root/help/wp-conv/texperf.html
blob: de8212d671530b837b9bc3e8fd1f69f1128ff784 (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>TeXPerfect</title>
</head>
 
<body>
 
<p>Up to the <a href="http://tug.org">TUG homepage (external link)</a><br>
Up to <a href="pctotex.html">Converters from PC Textprocessors to LaTeX -
Overview</a></p>
 
<h1>TeXPerfect</h1>
 
<p>last update: July 28, 1998</p>
 
<p>citation begin&gt;&gt;</p>
 
<p>From: John Forkosh &lt;forkosh "at" panix.com&gt; <br>
Subject: New WordPerfect -&gt; LaTeX Translater <br>
Date: Thu, 22 Aug 1996 09:16:36 -0400 (EDT) <br>
I recently uploaded my WordPerfect -&gt; LaTeX translater, called TeXPerfect,
to CTAN. It's available in the support directory under texperf
(.../support/texperf). <br>
(The ... stands for a host specific base directory, which often is either
"/pub/tex" or "/tex-archive") <br>
Full C source is provided, as are executables for both DOS and Linux. The
00README file in the directory provides more details. John (forkosh "at" panix.com)
<br>
&lt;&lt;citation end</p>
 
<p>following extracted from the 00README file: </p>
 
<p>citation begin&gt;&gt;</p>
 
<p>Conversion functionality </p>
 
<p>Some of the LaTeX conversions performed by TeXPerfect are: <br>
Suppose your input contains a greek alpha from the WordPerfect character set 8.
The output will contain $\alpha$ instead. Most of the other special character
sets provided by WordPerfect are similarly converted. (This conversion is
table-driven by the data in wpchrset.h, and can be easily augmented or
modified.) <br>
Superscripts, subscripts, bold, italics, etc, are all properly interpreted and
handled. <br>
"Hard" returns in WordPerfect <strong>should</strong> generate an
extra blank line, so that LaTeX will see them as paragraphs. That functionality
is mostly programmed, but a last-minute difficulty prevented me from completing
it. Also, no attempt is made to generate section/subsection/etc commands. <br>
If your running text contains an expression like f(x), TeXPerfect will
recognize it and surround it with $'s. A variety of other ad hoc
"rules" are hand-coded into the program to decide when to enter/exit
math mode. Needless to say, the decision isn't always right. You'll need to
correct tp's mistakes in Step 2 above. <br>
Equations written with WordPerfect's equation editor will be reproduced
"verbatim" by TeXPerfect, surrounded by \[ and \]. The only
correction applied is that 1 over 2 becomes 1 \over 2, and similarly for
various other keywords. But no serious attempt to interpret and translate your
equation is made. Matrices, etc, will require considerable hand-tweaking on
your part. But at least you'll have what you originally wrote right in front of
your eyes. <br>
A little LaTeX preamble, etc, is provided, primarily for "cosmetic"
purposes. WordPerfect's margin settings, etc, are <strong>not</strong>
interpreted to construct this preamble. You'll have to modify that information
yourself. </p>
 
<p>Warnings </p>
 
<p>TeXPerfect was written to interpret files formatted by WordPerfect 5.1 for
DOS. When run against 5.1 files, TeXPerfect is pretty robust. But, for this
release, I commented out the lines that check the version number. If you're
using WP/Win, it can prepare output in 5.1 format. I'd recommend you do that
before using TeXPerfect. <br>
&lt;&lt;citation end</p>
 
<hr>
 
<p>This HTML page is part of the texconv pages.<br>
Copyright © 1998, 1999, 2000, 2007, 2008 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>