[latex3-commits] [git/LaTeX3-latex3-latex3] master: Drop unneeded XeTeX 'adjustment' (0db27bcf8)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Mar 1 13:05:55 CET 2021


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/0db27bcf875d134531aff46fe601361400f83286

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

commit 0db27bcf875d134531aff46fe601361400f83286
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Mar 1 12:05:55 2021 +0000

    Drop unneeded XeTeX 'adjustment'


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

0db27bcf875d134531aff46fe601361400f83286
 l3backend/CHANGELOG.md                 |  3 +++
 l3backend/l3backend-pdf.dtx            | 33 +--------------------------------
 l3kernel/testfiles/m3expl001.xetex.tlg |  2 --
 l3kernel/testfiles/m3expl003.xetex.tlg |  2 --
 4 files changed, 4 insertions(+), 36 deletions(-)

diff --git a/l3backend/CHANGELOG.md b/l3backend/CHANGELOG.md
index f787acd70..bce23163b 100644
--- a/l3backend/CHANGELOG.md
+++ b/l3backend/CHANGELOG.md
@@ -6,6 +6,9 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Changed
+- Drop 'correction' for link placement in `(x)dvidpfmx`: no longer required
+
 ## [2021-02-18]
 
 ### Changed
diff --git a/l3backend/l3backend-pdf.dtx b/l3backend/l3backend-pdf.dtx
index ad2b0d517..4fa884d38 100644
--- a/l3backend/l3backend-pdf.dtx
+++ b/l3backend/l3backend-pdf.dtx
@@ -1352,21 +1352,6 @@
 %
 % \subsubsection{Annotations}
 %
-% \begin{variable}{\g_@@_landscape_bool}
-%   There is a bug in \texttt{dvipdfmx}/\XeTeX{} which means annotations do
-%   not rotate. As such, we need to know if landscape is active.
-%    \begin{macrocode}
-\bool_new:N \g_@@_landscape_bool
-\cs_if_exist:NT \landscape
-  {
-    \tl_put_right:Nn \landscape
-      { \bool_gset_true:N \g_@@_landscape_bool }
-    \tl_put_left:Nn \endlandscape
-      { \bool_gset_false:N \g_@@_landscape_bool }
-  }
-%    \end{macrocode}
-% \end{variable}
-%
 % \begin{variable}{\g_@@_backend_annotation_int}
 %   Needed as objects which are not annotations could be created.
 %    \begin{macrocode}
@@ -1374,26 +1359,10 @@
 %    \end{macrocode}
 % \end{variable}
 %
-% \begin{macro}{\@@_backend_annotation:nnnn, \@@_backend_annotation_aux:nnnn}
+% \begin{macro}{\@@_backend_annotation:nnnn}
 %   Simply pass the raw data through, just dealing with evaluation of dimensions.
-%   The only wrinkle is landscape: we have to adjust by hand.
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_backend_annotation:nnnn #1#2#3#4
-  {
-    \bool_if:NTF \g_@@_landscape_bool
-      {
-         \box_move_up:nn {#2}
-           {
-             \vbox:n
-               {
-                 \@@_backend_annotation_aux:nnnn
-                   { #2 + #3 } {#1} { 0pt } {#4}
-               }
-           }
-      }
-      { \@@_backend_annotation_aux:nnnn {#1} {#2} {#3} {#4} }
-  }
-\cs_new_protected:Npn \@@_backend_annotation_aux:nnnn #1#2#3#4
   {
     \int_gincr:N \g_@@_backend_object_int
     \int_gset_eq:NN \g_@@_backend_annotation_int \g_@@_backend_object_int
diff --git a/l3kernel/testfiles/m3expl001.xetex.tlg b/l3kernel/testfiles/m3expl001.xetex.tlg
index 6ec114b90..5e132f1ba 100644
--- a/l3kernel/testfiles/m3expl001.xetex.tlg
+++ b/l3kernel/testfiles/m3expl001.xetex.tlg
@@ -147,11 +147,9 @@ Defining \__pdf_backend_object_now:nn on line ...
 Defining \__pdf_backend_object_now:nx on line ...
 Defining \__pdf_backend_object_last: on line ...
 Defining \__pdf_backend_pageobject_ref:n on line ...
-Defining \g__pdf_landscape_bool on line ...
 Defining \g__pdf_backend_annotation_int on line ...
 \g__pdf_backend_annotation_int=\count...
 Defining \__pdf_backend_annotation:nnnn on line ...
-Defining \__pdf_backend_annotation_aux:nnnn on line ...
 Defining \__pdf_backend_annotation_last: on line ...
 Defining \g__pdf_backend_link_int on line ...
 \g__pdf_backend_link_int=\count...
diff --git a/l3kernel/testfiles/m3expl003.xetex.tlg b/l3kernel/testfiles/m3expl003.xetex.tlg
index 6ec114b90..5e132f1ba 100644
--- a/l3kernel/testfiles/m3expl003.xetex.tlg
+++ b/l3kernel/testfiles/m3expl003.xetex.tlg
@@ -147,11 +147,9 @@ Defining \__pdf_backend_object_now:nn on line ...
 Defining \__pdf_backend_object_now:nx on line ...
 Defining \__pdf_backend_object_last: on line ...
 Defining \__pdf_backend_pageobject_ref:n on line ...
-Defining \g__pdf_landscape_bool on line ...
 Defining \g__pdf_backend_annotation_int on line ...
 \g__pdf_backend_annotation_int=\count...
 Defining \__pdf_backend_annotation:nnnn on line ...
-Defining \__pdf_backend_annotation_aux:nnnn on line ...
 Defining \__pdf_backend_annotation_last: on line ...
 Defining \g__pdf_backend_link_int on line ...
 \g__pdf_backend_link_int=\count...





More information about the latex3-commits mailing list.