If you're using one of the AMS document classes (amsart or amsbook) or saying \usepackage{amsthm}
, you can define a new theoremstyle, two parameters of which are the skip above the theorem and the skip below the theorem. For example, I like my theorems to use slanted type in the body instead of italics, and so I use the following:
\newtheoremstyle{slplain}% name
{.5\baselineskip\@plus.2\baselineskip\@minus.2\baselineskip}% Space above
{.5\baselineskip\@plus.2\baselineskip\@minus.2\baselineskip}% Space below
{\slshape}% Body font
{}%Indent amount (empty = no indent, \parindent = para indent)
{\bfseries}% Thm head font
{.}% Punctuation after thm head
{ }% Space after thm head: " " = normal interword space;
% \newline = linebreak
{}% Thm head spec
\theoremstyle{slplain}
\newtheorem{thm}[equation]{Theorem} % Numbered with the equation counter
\newtheorem{cor}[equation]{Corollary}
\newtheorem{lem}[equation]{Lemma}
\newtheorem{prop}[equation]{Proposition}
Almost all of the parameters I used for that \newtheoremstyle
command are exactly the ones used for the plain theoremstyle in amsart, except that I changed the body font from \itshape
to \slshape
.
As noted in the comments, the second and third parameters to the \newtheoremstyle
command are the space above and the space below. You can change those to whatever you like (and even change the \slshape
that I use back to \itshape
if that's what you prefer).
\documentclass[10pt,danish,a4paper,oneside,fleqn]{report}
\usepackage[english]{babel}
\usepackage{amsmath,lipsum}
\begin{document}
\setlength{\abovedisplayskip}{0pt}
\setlength{\belowdisplayskip}{0pt}
\setlength{\abovedisplayshortskip}{0pt}
\setlength{\belowdisplayshortskip}{0pt}
\lipsum*[2]
\begin{align*}
A\cap B & = \{b,d,e\} \cap \{a,b,f,g\} \\
& = \{b\}
\end{align*}
\lipsum[3]
\end{document}
Note, however, that this is very poor typography. (lipsum
is just to generate dummy text.)
The four parameters state how much vertical space is inserted between text and a math display. The "short" version is used for equation
, when the last line of text is short.
You should also check the way you're inputting math. You're using too much redundant braces (that in some cases give very bad results). It's quite rare to use explicit spacing commands in math.
Here's the result of typesetting the test file
This is the principle. In case you use font size changing commands, you have to tell LaTeX that you want this zero spacing in all sizes by putting this in the preamble
\usepackage{etoolbox}
\newcommand{\zerodisplayskips}{%
\setlength{\abovedisplayskip}{0pt}%
\setlength{\belowdisplayskip}{0pt}%
\setlength{\abovedisplayshortskip}{0pt}%
\setlength{\belowdisplayshortskip}{0pt}}
\appto{\normalsize}{\zerodisplayskips}
\appto{\small}{\zerodisplayskips}
\appto{\footnotesize}{\zerodisplayskips}
so that the example becomes
\documentclass[10pt,danish,a4paper,oneside,fleqn]{report}
\usepackage[english]{babel}
\usepackage{amsmath,lipsum}
\usepackage{etoolbox}
\newcommand{\zerodisplayskips}{%
\setlength{\abovedisplayskip}{0pt}%
\setlength{\belowdisplayskip}{0pt}%
\setlength{\abovedisplayshortskip}{0pt}%
\setlength{\belowdisplayshortskip}{0pt}}
\appto{\normalsize}{\zerodisplayskips}
\appto{\small}{\zerodisplayskips}
\appto{\footnotesize}{\zerodisplayskips}
\begin{document}
\lipsum*[2]
\begin{align*}
A\cap B & = \{b,d,e\} \cap \{a,b,f,g\} \\
& = \{b\}
\end{align*}
\lipsum[3]
\end{document}
Best Answer
Firstly, below skip should be positive, negative values are ignored. You can clear the spacing provided as standard by writing
before your
\newtheoremstyle
. You can adjust this by changing the values0pt
or using the parameters in the\newtheoremstyle
.Try
for your proof environment. If this is too simplistic, e.g. if you wish to have the
\qed
features of the AMS environment, then you can use the following adaption of the AMS proof codeThe important point is setting the value of
\topsep
to zero.Lastly, the proposition number is wrong because you have asked it to be numbered within
thm
s! You should writewith
[thm]
placed between the other arugments not at the end.Here is this all put in to one sample document.