我使用了“双面”选项,但页码仍然只是写在页面中间的底部。我希望页码在左下角和右下角之间交替显示,因为这将打印成一本书。
这是 main.tex 文件
\documentclass[a4paper,12pt,twoside]{book}
% Load custom course package
\usepackage{digsi}
\usepackage{glossaries}
\usepackage{pifont}
\usepackage{xcolor}
\usepackage{colortbl}
\usepackage{tabulary}
\usepackage{etoolbox}
\usepackage{graphicx}
%Packages I added myself
\usepackage{listings}
\usepackage{lmodern} % for bold teletype font
\usepackage{amsmath} % for \hookrightarrow
\usepackage{xcolor} % for \textcolor
\edef\restoreparindent{\parindent=\the\parindent\relax}
\usepackage{parskip}
\lstset{
basicstyle=\ttfamily,
columns=fullflexible,
frame=single,
breaklines=true,
postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space},
}
% Change to standard Microsoft Word margins
\usepackage[margin=1in]{geometry}
% Change to 1.5 line spacing
%\usepackage{setspace}
%\onehalfspacing
% Set thousands separator in numbers
\npthousandsep{ }
% Fix overfull lines in bibliography
\emergencystretch=1.7em
\makeglossaries
\begin{document}
% Front page
\input{title}
\input{content/abstract.tex}
\input{content/preface.tex}
% Contents and lists
\tableofcontents
\listoffigures
\listoftables
%\begingroup
%\let\clearpage\relax
%\endgroup
\printglossaries
\chapter{Introduction}\label{cha:intro}
\input{content/00_intro.tex}
\chapter{Background Theory}\label{cha:problemDomain}
\input{content/01_problem_domain.tex}
\chapter{Related Work}\label{cha:relatedWork}
\input{content/02_related_work.tex}
\chapter{Method}\label{cha:relatedWork}
\input{content/03_method.tex}
\chapter{Results}\label{cha:relatedWork}
\input{content/04_results.tex}
\chapter{Discussion}\label{cha:relatedWork}
\input{content/05_discussion.tex}
\chapter{Conclusion}\label{cha:relatedWork}
\input{content/06_conclusion.tex}
\printbibliography[heading=bibintoc,title={References}]
\appendix
\input{content/appendix}
\end{document}