[OS X TeX] wp2latex on os x
jan at linguist.umass.edu
Fri Feb 25 13:07:27 EST 2005
On Feb 25, 2005, at 10:54 AM, Noah Diewald wrote:
> Has anyone had any luck compiling wp2latex on OS X? I saw a
> discussion of failures at one point but never any reports of success.
thanks to the help of jara fojitik, the author of wp2latex, it compiles
quite easily on os x now.
there are some questions re: further improvements at the end of the
email - maybe somebody knows an answer.
ok, here's the mini install how-to:
download wp2latex at
http://www.penguin.cz/~fojtik/wp2latex/wp2latex.htm (i used version
3.18 linked from that page)
unzip the file and cd to the folder
fix the file sources.cc/atoms/include/common.h according to faq #6 (in
the file wp2latex.faq):
The easiest way for you is to edit file:
and add following line into the file:
and recompile your project.
< #define __Ellipsis_Expand_Short
add || defined(__APPLE__) in line 7 of the file
< #if defined(_MSC_VER) || defined(__CYGWIN32__)
> #if defined(_MSC_VER) || defined(__CYGWIN32__) || defined(__APPLE__)
compile the sources
edit the install path for your latex files in sources.cc/makefile line
on my computer (standard gwtex :)) that amounts to changing the
following, but paths might be different for you:
< @echo "Attempting to install wp2latex styles into
< mkdir -p /usr/share/texmf/tex/latex/wp2latex
< cp ../styles.tex/*.* /usr/share/texmf/tex/latex/wp2latex/
> @echo "Attempting to install wp2latex styles into
> mkdir -p /usr/local/teTeX/share/texmf.local/tex/latex/wp2latex
> cp ../styles.tex/*.*
> sudo make install
see whether it works
> cd test
> wp2latex equation.wp
> latex equation.tex
> dvipdf equation.dvi
> open equation.pdf
hopefully everything worked. nice, doesn't it?
if you want to help out, i'll attach part of the message i got from the
>> make install works except for the tex path, which was to be expected
>> since my tex files are in a non-standard place
> There might be a small bash script that detects latex location. I
> don't know how to create such a script.
>> what you say about the install script makes sense. i'm not much of a
>> programmer myself, and i have no c++ experience, so i'm afraid i can't
>> help with any code checking, but i'd be happy to test installation
>> scripts etc. whenever it is helpful.
> You could try to type:
> wp2latex -use-all chars6.wp chars6.tex
> and try to find correspondences to missing characters. May be that
> you know some additional LaTeX styles with some kind of 'stars' and so
> on. Also Hebrew charset is not converted yet.
> I would like also to know how to express some characters in postscript
> like \'a. May be that psfrag.sty could be used instead. Do you know
> about some easy PS manual?
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX