Skip to content

layout-ncol not working in beamer #5137

@sje30

Description

@sje30

Bug description

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

---
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

  • 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.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.
  • Please provide the output of quarto check so we know which version of quarto and its dependencies you're running.

Metadata

Metadata

Assignees

Labels

beamerbugSomething isn't workinglatexLaTeX engines related libraries and technologieslayoutneeds-discussionIssues that require a team-wide discussion before proceeding further

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions