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
This commit is contained in:
2026-02-25 11:06:19 +01:00
parent 00429e2152
commit 742a39e2a9

View File

@@ -38,6 +38,14 @@
# -- Navigation: remove symbols ----------------------------------------------- # -- Navigation: remove symbols -----------------------------------------------
#+LATEX_HEADER: \setbeamertemplate{navigation 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 -------------------------------------------------------- # -- Logo on title page --------------------------------------------------------
#+LATEX_HEADER: \usepackage{graphicx} #+LATEX_HEADER: \usepackage{graphicx}
#+LATEX_HEADER: \titlegraphic{\includegraphics[width=0.15\textwidth]{~/org/templates/logo.png}} #+LATEX_HEADER: \titlegraphic{\includegraphics[width=0.15\textwidth]{~/org/templates/logo.png}}
@@ -62,10 +70,10 @@
#+LATEX_HEADER: \let\orgoldtabular\tabular #+LATEX_HEADER: \let\orgoldtabular\tabular
#+LATEX_HEADER: \let\orgendoldtabular\endtabular #+LATEX_HEADER: \let\orgendoldtabular\endtabular
#+LATEX_HEADER: \renewenvironment{tabular}[1]{% #+LATEX_HEADER: \renewenvironment{tabular}[1]{%
#+LATEX_HEADER: \begin{adjustbox}{max width=\linewidth}% #+LATEX_HEADER: \begin{adjustbox}{max width=\linewidth,max totalheight=0.75\textheight}%
#+LATEX_HEADER: \small% #+LATEX_HEADER: \scriptsize%
#+LATEX_HEADER: \setlength{\tabcolsep}{4pt}% #+LATEX_HEADER: \setlength{\tabcolsep}{3pt}%
#+LATEX_HEADER: \renewcommand{\arraystretch}{1.2}% #+LATEX_HEADER: \renewcommand{\arraystretch}{1.1}%
#+LATEX_HEADER: \orgoldtabular{#1}% #+LATEX_HEADER: \orgoldtabular{#1}%
#+LATEX_HEADER: }{% #+LATEX_HEADER: }{%
#+LATEX_HEADER: \orgendoldtabular% #+LATEX_HEADER: \orgendoldtabular%