3

I learned here that I can use \\[<len>] to explicitly set the vertical skip space between lines, e.g., <len> set to 3ex. I'd like to set <len> to, say, 2-times the normal length in this environment (e.g., align or dcases) but I don't know the length parameter that determines this.

Another example: I'd like to change the explicit 3ex below to some multiple of the vertical line-skip space in the align environment. Does anyone know what that is?

\documentclass{beamer}
\usepackage{amsmath}
\usepackage{mathtools}
\begin{document}
  \begin{frame}
    Some sample text
    \begin{spreadlines}{3ex}
      \begin{align*}
        \pi(\mu \mid x) &= \frac{\pi(\mu)\,\mathcal{L}(x \mid \mu)}{p(x)} \\
                        &= \begin{dcases*}
                             \frac{(1-w)\phi(x)}{p(x)} & for \(\mu=0\) \\
                             \frac{w\gamma(\mu)\phi(x-\mu)}{p(x)} & for \(\mu \neq 0\).
                           \end{dcases*}
      \end{align*}
    \end{spreadlines}
  \end{frame}
\end{document}

2 Answers 2

4

use multiples of \baselineskip and in tabulars/arrays \normalbaselineskip

\documentclass{scrartcl}
\usepackage{mathtools}

\begin{document}

\begin{spreadlines}{2\baselineskip}
  \begin{align*}
    \pi(\mu \mid x) &= \frac{\pi(\mu)\,\mathcal{L}(x \mid \mu)}{p(x)} \\[\normalbaselineskip]
                    &= \begin{dcases*}
                         \frac{(1-w)\phi(x)}{p(x)} & for \(\mu=0\) \\
                         \frac{w\gamma(\mu)\phi(x-\mu)}{p(x)} & for \(\mu \neq 0\).
                       \end{dcases*}
  \end{align*}
\end{spreadlines}

\end{document}
4
  • I noticed that using 2\baselineskip instead of either 3ex or 5\jot shrinks the spacing between the align environment and the text immediately preceding it. I'm doing this in a beamer document so that might be driving this result.
    – lowndrul
    Oct 26, 2011 at 17:12
  • then give a complete example not only a fragment of code
    – user2478
    Oct 26, 2011 at 17:53
  • I completed the example I originally provided.
    – lowndrul
    Oct 27, 2011 at 1:30
  • I cannot see it. With \begin{spreadlines}{\normalbaselineskip} i get no other spacing
    – user2478
    Oct 27, 2011 at 6:48
3

The linespacing in align and gather is defined by a length called \jot, though exactly what this value represents, I don't know.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{minipage}[t]{.45\textwidth}
  \begin{gather}
    a = b \\
    c = d
  \end{gather}
\end{minipage}
\begin{minipage}[t]{.45\textwidth}
  \begin{gather}
    a = b \\[2\jot]
    c = d
  \end{gather}
\end{minipage}

enter image description here

1
  • 1
    \jot represents a length for adjusting the spacing: the default is to add 1\jot to the baseline skip.
    – egreg
    Oct 26, 2011 at 16:41

You must log in to answer this question.

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