buggy testpage.tex (wrong PDF page size)?

Zdenek Wagner zdenek.wagner at gmail.com
Tue Aug 27 00:54:08 CEST 2024


Hi,

mere a5paper changes the calculation of the \textwidth but not the
parameters of the resulting PDF. You can either set \pdfpagewidth and
\pdfpageheight or use one of the geometry and zwpagelayout packages
which do it for you.

Zdeněk Wagner
https://www.zdenek-wagner.eu/

út 27. 8. 2024 v 0:47 odesílatel Vincent Lefevre <vincent at vinc17.net> napsal:
>
> I've tried
>
>   pdflatex /usr/share/texlive/texmf-dist/tex/latex/base/testpage.tex
>
> unset Debian/unstable (TeX Live packages 2024.20240706-1) with
>
> \papertype=a5paper
> \doublesided=n
>
> The contents assume A5, but the paper size itself is still A4
> (thus with blanks on the right and at the bottom), and pdfinfo
> says:
>
> Page size:       595.276 x 841.89 pts (A4)
>
> Adding \usepackage{geometry} seems to fix the issue.
>
> The following also fixes the issue
>
> \setlength\pdfpagewidth{\paperwidth}
> \setlength\pdfpageheight{\paperheight}
>
> but I suppose that \usepackage{geometry} is more general.
>
> --
> Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the tex-live mailing list.