texlive[58067] branches/branch2020.0/Master/texmf-dist: l3backend

commits+karl at tug.org commits+karl at tug.org
Tue Mar 2 22:57:17 CET 2021


Revision: 58067
          http://tug.org/svn/texlive?view=revision&revision=58067
Author:   karl
Date:     2021-03-02 22:57:17 +0100 (Tue, 02 Mar 2021)
Log Message:
-----------
l3backend (2mar21) (branch)

Modified Paths:
--------------
    branches/branch2020.0/Master/texmf-dist/doc/latex/l3backend/CHANGELOG.md
    branches/branch2020.0/Master/texmf-dist/doc/latex/l3backend/README.md
    branches/branch2020.0/Master/texmf-dist/doc/latex/l3backend/l3backend-code.pdf
    branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-basics.dtx
    branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-box.dtx
    branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-color.dtx
    branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-draw.dtx
    branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-graphics.dtx
    branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-header.dtx
    branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-opacity.dtx
    branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-pdf.dtx
    branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend.ins
    branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-dvipdfmx.def
    branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def
    branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def
    branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def
    branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
    branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-xetex.def

Modified: branches/branch2020.0/Master/texmf-dist/doc/latex/l3backend/CHANGELOG.md
===================================================================
--- branches/branch2020.0/Master/texmf-dist/doc/latex/l3backend/CHANGELOG.md	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/doc/latex/l3backend/CHANGELOG.md	2021-03-02 21:57:17 UTC (rev 58067)
@@ -6,6 +6,15 @@
 
 ## [Unreleased]
 
+## [2021-03-02]
+
+### Changed
+- Drop 'correction' for link placement in `(x)dvidpfmx`: no longer required
+- Define `\main at pdfcolorstack` for `(x)dvipdfmx` if it does not exist
+
+### Fixed
+- Initialisation of color stacks for `(x)dvipdfmx`
+
 ## [2021-02-18]
 
 ### Changed
@@ -159,7 +168,8 @@
 - Include `l3backend` in file names
 - Moved backend code to internal for each 'parent' module
 
-[Unreleased]: https://github.com/latex3/latex3/compare/2021-02-18...HEAD
+[Unreleased]: https://github.com/latex3/latex3/compare/2021-03-02...HEAD
+[2021-03-02]: https://github.com/latex3/latex3/compare/2021-02-18...2021-03-02
 [2021-02-18]: https://github.com/latex3/latex3/compare/2021-02-06...2021-02-18
 [2021-02-06]: https://github.com/latex3/latex3/compare/2021-01-29...2021-02-06
 [2021-01-29]: https://github.com/latex3/latex3/compare/2021-01-09...2021-01-29

Modified: branches/branch2020.0/Master/texmf-dist/doc/latex/l3backend/README.md
===================================================================
--- branches/branch2020.0/Master/texmf-dist/doc/latex/l3backend/README.md	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/doc/latex/l3backend/README.md	2021-03-02 21:57:17 UTC (rev 58067)
@@ -1,7 +1,7 @@
 LaTeX3 Backend Drivers
 ======================
 
-Release 2021-02-18
+Release 2021-03-02
 
 This package forms parts of `expl3`, and contains the code used to interface
 with backends (drivers) across the `expl3` codebase. The functions here are

Modified: branches/branch2020.0/Master/texmf-dist/doc/latex/l3backend/l3backend-code.pdf
===================================================================
(Binary files differ)

Modified: branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-basics.dtx
===================================================================
--- branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-basics.dtx	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-basics.dtx	2021-03-02 21:57:17 UTC (rev 58067)
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2021-02-18}
+% \date{Released 2021-03-02}
 %
 % \maketitle
 %
@@ -70,27 +70,27 @@
 %    \begin{macrocode}
 \ProvidesExplFile
 %<*dvipdfmx>
-  {l3backend-dvipdfmx.def}{2021-02-18}{}
+  {l3backend-dvipdfmx.def}{2021-03-02}{}
   {L3 backend support: dvipdfmx}
 %</dvipdfmx>
 %<*dvips>
-  {l3backend-dvips.def}{2021-02-18}{}
+  {l3backend-dvips.def}{2021-03-02}{}
   {L3 backend support: dvips}
 %</dvips>
 %<*dvisvgm>
-  {l3backend-dvisvgm.def}{2021-02-18}{}
+  {l3backend-dvisvgm.def}{2021-03-02}{}
   {L3 backend support: dvisvgm}
 %</dvisvgm>
 %<*luatex>
-  {l3backend-luatex.def}{2021-02-18}{}
+  {l3backend-luatex.def}{2021-03-02}{}
   {L3 backend support: PDF output (LuaTeX)}
 %</luatex>
 %<*pdftex>
-  {l3backend-pdftex.def}{2021-02-18}{}
+  {l3backend-pdftex.def}{2021-03-02}{}
   {L3 backend support: PDF output (pdfTeX)}
 %</pdftex>
 %<*xetex>
-  {l3backend-xetex.def}{2021-02-18}{}
+  {l3backend-xetex.def}{2021-03-02}{}
   {L3 backend support: XeTeX}
 %</xetex>
 %    \end{macrocode}

Modified: branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-box.dtx
===================================================================
--- branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-box.dtx	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-box.dtx	2021-03-02 21:57:17 UTC (rev 58067)
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2021-02-18}
+% \date{Released 2021-03-02}
 %
 % \maketitle
 %

Modified: branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-color.dtx
===================================================================
--- branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-color.dtx	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-color.dtx	2021-03-02 21:57:17 UTC (rev 58067)
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2021-02-18}
+% \date{Released 2021-03-02}
 %
 % \maketitle
 %
@@ -211,17 +211,20 @@
       {
         \int_gincr:N \exp_not:N \g_@@_backend_stack_int
         \int_const:Nn #1 { \exp_not:N \g_@@_backend_stack_int }
-        \cs_if_exist:NTF \AtBeginDvi
-          { \exp_not:N \AtBeginDvi }
-          { \exp_not:N \use:n }
+        \use:x
           {
-            \__kernel_backend_literal:x
+            \cs_if_exist:NTF \AtBeginDvi
+              { \exp_not:N \AtBeginDvi }
+              { \exp_not:N \use:n }
               {
-                pdfcolorstackinit ~
-                \exp_not:N \int_use:N \exp_not:N \g_@@_backend_stack_int
-                \c_space_tl
-                \exp_not:N \tl_if_blank:nF {#2} { #2 ~ }
-                (#3)
+                \__kernel_backend_literal:n
+                  {
+                    pdfcolorstackinit ~
+                    \exp_not:N \int_use:N \exp_not:N \g_@@_backend_stack_int
+                    \c_space_tl
+                    \exp_not:N \tl_if_blank:nF {#2} { #2 ~ }
+                    (#3)
+                  }
               }
           }
       }
@@ -235,6 +238,7 @@
           { page ~ direct } { 0 ~ g ~ 0 ~ G }
         \int_set_eq:NN \l_@@_backend_stack_int
           \c_@@_backend_main_stack_int
+        \int_const:cn { main at pdfcolorstack } { \c_@@_backend_main_stack_int }
       }
   }
 %    \end{macrocode}
@@ -768,7 +772,6 @@
 %    \end{macrocode}
 %
 % \begin{macro}{\@@_backend_select_separation:nn, \@@_backend_select_devicen:nn}
-% \begin{macro}{\@@_backend_select:n}
 %   Although \texttt{(x)dvipdfmx} has a built-in approach to color spaces, that
 %   can't be used with the generic color stacks. So we take an approach in which
 %   we share the same code as for \pdfTeX{}.
@@ -778,7 +781,6 @@
 \cs_new_eq:NN \@@_backend_select_devicen:nn \@@_backend_select_separation:nn
 %    \end{macrocode}
 % \end{macro}
-% \end{macro}
 %
 % \begin{macro}{\@@_backend_separation_init:nnnnn}
 % \begin{macro}{\@@_backend_separation_init:n}

Modified: branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-draw.dtx
===================================================================
--- branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-draw.dtx	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-draw.dtx	2021-03-02 21:57:17 UTC (rev 58067)
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2021-02-18}
+% \date{Released 2021-03-02}
 %
 % \maketitle
 %

Modified: branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-graphics.dtx
===================================================================
--- branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-graphics.dtx	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-graphics.dtx	2021-03-02 21:57:17 UTC (rev 58067)
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2021-02-18}
+% \date{Released 2021-03-02}
 %
 % \maketitle
 %

Modified: branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-header.dtx
===================================================================
--- branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-header.dtx	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-header.dtx	2021-03-02 21:57:17 UTC (rev 58067)
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2021-02-18}
+% \date{Released 2021-03-02}
 %
 % \maketitle
 %

Modified: branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-opacity.dtx
===================================================================
--- branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-opacity.dtx	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-opacity.dtx	2021-03-02 21:57:17 UTC (rev 58067)
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2021-02-18}
+% \date{Released 2021-03-02}
 %
 % \maketitle
 %

Modified: branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-pdf.dtx
===================================================================
--- branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-pdf.dtx	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend-pdf.dtx	2021-03-02 21:57:17 UTC (rev 58067)
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2021-02-18}
+% \date{Released 2021-03-02}
 %
 % \maketitle
 %
