quarto-dev / quarto-dev/quarto-cli
Referenced LaTeX table placed in {.column-margin} causes render error
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.