summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source/tex4ht-html4.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-05-14 03:00:57 +0000
committerNorbert Preining <norbert@preining.info>2022-05-14 03:00:57 +0000
commit2afee5e322fb0dfc2764c270803bc6381b65636e (patch)
tree6c5fe92847403c0b3238f66b593a36ec55e08414 /support/TeX4ht/source/tex4ht-html4.tex
parent4e2ad1a6e6a7ed1dc60b36eaaaa70701ba3d5e75 (diff)
CTAN sync 202205140300
Diffstat (limited to 'support/TeX4ht/source/tex4ht-html4.tex')
-rw-r--r--support/TeX4ht/source/tex4ht-html4.tex27
1 files changed, 26 insertions, 1 deletions
diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex
index d21364326d..a2c897578c 100644
--- a/support/TeX4ht/source/tex4ht-html4.tex
+++ b/support/TeX4ht/source/tex4ht-html4.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 1124 2022-04-29 15:04:44Z michal_h21 $
+% $Id: tex4ht-html4.tex 1133 2022-05-13 13:41:16Z michal_h21 $
% Compile 4 times: latex tex4ht-html4
% Copy html4.4ht into the work directory before all but the last compilation.
%
@@ -1139,10 +1139,35 @@ tex4ht-body>>>
\Log:Note{For section filenames that reflect on
their titles use the command line
option `sec-filename'}
+ \:CheckOption{cut-fullname}
+ \if:Option
+ |<section type names for cutat files|>
+ \else
+ \Log:Note{For section filenames that use full
+ jobname and section type use the command line
+ option `cut-fullname'}
+ \fi
\fi
\fi
>>>
+This redefines internal macro from tex4ht.sty to use a full
+section type name instead of just first two characters.
+This can be usefull especially when you cut at level that cuts both
+subsections and subsubsections, as these will produce the same filenames.
+
+See \Link[https://tex.stackexchange.com/a/644072/2891]{}{} this answer for more
+details\EndLink.
+
+\<section type names for cutat files\><<<
+\let\j:bname\jobname
+\def\fx:pt#1xxx!*?: {%
+ \expandafter\ifx \csname big:#1:\endcsname\relax%
+ \expandafter\gHAssign\csname big:#1:\endcsname 0 \fi%
+ \expandafter\gHAdvance\csname big:#1:\endcsname 1%
+\edef\big:fn{#1\csname big:#1:\endcsname}}
+>>>
+
\<section names for cutat files\><<<
\Configure{CutAt-filename}{%
\ifx \:NxtNwFN\:Undef