在不同的頁碼樣式中保持一致的兩側邊距

在不同的頁碼樣式中保持一致的兩側邊距

我正在編寫一份需要裝訂的報告,因此我想使用twoside 選項。然而,報告的前幾頁導致了一些排序問題。在下面的MWE中,標題頁沒有顯示頁碼,並且是反頁。摘要和目錄的頁面切換為羅馬編號,因此標題頁和摘要頁都是反面的。實際報告的頁碼採用阿拉伯文編號,因此第 4 頁和第 5 頁都是反面的。

在這些編號開關之間保持正確邊距的最佳方法是什麼?也許像使用隱藏計數器來計算twoside 使用的頁碼來確定邊距之類的方法會起作用,但我不知道該怎麼做。

\documentclass[a4paper,11pt,twoside]{article}

\author{A Name}
\title{A Title}

\begin{document}
\maketitle
\thispagestyle{empty}
\newpage
\pagenumbering{roman}

\begin{abstract}
  We discuss the joys of \LaTeX
\end{abstract}
\newpage
\tableofcontents
\newpage
\mbox{}
\newpage

\pagenumbering{arabic}
\section{One}
\section{Two}

\end{document}

答案1

我會移動\pagenumbering{roman}以便列印數字的奇偶校驗始終與實體表的奇偶校驗相符(因此摘要位於第二頁)

\documentclass[a4paper,11pt,twoside]{article}

\author{A Name}
\title{A Title}

\begin{document}
\pagenumbering{roman}
\maketitle
\thispagestyle{empty}
\newpage


\begin{abstract}
  We discuss the joys of \LaTeX
\end{abstract}
\newpage
\tableofcontents
\newpage
\mbox{}
\newpage

\pagenumbering{arabic}
\section{One}
\section{Two}

\end{document}

相關內容