[latex3-commits] [git/LaTeX3-latex3-latex3] pdf_destination: Fix PDF /FitR destinations for dvips/dvipdfmx (99a4d4130)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Jan 28 15:28:15 CET 2021


Repository : https://github.com/latex3/latex3
On branch  : pdf_destination
Link       : https://github.com/latex3/latex3/commit/99a4d413004c1872d2bb2f961d7b91866cfb6721

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

commit 99a4d413004c1872d2bb2f961d7b91866cfb6721
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Jan 28 14:28:15 2021 +0000

    Fix PDF /FitR destinations for dvips/dvipdfmx


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

99a4d413004c1872d2bb2f961d7b91866cfb6721
 l3backend/l3backend-pdf.dtx | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/l3backend/l3backend-pdf.dtx b/l3backend/l3backend-pdf.dtx
index a4ca6de2d..5e4aa4888 100644
--- a/l3backend/l3backend-pdf.dtx
+++ b/l3backend/l3backend-pdf.dtx
@@ -656,13 +656,17 @@
   }
 \cs_new_protected:Npn \@@_backend_destination_aux:nnnn #1#2#3#4
   {
-    \box_move_down:nn
-      {#4}
-      { \hbox:n { \__kernel_backend_postscript:n { pdf.save.ll } } }
+    \vbox_to_zero:n
+      {
+        \tex_kern:D \dim_eval:n { -#4 } \scan_stop:
+        \hbox:n { \__kernel_backend_postscript:n { pdf.save.ll } }
+      }
     \tex_kern:D #1 \scan_stop:
-    \box_move_up:nn
-      {#3}
-      { \hbox:n { \__kernel_backend_postscript:n { pdf.save.ur } } }
+    \vbox_to_zero:n
+      {
+        \tex_kern:D \dim_eval:n { #3 } \scan_stop:
+        \hbox:n { \__kernel_backend_postscript:n { pdf.save.ur } }
+      }
     \tex_kern:D -#1 \scan_stop:
     \@@_backend_pdfmark:n
       {
@@ -1515,8 +1519,9 @@
   }
 \cs_new_protected:Npn \@@_backend_destination_aux:nnnn #1#2#3#4
   {
-    \box_move_down:nn {#3}
+    \vbox_to_zero:n
       {
+        \tex_kern:D \dim_eval:n { -#4 } \scan_stop:
         \hbox:n
           {
             \@@_backend:n { obj ~ @pdf_ #2 _llx ~ @xpos }
@@ -1524,8 +1529,9 @@
           }
       }
     \tex_kern:D #1 \scan_stop:
-    \box_move_up:nn {#4}
+    \vbox_to_zero:n
       {
+        \tex_kern:D \dim_eval:n { #3 } \scan_stop:
         \hbox:n
           {
             \@@_backend:n





More information about the latex3-commits mailing list.