如何在报告类中获得类似的章节样式?

如何在报告类中获得类似的章节样式?

我对 LaTeX 还比较陌生,正在尝试为我的博士论文寻找合适的风格。我想要一些简单而优雅的风格,灵感来自牛津大学出版社出版的一些书籍的布局。

具体来说,我的目标是获得如下所示的章节样式(包括章节标题样式、引用以及可能的话缩进的部分标题样式):

我理想的章节风格

我知道原则上可以使用 titlesec 包完成其中的一些操作。但是,在实际编写相应的代码时,我却不知所措。我尝试提供 MWE,但在这种情况下,我真的不知道从哪里开始。

任何帮助将不胜感激!

答案1

以下是一种方法:

\documentclass[12pt, a4paper]{report}%
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[lf]{ebgaramond}
\usepackage{geometry}
\usepackage[newlinetospace]{titlesec}%

\titleformat{\chapter}[display]{\fontsize{30pt}{36pt}\selectfont\filright}{\fontsize{36pt}{48pt}\bfseries\thechapter}{2ex}{}

\begin{document}
\setcounter{chapter}{1}

\chapter{The History of the Seven Families \\ of the Lake Pipple-Popple}

       In former days -- that is to say, once upon a time, there lived in the Land of Gramblamble, Seven Families. They lived by the side of the great Lake Pipple-popple (one of the Seven Families, indeed, lived in the Lake), and on the outskirts of the City of Tosh, which, excepting when it was quite dark, they could see plainly. The names of all these places you have probably heard of, and you have only not to look in your Geography books to find out all about them.

       Now the Seven Families who lived on the borders of the great Lake Pipple-popple, were as follows in the next Chapter.

\end{document} 

在此处输入图片描述

添加:如果您希望标题的右边距比文本更宽,则可以\parbox{some width}在 的最后一个参数中添加 s \titleformat,如下所示:

 \titleformat{\chapter}[display]{\fontsize{30pt}{36pt}\selectfont\filright}{\fontsize{36pt}{48pt}\bfseries\thechapter}{2ex}{\parbox{0.75\textwidth}}

在此处输入图片描述

答案2

memoir包含bookreportarticle类并对其进行了扩展,提供了大约 29 种不同的章节样式;不幸的是,您想要的样式不在其中,但也许您会喜欢其中一种。如果没有,那么手册 ( > texdoc memoir) 中给出了其中许多样式的代码,您可以自己制作。

课程还提供了您想要放在章节标题后面的题词。

为了缩进section标题,该类提供了\setsecindent{<length>}用于在章节标题前设置缩进的宏。

相关内容