我正在使用 myreport.cls 撰写博士论文。格式要求章节标题为双倍行距。我该如何实现?以下是使用的章节定义:
% this one creates the chapter heading and makes the chapter title to have number
% it is called by \chapter{...}
\def\@makechapterhead#1{%
\vspace*{10\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
{\centering \normalsize \MakeUppercase{\@chapapp} \space \thechapter % this uppercase command makes the word ``chapter'' be uppercase at the beginning of each chapter
\par \nobreak
\vskip 14\p@ % space between 'CHAPTER x' and the actual title
}
\fi
{\centering
\interlinepenalty\@M
\normalsize \MakeUppercase{#1} \par \nobreak
\vskip 8\p@ % space between CHAPTER TITLE and the material that starts immediately
}
}}
根据上述定义,章节标题如下所示:
但我希望它看起来像:
先谢谢您的帮助。
答案1
我在这里使用书籍类作为示例。我相信它应该适用于任何类设置。添加\renewcommand{\baselinestretch}{2}
到章节标题定义中,以便章节标题有双倍空间。
\documentclass{book}
\usepackage{lipsum}
\makeatletter
\def\@makechapterhead#1{%
\vspace*{10\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
{\centering \normalsize \MakeUppercase{\@chapapp} \space \thechapter % this uppercase command makes the word ``chapter'' be uppercase at the beginning of each chapter
\par \nobreak
\vskip 14\p@ % space between 'CHAPTER x' and the actual title
}
\fi
{\centering\renewcommand{\baselinestretch}{2}
\interlinepenalty\@M
\normalsize \MakeUppercase{#1} \par \nobreak
\vskip 8\p@ % space between CHAPTER TITLE and the material that starts immediately
}
}}
\makeatother
\begin{document}
\chapter{abcd efgh ijkl mnop qrst uvwx yz abcd efgh ijkl mnop qrst uvwx yz abcd efgh ijkl mnop qrst uvwx yz}
\lipsum[1]
\end{document}