### Bug description

MWE adapted from the block-layout section of the docs:

````md
---
title: "bug"
format: beamer
---

## test

Taken from <https://quarto.org/docs/authoring/figures.html#block-layout>

::: {layout-ncol=2}
### List One

- Item A
- Item B
- Item C

### List Two

- Item X
- Item Y
- Item Z
:::
````


When I compile the above minimal example, I get an error from tex:

```
updating tlmgr

updating existing packages

compilation failed- error
LaTeX Error: \begin{beamercolorbox} on input line 223 ended by \end{minipage}
.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.223 \end{frame}
```

but when I change it to "format: pdf" everything compiles okay.  Earlier layout examples on that documentation (for aligning images) work fine in beamer.  What's up?

I see elsewhere in the quarto docs an alternative way for making multiple columns, <https://quarto.org/docs/presentations/beamer.html#multiple-columns> but there is a certain attraction to the shorter form in this MWE.

Environment:
```
quarto 1.2.475
running on Mac 13.2.1
```


quarto check:

```

[✓] Checking Quarto installation......OK
      Version: 1.2.475
      Path: /Applications/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.11.1
      Path: /Users/stephen/.pyenv/versions/3.11.1/bin/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.2.3
      Path: /opt/homebrew/Cellar/r/4.2.3/lib/R
      LibPaths:
        - /Users/stephen/NOBACKUP/RLIB
        - /opt/homebrew/Cellar/r/4.2.3/lib/R/library
      rmarkdown: 2.19

[✓] Checking Knitr engine render......OK

```

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [X] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
cscheid
2023-04-09T07:39:51Z
sje30
bug latex
v1.4
open
layout-ncol not working in beamer
https://github.com/quarto-dev/quarto-cli/issues/5137