% NB: use pdflatex to compile NOT pdftex.  Also make sure youngtab is
% there...

% converting eps graphics to pdf with ps2pdf generates way too much
% whitespace in the resulting pdf, so crop with pdfcrop
% cf. http://www.cora.nwra.com/~stockwel/rgspages/pdftips/pdftips.shtml




\documentclass[10pt,aspectratio=169,dvipsnames]{beamer}
\usetheme[color/block=transparent]{metropolis}

\usepackage[absolute,overlay]{textpos}
\usepackage{booktabs}

\usepackage{adjustbox}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage{array,tabularx}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
% Show unnumbered section-divider slides in every WiGr deck.
\metroset{sectionpage=progressbar}

\usepackage{tikz}
\usetikzlibrary{arrows,calc,arrows.meta,decorations.pathreplacing,patterns}
%calc allows coordinate calculations

\usepackage[europeanresistors,americaninductors]{circuitikz}

\usepackage[scale=2]{ccicons}

\usepackage[official]{eurosym}

%use this to add space between rows
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}

\newcommand{\hrefc}[2]{\href{#1}{\bf\color{blue}{\underline{#2}}}}
\newcommand{\urlc}[1]{\hrefc{#1}{#1}}

%doesn't work for reasons I don't understand
%\renewcommand{\href}[2]{\href{#1}{\bf\color{blue}{\underline{#2}}
%\renewcommand{\url}[1]{\href{#1}{#1}}


\xdefinecolor{TUred}{RGB}{197,14,31}

\setbeamerfont{alerted text}{series=\bfseries}
\setbeamercolor{alerted text}{fg=TUred}
\setbeamercolor{background canvas}{bg=white}
\setbeamercolor{frametitle}{bg=lightgray!40, fg=TUred}
\setbeamercolor{title}{fg=TUred}


\addtobeamertemplate{frametitle}{}{%
  \begin{textblock*}{100mm}(1.01\textwidth,2pt)
    \includegraphics[width=1.5cm]{tub.pdf}
    \end{textblock*}}


\newcommand{\R}{\mathbb{R}}
\newcommand{\mb}[1]{{\mathbf #1}}

\def\l{\lambda}
\def\m{\mu}
\def\d{\partial}
\def\cL{\mathcal{L}}
\def\co2{CO${}_2$}


\def\el{${}_{\textrm{el}}$}
\def\th{${}_{\textrm{th}}$}
\def\gas{${}_{gas}$}

\newcommand{\ubar}[1]{\text{\b{$#1$}}}

\def\mw{\text{ MW}}
\def\mwh{\text{ MWh}}
\def\gw{\text{ GW}}
\def\gwh{\text{ GWh}}
\def\emwh{\text{ \euro/MWh}}
\def\bemwh{\text{ [\euro/MWh]}}


% for sources http://tex.stackexchange.com/questions/48473/best-way-to-give-sources-of-images-used-in-a-beamer-presentation

\setbeamercolor{framesource}{fg=gray}
\setbeamerfont{framesource}{size=\tiny}


\newcommand{\source}[1]{\begin{textblock*}{5cm}(10.5cm,8.35cm)
    \begin{beamercolorbox}[ht=0.5cm,right]{framesource}
        \usebeamerfont{framesource}\usebeamercolor[fg]{framesource} Quelle: {#1}
    \end{beamercolorbox}
\end{textblock*}}

\usepackage{hyperref}


%\usepackage[pdftex]{graphicx}


\graphicspath{{../graphics/}}

\DeclareGraphicsExtensions{.pdf,.jpeg,.png,.jpg}






\def\goat#1{{\scriptsize\color{green}{[#1]}}}


% Keep Beamer list labels and overlay syntax intact.
\addtobeamertemplate{itemize/enumerate body begin}{\addtolength{\itemsep}{2pt}}{}

% Shared semester and author information for all WiGr lectures.
\newcommand{\coursesemester}{WiSe 2026/27}
\newcommand{\courseauthors}{Prof. Tom Brown, Dr. Fabian Neumann}
\title{\texorpdfstring{Wirtschaftliche Grundlagen, \coursesemester\\\thistitle}
 {Wirtschaftliche Grundlagen: \thistitle}}
\author{\courseauthors}
\date{}

\begin{document}
\begin{frame}[plain,noframenumbering]
\includegraphics[height=1.1cm]{tub.pdf}
\vspace{0.15cm}

{\Large\bfseries\color{TUred}Wirtschaftliche Grundlagen, \coursesemester\par}
\vspace{0.12cm}
{\Large\bfseries\color{TUred}\thistitle\par}
\vspace{0.18cm}
{\color{TUred}\rule{\textwidth}{0.4pt}}
\vspace{0.18cm}

\textbf{\courseauthors}\\
\hrefc{https://www.tu.berlin/ensys}{Fachgebiet Digitaler Wandel in Energiesystemen}\\
Institut für Energietechnik, TU Berlin
\vfill
{\tiny Unless otherwise stated, graphics and text are Copyright \copyright{} Tom Brown, 2018--2026.
Material for which no other attribution is given is licensed under a
\href{https://creativecommons.org/licenses/by/4.0/}{Creative Commons Attribution 4.0 International Licence}. \ccby\par}
\end{frame}

\begin{frame}{Inhalt}
\setbeamertemplate{section in toc}[sections numbered]
\tableofcontents[hideallsubsections]
\end{frame}
