Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions news/changelog-1.10.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ All changes included in 1.10:

## Formats

### `pdf`

- ([#13588](https://github.com/quarto-dev/quarto-cli/issues/13588)): Fix Lua error when rendering PDF with `reference-location: margin` and a footnote alongside a figure with `fig-cap`. (author: @mcanouil)

### `typst`

- ([#14261](https://github.com/quarto-dev/quarto-cli/issues/14261)): Fix theorem/example block titles containing inline code producing invalid Typst markup when syntax highlighting is applied.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/filters/quarto-post/latex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ function render_latex()
Note = function(n)
if marginReferences() then
-- This is to support multiple paragraphs in footnotes in margin as sidenotes CTAN has some issue (quarto-dev/quarto-cli#7534)
n.content = pandoc.Para(pandoc.utils.blocks_to_inlines(n.content, {pandoc.RawInline('latex', '\n\\endgraf\n')}))
n.content = pandoc.Blocks({pandoc.Para(pandoc.utils.blocks_to_inlines(n.content, {pandoc.RawInline('latex', '\n\\endgraf\n')}))})
return n
end
end
Expand Down
22 changes: 22 additions & 0 deletions tests/docs/smoke-all/2026/04/30/13588.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: footnote and fig-cap with reference-location margin in PDF (#13588)
format: pdf
reference-location: margin
_quarto:
tests:
pdf: null
latex:
ensureFileRegexMatches:
- ['This is a footnote']
- []
---

A footnote[^1] and a figure.

[^1]: This is a footnote.

```{r}
#| fig-cap: Some figure

plot(1:10, 1:10)
```
Loading