Some of my index entries are being rejected for some reason. How do I determine which index entries were rejected?

For instance if I uncomment the \def at the top of the MWE below I see the message in the console. All this does is switch from suing \tiny to \small. Not sure why one would be ok but the other.

Scanning input file TestIndex.idx...done (0 entries accepted, 10 rejected)

I searched for the word rejected in imakeidx.sty but that word is not in that file, so not sure where this message is coming from.

The above is just one cause of the entries being rejected. I need to know what are some of the other causes as I have some rejected without using \small.




\usepackage{datatool}% database
\usepackage{imakeidx}% indexing
\usepackage{hyperref}% For cross references

% ---------- Process Each Word:
% https://tex.stackexchange.com/questions/12810/how-do-i-split-a-string
\def\ReadWords#1 #2\relax{%
      \ProcessWord[\@tempb]{#1}%  #1 = substr, #2 = rest of string
      \ifx\relax#2\relax% is #2 empty?
         \def\next{\endgroup\EndProcessWords}% your own end-macro if required
% ---------- 


\DTLnewdbentry{DB}{FileName}{Now good enough}% 
\DTLnewdbentry{DB}{FileName}{Now good enough for you and me}% 



1 Answer 1


You find the rejected entries in the .ilg file, which is the log of Makeindex's activities.

Where's the problem? If you look at the entries generated when \UseSmallInIndex is undefined, you find them of the form

\indexentry{Now!Now good enough\href  {run:Now good enough.pdf}{\relax \fontsize  {5}{6}\selectfont  \leavevmode {\color  {red}pdf}}|hyperpage}{1}

and you see that \tiny has been substituted by its expansion. The expansion of \small gives instead

\indexentry{Now!Now good enough\href  {run:Now good enough.pdf}{\relax \fontsize  {9}{11}\selectfont  \abovedisplayskip 8.5\p@ plus3\p@ minus4\p@ \abovedisplayshortskip \z@ plus2\p@ \belowdisplayshortskip 4\p@ plus2\p@ minus2\p@ \def \leftmargin \leftmargini \parsep 4\p@ plus2\p@ minus\p@ \topsep 8\p@ plus2\p@ minus4\p@ \itemsep 4\p@ plus2\p@ minus\p@ {\leftmargin \leftmargini \topsep 4\p@ plus2\p@ minus2\p@ \parsep 2\p@ plus\p@ minus\p@ \itemsep \parsep }\belowdisplayskip \abovedisplayskip \leavevmode {\color  {red}pdf}}|hyperpage}{1}

which is where Makindex chokes.



I'd also use \protected@edef in the definition of \ProcessEachWord for similar reasons.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .