[tex4ht] [bug #246] \usepackage{cprotect} generate extra strange letters not in text in HTML

William F Hammond hammond at csc.albany.edu
Wed Mar 11 02:09:36 CET 2015


Previously:

> ...
> it is well known issue that ^ character has changed catcode with tex4ht, so we
> have to set it temporarily to the normal value. we may create environment,
> which will have correct catcodes inside, so you can place problematic code
> here
>
> newenvironment{normalcatcodes}{catcode`^=7catcode`_=8}{}
>
> and full example:
>
> documentclass[]{article}
> usepackage{cprotect}
> newenvironment{normalcatcodes}{catcode`^=7catcode`_=8}{}
> begin{document}
> begin{normalcatcodes}
> cprotectfbox
> {
> begin{minipage}[t]{textwidth}
>  This is a test 
> end{minipage}
> }
> end{normalcatcodes}
> end{document}
> ------------
>
> so this is another example of problems caused by redefined catcodes of `^` and
> `_`. incidentally, I've found another one today:
> http://tex.stackexchange.com/a/232373/2891 

This strikes me as a rather compelling example illustrating why
formal LaTeX profiles should be used.

Just saying  :-)

                                    -- Bill



More information about the tex4ht mailing list