bugtex4ht - Bugs: bug #599, Newline in caption break...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #599: Newline in caption break compilation

Submitted by:  Matteo Gamboz <gamboz>
Submitted on:  Tue May 2 10:09:14 2023  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri May 19 21:10:20 2023, comment #3:

That's great to hear! So I am closing this now.

Michal Hoftich <michal_h21>
Project Member
Fri May 19 20:53:21 2023, comment #2:

I can confirm the issue is solved.

AFAICT it can be closed (I don't think I can close the issue myself)

Thanks again :)

Matteo Gamboz <gamboz>
Tue May 2 11:52:38 2023, comment #1:

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

Michal Hoftich <michal_h21>
Project Member
Tue May 2 10:09:14 2023, original submission:

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.

Matteo Gamboz <gamboz>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by gamboz (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    1 latest change follows.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri May 19 21:10:20 2023michal_h21Open/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray