Skip to content

Commit

Permalink
\EledmacAtEveryPage
Browse files Browse the repository at this point in the history
  • Loading branch information
maieul committed Mar 22, 2015
1 parent 8a2a735 commit 6b6a6d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions eledmac.dtx
Expand Up @@ -6512,13 +6512,15 @@
% 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
\ifbypage@
\global\line@num=\z@ \global\subline@num=\z@
\resetprevline@
\fi
\EledmacAtEveryPage@%
% \end{macrocode}
%
% Next, we handle
Expand Down Expand Up @@ -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}
%
%
Expand Down
5 changes: 3 additions & 2 deletions issue260.tex
Expand Up @@ -16,8 +16,9 @@


\begin{document}
\the\columnwidth
\the\textwidth
\makeatletter
\newcounter{TOTO}
\EledmacAtEveryPage{\addtocounter{TOTO}{1}\eledmac@warning{ss\theTOTO}}

\newpage
\beginnumbering
Expand Down

0 comments on commit 6b6a6d9

Please sign in to comment.