On Fri, 6 Feb 2004, Angus Leeming wrote:
> Christian Ridderstr�m wrote:
>
> > Hi
> >
> > I thought it might be nice to be able to insert formulas in the wiki
> > pages, so I've hacked together something here:
> >
> > http://www.lyx.org/~chr/wiki/pmwiki.php?pagename=Math.Math
> >
> > which does something similar to what latex-preview, i.e. this markup
> >
> > [[$ x = y + z $]]
> >
> > causes a .tex-file to be created that will contain
> >
> > $ x = y + z $
> >
> > and latex then compiles this to produce a .dvi-file that dvipng
> > finally converts into a .png-file. (The formulas and images are
> > cached for performance reasons).
>
> Anything non-trivial won't compile. You'll need all of the stuff that
> comes before \begin{document}.
I think trivial things will go a long way... see the examples for
mimetex that JMarc showed me:
http://www.forkosh.com/mimetexmanual.html#examples
These are the kind of expressions I'm thinking --- not general latex
expressions.
> > Can I filter the latex-code somehow to make it safe enough, i.e. so
> > safe that we feel it can be left running on wiki.lyx.org?
> That is all orthogonal to the security implications, which presumably
> are no larger than the existing ability of any user to
> 'rm *'.
This is for the wiki pages, so the users are *anyone*...
/Christian
--
Christian Ridderstr�m http://www.md.kth.se/~chr