I need to convert LaTeX into MediaWiki syntax. The formulas should stay the same, but I need to transform, for example \chapter{something}
into = something =.
Although this can be obtained with a bit of sed, things get a little dirty with the itemize environment, so I was wondering if a better solution can be produced.
Anything that can be useful for this task?
Pandoc should be able to do it:
Yes Pandoc would be the easiest to do that.
--metadata link-citations
creates hyperlinks with your in-text citations and the bibliography. You can delete this part if not needed.bibl.bib
is the file of the bibliography you usedcslstyle.csl
is the style of citation you want. There are lots of choices that can be downloaded from editor.citationstyles.orgtest.tex
is the file you want to convert fromtest.wiki
is the output file you wantall the files should be in the same folder otherwise locations should be specified
I found this: plasTeX. With a bit of hacking probably I can produce a renderer for the mediawiki syntax
pandoc can get your file converted between several different mark-up languages pretty easily, including mediawiki