I have asked a question here old question, and I exactly follow the answer, now accent problem has been solved, but there are still some bugs. Here is my html, I have converted it to pictures. enter image description here enter image description here enter image description here enter image description here I think there are some bugs in default CSS setting of tex4ht or make4ht. Hope someone can fix them. I use texlive 2019.

1 Answer 1


OK, this seems like a lot of issues :) I've updated TeX4ht sources with most of the fixes presented here, so they should become unnecessary soon. Some issues were fixed also in make4ht, so you will need the development version.

Issue 1 - huge text.

It is caused by the extarticle class, because the document selects font size of 20pt as the base font size. TeX4ht can detect the font sizes and produce CSS instructions to use these sizes in the document. In this case we obviously don't want that.

To fix that, use the following version of extarticle.4ht:


The size of \verb command will be fixed in the config file

Issue 2 - size of integrals

This was bug in TeX4ht, it generated wrong MathML structure.

Issue 3 - non-italic math text

Bug in make4ht, it should be fixed by the development version.

Issue 4 - missing \boldsymbol support

It should be supported now.

Note that some issues can be also caused by different rendering of MathML in contrast to TeX, it isn't always the same. I've noticed that for example the multi-line code in section 7 is broken to lines by Firefox, but it remains on one line when rendered by MathJax.

Here is the updated config file:

    margin:40px auto;  
    font-size:1em; 0.88em;  
    padding:0 10px;}}  
\Css{@media (min-width: 29.63em){  
  :root {  
    font-size: 3vw;  

\Css{@media (min-width: 40.74em){  
  :root {  
    font-size: 1.375em;  

\Css{body {  
font-family: STIXGeneral, "Linux Libertine O", Gentium, Georgia,  
"Times New Roman",  "Iowan Old Style",  
 Palatino Linotype, Palatino, serif;  


\def\myop#1{\PauseMathClass\HCode{<mo accent="true">}#1\HCode{</mo>}\EndPauseMathClass}

% handle integrals

\renewcommand\boldsymbol[1]{\HCode{<mstyle class="boldsymbol" mathvariant="bold-italic">}#1\HCode{</mstyle>}}

   \Configure{mathop}{*}{<\a:mathml mo #1\Hnewline>}{</\a:mathml mo>}%
    {\Configure{mathop}{*}{<\a:mathml mo>}{</\a:mathml mo>}{}}}

enter image description here

enter image description here

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .