% 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{tikz}
\usetikzlibrary{arrows,calc,arrows.meta,decorations.pathreplacing,patterns}
%calc allows coordinate calculations

\usepackage[europeanresistors,americaninductors]{circuitikz}

\usepackage[scale=2]{ccicons}

\usepackage[official]{eurosym}


\usepackage{pgfplots}
\pgfplotsset{compat=1.16}

%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}}

\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$}}}


% 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} Source: {#1}
    \end{beamercolorbox}
\end{textblock*}}

\usepackage{hyperref}


%\usepackage[pdftex]{graphicx}


\graphicspath{{../graphics/}}

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






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



\let\olditem\item
\renewcommand{\item}{%
\olditem\vspace{5pt}}

\title{Energy Economics, Winter Semester 2025-6 \\
\thistitle}


%\subtitle{---}
\author{
  {\bf Prof. Tom Brown}, Philipp Glaum\\
  \hrefc{https://www.tu.berlin/ensys}{Department of Digital Transformation in Energy Systems}, Institute of Energy Technology, TU Berlin
}

\date{}

\titlegraphic{%
  \vspace{0cm}
  \hspace{10.7cm}
    \includegraphics[trim=0 0cm 0 0cm,height=1.8cm,clip=true]{tub.pdf}

\vspace{5.1cm}

  {\footnotesize

  Unless otherwise stated, graphics and text are Copyright \copyright Tom Brown, 2021-5.
  Graphics and text for which no other attribution are given are licensed under a
  \href{https://creativecommons.org/licenses/by/4.0/}{Creative Commons
  Attribution 4.0 International Licence}. \ccby}
}

\begin{document}

\maketitle


\begin{frame}

  \frametitle{Table of Contents}
  \setbeamertemplate{section in toc}[sections numbered]
  \tableofcontents[hideallsubsections]
\end{frame}
