[tex4ht] [bug #453] tex4ht has strange characters at end of section titles when using cprotect

Nasser M. Abbasi nma at 12000.org
Sat Apr 4 19:50:02 CEST 2020


URL:
  <http://puszcza.gnu.org.ua/bugs/?453>

                 Summary: tex4ht has strange characters at end of section
titles when using cprotect
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Sat 04 Apr 2020 08:46:55 PM EEST
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Minor
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

reference:

https://tex.stackexchange.com/questions/536808/tex4ht-has-strange-characters-at-end-of-section-titles-when-using-cprotect

I use cprotect package so I can use math in section titles. It works OK in
pdf, but tex4ht generates strange characters at end of section title.

If I do not use cprotect, then it will not compile in tex4ht.

Is there a way around this? MWE

-----------------
\documentclass[12pt,notitlepage]{book}
\usepackage{cprotect}
\usepackage{amsmath}
\begin{document}
\title{my book}
\chapter{Listing of integrals}
\cprotect\section{\quad $\int e^x \left(1-x^3+x^4-x^5+x^6\right) \, dx$}

stuff

\cprotect\section{\quad $\int \frac{e^{\frac{x}{2+x^2}} \left(2-x^2\right)}{2
x+x^3} \, dx$}
text
\end{document}
-------------------------

Compiled using

make4ht -ulm default t.tex "htm,3,mathjax,notoc*,p-width"

gives ^^E^^L  at end of title.

If I do not use \cprotect then it gives compile error.

Using TL 2019.

Thanks
--Nasser









    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?453>

_______________________________________________
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/


More information about the tex4ht mailing list.