Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

LaTeX formatting for blogs?

  1. Jul 12, 2006 #1
    Does anyone know of a blog or plug-in for a blog that can do this? Linking a pdf/ps/dvi attachment for each post in my blog that I make that has even the slightest bit of math in it seems silly. At the same time, I want the math to be legible.
  2. jcsd
  3. Jul 13, 2006 #2
  4. Jul 21, 2006 #3


    User Avatar
    Science Advisor

    I actually set up a tool on my site that creates Latex images from Latex code, like on these forums, http://www.bloo.us/academic/latex/ . The translator, the tool that actually builds the image from the Latex is built with ASP.NET which just wraps around dvipng.exe. Basically the ASP.NET process creates a latex source file from the user's code and passes it to the dvipng.exe which creates the png image.
    I'm building a Blog that will support Latex. Basically i did a webservice with functions like latexToGif(<latex code>), latexToHtml(<latex code>), latexToPng(<latex code>), all of which return the path to the image created. Then it's easy. When you process a blog post you look for tags such as {tex}{/tex} like in these forums, retrieve the latex code, pass it to the webservice, which compiles the image and returns the path, and substitute the whole {tex}...{/tex} tag with an html image tag, <img src="image returned from web service">.
    I don't recommend dynamically generating the latex images as the users requests them (such as with some cgi alternatives), it's much more efficiently to do only once.
    Last edited: Jul 21, 2006
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: LaTeX formatting for blogs?
  1. Latex funky formatting (Replies: 4)