[latex3-commits] [git/LaTeX3-latex3-hyperref] setpagesize: adapt pagesize for luatex (07e33f0)
Ulrike Fischer
fischer at troubleshooting-tex.de
Tue Sep 20 22:57:57 CEST 2022
Repository : https://github.com/latex3/hyperref
On branch : setpagesize
Link : https://github.com/latex3/hyperref/commit/07e33f07eadd7abcadc05dd775680966c26cfd06
>---------------------------------------------------------------
commit 07e33f07eadd7abcadc05dd775680966c26cfd06
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Tue Sep 20 22:57:57 2022 +0200
adapt pagesize for luatex
>---------------------------------------------------------------
07e33f07eadd7abcadc05dd775680966c26cfd06
hluatex.dtx | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
diff --git a/hluatex.dtx b/hluatex.dtx
index 765a9c1..fcc0620 100644
--- a/hluatex.dtx
+++ b/hluatex.dtx
@@ -751,10 +751,26 @@
\fi
}{%
\ifdim\stockwidth>\z@
- \setlength{\pagewidth}{\stockwidth}%
- \fi
- \ifdim\stockheight>\z@
- \setlength{\pageheight}{\stockheight}%
+ \ifdim\stockheight>\z@
+ \setlength{\pagewidth}{\stockwidth}%
+ \setlength{\pageheight}{\stockheight}%
+ \else
+ \ifdim\paperwidth>\z@
+ \ifdim\paperheight>\z@
+ \setlength{\pagewidth}{\paperwidth}%
+ \setlength{\pageheight}{\paperheight}%
+ \fi
+ \fi
+ \fi
+ \else
+ \ifdim\stockwidth=\z@
+ \ifdim\paperwidth>\z@
+ \ifdim\paperheight>\z@
+ \setlength{\pagewidth}{\paperwidth}%
+ \setlength{\pageheight}{\paperheight}%
+ \fi
+ \fi
+ \fi
\fi
}%
}%
More information about the latex3-commits
mailing list.