presentation.org: fix empty separators + tables fit slides
- 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
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
#+DATE: \today
|
#+DATE: \today
|
||||||
#+LANGUAGE: en
|
#+LANGUAGE: en
|
||||||
|
|
||||||
#+OPTIONS: toc:nil num:nil H:1
|
#+OPTIONS: toc:nil num:nil H:2
|
||||||
|
|
||||||
#+LATEX_CLASS: beamer
|
#+LATEX_CLASS: beamer
|
||||||
#+LATEX_CLASS_OPTIONS: [aspectratio=169]
|
#+LATEX_CLASS_OPTIONS: [aspectratio=169]
|
||||||
@@ -38,12 +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 ---------------------
|
# -- Suppress empty section title slides (H:2 generates them by default) ------
|
||||||
# shrink=5: auto-scale down up to 5% when content overflows
|
#+LATEX_HEADER: \AtBeginSection{}
|
||||||
# allowframebreaks: split long frames across multiple slides
|
#+LATEX_HEADER: \AtBeginSubsection{}
|
||||||
|
|
||||||
|
# -- Frame overflow: auto-shrink + split when content doesn't fit -------------
|
||||||
#+LATEX_HEADER: \let\oldframe\frame
|
#+LATEX_HEADER: \let\oldframe\frame
|
||||||
#+LATEX_HEADER: \let\endoldframe\endframe
|
#+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}{}
|
#+LATEX_HEADER: \setbeamertemplate{frametitle continuation}{}
|
||||||
|
|
||||||
# -- Logo on title page --------------------------------------------------------
|
# -- Logo on title page --------------------------------------------------------
|
||||||
@@ -70,10 +72,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=0.97\linewidth,max totalheight=0.75\textheight,center}%
|
#+LATEX_HEADER: \begin{adjustbox}{max width=\linewidth,max totalheight=0.72\textheight,center}%
|
||||||
#+LATEX_HEADER: \scriptsize%
|
#+LATEX_HEADER: \small%
|
||||||
#+LATEX_HEADER: \setlength{\tabcolsep}{3pt}%
|
#+LATEX_HEADER: \setlength{\tabcolsep}{4pt}%
|
||||||
#+LATEX_HEADER: \renewcommand{\arraystretch}{1.1}%
|
#+LATEX_HEADER: \renewcommand{\arraystretch}{1.15}%
|
||||||
#+LATEX_HEADER: \orgoldtabular{#1}%
|
#+LATEX_HEADER: \orgoldtabular{#1}%
|
||||||
#+LATEX_HEADER: }{%
|
#+LATEX_HEADER: }{%
|
||||||
#+LATEX_HEADER: \orgendoldtabular%
|
#+LATEX_HEADER: \orgendoldtabular%
|
||||||
|
|||||||
Reference in New Issue
Block a user