% index.4ht (2025-06-10-13:08), generated from tex4ht-4ht.tex
% Copyright 1999-2009 Eitan M. Gurari
% Copyright 2024 TeX Users Group
% Copyright 2009-2025 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
%   https://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 <https://tug.org/tex4ht>.
%
% If you modify this program, changing the
% version identification would be appreciated.
\immediate\write-1{version 2025-06-10-13:08}

\ifx \a:makeindex\:UnDef
   \NewConfigure{makeindex}{1} \Configure{makeindex}{}
\fi

\expandafter\ifx \csname @vwritefile\endcsname\relax
  \pend:defII\@wrindex{\warn:idx{##1}\title:chs{\html:addr
   \hbox{\Link-{}{x\last:haddr}\EndLink}}{}%
   \edef\:temp{\write\@auxout{%
      \string\@writefile{##1}{\expandafter\string\a:idxmake{\RefFileNumber
         \FileNumber}{\title:chs{x\last:haddr}{\cur:th
         \:currentlabel}}{\a:makeindex}}}}\:temp
}
% this should prevent errors if the document file is named index.tex
\providecommand\printindex{}
\pend:def\printindex{\def\indexname{\the\@nameuse{idxtitle@\@indextype}}}
\bgroup
\@ifpackageloaded{imakeidx}{
   \expandafter\gdef\csname idx:extI\endcsname#1{#1}
   \expandafter\gdef\csname idx:extII\endcsname#1{#1}
}{
   \catcode`\:=12
   \expandafter\gdef\csname idx:extI\endcsname#1:#2//{#1}
   \expandafter\gdef\csname idx:extII\endcsname#1:#2:#3//{#2}
}

\egroup


\else
  \pend:defII\@wrindex{\warn:idx{##1}\title:chs{\html:addr
   \hbox{\Link-{}{x\last:haddr}\EndLink}}{}%
   \edef\:temp{\write\@auxout{%
      \string\@vwritefile{##1}{\expandafter\string\a:idxmake{\RefFileNumber
         \FileNumber}{\title:chs{x\last:haddr}{\cur:th
         \:currentlabel}}{\a:makeindex}}}}\:temp
}

\fi
\ExplSyntaxOn
\renewcommand\:saveindex[2][]{\seq_gput_right:Nn\:savedindex{[#1]{#2}}}
\def\:printsavedindex{\seq_map_inline:Nn\:savedindex{\index##1}}
\ExplSyntaxOff

\Hinput{index}
\endinput

