Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
ntheorem environment with indentation
Skipping line after “Proof” in proof environment

\begin{theorem}[label]
The theorem text.
\end{theorem}

I want to have automatically a line break after the label. So far I always do the following

\begin{theorem}[label]\ \\
The theorem text.
\end{theorem}

I thought of renewing the theorem environment. But I would need to do this several times since I've got a few theorem environments (lemma, proposition, corollar, etc.) and I always want a line break after the label.

share|improve this question

marked as duplicate by lockstep, Marco Daniel, cmhughes, Joseph Wright Dec 12 '11 at 18:17

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.

1  
It really depends on your loaded package. Please have a look at this question: tex.stackexchange.com/questions/5599/… –  Marco Daniel Dec 10 '11 at 12:58

2 Answers 2

up vote 8 down vote accepted

The answer depends on the package used to declare the theorem-like structures. If you are using the ntheorem package, you can simply use the predefined break style:

\documentclass{article}
\usepackage{ntheorem}
\usepackage{lipsum}

\theoremstyle{break}
\newtheorem{theorem}{Theorem}

\begin{document}

\begin{theorem}[Some note]
\lipsum*[2]
\end{theorem}

\end{document}

enter image description here

If you are using amsthm, you will have to define your own style through the \newtheoremstyle command. Here's an example of such a definition:

\documentclass{article}
\usepackage{amsthm}
\usepackage{lipsum}

\newtheoremstyle{break}
  {\topsep}{\topsep}%
  {\itshape}{}%
  {\bfseries}{}%
  {\newline}{}%
\theoremstyle{break}
\newtheorem{theorem}{Theorem}

\begin{document}

\begin{theorem}[Some note]
\lipsum*[2]
\end{theorem}

\end{document}

enter image description here

share|improve this answer
4  
Hi, I am trying to do this method and it works for most cases except when I begin \begin{enumerate} right after the theorem. in whcih case it dosnt break –  masfenix Mar 4 '13 at 5:26
1  
I have just encountered the same problem with \begin{enumerate}. Would be happy for help, or I'll try a different package probably. –  quapka Apr 14 '14 at 20:15

this is a "break" style recommended in the ams' "newtheorem and theoremstyle test" for amsthm:

\newtheoremstyle{break}% name
  {}%         Space above, empty = `usual value'
  {}%         Space below
  {\itshape}% Body font
  {}%         Indent amount (empty = no indent, \parindent = para indent)
  {\bfseries}% Thm head font
  {.}%        Punctuation after thm head
  {\newline}% Space after thm head: \newline = linebreak
  {}%         Thm head spec

\theoremstyle{break}
\newtheorem{thm}{Theorem}

look here for the pdf output and the input for this documentation. the files (named thmtest.*) are also on ctan.

share|improve this answer
    
What if I want theorems to be on a new line but propositions on the same line? like theorem 12\\Let $x$ be... but proposition 23: For all $y$... –  whatever Aug 4 at 14:40
    
@metacompactness -- use a different \theoremstyle. \theoremstyle{plain} is the most appropriate for propositions. (amsthm has three predefined styles; they are described in the documentation.) –  barbara beeton Aug 4 at 16:38

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