From 3593305133bcfb167225af1b35c299bde1456579 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Tue, 15 Aug 2023 03:00:53 +0000
Subject: CTAN sync 202308150300

---
 macros/latex/contrib/reledmac/reledmac.dtx | 23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

(limited to 'macros/latex/contrib/reledmac/reledmac.dtx')

diff --git a/macros/latex/contrib/reledmac/reledmac.dtx b/macros/latex/contrib/reledmac/reledmac.dtx
index 938d323c0f..111de50ddd 100644
--- a/macros/latex/contrib/reledmac/reledmac.dtx
+++ b/macros/latex/contrib/reledmac/reledmac.dtx
@@ -597,6 +597,7 @@
 % \changes{v2.39.3}{2023/07/08}{Fix bug with \protect\cs{edlabel} after tabular environment (added by v2.39.2).}
 % \changes{v2.39.4}{2023/07/20}{Fix bug with hyperlink when using \protect\cs{footnoteXmark} and \protect\cs{footnoteXtext}.}
 % \changes{v2.39.5}{2023/07/21}{The fix in v2.39.4 did'nt work well in tabular environment.}
+% \changes{v2.39.6}{2023/08/14}{Fix compatibility with memoir v3.8.}
 %      Typeset scholarly editions with \LaTeX\thanks{This file (\dtxfilename)
 % has version number \fileversion, last revised \filedate.}}
 %
@@ -4509,7 +4510,7 @@
 %    \begin{macrocode}
 %<*code>
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{reledmac}[2023/07/21 v2.39.5 typesetting critical editions]%
+\ProvidesPackage{reledmac}[2023/08/15 v2.39.6 typesetting critical editions]%
 %    \end{macrocode}
 %
 % \subsection{Package options}
@@ -5165,6 +5166,13 @@
 }%
 %    \end{macrocode}
 % \end{macro}
+% \begin{macro}{\led@error@fail@patch@mempnum}
+%    \begin{macrocode}
+\newcommand{\led@error@fail@patch@mempnum}{%
+  \reledmac@error{Fail to patch \string\@mempnum\space command}{\@ehc}%
+}%
+%    \end{macrocode}
+% \end{macro}
 % \begin{macro}{\led@warn@edinde@outsidenumbering}
 %    \begin{macrocode}
 \newcommand{\led@warn@edinde@outsidenumbering}{%
@@ -16658,18 +16666,21 @@
   \par@patch@thepage%
 }%
 
-\ifl@dmemoir%
+\ifboolexpr{%
+  bool {l@dmemoir}%
+  and test {\ifdef{\@mempnum}}%Only with memoir < 3.8
+}{%
   \apptocmd{\@mempnum}%
     {\par@patch@pagenumbering}%
     {}%%
-    {\led@error@fail@patch@@mempnum}%
-
-\else%
+    {\led@error@fail@patch@mempnum}%
+  }%
+  {%
   \apptocmd{\pagenumbering}%
     {\par@patch@pagenumbering}%
     {}%
     {\led@error@fail@patch@pagenumbering}%
-\fi%
+  }%
 
 \AtBeginDocument{\par@patch@thepage}%
 %    \end{macrocode}
-- 
cgit v1.2.3

