I would like to add a ``THE END'' to the end of an Index.
Is there a command when creating an Index analogous to the \addtocontents
command for the TOC?
I am using PDFLATEX.
Consider the MWE
\documentclass[12pt]{book}
\usepackage{imakeidx}
\makeindex
\usepackage{idxlayout}
\begin{document}
\thispagestyle{empty}
Sentence\index{Index Entry1} \newpage
Sentence\index{Index Entry2} \newpage
\idxlayout{columns=2}
\printindex
\end{document}
which produces the Index:
Again, I would like to add ``THE END'', preferably centered, somewhere after the index entries.
Thank you.