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:
@@ -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%
|
||||
|
||||
Reference in New Issue
Block a user