我正在使用回忆录文档类来撰写我的论文。我想删除章节号和名称之间的空白,使它们位于同一行(不会过多地影响文本的大小),并且可能删除章节号上方的空白。此图像中显示了一个示例
序言如下:
% Memoir class loads useful packages by default (see manual).
\documentclass[a4paper,11pt,reqno,openbib,oldfontcommands,openany]{memoir} %add 'draft' to turn draft option on (see below)
%
%
% Adding metadata:
\let\ordinal\relax %to avoid warning with datetime and memoir
\usepackage{datetime}
\usepackage{ifpdf}
\ifpdf
\pdfinfo{
/Author (Author's name)
/Title (PhD Thesis)
/Keywords (One; Two;Three)
/CreationDate (D:\pdfdate)
}
\fi
% When draft option is on.
\ifdraftdoc
\usepackage{draftwatermark} %Sets watermarks up.
\SetWatermarkScale{0.3}
\SetWatermarkText{\bf Draft: \today}
\fi
%
%
% Better page layout for A4 paper, see memoir manual.
\settrimmedsize{297mm}{210mm}{*}
\setlength{\trimtop}{0pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\settypeblocksize{634pt}{448.13pt}{*}
\setulmargins{4cm}{*}{*}
\setlrmargins{*}{*}{1.5}
\setmarginnotes{17pt}{51pt}{\onelineskip}
\setheadfoot{\onelineskip}{2\onelineskip}
\setheaderspaces{*}{2\onelineskip}{*}
\checkandfixthelayout
%
\frenchspacing
%
% UoB guidelines:
%
% Text should be in double or 1.5 line spacing, and font size should be
% chosen to ensure clarity and legibility for the main text and for any
% quotations and footnotes. Margins should allow for eventual hard binding.
%
% Note: This is automatically set by memoir class. Nevertheless \OnehalfSpacing
% enables double spacing but leaves single spaced for captions for instance.
\OnehalfSpacing
%
% Sets numbering division level
\setsecnumdepth{subsection}
\maxsecnumdepth{subsubsection}
%
%
% UoB guidelines:
%
% The pages should be numbered consecutively at the bottom centre of the
% page.
\makepagestyle{myvf}
\makeoddfoot{myvf}{}{\thepage}{}
\makeevenfoot{myvf}{}{\thepage}{}
\makeheadrule{myvf}{\textwidth}{\normalrulethickness}
\makeevenhead{myvf}{\small\textsc{\leftmark}}{}{}
\makeoddhead{myvf}{}{}{\small\textsc{\rightmark}}
\pagestyle{myvf}
\begin{document}
\chapter{Literature Review}
Some text.
\end{document}
任何帮助将不胜感激!
答案1
在之前添加\begin{document}
\renewcommand*{\chapterheadstart}{} % do nothing, zero space before
\renewcommand*{\afterchapternum}{\enspace}
\renewcommand*{\afterchaptertitle}{\par\nobreak\vspace{\onelineskip}} % one blank line after
获得非常紧凑的风格
但如果你的章节标题很长,你可能会\renewcommand*{\afterchapternum}{\par}
用到
一个非常有用的读物是回忆录类的章节样式
对于编号章节(即
\chapter
和secnumdepth
≥0),应该将章节标题视为以下内容:
\chapterheadstart
\printchaptername
\chapternamenum
\printchapternum
\afterchapternum
\printchaptertitle{The title}
\afterchaptertitle