As illustrated by the following example it seems that the commands used by the everypage package does not allow changes to the same conext as the page text. (I've also tried using the commands: \@begindiv \@outputpage \@texttop \@parboxrestore. \@texttop and \@parboxrestore will render textual content within the same box but still not the same context as \noindent and definitions will have no effect on the following paragraph.)
Code: Select all
\documentclass{minimal}
\makeatletter
\let\tmp\@begindvi
\def\@begindvi{\everypar{Changed everypar: }}
% The change using \everypar will not give any result to the page text
\makeatother
\begin{document}
\everypar{This text should change from page 2: }
Paragraph text. Lorem ipsum dicam utroque aliquando mel ut, ex sea odio
repudiare. In regione diceret apeirian est, nemore laoreet salutandi id
qui. Est et dolore quodsi similique, ad sit alii docendi volutpat, quo
eius adhuc mentitum at. Nec affert debitis adversarium at, his sint
torquatos assueverit at, et virtute fabellas pri. Omnesque nominavi
reformidans ei vis, eu pro veritus commune convenire, nostrud epicurei
ullamcorper ne eam.
\clearpage % Manual page breaks will not be present in general
Paragraph text on a new page. Lorem ipsum dicam utroque aliquando mel ut,
ex sea odio repudiare. In regione diceret apeirian est, nemore laoreet
salutandi id qui. Est et dolore quodsi similique, ad sit alii docendi
volutpat, quo eius adhuc mentitum at. Nec affert debitis adversarium at,
his sint torquatos assueverit at, et virtute fabellas pri. Omnesque
nominavi reformidans ei vis, eu pro veritus commune convenire, nostrud
epicurei ullamcorper ne eam.
Second paragraph. Lorem ipsum dicam utroque aliquando mel ut, ex sea odio
repudiare. In regione diceret apeirian est, nemore laoreet salutandi id
qui. Est et dolore quodsi similique, ad sit alii docendi volutpat, quo
eius adhuc mentitum at. Nec affert debitis adversarium at, his sint
torquatos assueverit at, et virtute fabellas pri. Omnesque nominavi
reformidans ei vis, eu pro veritus commune convenire, nostrud epicurei
ullamcorper ne eam.
\end{document}
If there is documentation of these low level commands used while rendering the pages, it would be a great help if someone could point me to a resource.
I will surely post my solution when it's completed. Thank you.