bookdown
bookdown copied to clipboard
Include Tufte-style margin notes and figures in gitbook/bookdown
Thanks for your work on this excellent package. I'd like to put in a feature request to allow Tufte-style margin notes in gitbook/bookdown. Margin/side notes and figures are possible with the tufte_html_book() output format using ^[footnote content]
or margin_note()
or marginfigure
. But I'd prefer to stick with gitbook because gitbook has features that the Tufte style does not, including a floating table of contents. If it's helpful, there are other attempts to adapt gitbook to include margin notes (see below), but it'd be nice for this feature to be integrated into the package for use with gitbook and bookdown.
https://community.rstudio.com/t/bookdown-contest-submission-gitbook-style-tufte-style-for-web-book/11666/6 https://rdrr.io/github/dtkaplan/SDSdata/man/margin_note.html https://github.com/susanemcg/pandoc-tufteLaTeX2GitBook https://github.com/CrumpLab/statisticsLab/issues/17
Thanks!
By filing an issue to this repo, I promise that
- [x] I have fully read the issue guide at https://yihui.org/issue/.
- [x] I have provided the necessary information about my issue.
- If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
- If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included
xfun::session_info('bookdown')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/bookdown')
. - If I have posted the same issue elsewhere, I have also mentioned it in this issue.
- [x] I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
I second this idea. The gitbook+tufte style could have a default gitbook view without the tufte-style margin. The hamburger menu icon can be used as a display toggle between toc and margin. In that way, we won't have both the side-bar toc and the margin on display at the same, which is an efficient way of using the screen space.