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

PDF sections not numbered from toc depth 4 #116

Closed
pcastellanoescuder opened this issue Dec 2, 2020 · 5 comments
Closed

PDF sections not numbered from toc depth 4 #116

pcastellanoescuder opened this issue Dec 2, 2020 · 5 comments
Assignees

Comments

@pcastellanoescuder
Copy link
Contributor

Hello!

I'm trying to render my thesis (in PDF format) with a toc depth = 4 using the simple following code in my YAML header:

output:
  thesisdown::thesis_pdf:
    toc_depth: 4

However, seems that neither the index nor the body document have the correct structure for the sections from toc 4. Moreover, the same wrong structured sections don't present their own section number...

Do you know how I can number and structure well all my sections (even from toc depth 4)??

Thanks:)

@ismayc
Copy link
Owner

ismayc commented Dec 2, 2020

Hi there. Just to make sure I understand your request could you provide some examples of what you'd like the output to look like?

@pcastellanoescuder
Copy link
Contributor Author

By introducing the code I have mentioned in my index.Rmd I'm getting this output. As you can see, only sections with a toc 1, 2 or 3 are well structured and numbered. Otherwise, sections with a depth of 4 are in the same level of toc 3 sections and aren't numbered.

wrong_toc

Thanks:)

@ismayc
Copy link
Owner

ismayc commented Dec 5, 2020

I've updated the master branch with an update to fix this. If you add in the following line to template.tex, it should be working for you too. I'm going to close this issue but feel free to reopen if it isn't working for you. Thanks for reporting!

@ismayc ismayc closed this as completed Dec 5, 2020
@pcastellanoescuder
Copy link
Contributor Author

Solved! Thanks a lot!

@github-actions
Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org whenever possible) and link to this issue. If a reprex is not applicable, recording a short Loom video showing what you are seeing can go a long way in helping to diagnose problems.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants