diff options
Diffstat (limited to 'support/TeX4ht/source/tex4ht-sty.tex')
-rw-r--r-- | support/TeX4ht/source/tex4ht-sty.tex | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/support/TeX4ht/source/tex4ht-sty.tex b/support/TeX4ht/source/tex4ht-sty.tex index e8464d47b1..34435a7824 100644 --- a/support/TeX4ht/source/tex4ht-sty.tex +++ b/support/TeX4ht/source/tex4ht-sty.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-sty.tex 1424 2023-12-14 09:55:08Z michal_h21 $ +% $Id: tex4ht-sty.tex 1451 2024-01-23 14:16:56Z michal_h21 $ % tex tex4ht-sty or ht tex tex4ht-sty % % Copyright 2009-2022 TeX Users Group @@ -5252,7 +5252,7 @@ when the command is encountered. \escapechar=`\\% \protect:wrtoc \csname Modify#1ToToc\endcsname -\edef\:writetoc{\csname if:toc\endcsname{\the\:tokwrite +\protected:edef\:writetoc{\csname if:toc\endcsname{\the\:tokwrite {\string\doTocEntry \string\toc \expandafter\ifx\csname toToc:#1\endcsname\relax #1\else \csname toToc:#1\endcsname\fi @@ -11132,6 +11132,19 @@ titles of sections are referenced. LaTeX has \`'\def\@unexpandable@protect{\noexpand\protect\noexpand}' to be included in immediate defines. +This is a variant of \`'\protected@edef' from LaTeX. We cannot use it directly here, so I've made a copy. + +\<html utilities\><<< +\def\:unexpand:protect{\noexpand\protect\noexpand} +\def\:restore:protect{\let\protect\orig:protect} +\def\protected:edef{% + \let\:orig:protect\protect% + \let\protect\:unexpand:protect% + \afterassignment\:restore:protect% + \edef% +} + +>>> \Section{Tags} |