From de1d1de7d86c50051611a69cf723f50060869e3e Mon Sep 17 00:00:00 2001 From: Daneel Date: Wed, 25 Feb 2026 11:31:58 +0100 Subject: [PATCH] presentation.org: remove frame hack, use org-beamer-frame-default-options - REMOVED: renewenvironment{frame} hack (broke frame titles with H:2) - allowframebreaks now via org-beamer-frame-default-options in config.el (ox-beamer adds it properly to each generated frame) - Kept: adjustbox for tables (proven working) - Kept: Kyndryl colors, AtBeginSection{}, logo, rowcolors --- templates/presentation.org | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/templates/presentation.org b/templates/presentation.org index 06a27e0..8500936 100644 --- a/templates/presentation.org +++ b/templates/presentation.org @@ -11,11 +11,6 @@ #+BEAMER_THEME: Madrid -# -- allowframebreaks: auto-split long slides ---------------------------------- -#+LATEX_HEADER: \let\oldframe\frame -#+LATEX_HEADER: \let\endoldframe\endframe -#+LATEX_HEADER: \renewenvironment{frame}[1][]{\oldframe[allowframebreaks,#1]}{\endoldframe} - # -- Encoding, fonts ----------------------------------------------------------- #+LATEX_HEADER: \usepackage[english]{babel} #+LATEX_HEADER: \usepackage[T1]{fontenc} @@ -39,27 +34,25 @@ #+LATEX_HEADER: \setbeamercolor{item}{fg=kyndrylRed} #+LATEX_HEADER: \setbeamercolor{subitem}{fg=kyndrylRed!80} -# -- Suppress empty section title slides (H:2 needs this) --------------------- +# -- Suppress empty section title slides (H:2 generates them) ----------------- #+LATEX_HEADER: \AtBeginSection{} #+LATEX_HEADER: \AtBeginSubsection{} # -- Navigation ---------------------------------------------------------------- #+LATEX_HEADER: \setbeamertemplate{navigation symbols}{} #+LATEX_HEADER: \setbeamertemplate{footline}[frame number] -#+LATEX_HEADER: \setbeamertemplate{frametitle continuation}{} # -- Logo on title page -------------------------------------------------------- #+LATEX_HEADER: \titlegraphic{\includegraphics[width=0.15\textwidth]{~/org/templates/logo.png}} -# -- Tabulky: adjustbox (puvodni fungujici reseni) ----------------------------- -# config.el tabularx filter is skipped for beamer → tables stay as plain tabular +# -- Tabulky: adjustbox (proven working) --------------------------------------- +# config.el my/org-latex-fix-tabularx skips beamer → tables stay plain tabular # adjustbox scales them to fit slide width #+LATEX_HEADER: \usepackage{adjustbox} #+LATEX_HEADER: \usepackage{array} #+LATEX_HEADER: \usepackage{booktabs} #+LATEX_HEADER: \usepackage{colortbl} #+LATEX_HEADER: \usepackage{etoolbox} -# Stridave barvy radku #+LATEX_HEADER: \AtBeginEnvironment{tabular}{\rowcolors{1}{tableOdd}{tableEven}} #+LATEX_HEADER: \let\orgoldtabular\tabular @@ -85,5 +78,7 @@ # ------------------------------------------------------------------------------ # Obsah prezentace -# (* = sekce/logicke skupiny, ** = jednotlive slidy) +# (* = sekce, ** = slidy — H:2) +# Allowframebreaks: set via org-beamer-frame-default-options in config.el +# Pro dlouhe slidy muzes pridat :BEAMER_opt: shrink per-heading # ------------------------------------------------------------------------------