Skip to content
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

stevetemplates::beamer producing table of contents at the end of document #10

Closed
WihanZA opened this issue Jan 27, 2022 · 5 comments
Closed

Comments

@WihanZA
Copy link

WihanZA commented Jan 27, 2022

Hi! Thanks for your wonderful templates package. I'm a newcomer to the package and currently working from a R Markdown document initiated from the template. A table of contents is appearing at the end of my document. toc = FALSE in the YAML under stevetemplates::beamer: does not seem to work, nor am I sure how to move it at all. I can overcome the issue when I knit the .Rmd file and remove the toc at the end of the corresponding tex document , and compile a pdf from there. Thanks in advance, I'm really loving the templates so far. Regards

@almartin82
Copy link

almartin82 commented Jan 16, 2023

I can reproduce this using the skeleton document.

I believe that this is because the template has a hand-coded table of contents section that is not controlled by the toc logic.

@almartin82
Copy link

@WihanZA I forked the project and opened a PR that removes the hardcoded TOC - you can install using devtools::install_github("almartin82/stevetemplates") if you'd like

@svmiller
Copy link
Owner

For what it's worth, this a deliberate design feature. I like this trailing table of contents because it better facilitates an ability to jump back to assorted sections of a presentation. It's also a better signal of "presentation is over" than just ending on the conclusion section. It ultimately works for my purposes.

That said, the development version of the package now has a no_toc_after: field in the YAML that can disable this trailing table of contents. Just specify it in the YAML to be TRUE.

@WihanZA
Copy link
Author

WihanZA commented Jan 17, 2023

Excellent! Thanks @almartin82. @svmiller the trailing toc is sensible for the reasons you provide. Thanks for the new feature.

@almartin82
Copy link

Love it! Great outcome 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants