quarto-dev / quarto-dev/quarto-cli

Subtables & Subfigures fail to compile in beamer format

Open
#13,372 2 comments 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Sep 14, 2025.

beamer bug regression
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

I have:
  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide
Bug description

This minimal example (taken from the documentation) won't compile any more when I upgrade Quarto from v1.7.34 to v1.8.24:

---
title: Tables
format:
  beamer: default
---

### Tables

::: {#tbl-panel layout-ncol=2}
| Col1 | Col2 | Col3 |
|------|------|------|
| A    | B    | C    |
| E    | F    | G    |
| A    | G    | G    |

: First Table {#tbl-first}

| Col1 | Col2 | Col3 |
|------|------|------|
| A    | B    | C    |
| E    | F    | G    |
| A    | G    | G    |

: Second Table {#tbl-second}

Main Caption
:::

Error report:

ERROR: 
compilation failed- error
Package subcaption Error: \subcaption outside float.

See the subcaption package documentation for explanation.

Suspect that this is due to #12775. Above file produces LaTeX code:

\begin{frame}{Tables}
\phantomsection\label{tables}
\begin{columns}[T]
\begin{column}{0.5\linewidth}
\subcaption{\label{tbl-first}First Table}

\centering{

\begin{tabular}{lll}
\toprule
Col1 & Col2 & Col3\\
\midrule
A & B & C\\
E & F & G\\
A & G & G\\
\bottomrule
\end{tabular}

}
\end{column}

\begin{column}{0.5\linewidth}
\subcaption{\label{tbl-second}Second Table}

\centering{

\begin{tabular}{lll}
\toprule
Col1 & Col2 & Col3\\
\midrule
A & B & C\\
E & F & G\\
A & G & G\\
\bottomrule
\end{tabular}

}
\end{column}
\end{columns}
\end{frame}
Quarto check output
Quarto 1.8.24
[>] Checking environment information...
      Quarto cache location: C:\Users\sun123zxy\AppData\Local\quarto
[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.6.3: OK
      Dart Sass version 1.87.0: OK
      Deno version 2.3.1: OK
      Typst version 0.13.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
      Version: 1.8.24
      Path: C:\Program Files\Quarto\bin
      CodePage: 936

[>] Checking tools....................OK
      TinyTeX: v2025.04
      Chromium: (not installed)

[>] Checking LaTeX....................OK
      Using: TinyTex
      Path: C:\Users\sun123zxy\AppData\Roaming\TinyTeX\bin\windows\
      Version: 2025

[>] Checking Chrome Headless....................OK
      Using: Chrome found on system
      Path: C:\Program Files\Google\Chrome\Application\chrome.exe
      Source: Windows Registry

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

[>] Checking Python 3 installation....(None)

      Unable to locate an installed version of Python 3.
      Install Python 3 from https://www.python.org/downloads/

[>] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/


Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.