On 06/17/2011 03:07 AM, John Perry wrote: > Hi > > I learned today that LyxHTML exports files that *almost* make MathJax happy. > There are a few issues: newcommand's (i.e. math macros) don't seem to get > exported by LyxHTML, and a header for MathJax would have to be inserted. > > Question: If I wanted to implement this in Lyx, would it have to be done in > the source code proper? or is there a way to attach converters without > modifying & recompiling the source? > If you could tell me precisely what needs to be done, it should be fairly easy to add to the source.
If I remember correctly, MathJax expects LaTeX, yes? If so, then it would be pretty easy to export the math macros, I think, when we are in "export math as LaTeX" mode. I'd need to know exactly what they should look like. As far as the MathJax header goes, this could certainly be added automatically, though we'd probably need a document setting for it, which would mean it couldn't go into 2.0.x. But in the meantime that line could easily be added manually, or you could write a simple "copier" to do it. Richard
