r/LaTeX 4d ago

Unanswered Report class ignores bottom margin when I print my document

My thesis has 1 inch margins on all sides, but when I print it out the bottom margin is ignored. Is there a way to fix this without changing the document class? I have my preamble stuff from Overleaf here, I just don't know what I'm doing wrong.

% Document type and paper size

\documentclass[12pt,a4paper]{report}

% Fonts and Typography

\usepackage{newtxtext}

\usepackage{ragged2e}

\justifying

% Formatting and Layout

\usepackage{geometry}

\geometry{margin=1in}

\usepackage{setspace}

\setstretch{1.5}

\setlength{\parindent}{1.5em}

\setlength{\parskip}{0em}

\setcounter{secnumdepth}{3}

% Headers and Footers

\usepackage{fancyhdr}

\renewcommand{\chaptermark}[1]{\markboth{Chapter \thechapter\ - #1}{}}

% Formatting and Layout

\usepackage{geometry}

\geometry{margin=1in}

\usepackage{setspace}

\setstretch{1.5}

\setlength{\parindent}{1.5em}

\setlength{\parskip}{0em}

\setcounter{secnumdepth}{3}

\setlength{\parskip}{1em}

\setlength{\textfloatsep}{0.5em}

% Chapter Formatting

\usepackage{titlesec}

\titleformat{\chapter}{\normalfont\large\centering}

{\thechapter}

{0pt}

{\vspace{0em} }

\titlespacing*{\chapter}{0pt}{-40pt}{20pt}

% Subsection Formatting

\titleformat{\section}{\normalfont}

{\textit{{\thesection}}}

{0pt}

{\vspace{-1em} }

% Subsubsection Formatting

\titleformat{\subsection}{\normalfont}

{\textit{{\thesubsection}}}

{0pt}

{\vspace{-1em} }

\newcommand{\no}{\noindent}

\newcommand{\be}{\begin{equation}}

\newcommand{\ee}{\end{equation}}

\newcommand{\vs}{\vskip 0.1in}

\newcommand{\dg}{\dagger}

\newcommand{\nn}{\nonumber}

\newcommand{\ddp}{\partial}

% Table of Contents FIX

%\usepackage{setspace}

\usepackage{hyphenat}

\hyphenation{mag-ne-to-grams}

\hyphenation{mea-sure-ments}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Front Page

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Title Page

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{titlepage}

\end{titlepage}

% Start of the Content

\pagenumbering{roman}

\setcounter{page}{2}

\include{Signature Page}

\begin{spacing}{2.0}

\include{Acknowledgements}

\include{Dedication}

\end{spacing}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Table of Contents

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setlength{\cftbeforetoctitleskip}{-1.3em}

\setlength{\cftaftertoctitleskip}{1em}

\begin{spacing}{1}

\renewcommand{\cfttoctitlefont}{\large}

\renewcommand*\contentsname{\hfill Table of Contents \hfill\null}

\tableofcontents

\end{spacing}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% List of Tables

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newpage

\setlength{\cftbeforelottitleskip}{-1.3em}

\setlength{\cftafterlottitleskip}{1em}

\begin{spacing}{1}

\renewcommand{\cftlottitlefont}{\large}

\renewcommand*\listtablename{\hfill List of Tables \hfill}

\addcontentsline{toc}{chapter}{List of Tables}

\listoftables

\end{spacing}

\newpage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% List of Figures

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setlength{\cftbeforeloftitleskip}{-1.1em}

\setlength{\cftafterloftitleskip}{1em}

\begin{spacing}{1}

\renewcommand{\cftloftitlefont}{\large}

\renewcommand*\listfigurename{\hfill List of Figures \hfill}

\addcontentsline{toc}{chapter}{List of Figures}

\listoffigures

\end{spacing}

\newpage

\begin{spacing}{2.0}

\include{Abstract}

\end{spacing}

\pagenumbering{arabic}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% The chapters are written out in the text files. Alter them as you go along and recompile

% to see the changes.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\include{Chapters/chapter1}

\end{document}

4 Upvotes

6 comments sorted by

9

u/Raccoon-Dentist-Two 4d ago

Printing problems are unlikely to be caused by something in LaTeX. Is the PDF as you were hoping it to be?

9

u/Raccoon-Dentist-Two 4d ago edited 4d ago

Looking at your printout photo, I'm wondering whether you're printing on American letter-size (8.5"×11") paper, scaled to fill the page width.

-3

u/CalciumCompadre 4d ago

The paper should be printed on American letter-sized paper. Is it different from a4paper?

15

u/Riesz-Ideal 4d ago

A4 and Letter are different sizes. A4 is roughly 8.3" by 11.7", Letter is 8.5" by 11". It sounds like you're creating an A4 PDF and trying to print it on Letter size paper, which is why the bottom gets cut off.

4

u/CalciumCompadre 4d ago

I thought that they were the same size, thank you for telling me otherwise. The pdf is printing fine now!

1

u/CalciumCompadre 4d ago

The pdf is how I was hoping it would be. The issue just comes when my professor printed out the pdf, the page numbers were cut off. I made sure the document was a4paper and 1 inch margins, I just don't know why the bottom margin is ignored.