# New line after \subsection in amsbook

How can I get a new line after the subsection command in the amsbook template?

\subsection*{Nursery Rhyme} Mary had a little lamb

does not put Nursery rhyme on one line and Mary had a little lamb on the next, which is where I want it.

• Welcome to TeX.SX! What does this have to do with math mode? – egreg Mar 30 '16 at 9:44
• Sorry!! my bad! – lexxie Mar 30 '16 at 9:46
• Do you want the same behavior for all subsections? Should any subsection be numbered? – egreg Mar 30 '16 at 9:47
• no. I don't want any of the subsections to be numbered. But I don't want the text in all subsections to begin on a new line either – lexxie Mar 30 '16 at 9:48

In the amsbook style, subsections are realized inline.

You can introduce a line break by adding \mbox{} (that is, an empty text) and starting a new paragraph afterwards.

\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}

By setting secnumdepth to 1, only chapters (level 0) and sections (level 1) will be numbered.

• \mbox{} is not working in my case – lexxie Mar 30 '16 at 9:59
• @lexxie Did you notice the blank line after \mbox{}? – egreg Mar 30 '16 at 10:03
• Ah-ha! No. I didn't at first. Now I did and it works. I also found out that '\subsection{Nursery Rhymes}\par' also works. – lexxie Mar 30 '16 at 10:06
• @lexxie Don't do . – egreg Mar 30 '16 at 10:08