inbo / INBOmd

An R package with a collection of RMarkdown styles and templates. Elaborate examples are available at https://github.com/inbo/INBOmd_examples
https://inbo.github.io/INBOmd
GNU General Public License v3.0
11 stars 2 forks source link

inbo_slides returned empty toc #66

Closed florisvdh closed 2 years ago

florisvdh commented 3 years ago

While recompiling https://github.com/inbo/tutorials/blob/3231eda/content/tutorials/r_inla/spatial/index.Rmd (because of updating CRS specifications in the tutorials repo), an empty TOC slide was returned in the resulting PDF:

afbeelding

I worked around it (in inbo/tutorials@3dd5f6e) by using INBOmd at 32cd4eb, though clearly this is unwanted.

ElsLommelen commented 3 years ago

The same occurs when choosing this template for a new slideshow. When slide_level is not changed (default 1 is kept) and toc is set to TRUE, the slide titled 'Overzicht' is completely empty. When slide_level is changed to 2, the numbers 1, 2 and 3 appear, similar to the example of @florisvdh, but without the squares (maybe he used slide_level 3?). When moving near these numbers, I noticed there is a link referring to the 1st level title slides. Maybe the text is there but invisible?

Personally I would prefer that the toc shows the content up to the same level as indicated in slide_level, so 2 levels in my case, now this seems not to be the case.

ThierryO commented 3 years ago

Toc text was white, hence not visible. It should be fixed in 7239a82.

toc: TRUE only define whether you want a toc or not. Using slide_level: 1, you have no sections, hence an empty toc. That is a feature, not a bug.