I'm trying to get latexmath or asciimath working with blogpost. I've
successfully got my blogpost producing latexmath or asciimath when run
with asciidoc on the command line with the added "-a latexmath" or "-a
asciimath".
Unfortunately, this doesn't work with blogpost -- I'm guessing because
blogpost uses --no-header-footer which nerfs the scripts that blogpost
uses.
I'm thinking of a couple of possibilities to get around this. First, I
could use
http://www.embeddedcomponents.com/blogs/wordpress/wpmathpub/
This way the maths rendering would happen wordpress side, and I just
need to get the syntax to passthrough from asciidoc. The problem here,
of course, is that it won't work in for base asciidoc -- in the long
term I'd like to people able to use the multiple backend capabilities of
asciidoc to generate PDF and EPUB versions of my blog posts.
Another possibility would be to write a plugin which uses the same
javascript that asciidoc does; I could get wordpress to inject
AsciiMath.js into the header of every article. Then if I generate to
HTML or PDF latexmath tags should work the same. The only disadvantage
with this is that all articles will then be scanned for markup wordpress
side, whether or not they use mathematics, and this is bound to cause
some problems; I guess I could make the plugin clever in some way, to
turn on or off, but I haven't worked out how yet.
Before I go down this route, has anyone attempted anything related? Have
I missed any other possibilities?
Phil
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.