#+TITLE:
#+SUBTITLE:
#+AUTHOR: Martin Sukaný
#+DATE: \today
#+LANGUAGE: en

#+OPTIONS: toc:nil num:nil

#+LATEX_CLASS: beamer
#+LATEX_CLASS_OPTIONS: [aspectratio=169]

#+BEAMER_THEME: metropolis

# -- allowframebreaks: auto-split long frames into multiple slides -------------
#+LATEX_HEADER: \let\oldframe\frame
#+LATEX_HEADER: \let\endoldframe\endframe
#+LATEX_HEADER: \renewenvironment{frame}[1][]{\oldframe[allowframebreaks,#1]}{\endoldframe}

# -- Encoding, fonts -----------------------------------------------------------
#+LATEX_HEADER: \usepackage[english]{babel}
#+LATEX_HEADER: \usepackage[T1]{fontenc}
#+LATEX_HEADER: \usepackage{lmodern}
#+LATEX_HEADER: \usepackage{graphicx}

# -- Kyndryl brand colors ------------------------------------------------------
#+LATEX_HEADER: \usepackage[table,x11names]{xcolor}
#+LATEX_HEADER: \definecolor{kyndrylRed}{RGB}{196,0,0}
#+LATEX_HEADER: \definecolor{tableOdd}{RGB}{252,252,252}
#+LATEX_HEADER: \definecolor{tableEven}{RGB}{237,237,237}

# -- Beamer colors (Kyndryl branding over Madrid) -----------------------------
#+LATEX_HEADER: \setbeamercolor{palette primary}{bg=kyndrylRed,fg=white}
#+LATEX_HEADER: \setbeamercolor{palette secondary}{bg=kyndrylRed!85,fg=white}
#+LATEX_HEADER: \setbeamercolor{palette tertiary}{bg=kyndrylRed!70,fg=white}
#+LATEX_HEADER: \setbeamercolor{palette quaternary}{bg=kyndrylRed!38!black,fg=white}
#+LATEX_HEADER: \setbeamercolor{structure}{fg=kyndrylRed}
#+LATEX_HEADER: \setbeamercolor{block title}{bg=kyndrylRed,fg=white}
#+LATEX_HEADER: \setbeamercolor{block body}{bg=tableOdd}
#+LATEX_HEADER: \setbeamercolor{item}{fg=kyndrylRed}
#+LATEX_HEADER: \setbeamercolor{subitem}{fg=kyndrylRed!80}

# -- Navigation ----------------------------------------------------------------
#+LATEX_HEADER: \setbeamertemplate{navigation symbols}{}


# -- Logo (title page + footer) ------------------------------------------------
#+LATEX_HEADER: \graphicspath{{~/org/templates/}}
#+LATEX_HEADER: \titlegraphic{\includegraphics[width=0.15\textwidth]{logo.png}}

# -- Tabulky: adjustbox (puvodni fungujici reseni) -----------------------------
#+LATEX_HEADER: \usepackage{adjustbox}
#+LATEX_HEADER: \usepackage{array}
#+LATEX_HEADER: \usepackage{booktabs}
#+LATEX_HEADER: \usepackage{colortbl}
#+LATEX_HEADER: \usepackage{etoolbox}
#+LATEX_HEADER: \AtBeginEnvironment{tabular}{\rowcolors{1}{tableOdd}{tableEven}}

#+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}{3pt}%
#+LATEX_HEADER:   \renewcommand{\arraystretch}{1.1}%
#+LATEX_HEADER:   \orgoldtabular{#1}%
#+LATEX_HEADER: }{%
#+LATEX_HEADER:   \orgendoldtabular%
#+LATEX_HEADER:   \end{adjustbox}%
#+LATEX_HEADER: }

# -- Hyperlinks ----------------------------------------------------------------
#+LATEX_HEADER: \usepackage{hyperref}
#+LATEX_HEADER: \hypersetup{colorlinks=true,linkcolor=kyndrylRed,urlcolor=kyndrylRed,citecolor=kyndrylRed}

# -- Code blocks ---------------------------------------------------------------
#+LATEX_HEADER: \usepackage{listings}
#+LATEX_HEADER: \lstset{backgroundcolor=\color{tableOdd},basicstyle=\ttfamily\scriptsize,breaklines=true,frame=single}

# ------------------------------------------------------------------------------
# Obsah prezentace
# (* = frame/slide, ** = obsah uvnitr, allowframebreaks auto-split)
# ------------------------------------------------------------------------------
