Hacking Dotclear 2 for writing XHTML+MathML+SVG
- serve the page as
This is simply done by editing the value of parameter
$content_typein the function
serveDocumentof the file
- write well-formed XML document.
Apparently, dotclear is good enough to do that. However, its editor does not seem to have any option for producing MathML or SVG. Personally, I don't use the wiki syntax and prefer to write the XHTML page myself with the tools I'm used to. As a consequence, this is not really a problem for me.
It is also a good idea to write a valid XML document. By default, dotclear uses the doctype
XHTML 1.0 Strictso I had to modify the files
Once this simple changes are made, you can insert MathML formulas such that this expression of a general Quantum Fourier Transform over a finite group:
or SVG images such that this quantum circuit used in the famous Shor's algorithm:
--update 30/01/2011: you can find my patch for Dotclear 2.2