Agregar texto después del índice

Agregar texto después del índice

Estoy buscando un \indexepiloguecomando o método similar a " " equivalente a \indexprologueof imakeidxperodespuésel índice y antes de realizar cualquier salto de página.

Respuesta1

etoolboxEl paquete puede agregar código al final del theindexentorno, pero qué código agregar depende de las características específicas de su caso. Agregue un pequeño ejemplo práctico que muestre lo que pretende y lo que ha probado hasta ahora, qué clase y qué paquetes.

Aquí hay una versión "simple":

plano

MWE

\documentclass[12pt]{article}
\usepackage{makeidx}
\usepackage{etoolbox}
\newcommand\epcode{This is some text after the index.}
\makeindex
\AtEndEnvironment{theindex}{\epcode}

\begin{document}
Test A\index{A}
\newpage
Test B\index{B}
\newpage
\printindex
\end{document}

Con imakeidxmodo de dos columnas, con texto en la columna dos:

índice de dos columnas más texto

MWE

\documentclass[12pt]{article}
\usepackage{imakeidx}
\usepackage{etoolbox}
\newcommand\epcode{This is some text after the index.}
\makeindex
\AtEndEnvironment{theindex}{\epcode}

\begin{document}
Test A\index{A}
\newpage
Test B\index{B}
\newpage
\printindex
\end{document}

Una variación que muestra la diferencia entre AtEnd...y AfterEnd...:

dos columnas una columna

MWE

\documentclass[12pt]{article}
\usepackage{imakeidx}
\usepackage{etoolbox}
\newcommand\epcode{This is some text after the index, but before the end of its environemnt (two balanced columns).}
\newcommand\epcodeb{And this is some text after the end of the index environment.}
\makeindex
\AtEndEnvironment{theindex}{\epcode}\AfterEndEnvironment{theindex}{\epcodeb}

\begin{document}
Test A\index{A}
\newpage
Test B\index{B}
\newpage
\printindex
\end{document}

información relacionada