summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex')
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex26
1 files changed, 25 insertions, 1 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
index 2b7fe067364..edb2d48b650 100644
--- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
+++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1353 2023-08-13 17:48:56Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1358 2023-08-16 14:04:38Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2023 TeX Users Group
@@ -4896,6 +4896,7 @@ converted to SVG by default.
document before use of TikZ if you want to another driver. Use tikz+ option if your TikZ pictures use patterns.}%
\def\pgfsysdriver{pgfsys-dvisvgm4ht.def}%
\fi%
+\ifdefined\find:externalize\else
\:AtEndOfPackage{%
\let\use:tikzlibrary\usetikzlibrary
\def\find:externalize#1external#2\@nil{%
@@ -4914,6 +4915,7 @@ converted to SVG by default.
}
\append:defI\use@@tikzlibrary{\find:externalize##1external\@nil}%
}
+\fi
>>> \AddFile{9}{tikz-hooks}
%%%%%%%%%%%%%%%%%%
@@ -16419,6 +16421,28 @@ Hfootnote counter, which isn't declared.
}{}
>>>
+Indexing support for Memoir. It supports split index like functionality,
+but quite complicatedly using aux files. This version produces idx file
+in the format expected by make4ht for the splitindex support.
+
+PS: I had to double the \''|' characters in the macro definition, otherwise
+they were stripped by the literate programming system.
+
+\<memoir cfg\><<<
+\def\:tempa#1||#2||#3\\{%
+ \html:addr\hbox{\Link-{}{dx\last:haddr}\EndLink}%
+ \expandafter\protected@write\csname \jobname @idxfile\endcsname{}{\string\beforeentry{\RefFileNumber\FileNumber}{dx\last:haddr}{}}%
+ \expandafter\protected@write\csname \jobname @idxfile\endcsname{}{\string\indexentry[\@idxfile]{#1}{\thepage}}%
+ \endgroup%
+ \@esphack%
+}
+\HLet\@@wrindexhyp\:tempa
+\HLet\@@wrspindexhyp\:tempa
+
+% we use make4ht's splitindex functionality, which produces .ind files in the form of \jobname-idxname.ind
+\renewcommand{\printindex}[1][\jobname]{\@input@{\jobname-#1.ind}}
+>>>
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Section{mempatch}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%