bugtex4ht - Bugs: bug #468, texh4t produces bad table of...

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #468: texh4t produces bad table of content when some math is used with mathjax mode

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Sun May 31 00:11:31 2020  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon Jun 29 22:21:26 2020, comment #2:

added to tl (some time ago), think there is nothing more to do here, closing ...

Karl Berry <karl>
Project Administrator
Sun May 31 19:36:18 2020, comment #1:

Hi Nasser.

I've posted my answer on TeX.sx and updated the sources. The issue is missing \fixmathjaxtoc for the \sum command.


Michal Hoftich <michal_h21>
Project Member
Sun May 31 00:11:31 2020, original submission:



I noticed when I have some math in section names, sometimes the table of content is corrupted, even though the same math displayed OK in the body of the section.

Here is a MWE
\section{bad section $\sum\limits_{i=1}^n \frac{1}{(x (n-i)+i)^2}$}
This is my section

$\sum\limits_{i=1}^n \frac{1}{(x (n-i)+i)^2}$

\section{good section $\sin(x)$}
This is my section


Compiled using

make4ht -ulm default foo3.tex "htm,mathjax"

gives screen shot shown in link above.

When compiled not using mathjax mode, the table of content is correct.

The \DOTSB seems to be generated by tex4ht and not mathjax, since the raw HTML shows this

<span class="sectionToc" >1 <a
href="#x1-20001" id="QQ2-1-2">bad section \(\DOTSB \sum@ \slimits@ \limits _{i=1}^n \frac{1}{(x (n-i)+i)^2}\)</a></span>
<br />

Why does tex4ht generate this extra \(\DOTSB and how to remove it?

Using TL 2020.

(base) >make4ht --version
make4ht version v0.3e

Nasser M. Abbasi <nma123>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by karl (Posted a comment)
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by nma123 (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    1 latest change follows.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Jun 29 22:21:26 2020karlOpen/ClosedOpen=>Closed
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray