summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/reledmac/reledpar.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-07-05 03:01:54 +0000
committerNorbert Preining <norbert@preining.info>2023-07-05 03:01:54 +0000
commit973c785dccc1812d63162178e8362e83e8c263c2 (patch)
treeb2cb12a6b36a0a59e90f1611d32cf7e8d125d575 /macros/latex/contrib/reledmac/reledpar.dtx
parentab7f5e4df027c13f5aef4fbdb032184cf2f3d5c3 (diff)
CTAN sync 202307050301
Diffstat (limited to 'macros/latex/contrib/reledmac/reledpar.dtx')
-rw-r--r--macros/latex/contrib/reledmac/reledpar.dtx9
1 files changed, 5 insertions, 4 deletions
diff --git a/macros/latex/contrib/reledmac/reledpar.dtx b/macros/latex/contrib/reledmac/reledpar.dtx
index b2f8fb7d88..081ba44c16 100644
--- a/macros/latex/contrib/reledmac/reledpar.dtx
+++ b/macros/latex/contrib/reledmac/reledpar.dtx
@@ -351,6 +351,7 @@
% \changes{v2.25.1}{2021/01/21}{\protect\cs{ifsublines@R} migrated to \protect\macpackage}
% \changes{v2.25.2}{2021/09/27}{Fix incompatibility with \protect\package{babel} v3.61}
% \changes{v2.25.3}{2022/04/22}{Fix incompatibility with \protect\package{polyglossia} v1.55}
+% \changes{v2.25.4}{2023/07/04}{Fix bug with \protect\cs{linenumOnlyPagesForColumnsR} and multiple numbered sections}
% ^^A PW added following as the definitions are at some unknown elsewhere
%
% \newcommand{\egstart}{%
@@ -1407,7 +1408,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{reledpar}[2022/04/22 v2.25.3 reledmac extension for parallel texts]%
+\ProvidesPackage{reledpar}[2023/07/04 v2.25.4 reledmac extension for parallel texts]%
% \end{macrocode}
% \subsection{Package's requirement}
@@ -4657,17 +4658,17 @@
{\@l@dtempcntb=\line@margin@columnsR}%
{\@l@dtempcntb=\line@marginR}%
\ifnum\@l@dtempcntb>\@ne
- \advance\@l@dtempcntb by\page@numR
+ \advance\@l@dtempcntb by \numexpr\csuse{@page@forlineR@\the\section@numR @\the\absline@numR}+0\relax%
\fi
\ifboolexpr{%
bool {l@dprintingcolumns}%
and (%
(test {\ifdefstring{\linenum@OnlyPages@ForColumnsR}{left}}%
- and test {\ifnumodd{\page@numR}}%
+ and test {\ifnumodd{\csuse{@page@forlineR@\the\section@numR @\the\absline@numR}+0}}%
)%
or%
(test {\ifdefstring{\linenum@OnlyPages@ForColumnsR}{right}}%
- and not test {\ifnumodd{\page@numR}}%
+ and not test {\ifnumodd{\csuse{@page@forlineR@\the\section@numR @\the\absline@numR}+0}}%
)%
)%
}%