summaryrefslogtreecommitdiff
path: root/support/TeX4ht
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-11-27 03:01:15 +0000
committerNorbert Preining <norbert@preining.info>2022-11-27 03:01:15 +0000
commit6d1b034ffe312cd342bdcc717d7bd694dcad25a9 (patch)
tree4723fb5b3534ffbdec68eede38c12be16865efeb /support/TeX4ht
parente847537e7eb9b357896add98741bf14318405fab (diff)
CTAN sync 202211270301
Diffstat (limited to 'support/TeX4ht')
-rw-r--r--support/TeX4ht/source/ChangeLog9
-rw-r--r--support/TeX4ht/source/mktex4ht-cnf.tex3
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex55
3 files changed, 64 insertions, 3 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index a12dc4a966..0730a3684e 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,12 @@
+2022-11-25 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-4ht.tex (imakeidx.4ht): fixed error in
+ \NewConfigure{makeindex}.
+
+ * tex4ht-4ht.tex (indextools.4ht): added support for the Indextools
+ package.
+ https://github.com/michal-h21/tex4ebook/issues/95
+
2022-11-24 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-fonts-noncjk.tex (
diff --git a/support/TeX4ht/source/mktex4ht-cnf.tex b/support/TeX4ht/source/mktex4ht-cnf.tex
index 6b5a059d66..7d3c09146e 100644
--- a/support/TeX4ht/source/mktex4ht-cnf.tex
+++ b/support/TeX4ht/source/mktex4ht-cnf.tex
@@ -1,4 +1,4 @@
-% $Id: mktex4ht-cnf.tex 1249 2022-11-22 16:53:24Z michal_h21 $
+% $Id: mktex4ht-cnf.tex 1251 2022-11-25 14:09:11Z michal_h21 $
% Manually-maintained file, listing *.4ht files created by tex4ht-4ht.tex.
% Read by tex4ht-cond4ht.
%
@@ -261,6 +261,7 @@
\AddFile{7}{index}
\AddFile{7}{multind}
\AddFile{7}{imakeidx}
+\AddFile{7}{indextools}
\AddFile{9}{tugboat}
\AddFile{9}{ltugboat}
\AddFile{9}{ltugboat-a}
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index 9939950dab..dbc95f3272 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1249 2022-11-22 16:53:24Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1251 2022-11-25 14:09:11Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2022 TeX Users Group
@@ -31145,7 +31145,7 @@ destination to the idx file
\HLet\imki@wrindexentrysplit\:temp
\ifx \a:makeindex\:UnDef
-\NewConfigure{makeindex}{}\Configure{makeindex}{}
+\NewConfigure{makeindex}{1}\Configure{makeindex}{}
\fi
>>>
@@ -31174,6 +31174,57 @@ d|<haddr prefix|>\last:haddr
>>>
%%%%%%%%%%%%%%%%%%%%%%%%
+\SubSection{indextools.sty}
+%%%%%%%%%%%%%%%%%%%%%%%%
+
+\<indextools.4ht\><<<
+% indextools.4ht (|version), generated from |jobname.tex
+% Copyright 2022 TeX Users Group
+|<TeX4ht license text|>
+|<indextools index|>
+|<indextools defs|>
+|<indextools disable options|>
+
+\Hinput{indextools}
+\endinput
+>>> \AddFile{7}{indextools}
+
+
+
+
+Insert destinations for index items in text, and save the link to the .idx file
+
+\<indextools index\><<<
+\def\:tempa[#1]#2{\html:addr%
+ \ifindtl@splitindex\else% with splitindex, we would get duplicate index entry destinations
+ \hbox{\Link-{}{dx\last:haddr}\EndLink}%
+ \expandafter\protected@write\csname#1@idxfile\endcsname{}%
+ {\string\beforeentry{\RefFileNumber\FileNumber}{dx\last:haddr}{\a:makeindex}}%
+ \fi%
+ \o:@index:[#1]{#2}%
+}
+\HLet\@index\:tempa%
+
+\ifx \a:makeindex\:UnDef
+ \NewConfigure{makeindex}{1}\Configure{makeindex}{}
+\fi
+>>>
+
+\<indextools defs\><<<
+\Configure{@begin}{theindex}{\ind:defs}
+>>>
+
+\<indextools disable options\><<<
+% disable redefiniton of \theindex in \AtBeginDocument
+\indtl@originaltrue
+
+% prevent automatic compilation of the index
+\let\KV@indtl@noautomaticfalse\KV@indtl@noautomatictrue
+\KV@indtl@noautomatictrue
+\indtl@disableautomatictrue
+>>>
+
+%%%%%%%%%%%%%%%%%%%%%%%%
\Section{tugboat}
%%%%%%%%%%%%%%%%%%%%%%%%