Is it possible to have a margin note appear in the margin at the start of a paragraph, taking priority over margin references cited in the same paragraph?
In the following example, I'd like the note to appear in the position of the reference, followed by the reference.
To reproduce, start a new Quarto book project and add two elements:
(1) add the following text to index.qmd
file below the pre-existing code block.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque blandit porta massa, eget vehicula est imperdiet ut. Mauris elementum nisi consequat fermentum luctus. Mauris vel arcu vitae nibh molestie porttitor. Integer vel pellentesque nulla. Suspendisse potenti. Donec ipsum turpis, facilisis sed neque ut, congue bibendum erat. Aliquam erat volutpat. Sed hendrerit turpis nec porttitor bibendum. Aenean vel porttitor neque.
Nam sit amet eros arcu. Mauris vitae sem nisi. Duis interdum mauris vitae varius congue. Curabitur at sem dignissim, porta lacus quis, rutrum urna. Donec tellus lacus, aliquam vitae elit at, pellentesque commodo velit. Sed malesuada velit eget orci rutrum, non vestibulum arcu fermentum. Sed id elit pretium, ultrices nunc eget, ornare lorem. Phasellus tincidunt fermentum justo tempus tincidunt. Suspendisse consequat vehicula lacinia. Etiam pharetra nisl in dui aliquam, vitae porttitor neque pellentesque. Donec et scelerisque ante.[@knuth84]
:::{.column-margin}
I want to put a note level with the start of the paragraph that begins with "Nam sit amet eros arcu".
:::
(2) YAML
Add citation-location: margin
to the YAML in _quarto.yml
.
ps. In the past, I believe placing .column-margin
ABOVE the paragraph led to the desired behavior.
R version 4.3.2 (2023-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.1
quarto::quarto_version()
#[1] ‘1.4.555’