Skip to content

Commit d9e8463

Browse files
committed
Properly note columns when using asides
Fixes #1077
1 parent 4471ea2 commit d9e8463

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/resources/filters/layout/columns.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ function columns()
1717
Span = function(el)
1818
-- a span that should be placed in the margin
1919
if _quarto.format.isLatexOutput() and hasMarginColumn(el) then
20+
noteHasColumns()
2021
tprepend(el.content, {latexBeginSidenote(false)})
2122
tappend(el.content, {latexEndSidenote(el, false)})
2223
return el
2324
else
2425
-- convert the aside class to a column-margin class
2526
if el.attr.classes and tcontains(el.attr.classes, 'aside') then
27+
noteHasColumns()
2628
el.attr.classes = el.attr.classes:filter(function(attr)
2729
return attr ~= aside
2830
end)

0 commit comments

Comments
 (0)