Text Formattingabovedisplayskip in preamble

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Nabla94
Posts: 4
Joined: Sun Dec 03, 2017 10:02 pm

abovedisplayskip in preamble

Post by Nabla94 »

Hi,

I would like to include abovedisplayskip in my preamble, but it seems to me as if it would only work within the document-environment. In addition I noticed strange correlations, see MWE. An empty line before abovedisplayskip, or normalsize afterwards seem to disable abovedisplayskip... Does anybody know why?

Is it possible to set \abovedisplayskip or anything similar in the preamble so that it is valid for the whole code?

Code: Select all

\documentclass{article}
\usepackage{blindtext}
\setlength{\abovedisplayskip}{40pt}	% no effect

\begin{document}

\blindtext
\begin{equation}
	a=b+c
\end{equation}

\setlength{\abovedisplayskip}{40pt}	% no effect due to empty line
\blindtext
\begin{equation}
	a=b+c
\end{equation}
\blindtext
\setlength{\abovedisplayskip}{40pt}	% works
\begin{equation}
	a=b+c
\end{equation}
\normalsize	% disables abovedisplayskip
\blindtext
\begin{equation}
	a=b+c
\end{equation}
\blindtext

\end{document}

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
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

abovedisplayskip in preamble

Post by Ijon Tichy »

Please, if you make crossposts like this always adds links!
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Nabla94
Posts: 4
Joined: Sun Dec 03, 2017 10:02 pm

abovedisplayskip in preamble

Post by Nabla94 »

sorry! :)
Nabla94
Posts: 4
Joined: Sun Dec 03, 2017 10:02 pm

abovedisplayskip in preamble

Post by Nabla94 »

Solved here: https://golatex.de/viewtopic.php?f=5&p=115539#p115539

Normalsize (and therefore begin document) contains the abovedisplayskip command and therefore disables values set before.
Post Reply