I have a document that's supposed to compile in a4paper
. Until recently, that worked just fine, however now it's using the same width, but a significantly increased height. It's pretty much a 2:1 ratio now.
I narrowed it down to the following code:
\usepackage[margin=2.5cm,right=3cm]{geometry}
\usepackage{mathptmx}
\renewcommand{\rmfamily}{%
\fontfamily{ptm}%
\fontsize{12}{1.5pt}%
}
When I replace this with just usepackage{geometry}
, everything is back to normal.
The preamble also contains these potentially relevant clauses:
\documentclass[a4paper,bibliography=totoc]{scrreprt}
\usepackage[T1]{fontenc} % part of standard header for European documents
\usepackage[utf8]{inputenc} % part of standard header for European documents
\usepackage[babel,english=american]{csquotes}
\usepackage[USenglish]{babel}
\usepackage{graphicx}
\usepackage{tikz-uml}
\usetikzlibrary{positioning}
\usepackage[backend=bibtex]{biblatex}
\usepackage{stackengine}[2013-10-15]
(It also contains some formatting tricks, none of them changes the paper size or any existing command or length, though. Plus, I doubt it's because of StackEngine or BibLaTeX.)
I'm not sure if it's specific to the toolkit I use (PDFLaTeX with TeXLive backend and TeXlipse frontend under Windows 10) because I didn't really try it in a different environment.
What about this code would change the paper size and what should I do instead?
geometry
package has (obviously) a big influence on the geometry of the document, other parts of the code also play a role, such as the documentclass. Could you provide a small but complete document that shows this issue?\begin{document}
and contents and\end{document}
), also it is not minimal (most of the packages you mention do not influence the behavior). So it would help to answer the question if you make a document that can be compiled, is as small as possible (no irrelevant packages) and that shows the problem when it is compiled. Verify yourself, before posting, if your example indeed shows the issue when it is copied to an empty document and compiled.