Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Get preview of references and footnotes when hover in bookdown

It looks like this ebook is done with bookdown:

https://mixtape.scunning.com/

When hovering over a reference or footnote, the information is displayed already:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

What is the name of this feature?

>Solution :

The current online version of Causal Inference: The Mixtape is actually done using Quarto, not {bookdown}. And AFAIK, it seems Quarto makes use of Tippy.js to show footnotes on hover.

However, bookdown::bs4_book() has similar functionality. It has an argument footnotes_inline which is by-default TRUE.

footnotes_inline: By default, footnotes will be set inline and shown on hover. Set to FALSE to keep footnotes at the bottom of the page with links.

As an example of bookdown::bs4_book, checkout the footnote used in this section of Mastering Shiny book

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading