LaTeX forum ⇒ Conversion ToolsConversion of LaTeX to PNG

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
pfeldman
Posts: 1
Joined: Sun Feb 10, 2013 8:51 pm

Conversion of LaTeX to PNG

Postby pfeldman » Sun Feb 10, 2013 8:56 pm

I would like to convert LaTeX formulas into PNG images (for use in HTML documents). Can this be done using MiKTeX? If not, is there a recommended tool for doing this?

Phillip M. Feldman

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Sun Feb 10, 2013 9:08 pm

In principal this is possible by the standalone class. With the convert option (and some others) the output will directly be converted to PNG (with transparency). For the requirements (e.g. ImageMagick) and more details please refer to the class manual.
  1. \documentclass[
  2. 11pt,
  3. border=1pt,
  4. convert
  5. ]{standalone}
  6.  
  7. \begin{document}
  8. $E=mc^2$
  9. \end{document}

The output is attached.

But perhaps something like MathJax is more suitable for HTML.
Attachments
rtmp.png
rtmp.png (1.11 KiB) Viewed 5796 times
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
tommytex
Posts: 39
Joined: Wed Jan 23, 2013 10:04 pm

Postby tommytex » Mon Feb 11, 2013 8:10 pm

Hi,

why don't you use this online-tool?

http://frog.isima.fr/bruno/share/tex2png/

the problem is that your latex code will be deleted so i would recommend to put all formulas into one text document so you can have acces in case the tool fails (which never has happened since i started using it :P)

tommy

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Conversion Tools”

Who is online

Users browsing this forum: No registered users and 2 guests