## LaTeX forum ⇒ Math & Science ⇒ Small vertical spacing glitch in footnote Topic is solved

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Cham
Posts: 904
Joined: Sat Apr 02, 2011 4:06 pm

### Small vertical spacing glitch in footnote

I'm having an extra vertical space under an align environment that I need to remove. Here's a MWE to show the problem:
\documentclass[12pt,letterpaper,twoside]{book}\usepackage[T1]{fontenc}\usepackage{lmodern}\usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot,showframe]{geometry}\usepackage{setspace}\setstretch{1.1}\raggedbottom\usepackage{microtype}\usepackage[bottom]{footmisc}  % Options : [ perpage ], [ symbol ], [ multiple ]\usepackage{amsmath}\usepackage{amsfonts}\usepackage{amssymb}\usepackage{mathtools} \begin{document} Blablabla\footnote{Blablabla :	\begin{align*}		x &= \frac{A}{B},		& y &= \frac{C}{D}.	\end{align*}} \end{document}

Here's a preview with the spacing problem shown in red:
extraspace.jpg (15.38 KiB) Viewed 213 times

How can I remove the extra space just under these aligned equations, in that footnote?

Adding the command \vspace{-12pt} just under the align environment is a solution, but it feels like an ugly hack to me. Is there a better solution?

Stefan Kottwitz
Posts: 9444
Joined: Mon Mar 10, 2008 9:44 pm
Hi Cham,

an align environment is not perfect in a footnote, since it comes with space before and after. You could set it to zero within the footnote:

Blablabla\footnote{\setlength{\belowdisplayskip}{0pt}Blablabla :	\begin{align*}		x &= \frac{A}{B},		& y &= \frac{C}{D}.	\end{align*}%}

Stefan

Cham
Posts: 904
Joined: Sat Apr 02, 2011 4:06 pm
Thanks Stefan,

it's working. But I also get the same problem with an equation environment (unless I used your trick). That's occuring with a more complicated preamble settup. The MWE below doesn't show it:
\documentclass[12pt,letterpaper,twoside]{book}\usepackage[T1]{fontenc}\usepackage{lmodern}\usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot,showframe]{geometry}\usepackage{setspace}\setstretch{1.1}\raggedbottom\usepackage{microtype}\usepackage[bottom]{footmisc}  % Options : [ perpage ], [ symbol ], [ multiple ]\usepackage{amsmath}\usepackage{amsfonts}\usepackage{amssymb}\usepackage{mathtools} \begin{document} Blablabla\footnote{Blablabla :	\begin{equation*}		x = \frac{A}{B},		\qquad\qquad		y = \frac{C}{D}.	\end{equation*}} \end{document}

Stefan Kottwitz
Posts: 9444
Joined: Mon Mar 10, 2008 9:44 pm
Yes, also equation is for "displayed" math, centered with space before and after.

Aligned math without additional space can be done using an aligned environment, such as

Blablabla\footnote{Blablabla :      \centering	\begin{aligned} x &= \frac{A}{B}, & y &= \frac{C}{D}. \end{aligned}}

Such an aligned block can be arranged in footnotes, text, or even in tables.

Stefan