http://blogs.law.harvard.edu/tech/rssMarcin Borkowski: Content AND Presentation
http://mbork.pl/Homepage
Strona domowa Marcina BorkowskiegoMon, 24 Apr 2017 16:58:27 GMTMon, 24 Apr 2017 16:58:27 GMTOddmuseMany variants of a Beamer presentation – part III
http://mbork.pl/2017-04-24_Many_variants_of_a_Beamer_presentation_%e2%80%93_part_III
http://mbork.pl/2017-04-24_Many_variants_of_a_Beamer_presentation_%e2%80%93_part_IIISome 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 Mon, 24 Apr 2017 16:58:27 GMThttp://mbork.pl/Comments_on_2017-04-24_Many_variants_of_a_Beamer_presentation_%e2%80%93_part_IIIMarcin Borkowskinewmajor1http://mbork.pl?action=history;id=2017-04-24_Many_variants_of_a_Beamer_presentation_%e2%80%93_part_IIIhttp://mbork.pl?action=browse;diff=1;id=2017-04-24_Many_variants_of_a_Beamer_presentation_%e2%80%93_part_IIIcompilation-in-progress
http://mbork.pl/2017-04-01_compilation-in-progress
http://mbork.pl/2017-04-01_compilation-in-progressI use AUCTeX pretty heavily; in fact, it was one of the first things I ever used in Emacs, way before I learned any Elisp or did any serious (or less serious) programming. Some time ago I noticed that sometimes (and I’m not sure what triggers this, though I have some suspicions) the word Compiling will stay in the modeline forever. It bugged me a bit, so I asked about it on the mailing list, and Oleh Krehel (of Ivy and Lispy fame) shared this simple solution: (setq compilation-in-progress nil). It’s not really a clean solution, but it works.Sat, 01 Apr 2017 06:04:04 GMThttp://mbork.pl/Comments_on_2017-04-01_compilation-in-progressMarcin Borkowskinewmajor1http://mbork.pl?action=history;id=2017-04-01_compilation-in-progresshttp://mbork.pl?action=browse;diff=1;id=2017-04-01_compilation-in-progress