Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
add comment

1 Answer 1

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! –  FEQ Mar 2 '12 at 16:54
add comment

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.