Search code examples
pandocbeamer

How can I set the vertical alignment in Pandoc's beamer columns?


The following code is adapted from the official documentation:

:::::::::::::: {.columns align=center}
::: {.column width="40%"}
contents...
:::
::: {.column width="60%"}
contents...

more content
:::
::::::::::::::

I would expect both columns to center vertically.

When running pandoc document.md -t beamer, this outputs (among other things) the line \begin{columns}[T], which aligns the columns at the top, instead of outputting \begin{columns}[c] or just \begin{columns}.

I've tried looking at the code already, but my Haskell and my understanding of pandoc's interna is too bad to understand it.

Am I doing something wrong? Or is this just a bug? Is align=center supposed to do what I think it should?


Solution

  • The commenters under my question gave me the decisive hint: I was simply using an old version of Pandoc. In fact, the feature is brand-new: https://github.com/jgm/pandoc/releases/tag/2.10 (here's the PR)

    I happened to read the documentation on the website, which is already updated, but did not have the newest version locally.