Open
Description
Bug description
It seems that a figure placed inside a {.column-margin}
div that's also not a #fig
still uses geometry->textwidth
for scaling in percentages. It should probably use geometry->marginparwidth
.
Second page code shows other cases where it works as I expect.
---
format:
pdf:
papersize: a4
geometry:
- showframe # Debugging purposes
- left=15.0mm
- textwidth=102.0mm
- marginparsep=7.7mm
- marginparwidth=70.3mm
---
::: {#fig-mainseg}
{width=100%}
It's a basic fact of life.
:::
:::{.column-margin #fig-marginseg cap-location=bottom}
{width=100%}
This seems to work fine...
:::
\vspace{3cm}
:::{.column-margin}
{width=100%}
This is where we break.
:::
{{< pagebreak >}}
:::{.callout-note title="image in callout"}
Here we see the C mom teaching about `\0`.
The image width seems proper.
{width=100%}
:::
::::::{.column-margin}
:::{.callout-note title="image in marginal callout"}
This works fine...
{width=100%}
...too.
:::
::::::
Quarto check output
sasja@ed800:~/.quarto/quarto-cli$ git show -s --format="%as %H"
2024-02-20 5446285d6aebd56cca2785610edad9c18ea06ea3