On 01/17/2010 11:37 AM, Peter Bradley wrote:
Rob Oakes wrote:
Hi Peter,

It's important to make sure that you are using the numbered styles for your table of contents (e.g section, subsection).

If you are using unnumbered styles (e.g section* , subsection*; note the asterisk) they will appear in your document map but not in your table of contents.

Pretty basic, but this might cause the behavior you describe.


Rob Oakes

Yes.  Thanks Rob, and others.  That's the fix.

Might I be permitted a supplementary?

Now that all the various bits are numbered, I notice that all the Sections number sequentially regardless of their location within Parts. So I get:

Part I
   Section 1
   Section 2
Part II
   Section 3
   Section 4
   Section 5
Part III
   Section 6

... and so on.

Is there any way I can get the Section numbering to restart inside each Part?

This is a LaTeX thing. IN the preamble:



Or you can use the chngcntr package, which is available from CTAN, if you don't have it.

Note that this will not change the display in LyX. To do that, you need to redefine the section counter in LyX, probably using a module. See Chapter 5 of the Customization manual. This is a two-liner.


Reply via email to