0

Is there any way to change the variables \abovedisplayskip \belowdisplayskip etc. for the proof environment only?
I want the default spacing in theorems and definitions, but want to avoid my proofs exploding due to equations.
I use the amsthm package for the proof environment, the main spacing is set in \documentclass[a4paper,12pt]

1
  • 1
    Short answer: "Yes". The likely usability of any longer answer will increase tremendously if you share some details about your document setup. E.g., do you use a package to create theorem-like environments, and how do you determine line-spacing in the document?
    – Mico
    Commented Mar 3, 2021 at 9:26

1 Answer 1

0

After some more searching I found https://tex.stackexchange.com/a/101045/234434 and https://stackoverflow.com/a/1566053
Combining them I got the following which is exactly what I need.

\let\dummyproof\proof  
\def\proof{\dummyproof\setlength{\abovedisplayskip}{0pt}\setlength{\belowdisplayskip}{0pt}}
4
  • proof is defined in amsthm, not in amsmath. And have you tried to use this with \qedhere? Commented Mar 3, 2021 at 21:44
  • @barbarabeeton changed the package in the question, thx. As of the \qedhere, it doesn't mess with the redefined vertical space, if that's what you mean.
    – Xoriun
    Commented Mar 6, 2021 at 12:20
  • \qedhere doesn't have any effect on the vertical space, but some redefinitions of proof manage to obliterate \qedhere, and that's all I was referring to. Commented Mar 6, 2021 at 17:45
  • no, \qedhere works just fine
    – Xoriun
    Commented Mar 9, 2021 at 14:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .