bugtex4ht - Bugs: bug #525, tex4ht generates faulty looking...

Show feedback again

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

bug #525: tex4ht generates faulty looking link in table of content when using `\exp` in subsection header

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Tue Sep 14 17:28:53 2021  
Category: NonePriority: 5 - Normal
Severity: 7 - ImportantStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue Sep 14 18:00:19 2021, comment #1:

Hi Nasser,

I've posted temporary fix to TeX.sx, and updated TeX4ht sources, so this issue should be fixed soon.


Michal Hoftich <michal_h21>
Project Member
Tue Sep 14 17:28:53 2021, original submission:

Reference with images


his is tex4ht issue only. This MWE

\chapter{Listing of integrals}
\section{Integrals 1 to 100}
\subsection{$\exp \sin(x)$}


When compiled using the command

make4ht -ulm default -a debug report.tex "mathjax,htm,fn-in,4,notoc*"

gives this HTML

<!DOCTYPE html>
<html lang='en-US' xml:lang='en-US'>
<meta charset='utf-8' />
<meta content='TeX4ht (https://tug.org/tex4ht/)' name='generator' />
<meta content='width=device-width,initial-scale=1' name='viewport' />
<link rel='stylesheet' type='text/css' href='report.css' />
<meta content='report.tex' name='src' />
<script>window.MathJax = { tex: { tags: "ams", }, }; </script>
<script async='async' src='https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js' type='text/javascript' id='MathJax-script'></script>

<!-- l. 4 --><p class='indent'>

<div class='tableofcontents'>
<span class='chapterToc'>1 <a href='rech1.htm#x2-10001' id='QQ2-2-1'>Listing of integrals</a></span>
<br /> <span class='sectionToc'>1.1 <a href='rese1.htm#x3-20001.1' id='QQ2-3-2'>Integrals 1 to 100</a></span>
<br /> <span class='subsectionToc'>1.1.1 <a href='resu1.htm#x4-30001.1.1' id='QQ2-4-3'>\(\qopname \relax o{exp}\sin (x)\)</a></span>


\(\qopname \relax o{exp}\sin (x)\)

Where did this come from?

his only happens when using \exp command I found, and when using mathjax. When compiling using

make4ht -ulm default -a debug report.tex "htm,fn-in,4,notoc*"

The output is correct


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 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 Sep 27 12:33:11 2021michal_h21Open/ClosedOpen=>Closed
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray