# Configuring Table of Contents with Books

**URL:** https://discourse.julialang.org/t/configuring-table-of-contents-with-books/75578
**Category:** Tooling
**Tags:** books
**Created:** [February 1, 2022, 2:14pm UTC](https://discourse.julialang.org/t/configuring-table-of-contents-with-books/75578 "2022-02-01T14:14:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jvaverka](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jvaverka/32/19892_2.png) [@jvaverka](https://discourse.julialang.org/u/jvaverka)
#### Post date: [February 1, 2022, 2:14pm UTC](https://discourse.julialang.org/t/configuring-table-of-contents-with-books/75578/1 "2022-02-01T14:14:49Z")

</div>

# Table of Contents Depth

Is there a configuration to alter the Table of Contents Depth using [Books.jl](https://github.com/JuliaBooks/Books.jl)? I see that some options can be set in the `metadata.yml`. However, as commented, [these only affect PDF](https://github.com/JuliaBooks/Books.jl/blob/c84a74d21cec758d183178ce9a895e7dd4af1c85/defaults/metadata.yml#L41-L43) output.

---

<div class="post-metadata">

### Author: ![rikh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rikh/32/204104_2.png) [@rikh](https://discourse.julialang.org/u/rikh)
#### Post date: [February 1, 2022, 4:40pm UTC](https://discourse.julialang.org/t/configuring-table-of-contents-with-books/75578/2 "2022-02-01T16:40:23Z")

</div>

Nope sorry that depth level is fixed currently. Changing the level would also mean handling the arbitrary depth in the menu on phone screens and that kind of stuff so that’s why I didn’t make it flexible.

---

<div class="post-metadata">

### Author: ![jvaverka](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jvaverka/32/19892_2.png) [@jvaverka](https://discourse.julialang.org/u/jvaverka)
#### Post date: [February 1, 2022, 4:50pm UTC](https://discourse.julialang.org/t/configuring-table-of-contents-with-books/75578/3 "2022-02-01T16:50:06Z")

</div>

Understood. I suspected as much, but wanted to check that I didn’t miss anything.

---

<div class="post-metadata">

### Author: ![jvaverka](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jvaverka/32/19892_2.png) [@jvaverka](https://discourse.julialang.org/u/jvaverka)
#### Post date: [February 1, 2022, 4:52pm UTC](https://discourse.julialang.org/t/configuring-table-of-contents-with-books/75578/4 "2022-02-01T16:52:03Z")

</div>

Noting that this is not a big problem since I can re-work the organization of the content to get the desired structure. I was just being lazy to see if I could make minimal changes to existing content.

Thanks!
