TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Considering this post theorem environment with hanging indentation and Stefan's answer, I'd be interested in the same approach with ntheorem. I've been through the .sty file but I have hard time finding where the beginning and the end of the theorem environments are defined.

share|improve this question
up vote 4 down vote accepted

You can use the predefined commands of ntheorem to manipulate the style. In the example I uses \theoremstyle{break} do set the global style.

\theoremindent is used to set the indention of the whole environment.

theoremheaderfont is used befor every header. So I use this command to "reindent" the \theoremindent



share|improve this answer
I was just going to give this same solution ;-) – Gonzalo Medina Nov 12 '11 at 20:06
@GonzaloMedina: The first time I am faster as you ;-) – Marco Daniel Nov 12 '11 at 20:07
indecently smart! – pluton Nov 12 '11 at 20:26

Here we define a theorem style quote, which is similar to the break style but uses a quote environment in addition. As example, I took the theorem example from your link.

  {\item[\rlap{\vbox{\hbox{\hskip\labelsep \theorem@headerfont
          ##1\ ##2\theorem@separator}\hbox{\strut}}}]\quote}%
  {\item[\rlap{\vbox{\hbox{\hskip\labelsep \theorem@headerfont
          ##1\ ##2\ (##3)\theorem@separator}\hbox{\strut}}}]\quote}
\section*{The Theorem of Pythagoras}
Text body. Text body. Text body.
    Let $a,b,c$ the sides of a rectangular triangle.
    Without loss of generality, we assume that  $a<b<c$ .
    Then, the following equality holds:
          \[a^2 + b^2 = c^2\]
\noindent More text. And even more text.

Theorem with indentation

share|improve this answer
Thanks. I already modified this portion of the code for other purposes but I could not guess it was possible to embed the quote environment here. – pluton Nov 12 '11 at 20:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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