summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-01-25 03:00:57 +0000
committerNorbert Preining <norbert@preining.info>2024-01-25 03:00:57 +0000
commit768d5db2700eb846ed6616dc4839993f193b22cd (patch)
treec06578df8e40e137d12018e0a4ba053466c86ca1 /support
parent30e494c68ef358eeb09d53920dd0658dc9238f51 (diff)
CTAN sync 202401250300
Diffstat (limited to 'support')
-rw-r--r--support/TeX4ht/source/ChangeLog6
-rw-r--r--support/TeX4ht/source/tex4ht-sty.tex17
2 files changed, 21 insertions, 2 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index eee6684fc1..2d9c40eaf8 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,9 @@
+2024-01-23 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-sty.tex (tex4ht.sty): introduced \protected:edef as a
+ variant of \protected@edef, and used it in section definitions.
+ https://tex.stackexchange.com/q/707714/2891
+
2024-01-22 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-docbook.tex (docbook.4ht): print reference number in the
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}