3

I'm writing a thesis using

\documentclass[11pt,a4paper,book,twosides]{now-book}

When I generate the table of contents, it results something like this:

Chapter 1 (chapter name)

1 (section name)

2 (section name)

2.1 (subsection name)

I'd like to include the chapter number in each line as in the following.

Chapter 1 (chapter name)

1.1 (section name)

1.2 (section name)

1.2.1 (subsection name)

5
  • Welcome to TeX.SX! do the sections in the body of the thesis include the section number, or, if they don't, can they? it's much easier if they're numbered the same in both the body and the toc. Mar 28, 2014 at 16:00
  • Hi! They don't, but actually I'd like them to appear as well in the body, e.g., 1.2 (section name) where in this case 1 is the chapter number and 2 is the section number.
    – TheDon
    Mar 28, 2014 at 16:05
  • 4
    I don't know if you are aware of it, but now-book is not a standard class, and not available on CTAN, so most people here can't try this themselves. Is that a local class at your university? More common classes like book and memoir do it as you want to have it.
    – pst
    Mar 28, 2014 at 16:10
  • Is one of the document class options spelled twosides, or should it be twoside?
    – Mico
    Mar 28, 2014 at 16:44
  • @Mico It is spelled twosides
    – TheDon
    Mar 28, 2014 at 17:14

1 Answer 1

3

If you don't mind printing the chapter number with the other sectional units wherever they appear (not just in the ToC, but in the text as well), just add

\renewcommand{\thesection}{\thechapter.\arabic{section}}

to your preamble. This should cascade down to the subsection level as well, since the subsection should use \thesection as part of its numbering construction, just like I've done for the section numbering above.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .