## LaTeX forum ⇒ Theses, Books, Title pages ⇒ legrand-orange-book: restart chapter numbers in units without messing up toc Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
kinseikun
Posts: 9
Joined: Mon Feb 05, 2018 5:11 am

### legrand-orange-book: restart chapter numbers in units without messing up toc

Hello,

It has been a long time since I changed the code, but I used \setcounter{chapter}{0} before inputting the unit tex files so that the chapter number would reset in each unit. For example, Unit 2 would begin with Chapter 1, because before the chapter number would just keep going. Like, Unit 1 ends with Chapter 6 and then Unit 2 would begin with Chapter 7.

Tags:

Stefan Kottwitz
Posts: 9444
Joined: Mon Mar 10, 2008 9:44 pm
Hi,

welcome to the forum!

Just make the internal `hyperref` anchor name unique. If you use `\part` for the units:

`\renewcommand*{\theHchapter}{\thepart.\arabic{chapter}}`

Btw. no problem if you have several questions, every question is welcome. And it was very good to make a separate topic for each question. I will have a look at the other questions after work.

Stefan

kinseikun
Posts: 9
Joined: Mon Feb 05, 2018 5:11 am
Yes! Thank you! It worked!

I was praying that no one ask for a mwe because my document is 300 pages long

Stefan Kottwitz
Posts: 9444
Joined: Mon Mar 10, 2008 9:44 pm
Can you please send a MWE now?

Just joking. I mark as solved.

Thanks for the feedback,

Stefan