[latex3-commits] [latex3/hyperref] develop: remove unneeded memoir patch (b0b7984)
github at latex-project.org
github at latex-project.org
Sun Nov 26 17:43:11 CET 2023
Repository : https://github.com/latex3/hyperref
On branch : develop
Link : https://github.com/latex3/hyperref/commit/b0b79842af39564ba9edaca6fcdb11471d08e378
>---------------------------------------------------------------
commit b0b79842af39564ba9edaca6fcdb11471d08e378
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sun Nov 26 17:43:11 2023 +0100
remove unneeded memoir patch
>---------------------------------------------------------------
b0b79842af39564ba9edaca6fcdb11471d08e378
ChangeLog.txt | 3 ++-
nameref.dtx | 49 -------------------------------------------------
2 files changed, 2 insertions(+), 50 deletions(-)
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 366aeeb..f30f9a8 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,6 +1,7 @@
2023-11-26 Ulrike Fischer
* xr-hyper.sty: store URL/file name of external documents always to
- allow file links even without destinations.
+ * allow file links even without destinations.
+ * nameref.dtx remove unneeded memoir patch
2023-11-14 Ulrike Fischer
* remove ltxcmds dependency in hluatex.dtx
diff --git a/nameref.dtx b/nameref.dtx
index c26017c..80e9e9e 100644
--- a/nameref.dtx
+++ b/nameref.dtx
@@ -110,8 +110,6 @@
% \item \cs{@ssect}: command to store the title added,
% \cs{Sectionformat} is added.
%
-% \item \cs{M at sect} (memoir class): command to store the title added
-%
% \item \cs{@part}, \cs{@spart}, \cs{@chapter}, \cs{@schapter}:
% command to store the title added
% \item \cs{ttl at sect@i} (from the \textsf{titlesec} package):
@@ -462,27 +460,6 @@
% \end{macrocode}
% \end{macro}
%
-% Support for class memoir.
-%
-% \begin{macrocode}
-\@ifundefined{NR at nopatch@sectioning}
- {\@ifundefined{ifheadnameref}{%
- }{%
- \@ifundefined{M at sect}{%
- }{%
- \let\NRorg at M@sect\M at sect
- \def\M at sect#1#2#3#4#5#6[#7][#8]{%
- \ifheadnameref
- \NR at gettitle{#8}%
- \else
- \NR at gettitle{#7}%
- \fi
- \NRorg at M@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}][{#8}]%
- }%
- }%
- }}{}
-% \end{macrocode}
-%
% Parts and chapters are treated differently. sigh.
% \cs{@part} and \cs{@spart} are \cs{long} because of class memoir.
%
@@ -505,32 +482,6 @@
\NR at gettitle{#1}%
\NR at chapter[{#1}]{#2}%
}
- \@ifclassloaded{memoir}{%
- \@ifundefined{ifheadnameref}{%
- }{%
- \def\@chapter[#1]#2{%
- \@ifundefined{ch at pt@c}{%
- \NR at gettitle{#1}%
- }{%
- \ifx\ch at pt@c\@empty
- \NR at gettitle{#2}%
- \else
- \def\NR at temp{#1}%
- \ifx\NR at temp\@empty
- \expandafter\NR at gettitle\expandafter{\ch at pt@c}%
- \else
- \ifheadnameref
- \NR at gettitle{#1}%
- \else
- \expandafter\NR at gettitle\expandafter{\ch at pt@c}%
- \fi
- \fi
- \fi
- }%
- \NR at chapter[{#1}]{#2}%
- }%
- }%
- }{}
\def\@schapter#1{%
\NR at gettitle{#1}%
\NR at schapter{#1}%
More information about the latex3-commits
mailing list.