home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
editors
/
pcwtex.arj
/
PCWTEX.DOC
< prev
next >
Wrap
Text File
|
1990-09-20
|
4KB
|
104 lines
PCWTEX
A simple PCWRITE to TEX filter.
Copyright
J.W. Breen
1990
INTRODUCTION
PCWTEX was written to meet a need: I use a copy of PCWRITE V2.2
at home, as do my wife and children. It is a good, simple, easy
to use word processor, and it prints quite well on our Epsom
LX800.
In my Department (at Monash University) we have the usual clutch
of TEX/LATEX devotees, and both LJ+ and Postscript printers. I
wanted to get access to the nice parts of the TEX/LATEX world
without having to re-educate both my family and myself.
PCWRITE's functionality is fine; what we wanted was to type
Alt-I in a document and be able to print it in typical TEX
style.
Hence PCWTEX. It is bit crude but it does most of the hard work.
I usually do a bit of fiddling by hand afterwards.
HOW TO RUN IT
Have the the PCWTEX.EXE and the three control files in the one
sub-directory, probably the PCWRITE directory. Initiate with
pcwtex (and it will prompt for an input file)
or
pcwtex filespec
The output is produced in filspec.tex.
WHAT IT DOES
PCWTEX is a filter. It reads through a PCWRITE source document
and makes appropriate substitutions for the embedded PCWRITE
control characters. In summary, it:
(a) copies a file "pcwtex.hdr" on the front of the output file;
(b) copies a file "pcwtex.ftr" on the back of the output file;
(samples of the files I use are included.)
(c) scans for the occurrence of the special characters LATEX is
senstive to, and inserts a "\" before them. This includes $, %,
#, etc. It does NOT prepend for \, { or } as I wanted to leave
native LATEX commands untouched.
(d) changes alternating " to either `` or '';
(e) scans for PCWRITE special characters, and makes either
one-at-a-time substitutions, e.g. for hard space and soft hyphen
characters, or paired substitutions, e.g. for bold, italic,
underline, etc.
e.g. text becomes {\it text}
hard·space becomes hard~space
The special character substitution is based on a control file,
"pcwtex.ctl" which you can modify to suit your PCWRITE
conventions. As distributed, it suits V2.2.
SHORTCOMINGS
PCWTEX only operates within the one sub-directory. I do not
search the whole path for files.
Multiple PCWRITE control characters will probably upset it. If
you use these, fix the ".tex" output by hand.
It cant cope with tabs or PCWRITE's centre technique. PCWRITE is
a WYSIWYG, so I can't do much about this.
TECHNICAL
PCWTEX is written in C and compiled under TurboC V2.0.
Jim Breen
jwb@monu6.cc.monash.edu.au
Department of Robotics & Digital Technology
Monash University
PO BOX 197
Caulfield East, Victoria 3145 Australia