[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: use legacy_if_set where possible (419b43d)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Jul 9 00:27:17 CEST 2022


Repository : https://github.com/latex3/pdfresources
On branch  : develop
Link       : https://github.com/latex3/pdfresources/commit/419b43dee6ab3a2734f8dbbc5ff78d8f313952a7

>---------------------------------------------------------------

commit 419b43dee6ab3a2734f8dbbc5ff78d8f313952a7
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Jul 9 00:27:17 2022 +0200

    use legacy_if_set where possible


>---------------------------------------------------------------

419b43dee6ab3a2734f8dbbc5ff78d8f313952a7
 hyperref-generic.dtx | 37 ++++++++-----------------------------
 1 file changed, 8 insertions(+), 29 deletions(-)

diff --git a/hyperref-generic.dtx b/hyperref-generic.dtx
index c0075f1..3986c08 100644
--- a/hyperref-generic.dtx
+++ b/hyperref-generic.dtx
@@ -560,7 +560,7 @@
 %  \item |backref|
 %  \item |CJKbookmarks| this key should not be used anymore. At some time
 %  it will be removed.
-%  \item |destlabels|    (destination names are taken from \cs{label} if possible)
+%  \item |destlabel|    (destination names are taken from \cs{label} if possible)
 %  \item |encap|
 %  \item |hyperfigures|  (according to the \pkg{hyperref} manual
 %  it makes figures hyper links, but actually is a no-op for most drivers, and it
@@ -3120,27 +3120,12 @@
  {
    ,extension .tl_set:N = \XR at ext
    ,extension .initial:n= pdf
-   ,hypertexnames .choice:
-   ,hypertexnames / true  .code:n = { \Hy at hypertexnamestrue}
-   ,hypertexnames / false .code:n = { \Hy at hypertexnamesfalse}
-   ,hypertexnames .default:n = {true}
+   ,hypertexnames .legacy_if_set:n = {Hy at hypertexnames}
    ,linkfileprefix .tl_set:N  = \Hy at linkfileprefix
-   ,localanchorname .choice:
-   ,localanchorname / true  .code:n = { \Hy at localanchornametrue }
-   ,localanchorname / false .code:n = { \Hy at localanchornamefalse }
-   ,localanchorname .default:n = {true}
-   ,naturalnames .choice:
-   ,naturalnames / true  .code:n = { \Hy at naturalnamestrue}
-   ,naturalnames / false .code:n = { \Hy at naturalnamesfalse}
-   ,naturalnames .default:n = {true}
-   ,pageanchor .choice:
-   ,pageanchor / true  .code:n = { \Hy at pageanchortrue}
-   ,pageanchor / false .code:n = { \Hy at pageanchorfalse}
-   ,pageanchor .default:n = {true}
-   ,plainpages .choice:
-   ,plainpages / true  .code:n = { \Hy at plainpagestrue}
-   ,plainpages / false .code:n = { \Hy at plainpagesfalse}
-   ,plainpages .default:n = {true}
+   ,localanchorname .legacy_if_set:n = {Hy at localanchorname}
+   ,naturalnames .legacy_if_set:n = {Hy at naturalnames}
+   ,pageanchor .legacy_if_set:n = {Hy at pageanchor}
+   ,plainpages .legacy_if_set:n = {Hy at plainpages}
  }
 
 \keys_define:nn { hyp / setup }
@@ -3196,14 +3181,8 @@
    ,bookmarks / false .code:n = {\RemoveFromHook {begindocument/before}[hyperref/bookmark]}
    ,bookmarks / true .code:n = {}
    ,bookmarks .default:n = {true}
-   ,bookmarksnumbered .choice:
-   ,bookmarksnumbered / false .code:n = { \Hy at bookmarksnumberedfalse }
-   ,bookmarksnumbered / true .code:n  = { \Hy at bookmarksnumberedtrue }
-   ,bookmarksnumbered .default:n      = {true}
-   ,bookmarksopen .choice:
-   ,bookmarksopen / false .code:n = { \Hy at bookmarksopenfalse }
-   ,bookmarksopen / true .code:n  = { \Hy at bookmarksopentrue }
-   ,bookmarksopen .default:n      = {true}
+   ,bookmarksnumbered .legacy_if_set:n  = {Hy at bookmarksnumbered}
+   ,bookmarksopen .legacy_if_set:n = {Hy at bookmarksopen}
    ,bookmarksopenlevel .tl_set:N = \@bookmarksopenlevel
    ,bookmarkstype .tl_set:N = \Hy at bookmarkstype
    ,pdfcenterwindow    .choice:





More information about the latex3-commits mailing list.