-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
floating TOC in tufte book #72
Comments
Hi, |
Agreed, a floating TOC would be a great feature. |
Sorry, but floating TOC is not supported in this package. I'll consider it in the future. Thanks! |
I would be excited if TOC can be supported in this package. |
I am wondering the following example would make you (@chipbrock) be satisfied for now. |
@yihui any input on this advance. Thanks. |
A solution seems to have been implemented in the book: "Modern Statistics for Modern Biology", combining the tufte with a floating TOC. |
This is a question and issue that has not received an answer on Stackoverflow after a day.
floating TOC in tufte book
Since I posted it I've confirmed it in another approach to standing up a stock tufte book. I believe this is real, although I confess that I'm still learning.
Here is a few-line modification to the index.Rmd file for the demo:
Inclusion of toc: true works. The top_float: true insertion results in the error:
This happens with the toc lines where they are shown and also as an argument to the tufte::tufte_html: line.
I don't see that the need to include a theme is included in the toc section in the "Definitive Guide" book. In any case, addition of a theme in what I think is the normal way doesn't help. I'd appreciate some help.
I have written and am currently using a variation of tufte format starting from (the award-winning!) programmingforpsych but I think I'd prefer to stick with the standard tufte package. But only if I can include the floating toc.
Thanks in advance for your help.
By filing an issue to this repo, I promise that
xfun::session_info('tufte')
. 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/tufte')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: