如何在回憶錄的頁首和頁尾中加入頁邊距?

如何在回憶錄的頁首和頁尾中加入頁邊距?

我想知道如何實現以下兩件事:

  1. 我想要定義頁邊距以供\marginpar註釋和評論使用。問題是,雖然我使用帶有雙面選項的回憶錄,但奇數側外距和偶數側外距不同。我希望奇數頁和偶數頁的外邊距完全相同(例如,外邊距為 6 厘米,內邊距為 2 厘米)。

  2. 我想擴展頁首和頁腳以包括外邊距(marginsep 和 marginwidth)。據我了解,這可以使用companion頁面樣式來完成手冊,但我更喜歡預設的章節樣式(即它的字體、樣式、形狀、無規則等)。如何修改章節頁面樣式以使頁首和頁尾延伸到頁邊距區域?順便說一句:我確實嘗試headwidth透過companion回憶錄手冊中的風格定義進行修改。但我沒有成功:

我試過這個:

\setlength{\headwidth}{\textwidth}
 \addtolength{\headwidth}{\marginparsep}
 \addtolength{\headwidth}{\marginparwidth}

 \copypagestyle{chapter}{plain}
 \makerunningwidth{chapter}{\headwidth} 

這是一個 MWE。我試著把它縮短一點。

\documentclass[12pt,foliopaper,twoside]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{kantlipsum}
\usepackage{tikz}


%*****************Margins and MarginNotes******************

\setmarginnotes{10pt}{5cm}{6pt}
\setlength{\textwidth}{0.9\textwidth}
\let\oldmarginpar\marginpar
\renewcommand\marginpar[1]{\-\oldmarginpar[\footnotesize #1]%
{\raggedright\footnotesize #1}}

%*******************Header & Footer***********************
 \nouppercaseheads 
%***********************Document*******************
\author{Author}
\date{\today}
\title{\textbf{Title}}

\begin{document}

\maketitle

\chapter{Chapter 1}

\kant[12]
\marginpar{The reader should be careful to observe that the objects in space and time are the clue to the discovery of, certainly, our a priori knowledge, by means of analytic unity.}
\kant[8]
\marginpar{The reader should be careful to observe that the objects in space and time are the clue to the discovery of, certainly, our a priori knowledge, by means of analytic unity.}
\kant[7]\marginpar{The reader should be careful to observe that the objects in space and time are the clue to the discovery of, certainly, our a priori knowledge, by means of analytic unity.}
\section{Section 1}
\kant[7]


\chapterstyle{default}
\newpage

\printindex
\end{document}

答案1

我用的是幾何學正確設定頁邊距大小(6 個外部,2 個內部)。記住該\headwidth來的一定要來幾何邊距定義。正如所指出的達萊夫使用回憶錄同伴風格來做到這一點要容易得多、乾淨得多。如果您希望第一章頁面具有相同的樣式,只需\aliaspagestyle{chapter}{companion}在 \pagestyle 之後新增即可。 Adobe Acrobat 中的螢幕截圖:回憶錄伴侶寬標題

\documentclass[12pt,foliopaper,twoside]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{kantlipsum}
\usepackage{tikz}

%*****************Margins and MarginNotes******************

\usepackage[outer=6cm, inner=2cm, heightrounded, marginparwidth=4cm, marginparsep=1cm]{geometry}

%*******************Header & Footer***********************

\setlength{\headwidth}{\textwidth}
\addtolength{\headwidth}{\marginparsep}
\addtolength{\headwidth}{\marginparwidth}

 \nouppercaseheads 
%***********************Document*******************
\author{Author}
\date{\today}
\title{\textbf{Title}}

\pagestyle{companion}

\begin{document}

\maketitle
\chapter{Chapter 1}
\kant[12]
\marginpar{The reader should be careful to observe that the objects in space and time are the clue to the discovery of, certainly, our a priori knowledge, by means of analytic unity.}
\kant[8]
\marginpar{The reader should be careful to observe that the objects in space and time are the clue to the discovery of, certainly, our a priori knowledge, by means of analytic unity.}
\kant[7]\marginpar{The reader should be careful to observe that the objects in space and time are the clue to the discovery of, certainly, our a priori knowledge, by means of analytic unity.}
\section{Section 1}
\kant[7]
\marginpar{The reader should be careful to observe that the objects in space and time are the clue to the discovery of, certainly, our a priori knowledge, by means of analytic unity.}
\chapterstyle{default}
\newpage

\printindex
\end{document}

相關內容