
Unfortunately at present I don't see an easy way to integrate this into PDF generation - as the code you posted is HTML output specific. However, given that MathJax can handle MathML - which is what Boost.Math uses for it's equations - I guess we need to experiment to see if this can be nicely integrated into the Boost.Math docs.
Well, it's a LaTeX formula, which can be converted to PDF by latex / pdflatex to be included in another PDF document, there has to be a way to make that work.
I'm 100% sure it can be made to work, and I'm 100% sure it won't be easy! For example with MathML the docbook XML needs the MathML content in a separate namespace to get all the tags passed through correctly, but MathJax requires that a namespace prefix *not* be used :-( I'm sure some kind of fancy custom docbook XSL processing layer could be used for this, I just don't want to have to write it! John. PS. Update: looks like docbook dbhtml-include processing instructions might work.... will investigate.