From 89ca7ced47afa7482445dfbb4fda99f93d1ce4b4 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 31 Jul 2017 21:08:57 +0000
Subject: reledmac (31jul17)

git-svn-id: svn://tug.org/texlive/trunk@44929 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/source/latex/reledmac/reledpar.dtx | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'Master/texmf-dist/source/latex/reledmac/reledpar.dtx')

diff --git a/Master/texmf-dist/source/latex/reledmac/reledpar.dtx b/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
index fb8284ee46e..1eb7cd45361 100644
--- a/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
+++ b/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
@@ -309,6 +309,7 @@
 % \changes{v2.19.2}{2017/07/07}{\protect\option{continuousnumberingwithcolumns} works also for pstart number.}
 % \changes{v2.19.3}{2017/07/17}{Fix a bug with \protect\option{nopbinverse} when using consecutive \protect\cs{Pages}.}
 % \changes{v2.19.3}{2017/07/17}{Do not print footnotes at the first run.}
+% \changes{v2.19.4}{2017/07/31}{Optimisation of the code to not print footnotes at the first run.}
 % ^^A PW added following as the definitions are at some unknown elsewhere
 %
 % \newcommand{\egstart}{%
@@ -1286,7 +1287,7 @@
 %    \begin{macrocode}
 %<*code>
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{reledpar}[2017/07/07 v2.19.2 reledmac extension for parallel texts]%
+\ProvidesPackage{reledpar}[2017/07/07 v2.19.4 reledmac extension for parallel texts]%
 
 %    \end{macrocode}
 % \subsection{Package's requirement}
@@ -2807,13 +2808,15 @@
 %    \begin{macrocode}
 \newcommand*{\line@list@stuffR}[1]{%
   \global\newtoggle{notfirstrun@#1}%
+  \IfFileExists{\l@auxdir#1}%
+    {\global\toggletrue{notfirstrun@#1}}%
+    {\global\togglefalse{notfirstrun@#1}}%
   \read@linelist{#1}%
   \iffirst@linenum@out@R
      \immediate\closeout\linenum@outR
      \global\first@linenum@out@Rfalse
      \immediate\openout\linenum@outR=\l@auxdir#1%
      \immediate\write\linenum@outR{\string\line@list@version{\this@line@list@version}}%     
-     \immediate\write\linenum@outR{\string\global\string\toggletrue{notfirstrun@#1}}%    
      \ifl@dpaging%
        \immediate\write\linenum@outR{\string\@par@sync@option{\@par@this@sync@option}}%
      \fi%
@@ -2823,7 +2826,6 @@
      \fi%
      \closeout\linenum@outR%
      \openout\linenum@outR=\l@auxdir#1%
-     \protected@write\linenum@outR{}{\string\global\string\toggletrue{notfirstrun@#1}}%
   \fi}
 
 %    \end{macrocode}
-- 
cgit v1.2.3

