[latex3-commits] [git/LaTeX3-latex3-pdfresources] reworking-annot: new destination definition (4520ab7)
Ulrike Fischer
fischer at troubleshooting-tex.de
Sun Jan 17 23:52:09 CET 2021
Repository : https://github.com/latex3/pdfresources
On branch : reworking-annot
Link : https://github.com/latex3/pdfresources/commit/4520ab7518c82a12e8f6474b2429afc53e354ff9
>---------------------------------------------------------------
commit 4520ab7518c82a12e8f6474b2429afc53e354ff9
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sun Jan 17 23:52:09 2021 +0100
new destination definition
>---------------------------------------------------------------
4520ab7518c82a12e8f6474b2429afc53e354ff9
l3pdfutils.dtx | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/l3pdfutils.dtx b/l3pdfutils.dtx
index 0fe7706..c5b5baf 100644
--- a/l3pdfutils.dtx
+++ b/l3pdfutils.dtx
@@ -231,10 +231,22 @@
{
\@@_backend_destination:nn {#1}{#2}
}
-
- \cs_new_protected:Npn \pdf_destination_box:nn #1 #2 %#1 name, #2 box content
+ \box_new:N \l_@@_tmpa_box
+ \box_new:N \l_@@_tmpb_box
+ \cs_new_protected:Npn \pdf_destination:nnnn #1 #2 #3 #4
{
- \@@_backend_destination_box:nn { #1 }{ #2 } %new name!!
+ \hbox_set_to_wd:Nnn \l_@@_tmpa_box {#2} {}
+ \box_set_ht:Nn \l_@@_tmpa_box {#3}
+ \box_set_dp:Nn \l_@@_tmpa_box {#4}
+ \hbox_set_to_wd:Nnn \l_@@_tmpb_box {0pt}
+ {
+ \@@_backend_destination_box:nn
+ { #1 }
+ { \box_use:N \l_@@_tmpa_box }
+ }
+ \box_set_dp:Nn \l_@@_tmpb_box {0pt}
+ \box_set_ht:Nn \l_@@_tmpb_box {0pt}
+ \box_use:N\l_@@_tmpb_box
}
}
\cs_generate_variant:Nn\pdf_destination:nn {no,nf}
More information about the latex3-commits
mailing list.