# #+TITLE: Document Title
#+AUTHOR: Martin Sukany
#+DATE: \today
#+LANGUAGE: en
#+OPTIONS: toc:2 num:t H:4 ^:nil tags:nil

# -- LaTeX class ---------------------------------------------------------------
#+LATEX_CLASS: report
#+LATEX_CLASS_OPTIONS: [a4paper,11pt]

# -- Encoding, typografie ------------------------------------------------------
#+LATEX_HEADER: \usepackage[czech]{babel}
#+LATEX_HEADER: \usepackage[T1]{fontenc}
#+LATEX_HEADER: \usepackage[utf8]{inputenc}
#+LATEX_HEADER: \usepackage{microtype}
#+LATEX_HEADER: \sloppy

# -- Font (Helvetica / sans-serif) ---------------------------------------------
#+LATEX_HEADER: \usepackage{helvet}
#+LATEX_HEADER: \renewcommand{\familydefault}{\sfdefault}

# -- Page geometry -------------------------------------------------------------
#+LATEX_HEADER: \usepackage[a4paper,margin=2.2cm]{geometry}

# -- Barvy (Kyndryl red accent, neutral tables) --------------------------------
#+LATEX_HEADER: \usepackage[table,x11names]{xcolor}
#+LATEX_HEADER: \definecolor{kyndrylRed}{RGB}{196,0,0}
#+LATEX_HEADER: \definecolor{linkcolor}{RGB}{196,0,0}
#+LATEX_HEADER: \definecolor{tableOdd}{RGB}{252,252,252}
#+LATEX_HEADER: \definecolor{tableEven}{RGB}{237,237,237}

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

# -- Obrazky -------------------------------------------------------------------
#+LATEX_HEADER: \usepackage{graphicx}

# -- Tabulky -------------------------------------------------------------------
# ltablex = longtable + tabularx (dlouhe AND siroke tabulky)
#+LATEX_HEADER: \usepackage{array}
#+LATEX_HEADER: \usepackage{tabularx}
#+LATEX_HEADER: \usepackage{longtable}
#+LATEX_HEADER: \usepackage{ltablex}
#+LATEX_HEADER: \keepXColumns
#+LATEX_HEADER: \usepackage{booktabs}
#+LATEX_HEADER: \usepackage{colortbl}
#+LATEX_HEADER: \usepackage{etoolbox}
#+LATEX_HEADER: \usepackage{ragged2e}
# Stridave barvy radku -- vsechny typy tabulek
#+LATEX_HEADER: \AtBeginEnvironment{longtable}{\rowcolors{1}{tableOdd}{tableEven}}
#+LATEX_HEADER: \AtBeginEnvironment{tabularx}{\rowcolors{1}{tableOdd}{tableEven}}
#+LATEX_HEADER: \AtBeginEnvironment{tabular}{\rowcolors{1}{tableOdd}{tableEven}}
# Typy sloupcu: Y=wrap+levy, Z=wrap+stred, R=wrap+pravy
#+LATEX_HEADER: \newcolumntype{Y}{>{\RaggedRight\arraybackslash}X}
#+LATEX_HEADER: \newcolumntype{Z}{>{\Centering\arraybackslash}X}
#+LATEX_HEADER: \newcolumntype{R}{>{\RaggedLeft\arraybackslash}X}

# -- Header & footer -----------------------------------------------------------
#+LATEX_HEADER: \usepackage{fancyhdr}
#+LATEX_HEADER: \pagestyle{fancy}
#+LATEX_HEADER: \fancyhf{}
#+LATEX_HEADER: \lhead{\small\nouppercase{\leftmark}}
#+LATEX_HEADER: \rhead{\small\thepage}
#+LATEX_HEADER: \renewcommand{\headrulewidth}{0.4pt}
#+LATEX_HEADER: \renewcommand{\headrule}{\hbox to\headwidth{\color{kyndrylRed}\leaders\hrule height \headrulewidth\hfill}}

# -- Code bloky ----------------------------------------------------------------
#+LATEX_HEADER: \usepackage{listings}
#+LATEX_HEADER: \lstset{backgroundcolor=\color{yellow!20},basicstyle=\ttfamily\small,breaklines=true,frame=single}

# -- Titulni strana ------------------------------------------------------------
#+LATEX_HEADER: \usepackage{titling}
#+LATEX_HEADER: \renewcommand{\maketitle}{%
#+LATEX_HEADER:   \begin{titlepage}\centering\vspace*{\fill}%
#+LATEX_HEADER:   {\LARGE\bfseries\thetitle\par}\vspace{1em}%
#+LATEX_HEADER:   {\large\theauthor\par}\vspace{2em}%
#+LATEX_HEADER:   {\normalsize\itshape\thedate\par}\vspace{2em}%
#+LATEX_HEADER:   \includegraphics[width=0.30\textwidth]{~/org/templates/logo.png}\par%
#+LATEX_HEADER:   \vspace*{\fill}\end{titlepage}}

# ------------------------------------------------------------------------------
# Obsah dokumentu
# ------------------------------------------------------------------------------
