My texlive debian is set to a4 paper size (paperconf -p a4). Using pdflatex on the following simple document
\documentclass{article}
%\usepackage{svg}
\begin{document}
test
\end{document}
I either get a pdf in a4 size (without the svg package) or letter size (with svg package).
Is this a feature or a bug and how do I fix it?
\documentclass[a4paper]{article}so the pdf size matches. This is a feature of the graphics package. (Until a driver-specific back end is chosen by graphics, latex can not set the media size as it requires different commands for each back end,) – David Carlisle Oct 05 '21 at 16:36a4paperalways in any case whether or not you are using these packages otherwise the layout is designed for US Letter. svg is only involved because it loadsgraphicsso you can pass that option to graphics, but why would you want an incorrect layout? I just addednosetpagesizeas a get out for some specialist classes that were taking care of the page size size themselves and needed to disable user access to changing anything. – David Carlisle Oct 05 '21 at 18:11