[tex4ht] [bug #439] adding \pagestyle{fancy} gives compile error with tex4ht
Nasser M. Abbasi
nma at 12000.org
Mon Oct 7 23:25:02 CEST 2019
URL:
<http://puszcza.gnu.org.ua/bugs/?439>
Summary: adding \pagestyle{fancy} gives compile error with
tex4ht
Project: tex4ht
Submitted by: nma123
Submitted on: Tue 08 Oct 2019 12:22:18 AM 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/511350/why-adding-pagestylefancy-gives-compile-error-with-tex4ht
This MWE
---------------
\documentclass[12pt]{article}%
\usepackage{fancyhdr}
\pagestyle{fancy}
\begin{document}
\section{$\cos \left(x\right)$}
test
\end{document}
-----------------
Gives this error
------------
make4ht foo1.tex
.......
(/usr/local/texlive/2019/texmf-dist/tex/generic/tex4ht/html4-math.4ht)
(/usr/local/texlive/2019/texmf-dist/tex/generic/tex4ht/html5.4ht))
(./foo1.aux)
! Argument of \im:g has an extra }.
<inserted text>
\par
l.6 \section{$\cos \left(x\right)$}
?
-----------------
commenting out \pagestyle{fancy} the error goes away.
Also, which is more interesting, changing \section{$\cos \left(x\right)$} to
\section{$\cos x$} the error goes away! i.e.
----------------
\documentclass[12pt]{article}%
\usepackage{fancyhdr}
\pagestyle{fancy}
\begin{document}
\section{$\cos x$}
test
\end{document}
----------------
No error. So it looks like it is the use of \left and \right is what caused
the problem for text4ht when using fancyhrd
TL 2019 with latest updates as of 2 days ago.
_______________________________________________________
Reply to this item at:
<http://puszcza.gnu.org.ua/bugs/?439>
_______________________________________________
Message sent via/by Puszcza
http://puszcza.gnu.org.ua/
More information about the tex4ht
mailing list