From 539a8e0fa8e890f176cf31ea549258f27d87d995 Mon Sep 17 00:00:00 2001 From: Daneel Date: Wed, 25 Feb 2026 11:16:32 +0100 Subject: [PATCH] presentation.org: fix empty separators + tables fit slides MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - H:2: ** headings = frames, * headings = sections (logical grouping) - AtBeginSection{}/AtBeginSubsection{}: suppress empty section title slides - shrink=15: auto-scale overflowing content up to 15% - Tables: adjustbox max totalheight=0.72 textheight (fits slide) - config.el tabularx filter skips beamer → plain tabular + adjustbox works --- templates/presentation.org | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/templates/presentation.org b/templates/presentation.org index 5e640c5..2aba3e0 100644 --- a/templates/presentation.org +++ b/templates/presentation.org @@ -2,7 +2,7 @@ #+DATE: \today #+LANGUAGE: en -#+OPTIONS: toc:nil num:nil H:1 +#+OPTIONS: toc:nil num:nil H:2 #+LATEX_CLASS: beamer #+LATEX_CLASS_OPTIONS: [aspectratio=169] @@ -38,12 +38,14 @@ # -- Navigation: remove symbols ----------------------------------------------- #+LATEX_HEADER: \setbeamertemplate{navigation symbols}{} -# -- Frame overflow: auto-shrink content that doesn't fit --------------------- -# shrink=5: auto-scale down up to 5% when content overflows -# allowframebreaks: split long frames across multiple slides +# -- Suppress empty section title slides (H:2 generates them by default) ------ +#+LATEX_HEADER: \AtBeginSection{} +#+LATEX_HEADER: \AtBeginSubsection{} + +# -- Frame overflow: auto-shrink + split when content doesn't fit ------------- #+LATEX_HEADER: \let\oldframe\frame #+LATEX_HEADER: \let\endoldframe\endframe -#+LATEX_HEADER: \renewenvironment{frame}[1][]{\oldframe[allowframebreaks,shrink=5,#1]}{\endoldframe} +#+LATEX_HEADER: \renewenvironment{frame}[1][]{\oldframe[allowframebreaks,shrink=15,#1]}{\endoldframe} #+LATEX_HEADER: \setbeamertemplate{frametitle continuation}{} # -- Logo on title page -------------------------------------------------------- @@ -70,10 +72,10 @@ #+LATEX_HEADER: \let\orgoldtabular\tabular #+LATEX_HEADER: \let\orgendoldtabular\endtabular #+LATEX_HEADER: \renewenvironment{tabular}[1]{% -#+LATEX_HEADER: \begin{adjustbox}{max width=0.97\linewidth,max totalheight=0.75\textheight,center}% -#+LATEX_HEADER: \scriptsize% -#+LATEX_HEADER: \setlength{\tabcolsep}{3pt}% -#+LATEX_HEADER: \renewcommand{\arraystretch}{1.1}% +#+LATEX_HEADER: \begin{adjustbox}{max width=\linewidth,max totalheight=0.72\textheight,center}% +#+LATEX_HEADER: \small% +#+LATEX_HEADER: \setlength{\tabcolsep}{4pt}% +#+LATEX_HEADER: \renewcommand{\arraystretch}{1.15}% #+LATEX_HEADER: \orgoldtabular{#1}% #+LATEX_HEADER: }{% #+LATEX_HEADER: \orgendoldtabular%