1

MWE

\documentclass[a4paper,11pt]{book}
\usepackage{makeidx}
\usepackage{amssymb}
\makeindex

\begin{document}

\index{One}
\newpage

\index{Two}
\newpage

\index{Five}

\printindex

\hfill $\blacksquare$

\end{document}

This MWE, newpage after the\printindex. And, That I want,

enter image description here

But I can't do it. How can I do?

  • Your example will just show the dot and a page number, but nothing more. You must add some text before \printindex comes into action. – user31729 Sep 29 '15 at 15:18
  • @ChristianHupfer, It is working egreg's answer. Question, closed. Thank you for your relationship. – Özgür Sep 29 '15 at 15:27
  • Well, my comment was rather about that your 'empty' document won't print the index at all ;-) – user31729 Sep 29 '15 at 15:29
1

You have to hook into \endtheindex, before it issues \clearpage at the end.

\documentclass[a4paper,11pt]{book}
\usepackage{makeidx}
\usepackage{amssymb}
\usepackage{etoolbox}
\makeindex

\preto\endtheindex{\par\nobreak\noindent\hfill$\blacksquare$}

\begin{document}

a\index{One}
\newpage

b\index{Two}
\newpage

c\index{Five}

\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.