TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

TeX4ht converts all \(...\), \[...\], $$...$$ and other math environments to png format. However, it does not convert $...$ to png. It first tries to use html codes for $...$ math, and if it is not possible, then it converts to png.

Can I enforce TeX4ht to convert ALL math to png?

share|improve this question
up vote 6 down vote accepted

According to Advanced Usage of TeX4ht:

You can convert all inline math to picture format by putting the following commands in a configuration file:


\Configure{PicMath}{}{}{}{class=’’math’’; align=’’absmiddle’’}

Note that, unless you want to make extensive use of TeX fields, there’s no way to do this selectively, so you may find yourself faced with a large increase in the number of images the program generates.

share|improve this answer
Thanks a lot. This works! – Chang Mar 2 '12 at 16:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.