# Issues

Issue #66 wontfix

# Easier support for numbering sections within parts

Nicolas M. Thiéry
created an issue

To number sections within parts, the best I could do: {{{ \numberwithin{section}{part} \AtBeginPart{\beamer@tocsectionnumber=0\relax} }}} The second bit was not quite intuitive to find. Could it be made so that the first bit would automatically imply the second? If not, could this trick (or anything better!) be documented? If it is and I missed it, please accept my apologies!

I've been having the same problem. Unfortunately, the \AtBeginPart{\beamer@tocsectionnumber=0\relax} trick does not work for me, I get:

```! Undefined control sequence.
\beamer@atbeginpart ->\beamer
@tocsectionnumber=0\relax

```

I managed to get the section numbers to reset by manually patching beamerbasesection.sty, but that's not a very good idea. There should be a simpler way for doing this?

1. reporter

If this is put directly in a latex file, then one needs to use:

```\makeatletter
\numberwithin{section}{part}
\AtBeginPart{\beamer@tocsectionnumber=0\relax}
\makeatother
```

Thanks, I've actually tried makeatletter...other before, it seems to work half: When I add

```    \numberwithin{section}{part}
```

I get the error

``` Package calc Error: `.' invalid at this point.

See the calc package documentation for explanation.
```

which of course doesn't explain anything...

Wiith the tocsectionnumber=0 alone, my sections start at 1, but the slides (framenumer) number continues counting up (e.g., starting with 2.41 instead of 2.1 when the first lecture had 40 slides) *sigh*

```    \AtBeginPart{\setcounter{framenumber}{0}}
```

resets the framenumbers for each part -- still pretty ugly, though...

```    \AtBeginPart{\setcounter{framenumber}{0}}
```

resets the framenumbers for each part -- still pretty ugly, though...

```    \AtBeginPart{\setcounter{framenumber}{0}}
```

resets the framenumbers for each part -- still pretty ugly, though...

sorry for the duplicates, it was not showing after "Update issue"...

Also, this only resets the numbering on the handouts, not on the slides, but this might be my (by now completely) messed up preamble.

2. The general LaTeX definition of `\part` is that it does not affect sections, etc. Altering this in beamer would not really be a good thing => WONTFIX.

second floor's solution works, thank you.