-
Notifications
You must be signed in to change notification settings - Fork 6
Description
On page 53 of the Manual:
The encap mechanism of Makeindex allows to use one command only (see documentation of
Makeindex). If the user sets such a command, hyperref suppresses its \hyperpage command.
With logical markup this situation can easily be solved:
\usepackage{makeidx}
\makeindex
\usepackage[hyperindex]{hyperref}
\newcommand*{\main}[1]{\textbf{\hyperpage{#1}}}
...
\index{Some example|main}
I am using LawTeX package written by Christopher DeCoro available at https://sourceforge.net/projects/lawtex/
The bluebook.sty file within LawTeX uses multind package and has the following code at lines 865-872:
\begingroup%
\def\pin##1##2{}%
\IfSubStr{#3}{*}{}{%
\ifempty{\IndexType{#1}}{}{%
\index{\IndexType{#1}}{\@bbIndexCite{#1}{#2}}%
}%
}%
\endgroup%
that generates the compiling file and error message upon hyperindex=true:
\begin{theindex}
\item Title 42, United States Code \hfill\hfill \par\penalty1000\subitem \S 12117~\leaders\hbox to 0.125in{\hfil.\hfil} \hskip2in plus 1.fill minus 1in\pagenumber{\hyperpage{1}}
\subitem \S 12203~\leaders\hbox to 0.125in{\hfil.\hfil} \hskip2in plus 1.fill minus 1in\pagenumber{\hyperpage{1}}
\end{theindex}
[1</usr/local/texlive/2020/texmf-var/fonts/map/pdftex/ updmap/pdftex. map}] (./Case.ind) (. /Statute. ind I . /Statute.ind:3: Undefined control sequence. | \GenericError #4 \errhelp @err@ . |1.3 ... 1. fill minus 1in\pagenumber {\ hyperpage{1}}
I have tried to swap multind and makeidx indexing packages without success. Please help!