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:
So I was thinking of trying to modify this, and added it to my \AtBeginLecture{...} declaration.
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:
I've gotten quite a bit further on this, but it still doesn't work. Below is a MWE.
I am now trying to modify the code for \defbeamertemplate in beamerouterthemesidebar.sty, which I've included in the preamble of my document between \makeatletter and \makeatother using \setbeamertemplate{sidebar right} and a corresponding \usebeamertemplate later on.
I don't understand, however, why \vskip works, but not \hskip, and why \insertshortauthor works but not \insertshorttitle, and why neither of these work when width=\beamer@tempdim is given as option, although the dimension is specified. In all cases, when I uncomment these lines, the error is:
! LaTeX Error: Missing \begin{document}.
Then there is the problem of adding \insertlecture. In this case, the error is:
! Undefined control sequence.
\insertlecture ->\beamer@lecturename
It looks like the lecture title is not specified yet, but neither is "shortauthor" at that point, since the author is declared below.
Can anyone help?
(The code as given, with the comments compiles, but when I uncomment things in \setbeamertemplate{sidebar right}{...}, it breaks)