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

2023-05-02 Thread Michal Hoftich
Follow-up Comment #1, bug #599 (project tex4ht):

Thanks for the report. I've updated TeX4ht sources, so this error should go
away. In the meantime, you can use this configuration file:

\Preamble{xhtml}
\catcode`\:=11
\pend:def\protect:wrtoc{\let\\\space}
\catcode`\:=12
\begin{document}
\EndPreamble


___

Reply to this item at:

  

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



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

2023-05-02 Thread Matteo Gamboz
URL:
  

 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:

  

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