Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easier support for numbering sections within parts #66

Closed
josephwright opened this issue Sep 7, 2010 · 10 comments
Closed

Easier support for numbering sections within parts #66

josephwright opened this issue Sep 7, 2010 · 10 comments
Labels
enhancement New feature or request

Comments

@josephwright
Copy link
Owner

Originally reported by: Nicolas M. Thiéry (Bitbucket: nthiery, GitHub: nthiery)


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!


@josephwright
Copy link
Owner Author

Original comment by Anonymous:


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?

@josephwright
Copy link
Owner Author

Original comment by Nicolas M. Thiéry (Bitbucket: nthiery, GitHub: nthiery):


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

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

@josephwright
Copy link
Owner Author

Original comment by Anonymous:


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

@josephwright
Copy link
Owner Author

Original comment by Anonymous:


Ok, an additional

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

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

2 similar comments
@josephwright
Copy link
Owner Author

Original comment by Anonymous:


Ok, an additional

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

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

@josephwright
Copy link
Owner Author

Original comment by Anonymous:


Ok, an additional

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

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

@josephwright
Copy link
Owner Author

Original comment by Anonymous:


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.

@josephwright
Copy link
Owner Author

Original comment by Vedran Miletić (Bitbucket: rivanvx, GitHub: Unknown):


Sure, I will look into this for next release.

@josephwright
Copy link
Owner Author

Original comment by Joseph Wright (Bitbucket: josephwright, GitHub: josephwright):


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.

@josephwright
Copy link
Owner Author

Original comment by Anonymous:


second floor's solution works, thank you.

@josephwright josephwright added major enhancement New feature or request labels Nov 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant