Math & Sciencespace around equation

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
matthes
Posts: 2
Joined: Tue Jun 23, 2009 10:00 am

space around equation

Post by matthes »

Hello,

I am trying to get control over the white spaces LaTeX puts around an equation environment. I am using fleqn, so I tried \topsep instead of \abovedisplayskip, but neither of the two worked.
Thanks in advance your your help!


Here is a minimum example:

Code: Select all

\documentclass[a4paper]{article}%
\usepackage[colorlinks,linkcolor=cyan]{hyperref}
\usepackage[ngerman]{babel}
\usepackage[leqno,fleqn]{amsmath}
\usepackage[noheadfoot,nomarginpar,margin=3cm]{geometry}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}%
\setcounter{MaxMatrixCols}{30}
\providecommand{\U}[1]{\protect\rule{.1in}{.1in}}
\setlength{\mathindent}{2cm}
\setlength{\parindent}{0cm}
\newenvironment{proof}[1][Proof]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}
\renewcommand{\theequation}{\thesection.\arabic{equation}}
\makeatletter\@addtoreset{equation}{section}\makeatother
\renewcommand{\theHequation}{\theHsection.\arabic{equation}}
\renewcommand{\equationautorefname}{Formel}
\topsep=opt

\begin{document}
Faktorisierung eines Polynoms mit den reellen Nullstellen $x_1, \hdots, x_m$ mit den Vielfachheiten 
\begin{equation}
P_n(x)=\sum \limits^{n}_{k=0} a_kx^k = a_n \prod \limits_{l=1}^{m} (x-x_1)^{k_l} \label{f4.14}
\end{equation}
Nullstelle $x_0$ hat \bf Vielfachheit \rm $k$, wenn $f(x)$ ohne Rest durch $(x-x_0)^k$, aber nicht durch $(x-x_0)^{k+1}$ teilbar ist
\end{document}
llarian1981

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

space around equation

Post by phi »

The spacing is controlled by \abovedisplayskip and \abovedisplayshortskip. The problem here is that the standard classes reset these lengths whenever the font size is changed. So instead of setting them directly, add your changes to the commands \normalsize, \small and so on:

Code: Select all

\addto{\normalsize}{\setlength{\abovedisplayskip}{20ex}}
matthes
Posts: 2
Joined: Tue Jun 23, 2009 10:00 am

Re: space around equation

Post by matthes »

That works fine, thanks a lot!!
llarian1981
Post Reply