[latex3-commits] [git/LaTeX3-latex3-latex3] setpdfpagesize-alt: Only use \stock... in test phase (5390635da)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Sep 27 22:10:35 CEST 2022
Repository : https://github.com/latex3/latex3
On branch : setpdfpagesize-alt
Link : https://github.com/latex3/latex3/commit/5390635da866468d6a8d0d3c2f209ae1ddd575ef
>---------------------------------------------------------------
commit 5390635da866468d6a8d0d3c2f209ae1ddd575ef
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Sep 23 09:22:55 2022 +0100
Only use \stock... in test phase
>---------------------------------------------------------------
5390635da866468d6a8d0d3c2f209ae1ddd575ef
l3kernel/l3pdf.dtx | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/l3kernel/l3pdf.dtx b/l3kernel/l3pdf.dtx
index cc4258027..041a30a5b 100644
--- a/l3kernel/l3pdf.dtx
+++ b/l3kernel/l3pdf.dtx
@@ -502,9 +502,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.