The first highlight covers lines one and two, and the first note marks line two alone. The note still pairs with that highlight, because its line sits inside the range.
code-line-fragment-indices does the same for the highlight steps. The paragraph below was given index one, and the two highlights were given two and four, so the paragraph arrives first.
Set up the two panels.
par(mfrow =c(1, 2))plot(cars)plot(cars, col ="red")
Annotations in a column layout
A column clips nothing, so each tooltip stays where Quarto put it.
starwars |>head(3)
1
Start from the dataset.
2
Take the first three rows.
The plugin moves a tooltip up to the slide only when something between the marker and the slide clips its overflow.
Why it helps
Without the plugin, the annotations are all present at once and the audience reads ahead.