quarto-dev / quarto-dev/quarto-cli

Referenced LaTeX table placed in {.column-margin} causes render error

Open
#8,772 2 comments 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Feb 18, 2024.

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

Description

Bug description

When surrounding the working example in this comment

https://github.com/quarto-dev/quarto-cli/discussions/6734#discussioncomment-6919437

with :::{.column-margin} it no longer renders to PDF.

Good Code

---
format: pdf
---
See @tbl-1

::: {#tbl-1}

```{=latex}
\begin{tabular}{ll|l}
  a & b & c \\
  \hline
  1 & 2 & 3 \\
\end{tabular}
```

This is a table caption.

:::

Bad Code

---
format: pdf
---
See @tbl-1

::::::{.column-margin}
::: {#tbl-1}

```{=latex}
\begin{tabular}{ll|l}
  a & b & c \\
  \hline
  1 & 2 & 3 \\
\end{tabular}
```

This is a table caption.

:::
::::::
Error
ERROR:
compilation failed- error
LaTeX Error: Not in outer par mode.
Quarto check output

Did a git pull on 2024-02-18. (9d91693f9)

[✓] Checking tools....................OK
TinyTeX: v2024.02

[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /home/sasja/.TinyTeX/bin/x86_64-linux
Version: 2023

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.