summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/reledmac
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-04-06 21:36:53 +0000
committerKarl Berry <karl@freefriends.org>2018-04-06 21:36:53 +0000
commitdf326f665e2cd0936dfe7a22533c4c518d2da959 (patch)
tree2dc8f7576b7fc0bd3e969c24c828e753a7867061 /Master/texmf-dist/source/latex/reledmac
parent024125896c5d1e6e8663b1c879a41afcc30d4b5c (diff)
reledmac (6apr18)
git-svn-id: svn://tug.org/texlive/trunk@47335 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/reledmac')
-rw-r--r--Master/texmf-dist/source/latex/reledmac/reledpar.dtx21
1 files changed, 17 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/reledmac/reledpar.dtx b/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
index 9990a9cdf4f..3b261f19620 100644
--- a/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
+++ b/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
@@ -327,7 +327,8 @@
% \changes{v2.21.2}{2018/01/08}{Fix bug with \protect\cs{Xpstart} and \protect\cs{edtextlater}}
% \changes{v2.21.3}{2018/01/18}{Fix bug when using \protect\cs{numberpstarttrue} and alterning between manual \protect\cs{pstart} and automatic \protect\cs{pstart} produced by \protect\cs{autopar}}
% \changes{v2.21.4}{2018/01/18}{Fix bug with using \protect\cs{eledsection} and related when alternate normal typesetting and parallel typesetting}
-% \changes{v2.21.5}{2018/01/18}{Compatibility with reledmac v.~2.26.6}
+% \changes{v2.21.5}{2018/02/28}{Compatibility with reledmac v.~2.26.6}
+% \changes{v2.21.6}{2018/04/06}{Fix page number in footnote and endnotes when using \protect\option{sameparallelpagenumber} option}
% ^^A PW added following as the definitions are at some unknown elsewhere
%
% \newcommand{\egstart}{%
@@ -1373,7 +1374,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{reledpar}[2018/02/28 v2.21.5 reledmac extension for parallel texts]%
+\ProvidesPackage{reledpar}[2018/04/06 v2.21.6 reledmac extension for parallel texts]%
% \end{macrocode}
% \subsection{Package's requirement}
@@ -2993,7 +2994,13 @@
% line-list file, to mark the start of a new text line.
% \begin{macrocode}
\newcommand*{\new@lineL}{%
- \write\linenum@out{\string\@nl[\the\c@page][\thepage]}}
+ \ifboolexpr{%
+ bool{sameparallelpagenumber}%
+ or bool{prevpgnotnumbered}%
+ }%
+ {\write\linenum@out{\string\@nl[\the\c@par@page][\thepar@page]}}%
+ {\write\linenum@out{\string\@nl[\the\c@page][\thepage]}}%
+}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\new@lineR}
@@ -3001,7 +3008,13 @@
% line-list file, to mark the start of a new text line.
% \begin{macrocode}
\newcommand*{\new@lineR}{%
- \write\linenum@outR{\string\@nl[\the\c@page][\thepage]}}
+ \ifboolexpr{%
+ bool{sameparallelpagenumber}%
+ or bool{prevpgnotnumbered}%
+ }%
+ {\write\linenum@outR{\string\@nl[\the\c@par@page][\thepar@page]}}%
+ {\write\linenum@outR{\string\@nl[\the\c@page][\thepage]}}%
+}%
% \end{macrocode}
% \end{macro}
%