titles.sty 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. % author Matus Necas, October 2026
  2. % original work by Jan Sumsky <jan.sumsky@gmail.com>, August 2024
  3. %
  4. % Description: Beamer frame title template and continuation indicator configuration.
  5. % Ensures consistent alignment and standardized slide titles across all frames.
  6. % ==============================================================================
  7. % Frame Title Template
  8. % ==============================================================================
  9. % Custom frame (slide) title template
  10. \defbeamertemplate*{frametitle}{uni}
  11. {
  12. \vspace{15pt}%
  13. % Depth is explicitly set to 0pt to prevent vertical layout shifts
  14. % caused by characters with descenders (e.g., 'g', 'p', 'y')
  15. \begin{beamercolorbox}[dp=0pt, leftskip=\titlelf]{title}
  16. \usebeamerfont{frametitle}%
  17. \insertframetitle%
  18. \end{beamercolorbox}%
  19. }
  20. % ==============================================================================
  21. % Frame Title Continuation
  22. % ==============================================================================
  23. % Format continuation indicators for multi-frame slides (e.g., using allowframebreaks)
  24. % Renders lowercase roman numerals enclosed in parentheses: (i), (ii), (iii)...
  25. \defbeamertemplate*{frametitle continuation}{uni}{%
  26. (\insertcontinuationcountroman)%
  27. }