2

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!

4

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

  • That was easy! :) Thx! – mrbela Nov 28 '13 at 14:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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