Recent Changes

Updates since 1970-01-01 00:00 UTC

(for 2017-04-24_Many_variants_of_a_Beamer_presentation_–_part_III only)

1 | 3 | 7 | 30 | 90 days
List latest change per page only List only major changes
List later changes RSS RSS with pages RSS with pages and diff

2017-04-24

  • 16:58 UTC (new) 2017-04-24 Many variants of a Beamer presentation – part III . . . . Marcin Borkowski Some time ago I [[2016-09-05 Many variants of a Beamer presentation – part I|wrote]] [[2016-10-03 Many variants of a Beamer presentation – part II|about]] making both a presentation and lecture notes out of a single source in Beamer. I’m still using the setup shown there, but recently I encountered an unexpected problem. Consider this: {{{ \documentclass{article} \usepackage{beamerarticle} \begin{document} \begin{frame} \frametitle{A frame with a theorem} \begin{theorem} A~cool theorem. \end{theorem} \end{frame} \begin{frame}<presentation> \frametitle{A~presentation-only frame with a theorem} \begin{theorem} Another theorem, visible only on a~presentation. \end{theorem} \end{frame} \begin{frame} \frametitle{Another frame with a theorem} \begin{theorem} The final theorem. \end{theorem} \end{frame} \end{document} }}} If you compile this, you’ll spot the problem immediately: while the second theorem is not present in the pdf, its //number// is taken up, and we have Theorem 3 right after Theorem 1. (In case of the {{{beamer}}} document class, everything works just fine – try it if you want.) It does make sense. Imagine a Beamer theme which actually does typeset theorem numbers. You would like then your theorem labels in the presentation and in the lecture notes to match. Usually, this is not the case, though, and I don’t really care for theorem numbers in the slides. So, here’s my simple solution. (While at that, I also turn the frametitles off in the lecture notes. If you want to do that automatically for all slides, see [[https://tex.stackexchange.com/q/350020/5626|here]].) {{{ \documentclass{article} \usepackage{beamerarticle} \theoremstyle{plain} \newtheorem*{theorem*}{Theorem} \begin{document} \begin{frame} \frametitle<presentation>{A frame with a theorem} \begin{theorem} A~cool theorem. \end{theorem} \end{frame} \begin{frame}<presentation> \frametitle{A~presentation-only frame with a theorem} \begin{theorem*} Another theorem, visible only on a~presentation. \end{theorem*} \end{frame} \begin{frame} \frametitle<presentation>{Another frame with a theorem} \begin{theorem} The final theorem. \end{theorem} \end{frame} \end{document} }}} CategoryEnglish, CategoryBlog, CategoryTeX, CategoryLaTeX, CategoryBeamer

More...

Filters