Discussion:
newtheoremstyle and indentation
(too old to reply)
Chris
2004-05-12 04:43:00 UTC
Permalink
Does anyone know how to make the text of a theorem indented, like a
hanging indent? I'm using the following code currently:

\newtheoremstyle{mydefinition}%
{5pt}% space above
{5pt}% space below
{}% body font
{\parindent}% indent amount
{\bf}% theorem head font
{}% punctuation after theorem header
{\newline}% space after theorem header
{}% theorem head spec

However, I do not want the header indented. Instead, I would like the
rest of the lines to be indented (and if possible, indented on the
right side too...almost like the quotation environment).

Here is a related post from 1999 that had no response:

---begin post---

Hi guys,

can someone help me. I am using the following theorem style, but I
would
like the text (except of the first line) to be indented.

\newtheoremstyle{defn} {12pt} {} {} {} {\itshape} {:} {1em} {}
\theoremstyle{defn}
\newtheorem{definition}{Definition}
\newtheorem{example}{Example}

I have tried

\newtheoremstyle{defn} {12pt} {} {} {\parindent} {\itshape} {:} {1em}
{}

but this does the other way around. It indents the first line but not
the
others.

I want it to look like this:
Definition 5: Bla bla this is the first line blabla
___This is the second line. It is intended.
___This is the third line.

I hope, I made myself clear :-)
T.

---end post---

~thanks
Lars Madsen
2004-05-12 08:35:54 UTC
Permalink
switch to the ntheorem package

it has a much easier interface
--
/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
AMSMATH Intro: http://www.ams.org/tex/short-math-guide.html
LaTeX Intro: http://people.ee.ethz.ch/~oetiker/lshort/lshort.pdf
Graphics Intro: http://www.ctan.org/tex-archive/info/epslatex.pdf
Superb Class: http://www.ctan.org/tex-archive/help/Catalogue/entries/memoir.html
Remember to post minimal working examples.
Hendrik Maryns
2004-05-12 12:48:39 UTC
Permalink
Post by Lars Madsen
switch to the ntheorem package
it has a much easier interface
But, if I saw it right, the theorem title (given in the optional argument),
is in the same fontstyle as the body. I didn't find a way to get it (e.g.)
boldfaced, but to put \bf in the argument each time. Is there a way to do
this? \theoremheaderfont only changes the font of "Theorem" or whatever the
name is.

?
H.
Lars Madsen
2004-05-12 13:05:16 UTC
Permalink
Post by Hendrik Maryns
Post by Lars Madsen
switch to the ntheorem package
it has a much easier interface
But, if I saw it right, the theorem title (given in the optional argument),
is in the same fontstyle as the body. I didn't find a way to get it (e.g.)
boldfaced, but to put \bf in the argument each time. Is there a way to do
this? \theoremheaderfont only changes the font of "Theorem" or whatever the
name is.
?
H.
not using ntheorem

\documentclass{article}
\usepackage{ntheorem}
\theoremstyle{break}
\theorembodyfont{\normalfont}
\theoremheaderfont{\bfseries}
\theoremseparator{}
\setlength\theoremindent{1em}
\newtheorem{defn}{Definition}
\begin{document}
\begin{defn}[text]
other
\end{defn}
\end{document}

here 'text' is boldface
--
/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
AMSMATH Intro: http://www.ams.org/tex/short-math-guide.html
LaTeX Intro: http://people.ee.ethz.ch/~oetiker/lshort/lshort.pdf
Graphics Intro: http://www.ctan.org/tex-archive/info/epslatex.pdf
Superb Class: http://www.ctan.org/tex-archive/help/Catalogue/entries/memoir.html
Remember to post minimal working examples.
Loading...