[latex3-commits] [git/LaTeX3-latex3-latex3] setpdfpagesize-alt: Support for \stock... (38051c230)
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Jun 23 15:40:15 CEST 2022
Repository : https://github.com/latex3/latex3
On branch : setpdfpagesize-alt
Link : https://github.com/latex3/latex3/commit/38051c230ef2764c0a8929af8bbe9b4c962c166f
>---------------------------------------------------------------
commit 38051c230ef2764c0a8929af8bbe9b4c962c166f
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Jun 23 14:40:15 2022 +0100
Support for \stock...
>---------------------------------------------------------------
38051c230ef2764c0a8929af8bbe9b4c962c166f
l3kernel/l3pdf.dtx | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/l3kernel/l3pdf.dtx b/l3kernel/l3pdf.dtx
index e7fd65467..ba1c7f6ee 100644
--- a/l3kernel/l3pdf.dtx
+++ b/l3kernel/l3pdf.dtx
@@ -464,8 +464,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.