I'm starting to get a little desperate. My first chapter has no number and I can't figure out why.
To get chapter numbers I used \setcounter{secnumdepth}{4}
. This works perfectly for every chapter, except for the first. I haven't used anything other as for the other chapters.
\chapter{Test1} -> no Number -> "Test1"
several sections and subsections
\chapter{Test2} -> Results in "1 Test2"
I tried
\chapter{Test}
some text
\chapter{Test1}
several sections and subsections
\chapter{Test2}
and this resulted in Test and Test1 having no number and Test2 having again the number 1.
Any ideas would be greatly appreciated!
The same problem appears in the standard Tufte Sample Book (\documentclass{tufte-book}
), which is available here. I removed the star from the Introduction chapter:
\chapter*{Introduction} -> \chapter{Introduction}
and added \setcounter{secnumdepth}{4}
. This yields chapter numbers for all chapters, except for the first one.
\documentclass{...}
, the required\usepackage
's,\begin{document}
, and\end{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.\documentclass{tufte-book}\setcounter{secnumdepth}{4}\begin{document}\chapter{Test}\chapter{Test2}\end{document}
I get numbers on both chapters, so we need a minimal working example (MWE).\setcounter{secnumdepth}{4}
before\begin{document}
(in preamble)?\mainmatter
?