Skip to content

Commit

Permalink
Incompatibility of inmargin theme with usepdftitle=false option (fix
Browse files Browse the repository at this point in the history
…#885)

Provisional fix - in a very specific situation, the author will be missing on the title page:
```
\documentclass[
usepdftitle=false
]{beamer}

\author[]{Lecturer Name}

\usetheme{Bergen}

\begin{document}
\maketitle
\end{document}
```
  • Loading branch information
samcarter committed Feb 12, 2024
1 parent 9d8deca commit 38bfeb9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ a major and minor version only.
- unified usage of `(sub)section in head/foot` template in headlines
- simplify decision tree for `\beamer@howtotreatframe` (see #874)

### Fixed

- fixed problem if inmargin theme is used with the `usepdftitle=false` class option (see #885)

## [v3.71]

### Changed
Expand Down
18 changes: 13 additions & 5 deletions base/themes/inner/beamerinnerthemeinmargin.sty
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,19 @@
}

\setbeamertemplate{author}{%
\expandafter\ifblank\expandafter{\beamer@andstripped}{}{%
\begin{block}{\insertauthorindicator}
\usebeamercolor[fg]{author}\usebeamerfont{author}\insertauthor\par
\end{block}
}
\ifbeamer@autopdfinfo%
\expandafter\ifblank\expandafter{\beamer@andstripped}{}{%
\begin{block}{\insertauthorindicator}
\usebeamercolor[fg]{author}\usebeamerfont{author}\insertauthor\par
\end{block}
}
\else
\expandafter\ifblank\expandafter{\beamer@shortauthor}{}{%
\begin{block}{\insertauthorindicator}
\usebeamercolor[fg]{author}\usebeamerfont{author}\insertauthor\par
\end{block}
}
\fi
}

\setbeamertemplate{institute}{%
Expand Down

0 comments on commit 38bfeb9

Please sign in to comment.