quarto-dev / quarto-dev/quarto-cli
cap-location: margin doesn't play nicely with .column-page & .column-margin (PDF)
Open
Nobody has claimed this yet.
article-layout
documentation
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
I'm trying out the Tufte style features (PDF) with quarto but I can't get figure captions to work. Here's my output:
---
reference-location: margin
citation-location: document
tbl-cap-location: margin
cap-location: margin
pdf-engine: lualatex
format:
pdf:
papersize: a4
geometry:
- showframe # not for final release
- left=15.0mm
- textwidth=102.0mm
- marginparsep=7.7mm
- marginparwidth=70.3mm
---
And this is my qmd code:
{#fig-widea}
@fig-widea is a nice one.
---
::: {.column-page #fig-widea-wider }

WHY DO YOU TREAT ME LIKE NOTHING!?!?! WHY DO YOU TREAT ME LIKE NOTHING!?!?! WHY DO YOU TREAT ME LIKE NOTHING!?!?! WHY DO YOU TREAT ME LIKE NOTHING!?!?! WHY DO YOU TREAT ME LIKE NOTHING!?!?! WHY DO YOU TREAT ME LIKE NOTHING!?!?! WHY DO YOU TREAT ME LIKE NOTHING!?!?! WHY DO YOU TREAT ME LIKE NOTHING!?!?! WHY DO YOU TREAT ME LIKE NOTHING!?!?! WHY DO YOU TREAT ME LIKE NOTHING!?!?! WHY DO YOU TREAT ME LIKE NOTHING!?!?! WHY DO YOU TREAT ME LIKE NOTHING!?!?! WHY DO YOU TREAT ME LIKE NOTHING!?!?!
:::
@fig-widea-wider is a bit wider.
---
for spacing...
---
::: {.column-margin #fig-wideb}

Here's the caption text to the village picture. Here's the caption text to the village picture. Here's the caption text to the village picture. Here's the caption text to the village picture.
:::
@fig-wideb looks like a nice place.
As you can see the caption text is there, but doesn't respect the image height (it seems to me).
In case it's not clear, these are the properties I expected:
- The caption text to Figure 2 should be in the margin, starting at the right underneath the image.
- The caption to Figure 3 should be underneath the image, all placed in the margin.
Quarto check output
Based on git commit d089957780198d26b0ba96269b4e05e1c35be117
Fri Jan 5 08:56:19 2024
Quarto 99.9.9
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 99.9.9
Path: /home/sasja/.quarto/quarto-cli/package/dist/bin
[✓] Checking tools....................OK
TinyTeX: v2024.01
Chromium: 869685
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /home/sasja/.TinyTeX/bin/x86_64-linux
Version: 2023
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.11.6
Path: /usr/bin/python3
Jupyter: 5.5.1
Kernels: python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.3.2
Path: /usr/lib64/R
LibPaths:
- /usr/lib/R/library
knitr: 1.45
rmarkdown: 2.25
[✓] Checking Knitr engine render......OK
But issue is also there on quarto-1.4.534 (Aug 4 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.