Math & ScienceHow to skip empty lines

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
kunigami
Posts: 9
Joined: Mon Feb 16, 2009 8:27 pm

How to skip empty lines

Post by kunigami »

Hi,

I'd like to know how to skip a line after a theorem declaration. The code below does what I want, but with an extra dot after the theorem declaration.

Code: Select all

\newtheorem{teo}{Theorem}

\begin{teo}
.\\
 Some text here.
\end{teo}
Does anyone have any idea on how to do that?

Thanks,

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

How to skip empty lines

Post by gmedina »

Hi,

with the help of the amsthm package you could define a new style for theorem-like environments that behaves as desired. Take a look at the following simple example:

Code: Select all

\documentclass{article}
\usepackage{amsthm}

\newtheoremstyle{mystyle}%
  {3pt}%
  {3pt}%
  {\itshape}%
  {}
  {\bfseries}
  {.}
  {\newline}%
  {}%
\theoremstyle{mystyle}
\newtheorem{teo}{Theorem}

\begin{document}

\begin{teo}
The body of the theorem.
\end{teo}

\end{document}
Of course, feel free to adapt the example to suit your needs. Please refer to the package documentation for further information.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
kunigami
Posts: 9
Joined: Mon Feb 16, 2009 8:27 pm

How to skip empty lines

Post by kunigami »

Perfect! Thank you very much.
gmedina wrote:Hi,

with the help of the amsthm package you could define a new style for theorem-like environments that behaves as desired. Take a look at the following simple example:

...

Of course, feel free to adapt the example to suit your needs. Please refer to the package documentation for further information.
Post Reply