1

As you can see in the picture, I am adding index entries to my thesis. However, there are some main entries, like probability or random, are not defined or discussed separately. Only the sub-entries probability density function, probability measure, and probability space are defined. The same are true for random element and random variable. I think it is not good to have page numbers after the main entries, which are not defined. Is there a way to remove page number for such entries?

index

  • Can you please add a minimal example of code? – egreg Nov 21 '15 at 13:00
  • Thank you for the answer. Should I still provide a ME now? – user565739 Nov 21 '15 at 13:09
  • It's always better. – egreg Nov 21 '15 at 13:10
4

You just don't have to add \index{probability}:

\documentclass{book}
\usepackage{imakeidx}

\makeindex

\begin{document}

\setcounter{page}{42}

a\index{probability!space}\index{probability!measure}

\clearpage
\setcounter{page}{44}

b\index{random!element}\index{random!value}

\clearpage

c\index{probability!density function}

\printindex

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.