[pmwiki-users] LaTeX rendering
john.rankin at affinity.co.nz
Wed Sep 28 17:14:06 CDT 2005
On Thursday, 29 September 2005 2:12 AM, Nils Knappmeier <nk at knappi.org> wrote:
>in a new project of mine, it might be good to replace the whole PmWiki
>rendering engine by something else. I was thinking about rendering LaTeX
>documents in the wiki directly, so that it is not wiki markup but LaTeX
>markup that is to be edited by the user.
>The problem is, that the LaTeX language cannot be parsed using regular
>expressions, so it is also not possible to convert every possible LaTeX
>document (e.g. nested tables) into wiki markup. It also means that the
>PmWiki rendering engine cannot be used to parse LaTex. A friend of mine
>has written a parser, I would like to know, if it is possible to use a
>completely different engine to render the HTML from the wiki source or
>how difficult it would be to include this (efficiently) so that
>enhancements are possible in this direction.
Well, we went the other way -- turn wiki markup into LaTeX.
To take advantage of the pmwiki engine, we transform wiki pages
into xml that is designed to be translated into LaTeX, then use
xslt to turn the xml into LaTeX. Then for equations, we use
LaTeX markup embedded int eh wiki pages.
So a bit different from your approach...
More information about the pmwiki-users