Dear Jason,
I wrote the parser mostly beacuse I've got lot's of latex files to
convert. I have used some of the converters I found on the web -- e.g.
latex2wiki, but they either were insufficient or hanged on the files I
had.
I have just tried pandoc and it is very nice, but it does not support
e.g. newcommands, figures, tables, references and bibliography
sufficiently. I've parsed one of my articles with pandoc and latextwowiki and you
can see the difference:
http://brain.fuw.edu.pl/edu/Test/parserart (transalted with
latextwowiki)
and
http://brain.fuw.edu.pl/edu/Test/pandoc (translated with pandoc).
Cheers,
Asia
Dear Juan,
Sorry for the bug, it should be fixed now.
The problem with the REPLACEMENT might be due to two reasons:
a) you should use Python 3 beacuse of simpler unicode support,
b) there is something in your latex files, that I didn't expect writing
my parser. I such case, please do send me your file (if it is possible)
and I'll try to fix the parser.
Argparse is/was an external module, but is going to be in the Python
Standard Library from Python 3.2 on.
Cheers,
Asia
I would like to announce latextwowiki -- a latex to mediawiki
translator.
It uses tralics to transform latex to xml. Latextwowiki is written in
Python3.1 and uses lxml. Code is under GPL v.3 or later.
The pre-alpha version can be
downloaded from http://escher.fuw.edu.pl/git/latextwowiki.
Features:
* translates \ref{} to sections to proper mediawiki references in [[]]
* various complicated latex equations work correctly
* supports equation, figure, table references via Extension:CrossReference
* latex bibliography support via Extension:Cite.
Every comment, bug and hairy latex file to test will make me happy.
Asia Jędrzejewska-Szmek