Coloque un 'último carácter' al final de un texto antes de \pagebreak (dito al principio @ página siguiente)

Coloque un 'último carácter' al final de un texto antes de \pagebreak (dito al principio @ página siguiente)

Dentro de un documento que abarca varias páginas, quiero colocar un texto específico inmediatamente al final del texto en cada página (lo mismo quiero hacer al principio de la página siguiente). Prácticamente estoy buscando el colgante a \AtEndDocument{text}nivel de página.

El colgante debería hacer exactamente eso, pero para cada página, algo como \AtEndPage{here ends page \thepage}y \AtBeginPage{aquí comienza la página \thepage}.

Elobjetivoes el siguiente: Es un texto legal y esto es para omitir que se agregue información adicional (texto) en el espacio libre antes o después del texto original. Al mismo tiempo, es un documento que se supone debe ser estético y esto tiene que suceder dentro del cuadro de texto que contiene, digamos, el flujo de texto, no la nota al pie o algo así.

Esto sucederá

  • dentro de un \begin{multicols}{2}entorno
  • solo cuando hay un salto de página, por lo que no se agregará texto al final del documento

Esto es lo que me gustaría y aquí lo arreglé manualmente:

\documentclass{article} 

\usepackage{lipsum}

\begin{document}

        \textbf{Here will be a formal beginning, which indicates the legal beginning of the document, so no continuation-indicator is needed.}
        \lipsum[1-1]
        \footnote{This is a footnote that is outside the actual 'text stream'}
        \lipsum[1-1]
        % This is manual, I will not know, where the page will break.
        % The voulnerable part of the text is protected by this:
        \textbf{end of page \thepage}       % manual
        \newpage
        % %he voulnerable part of the text is protected by this:
        \textbf{start of page \thepage}     % manual
        \lipsum[1-3]
        \textbf{Here will be a formal end, which indicates the legal end of the document, so no continuation-indicator is needed.}
    
\end{document}

información relacionada