The other day I was shocked to discover that some of my LaTeX-produced documents had US letter paper size. I do not live in the US.
It took me some time to find out that this was caused by the hyperref
package. Why does this package change the paper size? Can I prevent it from doing this, so the system default paper size will be used?
Minimal example:
\documentclass[]{article}
% uncomment this to trigger switch to US letter size
%\usepackage{hyperref}
\begin{document}
x
\end{document}
I compile with pdflatex
.
I am using MacTeX 2016. The default size on my system is A4. tlmgr paper
outputs:
Current context paper size (from /usr/local/texlive/2016/texmf-config/tex/context/user/cont-sys.tex): a4
Current dvipdfmx paper size (from /usr/local/texlive/2016/texmf-config/dvipdfmx/dvipdfmx.cfg): a4
Current dvips paper size (from /usr/local/texlive/2016/texmf-config/dvips/config/config.ps): a4
Current pdftex paper size (from /usr/local/texlive/2016/texmf-config/tex/generic/config/pdftexconfig.tex): a4
Current psutils paper size (from /usr/local/texlive/2016/texmf-config/psutils/paper.cfg): a4
Current xdvi paper size (from /usr/local/texlive/2016/texmf-config/xdvi/XDvi): a4
I know that I can just use \documentclass[a4paper]{article}
to get A4, but I was under the impression that the system will just use the default when a size is not specified
a4paper
to\documentclass
in the first place, because you get a type block not in the format for ISO A4 (and not centered in the page).