bugtex4ht - Bugs: bug #589, tex4ht no longer shows table of...

 
 
Show feedback again

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

bug #589: tex4ht no longer shows table of content when using split level

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Tue Dec 27 02:37:27 2022  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue Dec 27 20:17:29 2022, comment #1:

I've posted my comment on TeX.sx, and updated TeX4ht sources, so it should work soon.

Michal Hoftich <michal_h21>
Project Member
Tue Dec 27 02:37:27 2022, original submission:

reference and screen shots at

https://tex.stackexchange.com/questions/669770/problem-2-after-updating-to-latest-tl-2022-tex4ht-no-longer-shows-table-of-con

I found that a problem in math generated after updated to latest TL. All math in chapter or section titles is messed up now. This used to show up OK before I updated to TL.

The math which is not in section or chapter title still shows OK. But why?

Here is a MWE

--------------------
\documentclass[12pt]{book}%
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{hyperref}

\begin{document}

\frontmatter
\title{my book title}
\author{me}
\date{\today}
\maketitle

\ifdefined\HCode
\Configure{tableofcontents*}{chapter}
\TocAt{chapter,section}
\TocAt{section,subsection}
\TocAt{subsection,subsubsection}
\TocAt{subsubsection,paragraph}
\fi

\tableofcontents
\mainmatter

\chapter{First order ode $F\left( x,y,y^{\prime}\right) =0$}%

The equation is $F\left( x,y,y^{\prime}\right) =0$

\section{First order linear in derivative $F\left( x,y,y^{\prime}\right)=0$}%
These are first order ode's which are linear in $y^{\prime}$.
\subsection{Quadrature ode $y^{\prime}=f\left( x\right) $}
data
\subsubsection{Introduction}
data
\end{document}
-----------------------------

Compiled using

make4ht -ulm default -a debug index.tex 'mathjax,htm'

This is the HTML (see screen shot)

Notice all those \o stuff. Before updated TL this all worked OK and the math showed up OK in section and chapter titles. So something changed.

This is the raw HTML

-----------------
<!DOCTYPE html>
<html lang='en-US' xml:lang='en-US'>
<head><title>my book 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 href='index.css' rel='stylesheet' type='text/css' />
<meta content='index.tex' name='src' />
<script>window.MathJax = { tex: { tags: "ams", }, }; </script>
<script async='async' id='MathJax-script' src='https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js' type='text/javascript'></script>
</head><body>
<!-- l. 10 --><p class='indent'>
</p>
<div class='maketitle'>
<h2 class='titleHead'>my book title</h2>
<div class='author'><span class='ec-lmr-12x-x-120'>me</span></div><br />
<div class='date'><span class='ec-lmr-12x-x-120'>December 26, 2022</span></div>
</div>
<h2 class='likechapterHead' id='contents'><a id='x1-1000'></a>Contents</h2>
<div class='tableofcontents'>
<span class='chapterToc'>1 <a href='#first-order-ode-fleft-xyy-right-' id='QQ2-1-2'>First order ode \(F\o:left: ( x,y,y^{\prime }\o:right: ) =0\)</a></span>
</div>
<!-- l. 27 --><p class='indent'>
</p>
<h2 class='chapterHead' id='first-order-ode-fleft-xyy-right-'><span class='titlemark'>Chapter 1</span><br /><a id='x1-20001'></a>First order ode \(F\left ( x,y,y^{\prime }\right ) =0\)</h2>
<div class='chapterTOCS'>
<span class='sectionToc'>1.1 <a href='#first-order-linear-in-derivative-fleft-xyy-right-' id='QQ2-1-3'>First order linear in derivative \(F\o:left: ( x,y,y^{\prime }\o:right: )=0\)</a></span>
</div>
<!-- l. 29 --><p class='indent'> The equation is \(F\left ( x,y,y^{\prime }\right ) =0\)
</p>
<h3 class='sectionHead' id='first-order-linear-in-derivative-fleft-xyy-right-'><span class='titlemark'>1.1 </span> <a id='x1-30001.1'></a>First order linear in derivative \(F\left ( x,y,y^{\prime }\right )=0\)</h3>
<div class='sectionTOCS'>
<span class='subsectionToc'>1.1.1 <a href='#quadrature-ode-y-fleft-xright-' id='QQ2-1-4'>Quadrature ode \(y^{\prime }=f\o:left: ( x\o:right: ) \)</a></span>
</div>
<!-- l. 32 --><p class='indent'> These are first order ode’s which are linear in \(y^{\prime }\).
</p>
<h4 class='subsectionHead' id='quadrature-ode-y-fleft-xright-'><span class='titlemark'>1.1.1 </span> <a id='x1-40001.1.1'></a>Quadrature ode \(y^{\prime }=f\left ( x\right ) \)</h4>
<div class='subsectionTOCS'>
<span class='subsubsectionToc'><a href='#introduction' id='QQ2-1-5'>Introduction</a></span>
</div>
<!-- l. 34 --><p class='indent'> data
</p>
<h5 class='subsubsectionHead' id='introduction'><a id='x1-5000'></a>Introduction</h5>
<div class='subsubsectionTOCS'>
</div>
<!-- l. 36 --><p class='indent'> data
</p>

</body>
</html>
-----------------------------------

Using

>which tex4ht

/usr/local/texlive/2022/bin/x86_64-linux/tex4ht

>make4ht --version

make4ht version v0.3l

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
    Tue Jan 10 15:07:07 2023michal_h21Open/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray