Add many hidden items to html TOC using rmarkdown
I am trying to build in a list of hyperlinks to an html table of contents using rmarkdown. I don’t want the list to appear in my html document. I found a useful way to hide these ‘headers’ in the document using a little css tidbit. This works well when I manually input information, see below. But when I try to use r to print headers (say a few hundred) they do not appear at all. It really seems like this should work.
Content overlaps with floating table of contents in R markdown file when scrolling horizontally
I recently learned that it’s possible to use toc_float: true
in a Rmd file’s YAML header to create a sticky table of contents that is placed to the left of the Rmd file’s contents. This is great because I am currently dealing with a very long document containing many headers that benefits greatly from this navigation feature.