@@ -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,27 +1359,11 @@
 %    \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
     \@@_backend:x

Modified: branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend.ins
===================================================================
--- branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend.ins	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/source/latex/l3backend/l3backend.ins	2021-03-02 21:57:17 UTC (rev 58067)
@@ -30,7 +30,7 @@
 \fi
 
 \let\jobname\relax
-\input l3docstrip.dtx
+\input docstrip %
 \askforoverwritefalse
 
 \preamble

Modified: branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-dvipdfmx.def
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-dvipdfmx.def	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-dvipdfmx.def	2021-03-02 21:57:17 UTC (rev 58067)
@@ -26,7 +26,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-dvipdfmx.def}{2021-02-18}{}
+  {l3backend-dvipdfmx.def}{2021-03-02}{}
   {L3 backend support: dvipdfmx}
 \cs_if_exist:NTF \__kernel_dependency_version_check:nn
   {
@@ -100,17 +100,20 @@
       {
         \int_gincr:N \exp_not:N \g__color_backend_stack_int
         \int_const:Nn #1 { \exp_not:N \g__color_backend_stack_int }
-        \cs_if_exist:NTF \AtBeginDvi
-          { \exp_not:N \AtBeginDvi }
-          { \exp_not:N \use:n }
+        \use:x
           {
-            \__kernel_backend_literal:x
+            \cs_if_exist:NTF \AtBeginDvi
+              { \exp_not:N \AtBeginDvi }
+              { \exp_not:N \use:n }
               {
-                pdfcolorstackinit ~
-                \exp_not:N \int_use:N \exp_not:N \g__color_backend_stack_int
-                \c_space_tl
-                \exp_not:N \tl_if_blank:nF {#2} { #2 ~ }
-                (#3)
+                \__kernel_backend_literal:n
+                  {
+                    pdfcolorstackinit ~
+                    \exp_not:N \int_use:N \exp_not:N \g__color_backend_stack_int
+                    \c_space_tl
+                    \exp_not:N \tl_if_blank:nF {#2} { #2 ~ }
+                    (#3)
+                  }
               }
           }
       }
@@ -124,6 +127,7 @@
           { page ~ direct } { 0 ~ g ~ 0 ~ G }
         \int_set_eq:NN \l__color_backend_stack_int
           \c__color_backend_main_stack_int
+        \int_const:cn { main at pdfcolorstack } { \c__color_backend_main_stack_int }
       }
   }
 \int_compare:nNnF \c__kernel_sys_dvipdfmx_version_int < { 20201111 }
@@ -722,32 +726,9 @@
  { @pdf.obj \int_use:N \g__pdf_backend_object_int }
 \cs_new:Npn \__pdf_backend_pageobject_ref:n #1
   { @page #1 }
-\bool_new:N \g__pdf_landscape_bool
-\cs_if_exist:NT \landscape
-  {
-    \tl_put_right:Nn \landscape
-      { \bool_gset_true:N \g__pdf_landscape_bool }
-    \tl_put_left:Nn \endlandscape
-      { \bool_gset_false:N \g__pdf_landscape_bool }
-  }
 \int_new:N \g__pdf_backend_annotation_int
 \cs_new_protected:Npn \__pdf_backend_annotation:nnnn #1#2#3#4
   {
-    \bool_if:NTF \g__pdf_landscape_bool
-      {
-         \box_move_up:nn {#2}
-           {
-             \vbox:n
-               {
-                 \__pdf_backend_annotation_aux:nnnn
-                   { #2 + #3 } {#1} { 0pt } {#4}
-               }
-           }
-      }
-      { \__pdf_backend_annotation_aux:nnnn {#1} {#2} {#3} {#4} }
-  }
-\cs_new_protected:Npn \__pdf_backend_annotation_aux:nnnn #1#2#3#4
-  {
     \int_gincr:N \g__pdf_backend_object_int
     \int_gset_eq:NN \g__pdf_backend_annotation_int \g__pdf_backend_object_int
     \__pdf_backend:x

Modified: branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-dvips.def	2021-03-02 21:57:17 UTC (rev 58067)
@@ -26,7 +26,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-dvips.def}{2021-02-18}{}
+  {l3backend-dvips.def}{2021-03-02}{}
   {L3 backend support: dvips}
 \cs_if_exist:NTF \__kernel_dependency_version_check:nn
   {

Modified: branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-dvisvgm.def	2021-03-02 21:57:17 UTC (rev 58067)
@@ -26,7 +26,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-dvisvgm.def}{2021-02-18}{}
+  {l3backend-dvisvgm.def}{2021-03-02}{}
   {L3 backend support: dvisvgm}
 \cs_if_exist:NTF \__kernel_dependency_version_check:nn
   {

Modified: branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-luatex.def	2021-03-02 21:57:17 UTC (rev 58067)
@@ -26,7 +26,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-luatex.def}{2021-02-18}{}
+  {l3backend-luatex.def}{2021-03-02}{}
   {L3 backend support: PDF output (LuaTeX)}
 \cs_if_exist:NTF \__kernel_dependency_version_check:nn
   {

Modified: branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def	2021-03-02 21:57:17 UTC (rev 58067)
@@ -26,7 +26,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-pdftex.def}{2021-02-18}{}
+  {l3backend-pdftex.def}{2021-03-02}{}
   {L3 backend support: PDF output (pdfTeX)}
 \cs_if_exist:NTF \__kernel_dependency_version_check:nn
   {

Modified: branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-xetex.def
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-xetex.def	2021-03-02 21:57:04 UTC (rev 58066)
+++ branches/branch2020.0/Master/texmf-dist/tex/latex/l3backend/l3backend-xetex.def	2021-03-02 21:57:17 UTC (rev 58067)
@@ -26,7 +26,7 @@
 %% 
 %% File: l3backend-basics.dtx
 \ProvidesExplFile
-  {l3backend-xetex.def}{2021-02-18}{}
+  {l3backend-xetex.def}{2021-03-02}{}
   {L3 backend support: XeTeX}
 \cs_if_exist:NTF \__kernel_dependency_version_check:nn
   {
@@ -100,17 +100,20 @@
       {
         \int_gincr:N \exp_not:N \g__color_backend_stack_int
         \int_const:Nn #1 { \exp_not:N \g__color_backend_stack_int }
-        \cs_if_exist:NTF \AtBeginDvi
-          { \exp_not:N \AtBeginDvi }
-          { \exp_not:N \use:n }
+        \use:x
           {
-            \__kernel_backend_literal:x
+            \cs_if_exist:NTF \AtBeginDvi
+              { \exp_not:N \AtBeginDvi }
+              { \exp_not:N \use:n }
               {
-                pdfcolorstackinit ~
-                \exp_not:N \int_use:N \exp_not:N \g__color_backend_stack_int
-                \c_space_tl
-                \exp_not:N \tl_if_blank:nF {#2} { #2 ~ }
-                (#3)
+                \__kernel_backend_literal:n
+                  {
+                    pdfcolorstackinit ~
+                    \exp_not:N \int_use:N \exp_not:N \g__color_backend_stack_int
+                    \c_space_tl
+                    \exp_not:N \tl_if_blank:nF {#2} { #2 ~ }
+                    (#3)
+                  }
               }
           }
       }
@@ -124,6 +127,7 @@
           { page ~ direct } { 0 ~ g ~ 0 ~ G }
         \int_set_eq:NN \l__color_backend_stack_int
           \c__color_backend_main_stack_int
+        \int_const:cn { main at pdfcolorstack } { \c__color_backend_main_stack_int }
       }
   }
 \int_compare:nNnF \c__kernel_sys_dvipdfmx_version_int < { 20201111 }
@@ -768,32 +772,9 @@
  { @pdf.obj \int_use:N \g__pdf_backend_object_int }
 \cs_new:Npn \__pdf_backend_pageobject_ref:n #1
   { @page #1 }
-\bool_new:N \g__pdf_landscape_bool
-\cs_if_exist:NT \landscape
-  {
-    \tl_put_right:Nn \landscape
-      { \bool_gset_true:N \g__pdf_landscape_bool }
-    \tl_put_left:Nn \endlandscape
-      { \bool_gset_false:N \g__pdf_landscape_bool }
-  }
 \int_new:N \g__pdf_backend_annotation_int
 \cs_new_protected:Npn \__pdf_backend_annotation:nnnn #1#2#3#4
   {
-    \bool_if:NTF \g__pdf_landscape_bool
-      {
-         \box_move_up:nn {#2}
-           {
-             \vbox:n
-               {
-                 \__pdf_backend_annotation_aux:nnnn
-                   { #2 + #3 } {#1} { 0pt } {#4}
-               }
-           }
-      }
-      { \__pdf_backend_annotation_aux:nnnn {#1} {#2} {#3} {#4} }
-  }
-\cs_new_protected:Npn \__pdf_backend_annotation_aux:nnnn #1#2#3#4
-  {
     \int_gincr:N \g__pdf_backend_object_int
     \int_gset_eq:NN \g__pdf_backend_annotation_int \g__pdf_backend_object_int
     \__pdf_backend:x



More information about the tex-live-commits mailing list.