# Re: TOC (newbie question)

```On 01/17/2010 11:37 AM, Peter Bradley wrote:
```
```Rob Oakes wrote:
```
`Hi Peter,`
```
```
```
```
```
Pretty basic, but this might cause the behavior you describe.

Cheers,

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:

\makeatletter

\makeatother
```
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.
```
rh

```