我使用的是 Latex 模板,它采用了回忆录风格和\chapterstyle{bianchimod}
。我注意到每一页的段落和页码位置都有交替行为。段落是否缩进,页码一次在左侧,下一页在右侧。
有没有办法关闭此功能并保留第一页所示的格式?
layoutsetup.tex 文件如下所示:
%% Memoir layout setup
%% NOTE: You are strongly advised not to change any of them unless you
%% know what you are doing. These settings strongly interact in the
%% final look of the document.
% Dependencies
\usepackage{ETHlogo}
% Turn extra space before chapter headings off.
\setlength{\beforechapskip}{0pt}
\nonzeroparskip
\parindent=0pt
\defaultlists
% Chapter style redefinition
\makeatletter
\if@twoside
\pagestyle{Ruled}
\copypagestyle{chapter}{Ruled}
\else
\pagestyle{ruled}
\copypagestyle{chapter}{ruled}
\fi
\makeoddhead{chapter}{}{}{}
\makeevenhead{chapter}{}{}{}
\makeheadrule{chapter}{\textwidth}{0pt}
\copypagestyle{abstract}{empty}
\makechapterstyle{bianchimod}{%
\chapterstyle{default}
\renewcommand*{\chapnamefont}{\normalfont\Large\sffamily}
\renewcommand*{\chapnumfont}{\normalfont\Large\sffamily}
\renewcommand*{\printchaptername}{%
\chapnamefont\centering\@chapapp}
\renewcommand*{\printchapternum}{\chapnumfont {\thechapter}}
\renewcommand*{\chaptitlefont}{\normalfont\huge\sffamily}
\renewcommand*{\printchaptertitle}[1]{%
\hrule\vskip\onelineskip \centering \chaptitlefont\textbf{\vphantom{gyM}##1}\par}
\renewcommand*{\afterchaptertitle}{\vskip\onelineskip \hrule\vskip
\afterchapskip}
\renewcommand*{\printchapternonum}{%
\vphantom{\chapnumfont {9}}\afterchapternum}}
% Use the newly defined style
\chapterstyle{bianchimod}
\setsecheadstyle{\Large\bfseries\sffamily}
\setsubsecheadstyle{\large\bfseries\sffamily}
\setsubsubsecheadstyle{\bfseries\sffamily}
\setparaheadstyle{\normalsize\bfseries\sffamily}
\setsubparaheadstyle{\normalsize\itshape\sffamily}
\setsubparaindent{0pt}
% Set captions to a more separated style for clearness
\captionnamefont{\sffamily\bfseries\footnotesize}
\captiontitlefont{\sffamily\footnotesize}
\setlength{\intextsep}{16pt}
\setlength{\belowcaptionskip}{1pt}
% Set section and TOC numbering depth to subsection
\setsecnumdepth{subsection}
\settocdepth{subsection}
%% Titlepage adjustments
\pretitle{\vspace{0pt plus 0.7fill}\begin{center}\HUGE\sffamily\bfseries}
\posttitle{\end{center}\par}
\preauthor{\par\begin{center}\let\and\\\Large\sffamily}
\postauthor{\end{center}}
\predate{\par\begin{center}\Large\sffamily}
\postdate{\end{center}}
\def\@advisors{}
\newcommand{\advisors}[1]{\def\@advisors{#1}}
\def\@department{}
\newcommand{\department}[1]{\def\@department{#1}}
\def\@thesistype{}
\newcommand{\thesistype}[1]{\def\@thesistype{#1}}
\renewcommand{\maketitlehooka}{\noindent\ETHlogo[2in]}
\renewcommand{\maketitlehookb}{\vspace{1in}%
\par\begin{center}\Large\sffamily\@thesistype\end{center}}
\renewcommand{\maketitlehookd}{%
\vfill\par
\begin{flushright}
\sffamily
\@advisors\par
\@department, ETH Z\"urich
\end{flushright}
}
\checkandfixthelayout
\setlength{\droptitle}{-48pt}
\makeatother
% This defines how theorems should look. Best leave as is.
\theoremstyle{plain}
\setlength\theorempostskipamount{0pt}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "thesis"
%%% End:
答案1
如果文档主要用于屏幕查看,您可以添加oneside
选项\documentclass
以禁用左右页的单独布局,但对于几乎所有打算使用纸张两面打印的文档,默认twoside
布局会更自然。
答案2
您的问题并不十分清楚,但我认为您希望页码和标题与文本对齐,而不是像示例的第二页那样位于文本之外(第一页已经有页码)。
我也遇到了同样的问题(也使用了 ETH 信息学系的模板),确实大卫建议您简单地添加oneside
即可\documentclass
。
但是,如果您仍然想要有其他行为(对于打印问题或其他问题),您仍然可以使用该选项对齐页码和页眉twoside
。
请考虑以下描述官方回忆录类文件
该类提供的页面样式包括
统治:页脚包含外部的对开页。左页的页眉包含外部的章节编号和标题(小写);右页的章节标题使用普通字体排版在外部。页眉下方画了一条线。
统治:这与横线样式类似,只是页眉和页脚延伸到前缘边距。
因此,您希望
\if@twoside
\pagestyle{ruled}
\copypagestyle{chapter}{ruled}
\else
\pagestyle{ruled}
\copypagestyle{chapter}{ruled}
\fi
请注意,Ruled
示例中的 已更改为ruled
。