19.1 theindex

latex foo 
 makeindex -o foo.ind testindex.idx 
 latex foo 

<..config book-report-article utilities..>+
 <.book-report-article idx.>
 -_-_-

<..book-report-article idx..>
 \long\def\c:theindex:#1#2#3#4#5#6#7#8#9{%
    \def\theindex{%
       \def\idx:item{\SaveEverypar\ht:everypar{}#1}%
       \def\endtheindex{\idx:item#2\RecallEverypar}%
       \def\item{\idx:item\def\idx:item{#4}\let\index=\@gobble #3}%
       \def\subitem{\idx:item\def\idx:item{#6}\let\index=\@gobble #5}%
       \def\subsubitem{\idx:item\def\idx:item{#8}\let\index=\@gobble #7}}%
    \def\indexspace{\idx:item#9\let\idx:item=\empty}}
 <.theindex warning.>
 \Configure{@begin}{theindex}{\ind:defs}
 -_-_-

The following was in ‘\theinsex

      \ifx \idx:item\:UnDef 
         \ifx \LNK\:UnDef 
           \ifx \LNKno\:UnDef 
             \ifx \@indexfile\:UndDef \else 
                \warn:idx{\jobname}% 
      \fi\fi \fi \fi 

<..theindex warning..>
 \def\warn:idx#1{%
   \expandafter\ifx \csname #1warn:idx\endcsname\relax
      \expandafter\global
          \expandafter\let \csname #1warn:idx\endcsname=\def
      \immediate\write16
         {---------------------------------------------------------}%
      \:warning{If not done so, the index is to be processed by
       ^^J\space\space tex ’\string\def\string\filename
          {{#1}{idx}{4dx}{ind}} \noexpand\input\space idxmake.4ht’
       ^^J\space\space  makeindex -o #1.ind #1.4dx
       ^^Jinstead of
       ^^J\space\space  makeindex -o #1.ind #1.idx
       ^^JOn some platforms, the quotation marks  should be
       ^^J      replaced by double quotation marks " or eliminated.
       ^^J---------------------------------------------------------
      }%
      {\Configure{Needs}{File: #1.4idx}\Needs{}}%
   \fi}
 -_-_-

<..index 4.1beta warning..>
 \def\warn:idx#1{%
   \expandafter\ifx \csname #1warn:idx\endcsname\relax
      \expandafter\global
          \expandafter\let \csname #1warn:idx\endcsname=\def
      \:warning{If not done so, the index is to be processed by
       ^^J\space\space tex ’\string\def\string\filename
          {{\jobname}{<.index 4.1beta ext I.>}{4dx}%
           {<.index 4.1beta ext II.>}} \noexpand
              \input\space idxmake.4ht’
       ^^J\space\space  makeindex -o
          \jobname.<.index 4.1beta ext II.>\space \jobname.4dx
       ^^Jinstead of
       ^^J\space\space  makeindex -o
          \jobname.<.index 4.1beta ext II.>\space
          \jobname.<.index 4.1beta ext I.>%
       ^^JOn some platforms, the quotation marks  should be
       ^^J      replaced by double quotation marks " or eliminated.
      }%
      {\Configure{Needs}{File: #1.4idx}\Needs{}}%
   \fi}
 -_-_-

<..splitidx warning..>
 \def\warn:idx#1{%
   \expandafter\ifx \csname #1warn:idx\endcsname\relax
      \expandafter\global
          \expandafter\let \csname #1warn:idx\endcsname=\def
      \:warning{If not done so, the index is to be processed by
       ^^J\space\space tex ’\string\def\string\filename
          {{#1}{idx}{4dx}{ind}} \noexpand\input\space idxmake.4ht’
       ^^J\space\space  move #1.4dx #1.idx
       ^^Jbefore invoking
       ^^J\space\space  splitindex #1.idx
       ^^JOn some platforms, the quotation marks  should be
       ^^J      replaced by double quotation marks " or eliminated.
      }%
      {\Configure{Needs}{File: #1.4idx}\Needs{}}%
   \fi}
 -_-_-

<..theindex warning..>+
 \ifOption{info}{\Log:Note{
 A script of the form
 ^^Jtex ’\def\string\filename{{\%\%1}{idx}{4dx}{ind}}
                                        \string\input\space  idxmake.4ht’
 ^^Jmakeindex -o \%\%1.ind \%\%1.4dx
 ^^Jin the env file, automatically calls to the revised makeindex
 ^^Jcommand.  An extra compilation of the source LaTeX file is required,
 ^^Jto get the index correctly into the output.}}{}
 -_-_-

<..doc warning..>
 \def\warn:idx#1{%
   \expandafter\ifx \csname #1warn:idx\endcsname\relax
      \expandafter\global
          \expandafter\let \csname #1warn:idx\endcsname=\def
      \:warning{If not done so, the index is to be processed by
       ^^J\space\space tex ’\string\def\string\filename
          {{#1}{idx}{4dx}{ind}} \noexpand\input\space idxmake.4ht’
       ^^J\space\space  makeindex -s #1.ist -o #1.ind #1.4dx
       ^^Jinstead of
       ^^J\space\space  makeindex -s #1.ist -o #1.ind #1.idx
       ^^JOn some platforms, the quotation marks  should be
       ^^J      replaced by double quotation marks " or eliminated.
      }%
      {\Configure{Needs}{File: #1.4idx}\Needs{}}%
   \fi}
 -_-_-