From 6d1b034ffe312cd342bdcc717d7bd694dcad25a9 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 27 Nov 2022 03:01:15 +0000 Subject: CTAN sync 202211270301 --- support/TeX4ht/source/ChangeLog | 9 ++++++ support/TeX4ht/source/mktex4ht-cnf.tex | 3 +- support/TeX4ht/source/tex4ht-4ht.tex | 55 ++++++++++++++++++++++++++++++++-- 3 files changed, 64 insertions(+), 3 deletions(-) (limited to 'support/TeX4ht/source') 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 + + * 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 * 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 >>> @@ -31173,6 +31173,57 @@ needs a special treatment. d|\last:haddr >>> +%%%%%%%%%%%%%%%%%%%%%%%% +\SubSection{indextools.sty} +%%%%%%%%%%%%%%%%%%%%%%%% + +\<<< +% indextools.4ht (|version), generated from |jobname.tex +% Copyright 2022 TeX Users Group +| +| +| +| + +\Hinput{indextools} +\endinput +>>> \AddFile{7}{indextools} + + + + +Insert destinations for index items in text, and save the link to the .idx file + +\<<< +\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 +>>> + +\<<< +\Configure{@begin}{theindex}{\ind:defs} +>>> + +\<<< +% 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} %%%%%%%%%%%%%%%%%%%%%%%% -- cgit v1.2.3