[latex3-commits] [git/LaTeX3-latex3-pdfresources] testlinkstuff: for listings test (bc2876f)

Ulrike Fischer fischer at troubleshooting-tex.de
Fri May 3 16:14:15 CEST 2019


Repository : https://github.com/latex3/pdfresources
On branch  : testlinkstuff
Link       : https://github.com/latex3/pdfresources/commit/bc2876f1e609947777d253558471c5cc0e2858a5

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

commit bc2876f1e609947777d253558471c5cc0e2858a5
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri May 3 16:14:15 2019 +0200

    for listings test


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

bc2876f1e609947777d253558471c5cc0e2858a5
 hluatex-experimental.def |    1 +
 pdfresources.dtx         |   11 ++++++-----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/hluatex-experimental.def b/hluatex-experimental.def
index b0c667a..765dd49 100644
--- a/hluatex-experimental.def
+++ b/hluatex-experimental.def
@@ -426,6 +426,7 @@
 
 
 \providecommand*\@pdfview{XYZ}
+
 \Hy at WrapperDef\new at pdflink#1{%
   \ifhmode
     \@savsf\spacefactor
diff --git a/pdfresources.dtx b/pdfresources.dtx
index ba60a4f..f4fa14d 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -533,9 +533,9 @@
 %</package>
 %    \end{macrocode}
 % \subsection{Destinations}
-% The driver command expects a lower case argument. As the listings package doesn't
-% like a \cs{str_lower_case:n} and also to be able to check the argument we put
-% allowed values in a property.
+% The command expects a lower case argument, it is up to the package to
+% ensure this.
+%
 %    \begin{macrocode}
 %<*package>
 % perhaps some manipulation of the argument will be needed to map the current
@@ -557,12 +557,13 @@
 \prop_put:Nnn \l_@@_views_map_prop {FitV} { fitv }
 \prop_put:Nnn \l_@@_views_map_prop {fitv} { fitv }
 
-
+\cs_generate_variant:Nn \driver_pdf_destination:nn {nx}
 \cs_new_protected:Npn \pdf_destination:nn #1 #2
  {
   \prop_if_in:NnTF \l_@@_views_map_prop { #2 }
    {
-    \exp_args:Nnx\driver_pdf_destination:nn {#1}{\prop_item:Nn\l_@@_views_map_prop{#2}}
+    %\exp_args:Nnx\driver_pdf_destination:nn {#1}{\prop_item:Nn\l_@@_views_map_prop{#2}}
+    \driver_pdf_destination:nx { #1 } { \str_lower_case:n { #2 } }
    }
    {
     % should we assume that it is a zoom value then??





More information about the latex3-commits mailing list