\documentclass[10pt]{beamer}
%\usetheme{Copenhagen}
\usetheme[]{Boadilla}
\setbeamertemplate{headline}{}



\usepackage{ucs}
\usepackage[utf8]{inputenc}
\usepackage{beamerthemeclassic}
\usepackage{multicol}

%\usepackage{babel}
\usepackage{fontenc}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{amsmath}
\usepackage[final]{pdfpages}
\usepackage{xcolor}


\usepackage{url}

\usepackage{subfiles}

%\topmargin=15pt

\def\slide#1#2{
\begin{frame}[plain]
  \frametitle{#1}
  #2
\end{frame}
}


\def\SlideWithFullFigureWithLink#1#2#3{
\newgeometry{margin=15pt}
\slide{Sreenshot: #1}
{
\includegraphics[width=\tw]{#2}
\href{#3}{\beamergotobutton{\ButtonRef}}
} 
\restoregeometry
}


\def\SlideWithHeadFullFigureWithLink#1#2#3#4{
%\newgeometry{margin=15pt}
\slide{Sreenshot: #1}
{
#2
\includegraphics[width=\tw]{#3}
\href{#4}{\beamergotobutton{\ButtonRef}}
} 
%\restoregeometry
}

\def\tw{\textwidth}
\def\credit#1{credit:\cite{#1}}
\def\ButtonRef{See example}

\def\fig#1#2#3#4{
\begin{figure}
\includegraphics[width=#1\textwidth]{figs/#2} 
\caption{#3}
\label{#4}
\end{figure} 
}

\def\twocolumns#1#2#3#4{
\begin{center}
\begin{columns}[c]
\column{#1\tw}
#2
\column{#3\tw}
#4
\end{columns}
\end{center}
}

\def\blok#1#2{
\begin{block}{#1}
#2
\end{block}}

\title{WP@ELAB training, the calculus day \\(November 2021 overview)}
\author{Vojtech Svoboda, Pavel Kuriscak, Frantisek Lustig}
\date{\today}


\AtBeginSection[]
{
   \begin{frame}
       \frametitle{Outline}
       \tableofcontents[currentsection,currentsubsection]
   \end{frame}
}

\AtBeginSubsection[]
{
   \begin{frame}
       \frametitle{Outline}
       \tableofcontents[currentsection,currentsubsection]
   \end{frame}
}



\AtBeginSection[]
{
  \begin{frame}
    \frametitle{Table of Contents}
    \tableofcontents[currentsection,hideallsubsections]
  \end{frame}
}

\AtBeginSubsection[]
{
  \begin{frame}
    \frametitle{Table of Contents}
    \tableofcontents[currentsection,hideothersubsections]
  \end{frame}
}


\def\ExcelImplem{
\footnotesize
\begin{tabular}{|l|l|l|l|l|l|}\hline row& column A& column B&column C&column D&column E\\ \hline 
4&0 & -L2 & B4/I2 & any number  & any number \\
& & & & ($v_0$ initial cond.) & ($x_0$ initial cond.)\\ \hline
5&A4+I4&-L2 &B5/I2&D4+C5*I4&E4+D5*I4\\ \hline 
6&A5+I4&-L2 &B6/I2&D5+C6*I4&E5+D6*I4\\ \hline 
7..N-1&.. &.. &.. & ..& ..\\ \hline 
N&A(N-1)+I4&-L2 &BN/I2&D(N-1)+CN*I4&E(N-1)+DN*I4\\ \hline 
\end{tabular}}


\def\Prescription{
\scriptsize
\begin{tabular}{|l|l|l|l|l|}\hline time& $F(t,x,v)$&$a(t)$ &$v(t)$ calculation&$x(t)$ calculation\\ \hline 
$t_0$ & $F_0=F(t_0,x_0,v_0)$& $a_0=F_0/m $ & $v_0$ (initial cond.) & $x_0$ (initial cond.)\\ \hline 
$t_1=t_0+\Delta t$ & $F_1=F(t_1,x_1,v_1)$ & $a_1=F_1/m$ & $v_1=v_0+a_1\Delta t$& $x_1=x_0+v_1\Delta t$\\ \hline 
$t_2=t_1+\Delta t$ & $F_2=F(t_2,x_2,v_2)$ & $a_2=F_2/m$ & $v_2=v_1+a_2\Delta t$& $x_2=x_1+v_2\Delta t$\\ \hline 
.. &.. &.. & ..& ..\\ \hline 
$t_n=t_{n-1}+\Delta t$ & $F_n=F(t_n,x_n,v_n)$ & $a_n=F_n/m$ & $v_n=v_{n-1}+a_n\Delta t$& $x_n=x_{n-1}+v_n\Delta t$\\ \hline 
\end{tabular}}


\begin{document}

\begin{frame}
  \titlepage
\end{frame}



\section{Introduction}
\subfile{Introduction_overv}

\section{1D problem in cartesian coordinates: free fall}
\subfile{FreeFallProblem}

\section{1D problem in rotational system: pendulum}
\subfile{Pendulum}

\section{Numerical simulation versus experiment}
\subfile{NumSimExperiment}

%\section{Final remarks}
%\subfile{FinalRemarks}

\section{Summary}
\begin{frame}
  \tableofcontents
\end{frame}

\slide{To be continued..}{\blok{Thank you }{for your attention}}

 
\nocite{EulerTut}
\nocite{wiki:PendMath}
\nocite{wiki:ProjMot}


\bibliographystyle{alpha}
\bibliography{main}


\end{document}
