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

robobook template does not display TOC correctly when toc_depth: 4 #126

Closed
chamaoskurumi opened this issue Feb 18, 2022 · 8 comments
Closed

Comments

@chamaoskurumi
Copy link

Using rmdformats::robobook with toc_depth: 4 results in a cut off view of the headers of fourth order:

image

The yaml header I'm using:

---
title: "Test"
date: "`r Sys.Date()`"
output:
  rmdformats::robobook:
    highlight: kate
    self_contained: true
    toc_depth: 4
---

See this test.Rmd
minimal working example (you have to rename it to .Rmd, Github does not allow uploads of .Rmd files)

@juba
Copy link
Owner

juba commented Feb 23, 2022

Hi, and sorry for my late answer.

You're right, robobook only supports toc_depth <= 2, so your "Fourth header" item should not appear. This should be fixed now in the development version.

Thanks for taking the time to report the issue, and let me know if the problem is still here.

@juba juba closed this as completed Mar 1, 2022
@ViniciusBRodrigues
Copy link

Hi, I'm having the same issue here. Is there some way to turn around it? Many thanks

@juba
Copy link
Owner

juba commented Mar 8, 2022

Hi, the issue should be solved (ie, only the first two toc levels should be shown) in the development version ?

@ViniciusBRodrigues
Copy link

The two levels is working fine. The package version here is 1.0.3

https://ibb.co/Br2FRwv

@juba
Copy link
Owner

juba commented Mar 8, 2022

Could you try with the development version ? You can install it with :

install.packages(remotes)  # if necessary
remotes::install_github("juba/rmdformats")

@ViniciusBRodrigues
Copy link

The package now is the version 1.0.3.9

The toc depth 3 or 4 is not appearing anymore, only toc until 2.

@juba
Copy link
Owner

juba commented Mar 8, 2022

Yes, unfortunately that's the intended behavior, robobook only supports two levels of toc depth...

@ViniciusBRodrigues
Copy link

All right. Many thanks for your work and support. Great job!

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