[tex4ht] Percent sign in caption

Michal Hoftich michal.h21 at gmail.com
Sun Feb 28 22:28:48 CET 2021


Hello Lorenzo,

>I have a figure with a caption containing "\%", like in "this is 3\% of
>that". This breaks tex4ht (I run make4ht) because in filename.4tc the
>percent is not escaped anymore, so I find the line
>
>\doTocEntry\toclof{}{\csname a:TocLink\endcsname{1}{x1-28012}{}{\numberline
>{2.6}{\ignorespaces this is 3% of that.\relax }}}{30}\relax
>
>and the %-sign is interpreted as a comment, so the command gets broken.
>
>Is this behaviour known to you and is there a way to fix it?

I can confirm that this happens with the Caption package. It is not 
known, so thanks for the report.

I am currently dealing with COVID 19 and I am bit tired, so it may take 
some time before I will be able to fix this issue.

Best regards,
Michal



More information about the tex4ht mailing list.