LaTeX forum ⇒ Text Formattingabovedisplayskip in preamble Topic is solved

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

abovedisplayskip in preamble

Postby Nabla94 » Sat May 01, 2021 7:17 pm

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?

\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}

User avatar
Ijon Tichy
Posts: 526
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Sat May 01, 2021 7:51 pm

Please, if you make crossposts like this always adds links!

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

Postby Nabla94 » Sat May 01, 2021 7:58 pm

sorry! :)

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

Postby Nabla94 » Sat May 01, 2021 8:44 pm

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.


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 3 guests