Skip to content

Extra padding in boxes when only a math environment is included #18

@ekuiter

Description

@ekuiter

Minimum nonworking example related to a discussion over at the SPL course.

image

Source code:

\documentclass[
	aspectratio=169, % default is 43
	8pt, % font size, default is 11pt
]{beamer}
\usepackage{../fancybeamer} % use the fancy beamer package

\begin{document}

\begin{frame}{}
	\begin{fancycolumns}[columns=3]
		\begin{definition}{only text works}
			like this!
		\end{definition}
	\nextcolumn
		\begin{example}{only math has weird padding}
			\begin{align*}
				\Phi(FM) = ConfigDB
			\end{align*}
		\end{example}
		\begin{example}{this can be manually adjusted}
			\vspace*{-3mm}
			\begin{align*}
				\Phi(FM) = ConfigDB
			\end{align*}
		\end{example}
		\begin{example}{but it depends on font size}
			\vspace*{-1.5mm}
			\small
			\begin{align*}
				\Phi(FM) = ConfigDB
			\end{align*}
		\end{example}
	\nextcolumn
		\begin{note}{only looks good when}
			there is text above
			\begin{align*}
				\Phi(FM) = ConfigDB
			\end{align*}
		\end{note}
	\end{fancycolumns}
\end{frame}

\end{document}

Is this intended? What can we do about it, apart from vspace hacks? (Inline math with $$ works, but we need proper environments like align, equation etc.)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions