TeX - LaTeX Asked on January 25, 2021
I want to have numbered sections in beamer and as far as I understand I should set the section/subsection in toc
template, as in my MWE:
documentclass[english]{beamer}
setbeamertemplate{section/subsection in toc}[sections numbered]
begin{document}
frame{tableofcontents}
section{Test1}
frame{Content1}
section{Test2}
frame{Content2}
end{document}
However this does not create section numbers, as you can see:
I know that I can get section numbers, if I set setbeamertemplate{section in toc}[sections numbered]
but from the documentation, I don’t understand why my first attempt does not work?
I think that's a bug in the documentation. The correct template is called
sections/subsections in toc
(note the plurals), and if you use
setbeamertemplate{sections/subsections in toc}[sections numbered]
you'll get the numbers as expected.
beamer
templates use the primitive csname...endcsname
construction; this has the disadvantage (in this case) that if the resulting control sequence if undefined it gets defined as relax
. The net effect is that something like
setbeamertemplate{my made up template name}[foo bar baz]
does absolutely nothing.
Correct answer by campa on January 25, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP