[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
URL:
<http://puszcza.gnu.org.ua/bugs/?525>
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
_______________________________________________________
Details:
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
_______________________________________________________
Reply to this item at:
<http://puszcza.gnu.org.ua/bugs/?525>
_______________________________________________
Message sent via/by Puszcza
http://puszcza.gnu.org.ua/
More information about the tex4ht
mailing list.