[tex4ht] vertical alignment of inline math

Nasser M. Abbasi nma at 12000.org
Sun Oct 20 22:21:16 CEST 2013

On 10/20/2013 12:48 PM, Giovanni Resta wrote:
> Hi all,
> I'm new to this list and to htlatex.
> I'm running it under Debian, trying to obtain html from some very simple
> and short latex files I create with a program.
> For various reasons, I prefer to use pictures also for inlined formulas,
> and also \Large to improve readability,
> but I get bad alignment with surrounding text.
> For example, with
> documentclass[12pt]{article}
> \begin{document}
> \Large One two one \(4=2^2\) one two one.
> \end{document}
> I obtain (I'm showing just a fragment of a screenshot):
> http://www.iread.it/htlatex.png
> Can anybody suggest me any way (html/css/htlatex/...) to better align
> inline formulas ? Even manual ways are acceptable (I can write a program
> to apply corrections systematically).
> Thank you very much,
> Giovanni

You can add the following to your .cfg file and this should fix it


\Configure{PicMath}{}{}{}{ class="math" align="absmiddle"}


More information about the tex4ht mailing list