答案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
包含book
、report
和article
类并对其进行了扩展,提供了大约 29 种不同的章节样式;不幸的是,您想要的样式不在其中,但也许您会喜欢其中一种。如果没有,那么手册 ( > texdoc memoir
) 中给出了其中许多样式的代码,您可以自己制作。
课程还提供了您想要放在章节标题后面的题词。
为了缩进section
标题,该类提供了\setsecindent{<length>}
用于在章节标题前设置缩进的宏。