[latex3-commits] [git/LaTeX3-latex3-latex3] setpdfpagesize-alt: Support for \stock... (8b4cc0d7e)
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/8b4cc0d7ec43ef985089f7bad6740d3e2efc377b
>---------------------------------------------------------------
commit 8b4cc0d7ec43ef985089f7bad6740d3e2efc377b
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Jun 23 14:40:15 2022 +0100
Support for \stock...
>---------------------------------------------------------------
8b4cc0d7ec43ef985089f7bad6740d3e2efc377b
l3kernel/l3pdf.dtx | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/l3kernel/l3pdf.dtx b/l3kernel/l3pdf.dtx
index 9df4434b1..d380a3500 100644
--- a/l3kernel/l3pdf.dtx
+++ b/l3kernel/l3pdf.dtx
@@ -506,8 +506,17 @@
{
\IfDocumentMetadataTF
{
- \@@_backend_pagesize_set:nn
- \paperwidth \paperheight
+ \bool_lazy_and:nnTF
+ { \cs_if_exist_p:N \stockwidth }
+ { \dim_compare_p:nNn \stockwidth > { 0pt } }
+ {
+ \@@_backend_pagesize_set:nn
+ \stockwidth \stockheight
+ }
+ {
+ \@@_backend_pagesize_set:nn
+ \paperwidth \paperheight
+ }
}
{ }
}
More information about the latex3-commits
mailing list.