texlive[65105] Master/texmf-dist: indextools support, imakeidx fix,
commits+karl at tug.org
commits+karl at tug.org
Fri Nov 25 22:42:40 CET 2022
Revision: 65105
http://tug.org/svn/texlive?view=revision&revision=65105
Author: karl
Date: 2022-11-25 22:42:40 +0100 (Fri, 25 Nov 2022)
Log Message:
-----------
indextools support, imakeidx fix, tex4ht r1251
Revision Links:
--------------
http://tug.org/svn/texlive?view=revision&revision=1251
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/imakeidx.4ht
Added Paths:
-----------
trunk/Master/texmf-dist/tex/generic/tex4ht/indextools.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2022-11-25 21:02:55 UTC (rev 65104)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2022-11-25 21:42:40 UTC (rev 65105)
@@ -1,3 +1,12 @@
+2022-11-25 Michal Hoftich <michal.h21 at 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 at gmail.com>
* tex4ht-fonts-noncjk.tex (
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex 2022-11-25 21:02:55 UTC (rev 65104)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex 2022-11-25 21:42:40 UTC (rev 65105)
@@ -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}
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2022-11-25 21:02:55 UTC (rev 65104)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2022-11-25 21:42:40 UTC (rev 65105)
@@ -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 @@
\HLet\imki at wrindexentrysplit\:temp
\ifx \a:makeindex\:UnDef
-\NewConfigure{makeindex}{}\Configure{makeindex}{}
+\NewConfigure{makeindex}{1}\Configure{makeindex}{}
\fi
>>>
@@ -31174,6 +31174,57 @@
>>>
%%%%%%%%%%%%%%%%%%%%%%%%
+\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 at splitindex\else% with splitindex, we would get duplicate index entry destinations
+ \hbox{\Link-{}{dx\last:haddr}\EndLink}%
+ \expandafter\protected at write\csname#1 at 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 at originaltrue
+
+% prevent automatic compilation of the index
+\let\KV at indtl@noautomaticfalse\KV at indtl@noautomatictrue
+\KV at indtl@noautomatictrue
+\indtl at disableautomatictrue
+>>>
+
+%%%%%%%%%%%%%%%%%%%%%%%%
\Section{tugboat}
%%%%%%%%%%%%%%%%%%%%%%%%
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/imakeidx.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/imakeidx.4ht 2022-11-25 21:02:55 UTC (rev 65104)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/imakeidx.4ht 2022-11-25 21:42:40 UTC (rev 65105)
@@ -1,4 +1,4 @@
-% imakeidx.4ht (2020-05-18-13:31), generated from tex4ht-4ht.tex
+% imakeidx.4ht (2022-11-25-13:16), generated from tex4ht-4ht.tex
% Copyright 2019 TeX Users Group
%
% This work may be distributed and/or modified under the
@@ -16,7 +16,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2020-05-18-13:31}
+\immediate\write-1{version 2022-11-25-13:16}
\def\:temp#1#2#3{\html:addr%
@@ -30,7 +30,7 @@
\HLet\imki at wrindexentrysplit\:temp
\ifx \a:makeindex\:UnDef
-\NewConfigure{makeindex}{}\Configure{makeindex}{}
+\NewConfigure{makeindex}{1}\Configure{makeindex}{}
\fi
\Configure{@begin}{theindex}{\ind:defs\imki at maybeaddtotoc}
Added: trunk/Master/texmf-dist/tex/generic/tex4ht/indextools.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/indextools.4ht (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/indextools.4ht 2022-11-25 21:42:40 UTC (rev 65105)
@@ -0,0 +1,48 @@
+% indextools.4ht (2022-11-25-13:16), generated from tex4ht-4ht.tex
+% Copyright 2022 TeX Users Group
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3c of this license or (at your option) any
+% later version. The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3c or later is part of all distributions
+% of LaTeX version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status "maintained".
+%
+% The Current Maintainer of this work
+% is the TeX4ht Project <http://tug.org/tex4ht>.
+%
+% If you modify this program, changing the
+% version identification would be appreciated.
+\immediate\write-1{version 2022-11-25-13:16}
+
+\def\:tempa[#1]#2{\html:addr%
+ \ifindtl at splitindex\else% with splitindex, we would get duplicate index entry destinations
+ \hbox{\Link-{}{dx\last:haddr}\EndLink}%
+ \expandafter\protected at write\csname#1 at 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 at originaltrue
+
+% prevent automatic compilation of the index
+\let\KV at indtl@noautomaticfalse\KV at indtl@noautomatictrue
+\KV at indtl@noautomatictrue
+\indtl at disableautomatictrue
+
+
+\Hinput{indextools}
+\endinput
+
Property changes on: trunk/Master/texmf-dist/tex/generic/tex4ht/indextools.4ht
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
More information about the tex-live-commits
mailing list.