diff --git a/eledmac.dtx b/eledmac.dtx index 8a91c581..b5d1397c 100644 --- a/eledmac.dtx +++ b/eledmac.dtx @@ -6512,6 +6512,7 @@ % First, page number changes, which will generally be the most common % actions. If we're restarting lineation on each page, this is where it % happens. +% Calls also \cs{EledmacAtEveryPage@} % \begin{macrocode} \ifnum\next@action>-1001 \global\page@num=\next@action @@ -6519,6 +6520,7 @@ \global\line@num=\z@ \global\subline@num=\z@ \resetprevline@ \fi + \EledmacAtEveryPage@% % \end{macrocode} % % Next, we handle @@ -14902,6 +14904,14 @@ } % \end{macrocode} % \end{macro} +% \section{Miscelleanous} +% \begin{macro}{\EledmacAtEveryPage} +% \cs{EledmacAtEveryPage@} is a hook defined by \cs{EledmacAtEveryPage} and called in eledmac section at the begining of every page% +% \begin{macrocode} +\newcommand{\EledmacAtEveryPage}[1]{\xdef\EledmacAtEveryPage@{#1}}% +\xdef\EledmacAtEveryPage@{}% +% \end{macrocode} +% \end{macro} % \section{The End}\label{end} % % diff --git a/issue260.tex b/issue260.tex index acd544a0..31144e10 100644 --- a/issue260.tex +++ b/issue260.tex @@ -16,8 +16,9 @@ \begin{document} -\the\columnwidth -\the\textwidth +\makeatletter +\newcounter{TOTO} +\EledmacAtEveryPage{\addtocounter{TOTO}{1}\eledmac@warning{ss\theTOTO}} \newpage \beginnumbering