如何在 amsbook 模板中的子部分命令后获得新行?
\subsection*{Nursery Rhyme} Mary had a little lamb
不要把《童谣》放在一行,把《玛丽有一只小羊羔》放在下一行,而这正是我想要的。
答案1
在amsbook
样式中,小节以内联方式实现。
\mbox{}
您可以通过添加(即空文本)并在之后开始新段落来引入换行符。
\documentclass{amsbook}
\setcounter{secnumdepth}{1} % subsections are not numbered
\begin{document}
\chapter{First}
\section{Section}
Some text to show what happens
Some text to show what happens
Some text to show what happens
Some text to show what happens
\subsection{Normal}
Some text to show what happens
Some text to show what happens
Some text to show what happens
Some text to show what happens
\subsection{With break}\mbox{}
Some text to show what happens
Some text to show what happens
Some text to show what happens
Some text to show what happens
\end{document}
通过设置secnumdepth
为 1,只有章节(级别 0)和节(级别 1)才会被编号。