-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
Table of Contents #217
Comments
I think the TOC could be dynamically generated by JavaScript. I don't have time for it, but I think it is an excellent JS exercise. I'll leave it to other contributors. I'm not sure how long it will take, but for me, I guess it would take less than an hour. Implementation-wise: use JS to find all This feature can also be as fancy as beamer: there could be multiple TOC slides, and each TOC fades out the headers that appear before this TOC page, so only headers that have not yet been talked about are highlighted. Or only highlight the next header, like |
Hey @EvaMaeRey you can try my solution on following SO question. |
Cool. That seems like a good approach! |
@EvaMaeRey there's also this |
@step- I am aware of that but I couldn't set it up properly, do you have a minimum working example of that? |
@markushhh no, not really. However, inspired by your script, I wrote this hack:
|
By the way, there has to be a better way to insert JavaScript into |
Have you tried the beforeInit field? |
@pat-s |
In the list of remark.js plugins, there is a table of contents plugin, remark-toc. Is there a way to include the plugins into |
That remark.js is not our remark.js. |
TOC is indeed a very desirable feature to have. However, it would still be somewhat limited because Any chance to implement that in the future? Thank you |
Hi Yihui, pursuant to the discussion on Twitter, I'm writing to request the capability for a table of contents in Xaringan. Thank you!
By filing an issue to this repo, I promise that
xfun::session_info('xaringan')
. 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('yihui/xaringan')
.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: