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

Nasser M. Abbasi puszcza-hackers at gnu.org.ua
Tue Sep 14 19:28:53 CEST 2021


                 Summary: tex4ht generates faulty looking link in table of
content when using `\exp` in subsection header
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Tue Sep 14 20:28:53 2021
                Category: None
                Priority: 5 - Normal
                Severity: 7 - Important
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



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'
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



Reply to this item at:


  Message sent via/by Puszcza

More information about the tex4ht mailing list.