summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/reledmac/reledmac.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/reledmac/reledmac.sty')
-rw-r--r--Master/texmf-dist/tex/latex/reledmac/reledmac.sty19
1 files changed, 12 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/reledmac/reledmac.sty b/Master/texmf-dist/tex/latex/reledmac/reledmac.sty
index 3b9ec62d8d3..90b7a28245a 100644
--- a/Master/texmf-dist/tex/latex/reledmac/reledmac.sty
+++ b/Master/texmf-dist/tex/latex/reledmac/reledmac.sty
@@ -1211,13 +1211,14 @@
\first@linenum@out@true
\newcommand{\this@line@list@version}{6}%
\newcommand*{\line@list@stuff}[1]{%
+ \global\newtoggle{notfirstrun@#1}%
\read@linelist{#1}%
-
\iffirst@linenum@out@
\immediate\closeout\linenum@out%
\global\first@linenum@out@false%
\immediate\openout\linenum@out=\l@auxdir#1\relax%
\immediate\write\linenum@out{\string\line@list@version{\this@line@list@version}}%
+ \immediate\write\linenum@out{\string\global\string\toggletrue{notfirstrun@#1}}%
\ifl@dpaging%
\immediate\write\linenum@out{\string\@par@sync@option{\@par@this@sync@option}}%
\fi%
@@ -1228,6 +1229,7 @@
\closeout\linenum@out%
\openout\linenum@out=\l@auxdir#1\relax%
\write\linenum@out{\string\line@list@version{\this@line@list@version}}%
+ \protected@write\linenum@out{}{\string\global\string\toggletrue{notfirstrun@#1}}%
\ifl@dpaging%
\write\linenum@out{\string\@par@sync@option{\@par@this@sync@option}}%
\fi%
@@ -2299,12 +2301,15 @@
\fi}
\newcommand*{\flush@notes}{%
- \@xloop
- \ifx\inserts@list\empty \else
- \gl@p\inserts@list\to\@insert
- \@insert
- \global\let\@insert=\undefined
- \repeat}
+ \iftoggle{notfirstrun@\jobname.\extensionchars\the\section@num}{%
+ \@xloop%
+ \ifx\inserts@list\empty \else%
+ \gl@p\inserts@list\to\@insert%
+ \@insert%
+ \global\let\@insert=\undefined%
+ \repeat%
+ }{}%
+}%
\def\@xloop#1\repeat{%
\def\body{#1\expandafter\body\fi}%