[tex4ht] Percent sign in caption

Lorenzo Di Gregorio lorenzo.digregorio at gmail.com
Mon Mar 1 08:43:38 CET 2021

Hello Michal,

thank you for the fast response and please take care of yourself first, of
Should anybody in the list have a creative workaround (compatible with the
PDF flow), I'll be happy to try out.  So far I have just replaced all "%"
in captions with "percent".

Best Regards,

On Sun, Feb 28, 2021 at 10:28 PM Michal Hoftich <michal.h21 at gmail.com>

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex4ht/attachments/20210301/f557537b/attachment.html>

More information about the tex4ht mailing list.