[tex4ht] [bug #215] package titlesec causes tex4ht to give error when using $[]$ in section title

Nasser M. Abbasi puszcza-hackers at gnu.org.ua
Sat Jun 21 18:22:13 CEST 2014


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

                 Summary: package titlesec causes tex4ht to give error when
using $[]$ in section title
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Sat 21 Jun 2014 07:22:13 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:

This MWE fails when using $[B]$ in section title when the package titlesec is
loaded

\documentclass[]{article}%
\usepackage{titlesec}
\begin{document}
\section{this is my $[B]$ section}
test
\end{document}

Error is

htlatex foo.tex

(/usr/local/texlive/2014/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2014/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(./foo.aux)
! Extra }, or forgotten $.
<recently read> }

l.4 \section{this is my $[B]$ section}                                        
 
? 

When commenting the titlesec package, it compiles OK. Also, If I load the
package, but change the title to $(B)$ instead of $[B]$ then it compiles OK as
well. Only when using [] it is not happy.

The above MWE compiles OK with pdflatex and latex.

 Version 3.14159265-2.6-1.40.15 (TeX Live 2014)

reference: 

http://tex.stackexchange.com/questions/185866/why-package-titlesec-causes-tex4ht-to-give-error-when-using-in-section-titl/185892#185892





    _______________________________________________________

Reply to this item at:

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

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




More information about the tex4ht mailing list