[latex3-commits] [git/LaTeX3-latex3-latex3] setpdfpagesize-alt: Only use \stock... in test phase (8c082ef83)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Sep 23 10:22:55 CEST 2022


Repository : https://github.com/latex3/latex3
On branch  : setpdfpagesize-alt
Link       : https://github.com/latex3/latex3/commit/8c082ef834380ed0704016c0a1143b47897313b2

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

commit 8c082ef834380ed0704016c0a1143b47897313b2
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Sep 23 09:22:55 2022 +0100

    Only use \stock... in test phase


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

8c082ef834380ed0704016c0a1143b47897313b2
 l3kernel/l3pdf.dtx | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/l3kernel/l3pdf.dtx b/l3kernel/l3pdf.dtx
index d22bc5053..8c2ef72c1 100644
--- a/l3kernel/l3pdf.dtx
+++ b/l3kernel/l3pdf.dtx
@@ -460,9 +460,13 @@
   {
     \tl_gput_right:Nn \@kernel at before@begindocument
       {
-        \bool_lazy_and:nnT
-          { \cs_if_exist_p:N \stockheight }
-          { \cs_if_exist_p:N \stockwidth }
+        \bool_lazy_all:nT
+          {
+            { \cs_if_exist_p:N \stockheight }
+            { \cs_if_exist_p:N \stockwidth }
+            { \cs_if_exist_p:N \IfDocumentMetadata }
+            { \IfDocumentMetadataTF { \c_true_bool } { \c_false_bool } }
+          }
           {
             \bool_lazy_and:nnTF
               { \dim_compare_p:nNn \stockheight > { 0pt } }





More information about the latex3-commits mailing list.