Charts in Callout Boxes Overflow Their Boundaries in Typst Format #11573
-
DescriptionWhen generating documents in the Typst format with Quarto, charts placed inside callout boxes are rendered in a way that they overflow the boundaries of the box. This negatively impacts the layout and readability of the document. Please find a minimal example here: Any suggestions on how to make them fit into the box? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Which version of Quarto? |
Beta Was this translation helpful? Give feedback.
-
Here is a reproducible example simplified ---
title: Test
format: typst
keep-md: true
---
::: {.callout-note}
## Plots
::: {layout-ncol=5}
![]({{< placeholder format=svg >}})
![]({{< placeholder format=svg >}})
![]({{< placeholder format=svg >}})
![]({{< placeholder format=svg >}})
![]({{< placeholder format=svg >}})
:::
a) Beschreiben Sie die 5 Verteilungsformen. [5 Punkte]
::: But I really think it is a matter of having two many content for the column. Without callout would be the same ---
title: Test
format: typst
keep-md: true
---
## Plots
::: {layout-ncol=5}
![]({{< placeholder format=svg >}})
![]({{< placeholder format=svg >}})
![]({{< placeholder format=svg >}})
![]({{< placeholder format=svg >}})
![]({{< placeholder format=svg >}})
:::
Add a 2 more and image will reduce by are not bound by the margin ---
title: Test
format: typst
keep-md: true
---
## Plots
::: {layout-ncol=7}
![]({{< placeholder format=svg >}})
![]({{< placeholder format=svg >}})
![]({{< placeholder format=svg >}})
![]({{< placeholder format=svg >}})
![]({{< placeholder format=svg >}})
![]({{< placeholder format=svg >}})
![]({{< placeholder format=svg >}})
:::
In the callout example, there are not bound by the callout The typst code is the follwoing
I don't know if there is a way to constraint the @gordonwoodhull do you think this is something we can improve ? If we can we probably should... For callout but maybe also to avoid content going in margin 🤔 We probably have still some work on Article Layout for typst |
Beta Was this translation helpful? Give feedback.
-
Converted to issue #11578 |
Beta Was this translation helpful? Give feedback.
Converted to issue #11578