Text Formatting\parskip for theorems

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
a.clarke
Posts: 1
Joined: Mon Mar 23, 2009 3:32 am

\parskip for theorems

Post by a.clarke »

Does anyone know how to make \setlength{\parskip}{...} work within theorem environments?

For example:

Code: Select all

\begin{theorem}
blah

blah

blah
\end{theorem}
Doesn't space paragraphs properly like normal paragraphs.

In fact, if it's possible to make it possible for all environments, it would be much appreciated.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

\parskip for theorems

Post by localghost »

I advice against modifying the \parskip length because it also affects the ToC and possibly distorts its layout. As a workaround this could be prevented by the parskip package.

But I would go the way of setting these skips manually. There are three commands which add dynamic space between paragraphs.

Code: Select all

\begin{theorem}
  The quick brown fox jumps over the lazy dog.

  \smallskip
  The quick brown fox jumps over the lazy dog.

  \medskip
  The quick brown fox jumps over the lazy dog.

  \bigskip
  The quick brown fox jumps over the lazy dog.
\end{theorem}
This suggestion is for standard classes. Other classes like memoir or those from the KOMA Script bundle have built-in features.


Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply