[latex3-commits] [latex3/hyperref] develop: remove unneeded titlesec patch (2c0505c)
github at latex-project.org
github at latex-project.org
Sun Nov 26 17:45:51 CET 2023
Repository : https://github.com/latex3/hyperref
On branch : develop
Link : https://github.com/latex3/hyperref/commit/2c0505cc1246b44a91fa9f1de4b3155da76f7eba
>---------------------------------------------------------------
commit 2c0505cc1246b44a91fa9f1de4b3155da76f7eba
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sun Nov 26 17:45:51 2023 +0100
remove unneeded titlesec patch
>---------------------------------------------------------------
2c0505cc1246b44a91fa9f1de4b3155da76f7eba
ChangeLog.txt | 1 +
nameref.dtx | 21 +--------------------
2 files changed, 2 insertions(+), 20 deletions(-)
diff --git a/ChangeLog.txt b/ChangeLog.txt
index f30f9a8..9448377 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -2,6 +2,7 @@
* xr-hyper.sty: store URL/file name of external documents always to
* allow file links even without destinations.
* nameref.dtx remove unneeded memoir patch
+ * nameref.dtx remove unneeded titlesec patch
2023-11-14 Ulrike Fischer
* remove ltxcmds dependency in hluatex.dtx
diff --git a/nameref.dtx b/nameref.dtx
index 80e9e9e..7bbed77 100644
--- a/nameref.dtx
+++ b/nameref.dtx
@@ -112,14 +112,11 @@
%
% \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):
-% command to store the title added
% \end{itemize}
%
% All the patches excepted the last are disabled if the command
% \cs{NR at nopatch@sectioning} is defined (the actual definition is irrelevant, only
-% existence is tested. The titlesec patch is disabled if
-% \cs{NR at nopatch@titlesec} is defined.
+% existence is tested.
% This currently only suppress the actual patches, the counter,
% \cs{Sectionformat} and also the internal copies \cs{NR at sect} etc are still
% defined.
@@ -536,22 +533,6 @@
}
% \end{macrocode}
%
-% Compatibility for package titlesec.
-% \begin{macrocode}
-\AtBeginDocument{%
- \@ifpackageloaded{titlesec}{%
- \let\NRorg at ttl@sect at i\ttl at sect@i
- \@ifundefined{NR at nopatch@titlesec}
- {%
- \def\ttl at sect@i#1#2[#3]#4{%
- \NR at gettitle{#4}%
- \NRorg at ttl@sect at i{#1}{#2}[{#3}]{#4}%
- }%
- }{}%
- }{}%
-}
-% \end{macrocode}
-%
% \subsubsection{Theorems}
%
% \begin{macrocode}
More information about the latex3-commits
mailing list.