[tex4ht] [bug #599] Newline in caption break compilation

Matteo Gamboz puszcza-hackers at gnu.org.ua
Tue May 2 12:09:14 CEST 2023


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

                 Summary: Newline in caption break compilation
                 Project: tex4ht
            Submitted by: gamboz
            Submitted on: Tue May  2 10:09:14 2023
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

The following mwe fails compilation with make4ht:
```latex
\documentclass{article}
\begin{document}
\begin{figure}\centering
\caption{This is the caption\\\hspace{\textwidth}This is the second line}
\end{figure}
\end{document}
```

The above is almost the same as this:
https://tex.stackexchange.com/a/101624/56076

The only difference is the absence of the optional `[caption]` argument in the
`\caption` macro.





    _______________________________________________________

Reply to this item at:

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

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



More information about the tex4ht mailing list.