You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we use typst:no-figure on our tables (implemented in jgm/pandoc#9778), Pandoc may not enclose tables in blocks.
Unfortunately, when the Pandoc Typst writer encounters typst:text:fontor typst:text:size on a table, it emits #set text(...) before the table, which will affect the entire scope.
E.g.
---
format: typst
---
Normal paragraph text.
```{=html}
<table style="font-size: 8px;">
<tr><td>A</td><td>B</td></tr>
</table>
```
Normal paragraph text.
produces
Normal paragraph text.
#settext(size: 6pt); #table(
columns: 2,
align: (auto,auto,),
[A], [B],
)
Normal paragraph text.
Oops!
One way to correct the Typst output is to wrap the set text + table in #[...]:
Normal paragraph text.
#[#settext(size: 6pt); #table(
columns: 2,
align: (auto,auto,),
[A], [B],
)]
Normal paragraph text.
Plan:
Add temporary patch, wrapping in #[] block, to our Typst post-processing filter here:
Since we use
typst:no-figure
on our tables (implemented in jgm/pandoc#9778), Pandoc may not enclose tables in blocks.Unfortunately, when the Pandoc Typst writer encounters
typst:text:font
ortypst:text:size
on a table, it emits#set text(...)
before the table, which will affect the entire scope.E.g.
produces
Oops!
One way to correct the Typst output is to wrap the
set text
+ table in#[...]
:Plan:
#[]
block, to our Typst post-processing filter here:quarto-cli/src/resources/filters/quarto-post/typst.lua
Lines 122 to 126 in 412ea63
The text was updated successfully, but these errors were encountered: