I am preparing a lecture with beamer, using the suggestion in the docs to use one file with lectures separated by \lecture{}. I would like the lecture title (instead of the course title) to appear in the sidebar.
In beamerbasesection.sty, I found the following line for parts:
Code: Select all
\addtocontents{nav}{\protect\headcommand{\protect\partentry{#2}{\the\c@part}}}
The {\the\c@part} bit adds the number of the part to the .nav file. I won't be needing this, so I replaced with a place-holder, 0.
But I haven't been able to find something suitable to replace the #2 in there. I do latex, but I don't understand tex much, I must admit. I've tried ...\partentry{\insertlecture}..., but I get an error:
Code: Select all
! Missing \endcsname inserted.
<to be read again>
\@elt
Code: Select all
\newcommand\insertlecture{\beamer@lecturename}
Code: Select all
\def\beamer@lecturename{#2}
Can somebody who understand tex better help me with this?
Or suggest a different approach? I'd be very thankful.
(I'm cross-posting to comp.text.tex - not sure which community is more active nowadays)
M-R.