diff options
Diffstat (limited to 'support/TeX4ht/source/tex4ht-4ht.tex')
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index c8533c2faf..07e8f85b21 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1181 2022-08-04 17:27:58Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1184 2022-08-17 11:45:35Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2022 TeX Users Group @@ -23760,6 +23760,20 @@ environments to insert XML tags. \renewcommand{\mkenddispquote}[2]{#1\b:displayquote#2\c:displayquote} >>> +Handle circumflex catcodes when the \Verb|early^| option is used. + +\<add to usepackage\><<< +\Configure{PackageHooks}{babel.sty}{babel-sty-hooks.4ht} +>>> + +\<babel-sty-hooks.4ht\><<< +% babel-sty-hooks.4ht, generated from |jobname.tex +% Copyright 2022 TeX Users Group +|<TeX4ht license text|> +|<disable early sup|> +>>> +\AddFile{9}{babel-sty-hooks} + %%%%%%%%%%%%%%%%%%%%%% \Section{CJK} %%%%%%%%%%% @@ -26815,13 +26829,28 @@ dvips needs to be used instead \<graphics-hooks.4ht\><<< % graphics-hooks.4ht (|version), generated from |jobname.tex -% Copyright 2020 TeX Users Group +% Copyright 2020-2022 TeX Users Group |<TeX4ht license text|> \ifdefined\XeTeXversion \PassOptionsToPackage{dvips}{graphics} \fi +|<disable early sup|> >>> \AddFile{9}{graphics-hooks} +The \Verb|early^| option can break some packages that changes catcode of +circumflex too. We need to revert to the original definition for the package +processing, and then return to the TeX4ht definition after the package +is processed. + +\<disable early sup\><<< +\ifdefined\recall:sup +\recall:sup +\:AtEndOfPackage{ + \early:sup +} +\fi +>>> + %%%%%%%%%%%%%%%%%%%%%%% \SubSection{graphicx} %%%%%%%%%%%%%%%%%%%%%%% |