[tex4ht] Percent sign in caption

Michal Hoftich michal.h21 at gmail.com
Mon Mar 1 19:13:19 CET 2021


Hello Lorenzo,

>
>thank you for the fast response and please take care of yourself first, of
>course!
>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,
>Lorenzo

I am quite fine, just a bit tired, thanks. Anyway, as a workaround, if 
you don't use any additional commands provided by the Caption package, 
you can just put conditional to ignore that package with TeX4ht.  
Something like the following code in your preamble:

\ifdefined\HCode
\usepackage{caption}
\fi

Best regards,
Michal



More information about the tex4ht mailing list.