我對 Latex 很陌生,所以如果這是一個簡單的問題,我深表歉意。我想減少章節標題周圍的空白量。這是章節部分(請注意,它有點被截斷):
\documentclass[twoside,9pt]{memoir}
\usepackage[compact]{titlesec}
\chapterstyle{southall}
\begin{document}
\frontmatter
\chapter{Marseilles--The Arrival.}
On the 24th of February, 1815, the look-out at Notre-Dame de la Garde
signalled the three-master, the Pharaon from Smyrna, Trieste, and
Naples.
生成後如下圖所示:
我嘗試了各種方法來減少這一切,但都無濟於事。您能提供一些建議嗎?
答案1
這是一種方法:我複製了樣式的程式碼southall
(第 B.1.4 節)memoir
手冊)並修改它,給它一個新名稱。調整以適應。使用該包showframe
只是為了更好地顯示標題的定位。
請注意memoir
提供了與 類似的功能titlesec
,因此它們通常不會一起使用。有關章節樣式的更多信息,請參閱第 6.5.1 節memoir
手冊。
\documentclass[twoside,9pt]{memoir}
\usepackage{showframe} % just for the example
\makechapterstyle{southall-mod}{%
\chapterstyle{default}
\setlength{\afterchapskip}{2\baselineskip} %%%%%%%%% MOD: WAS 5\baselineskip
\setlength{\beforechapskip}{18pt}% \headindent %%%%%%% MOD: WAS 36pt
\setlength{\midchapskip}{\textwidth}% \rightblock
\addtolength{\midchapskip}{-\beforechapskip}
\renewcommand*{\chapterheadstart}{\vspace*{0pt}} %%%% MOD: WAS 2\baselineskip
%%% \renewcommand*{\chaptitlefont}{\huge\rmfamily\raggedright}
\renewcommand*{\chaptitlefont}{\huge\rmfamily\memRTLraggedright}
\renewcommand*{\chapnumfont}{\chaptitlefont}
\renewcommand*{\printchaptername}{}
\renewcommand*{\chapternamenum}{}
\renewcommand*{\afterchapternum}{}
\renewcommand*{\printchapternum}{%
\begin{minipage}[t][\baselineskip][b]{\beforechapskip}
{\vspace{0pt}\chapnumfont%%%\figureversion{lining}
\thechapter}
\end{minipage}}
\renewcommand*{\printchaptertitle}[1]{%
\hfill\begin{minipage}[t]{\midchapskip}
{\vspace{0pt}\chaptitlefont ##1\par}\end{minipage}}
\renewcommand*{\afterchaptertitle}{%
\par\vspace{\baselineskip}%
\hrulefill \par\nobreak\noindent \vskip \afterchapskip}}
\chapterstyle{southall-mod}
\begin{document}
\chapter{Marseilles--The Arrival.}
On the 24th of February, 1815, the look-out at Notre-Dame de la Garde
signalled the three-master, the Pharaon from Smyrna, Trieste, and
Naples.
\end{document}