50

Possible Duplicate:
paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?

I have the following problem. I have a paragraph and only after this single paragraph environemnt I want to have the text following in a new line. So the original source looks like this here:

\paragraph{Some title stuff.}

bla bla bla

I tried to add \linebreak

\paragraph{Some title stuff.} \linebreak

bla bla bla

and also \\, but nothing worked, in each case I got the error message "There is no line here to end".

Anyone an idea how to sort this problem?

marked as duplicate by Thorsten Donig, diabonas, Werner, Seamus, doncherry Oct 20 '11 at 20:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Do \subsubsection or titlesec do what you want? – Andrey Vihrov Oct 20 '11 at 15:30
  • Welcome to TeX.SE! – cmhughes Oct 20 '11 at 15:49
  • @TEX.SE admins -->IMO this is not an exact duplicate because the linked to question solves the problem for non-standard requirements... where as this question assumes a standard document without any weird TOC requirements. Also this question has a simpler solution and is more elegant GIVEN regular TOC requirements. – Trevor Boyd Smith May 4 '12 at 3:21
76

You can always cheat the "there is no line here to end" error with empty \mbox{}es. For example:

\paragraph{Some title stuff.}\mbox{}\\
bla bla bla

For convenience you can define your own paragraph before \begin{document}

\newcommand{\myparagraph}[1]{\paragraph{#1}\mbox{}\\}

and just use your new command:

\myparagraph{Some title stuff.}
bla bla bla
10

You need something just after your paragraph definition before you can break the line. That something in my case is an empty \mbox{}. This is a very elementary way of doing things. It may be automated using titlesec, as @Andrey suggests.

enter image description here

\documentclass{article}
\begin{document}
\paragraph{Some title stuff.}\mbox{} \\

bla bla bla
\end{document}

Not the answer you're looking for? Browse other questions tagged or ask your own question.