From 742a39e2a95668bd36a93a645c0de87e987529d6 Mon Sep 17 00:00:00 2001 From: Daneel Date: Wed, 25 Feb 2026 11:06:19 +0100 Subject: [PATCH] presentation.org: shrink overflow frames + scale tables to fit - Frame shrink=5: auto-scale content up to 5% when it overflows - frametitle continuation empty (no ugly 'cont.' on split frames) - Tables: scriptsize font, max totalheight 0.75 textheight, tighter spacing --- templates/presentation.org | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/templates/presentation.org b/templates/presentation.org index 1b0ef0f..6b1a0fd 100644 --- a/templates/presentation.org +++ b/templates/presentation.org @@ -38,6 +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 +#+LATEX_HEADER: \let\oldframe\frame +#+LATEX_HEADER: \let\endoldframe\endframe +#+LATEX_HEADER: \renewenvironment{frame}[1][]{\oldframe[shrink=5,#1]}{\endoldframe} +#+LATEX_HEADER: \setbeamertemplate{frametitle continuation}{} + # -- Logo on title page -------------------------------------------------------- #+LATEX_HEADER: \usepackage{graphicx} #+LATEX_HEADER: \titlegraphic{\includegraphics[width=0.15\textwidth]{~/org/templates/logo.png}} @@ -62,10 +70,10 @@ #+LATEX_HEADER: \let\orgoldtabular\tabular #+LATEX_HEADER: \let\orgendoldtabular\endtabular #+LATEX_HEADER: \renewenvironment{tabular}[1]{% -#+LATEX_HEADER: \begin{adjustbox}{max width=\linewidth}% -#+LATEX_HEADER: \small% -#+LATEX_HEADER: \setlength{\tabcolsep}{4pt}% -#+LATEX_HEADER: \renewcommand{\arraystretch}{1.2}% +#+LATEX_HEADER: \begin{adjustbox}{max width=\linewidth,max totalheight=0.75\textheight}% +#+LATEX_HEADER: \scriptsize% +#+LATEX_HEADER: \setlength{\tabcolsep}{3pt}% +#+LATEX_HEADER: \renewcommand{\arraystretch}{1.1}% #+LATEX_HEADER: \orgoldtabular{#1}% #+LATEX_HEADER: }{% #+LATEX_HEADER: \orgendoldtabular%