From 89fb0ec40757550947ba71b8cba1cbf07e0544c3 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 17 Feb 2020 02:16:29 -0600 Subject: [PATCH] Only show every 5 chapters in the ToC in the huge PDF --- book-1/all.tex | 8 +++++++- book-2/all.tex | 1 + book-3/all.tex | 1 + book-4/all.tex | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/book-1/all.tex b/book-1/all.tex index 0970be0..da774ff 100644 --- a/book-1/all.tex +++ b/book-1/all.tex @@ -1,11 +1,17 @@ \part{The Dead City} \input{book-1/1} + \addtocontents{toc}{\protect\setcounter{tocdepth}{-1}} \input{book-1/2} \input{book-1/3} \input{book-1/4} + \addtocontents{toc}{\protect\setcounter{tocdepth}{3}} \input{book-1/5} + \addtocontents{toc}{\protect\setcounter{tocdepth}{-1}} \input{book-1/6} \input{book-1/7} \input{book-1/8} -\input{book-1/9} \ No newline at end of file +\input{book-1/9} + \addtocontents{toc}{\protect\setcounter{tocdepth}{3}} +\input{book-1/10} + \addtocontents{toc}{\protect\setcounter{tocdepth}{-1}} diff --git a/book-2/all.tex b/book-2/all.tex index befc779..7d99e30 100644 --- a/book-2/all.tex +++ b/book-2/all.tex @@ -1,3 +1,4 @@ \part{The Dark Land} \input{book-2/1} +\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}} diff --git a/book-3/all.tex b/book-3/all.tex index 1263ed3..7844b1e 100644 --- a/book-3/all.tex +++ b/book-3/all.tex @@ -1,3 +1,4 @@ \part{Title of book 3} \input{book-3/1} +\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}} diff --git a/book-4/all.tex b/book-4/all.tex index 5ca5c08..5192e33 100644 --- a/book-4/all.tex +++ b/book-4/all.tex @@ -1,3 +1,4 @@ \part{Title of book 4} \input{book-4/1} +\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}}