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.

I use the theorems (from the amsthm-package) to specify definitions, examples and so on..

I want them to do two things:

1) line break after the label 2) non italic text within the theorem!

I googled a bit and found a solution for the first thing.

I have a MWE for it:

\documentclass{article}
\usepackage{amsthm}
\newtheoremstyle{break}
  {\topsep}{\topsep}%
  {\itshape}{}%
  {\bfseries}{}%
  {\newline}{}%
\theoremstyle{break}
\newtheorem{defi}{Definition}
\begin{document}
\begin{defi}[Test]
Foo
\end{defi}
\end{document}

Can you help me solving the second one??That would be very nice!

Thanks for your help!

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Simply delete \itshape...

\documentclass{article}
\usepackage{amsthm}
\newtheoremstyle{break}
  {\topsep}{\topsep}%
  {}{}%
  {\bfseries}{}%
  {\newline}{}%
\theoremstyle{break}
\newtheorem{defi}{Definition}
\begin{document}
\begin{defi}[Test]
Foo
\end{defi}
\end{document} 

Output

enter image description here

share|improve this answer
    
That was easy! :) Thx! –  mrbela Nov 28 '13 at 14:13

Your Answer

 
discard

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.