I want to show Section and subsection names in the footnote of a presentation, made by beamer. Now, in the footer, I am using
\insertsection\text{ $\quad \mid \quad $ }\insertsubsection
to create something like "Section title | subsection title"
However, for the sections without any subsection, I will still have "|" in the footnote.
Is there any way to insert "|" after section title if only there is a subsection title to be reported after that?
Best Answer
You can do a conditional test to decide whether or not to include the subsection titles; something along these lines:
A complete example (to diaply the information I used a
beamercolorbox
and thefootline
template, but this is optional; use the settings that best adjust to your needs):