当我的目录跨越多页时,底部边距会被忽略。
\documentclass[12pt]{article}
%Packages
\usepackage[table,xcdraw]{xcolor}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage[hidelinks]{hyperref}
\usepackage{csquotes}
\usepackage[colorinlistoftodos,prependcaption,textsize=tiny]{todonotes}
\usepackage{caption}
\usepackage{listings} % used for code-snippets
\usepackage[english]{babel} % the main document language is the last one
\usepackage[toc,page]{appendix}
\usepackage{adjustbox}
\usepackage{rotating}
\usepackage{xargs}
\usepackage{tabularx}
\usepackage{lscape}
\usepackage{ltablex}
\usepackage{siunitx}
%Bibliography
\usepackage[style=iso-authoryear]{biblatex}
\addbibresource{./bibliography/bibliography.bib}
%Glossary
\usepackage[acronym,shortcuts,automake]{glossaries}
\glspatchtabularx
\makeglossaries
%Formatting
%Margins
\usepackage[a4paper,
left=4cm,right=2cm,top=4cm,bottom=2cm]{geometry}
%Line-spacing
\usepackage{setspace}
\onehalfspacing
%Linenumbers
\usepackage{lineno}
%\linenumbers
%Margins
\usepackage{showframe}
%Header
\pagestyle{fancy}
\fancyhf{}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}
%Abbreviations
[...]
\begin{document}
\pagenumbering{Roman}
\todo{Remove list of todos}
\listoftodos
\newpage
%Titlepage
\input{content/titlepage}
%Table of contents
\todo{Bottom-margin does not apply to toc}
\setcounter{page}{2}
\tableofcontents
[...]
\end{document}
我遗漏了什么吗?提前致谢!