Tue Sep 14 17:28:53 2021, original submission:
Reference with images
https://tex.stackexchange.com/questions/615365/tex4ht-generates-faulty-looking-link-in-table-of-content-when-using-exp-in-su
his is tex4ht issue only. This MWE
===============================
\documentclass[12pt,notitlepage]{book}
\usepackage{amsmath}
\begin{document}
\chapter{Listing of integrals}
\section{Integrals 1 to 100}
\subsection{$\exp \sin(x)$}
test
\end{document}
=====================
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'>
<head><title></title>
<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>
</head><body>
<!-- l. 4 --><p class='indent'>
</p>
<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>
</div>
</body>
</html>
====================
Notice
\(\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
Thanks
--Nasser
|