Sat Apr 4 17:46:55 2020, original submission:
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
|