renard / o-blog

Standalone orgmode blog exporter. DEPECATED, NOT MAINTAINED
http://renard.github.com/o-blog-v2
260 stars 58 forks source link

latex export with o-blog #49

Closed stephenosullivan closed 12 years ago

stephenosullivan commented 12 years ago

Hi

I've recently tried using your o-blog software and I was wondering whether it was possible to export latex fragments to html using dvipng instead of the default MathJax mechanism. I've tried putting "#+OPTIONS: LaTeX:dvipng" into the source file of my blog, and I've also tried putting (setq org-export-with-LaTeX-fragments (quote dvipng)) inside the (ob-export-string-to-html) function in o-blog.el but it does not produce any images. I'm a novice at org-mode so these attempts may have been fairly naive.

Also, I hope that this is the right forum to ask questions of this kind, and you have my apologies if its not the case.

Thanks

Stephen

renard commented 12 years ago

Hi,

O-Blog is designed to export as html only. I am not sure the org-export-as-html function handles other formats.

Cheers.

stephenosullivan commented 12 years ago

Hi

This page http://orgmode.org/manual/Math-formatting-in-HTML-export.html#Math-formatting-in-HTML-export in org-mode's manual describes the LaTeX:dvipng option. Exporting to html results in the creation of png files which would display each of the latex fragments. I think this would allow the latex fragments to be displayed correctly on a webpage, but I could be wrong. Obviously the functionality may not exist in o-blog to do this presently but I'd like to know how difficult it would be to implement this feature.

Thanks