\def\GW{/GW}\def\GWinclMovie{0}\def\visibility{true}
\documentclass[]{beamer}
\setbeamersize{text margin left=10pt, text margin right=10pt} %new code
\setbeamerfont{headline}{size=\footnotesize}
\setbeamercolor{background canvas}{bg=}
\usetheme{Rochester}
\setbeamertemplate{navigation symbols}{} 

\input{\GW/root/GW4reports/GWcommons}
%\input{\GW/root/GW4reports/GWslides}
 
%\AtBeginSection[]
%{
%   \begin{frame}
%       \frametitle{Outline}
%       \tableofcontents[currentsection,currentsubsection]
%   \end{frame}
%}

%\newboolean{Generate_slides.page}
%\setboolean{Generate_slides.page}{false}
%\def\Generate_slides.page#1{\ifthenelse{\boolean{Generate_slides.page}}{\immediate\write\filer{#1}}{}} 

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


\def\GWigWref#1#2#3#4{\begin{minipage}{#1}\includegraphics[width=\textwidth]{\GW/#2}\\ \hrefcredit{#3}{#4}\\\end{minipage}}
\def\GWis#1{
\input{\GW/#1/latexsrc.page}
\GWslide
%\Generate_slides.page{<img src="/#1/slide.jpg"/>^^J}
} %GW include slide


\def\slide#1#2{
\begin{frame}\frametitle{#1}
#2
\end{frame}
%\Generate_slides.page{\SecLevel #1}
}

\def\vizon#1{#1}
\def\vizoff#1{}



\def\blockquot#1#2#3{
\begin{block}{\it #1}
{\it #2}\\ \hfill #3
\end{block}}

\def\qtslide#1#2#3#4#5#6{\begin{frame}\frametitle{#1}\centering
\includegraphics[#2]{\GW/#3} 
\blockquot{#4 ...}{... #5}{#6}
\end{frame}}


\def\GWslideTwoGraphics#1#2#3{\begin{frame}\frametitle{#1}
\GWig{width=0.48\textwidth}{#2}
\GWig{width=0.48\textwidth}{#3}
\end{frame}}

\def\GWdiagnSlide#1#2{\begin{frame}\frametitle{#1}
\begin{columns}
\begin{column}{0.5\textwidth}
%\pgfputat{\pgfxy(0,-1)}{\pgfbox[left,base]{\GWig{width=\textwidth}{Diagnostics/#2/Sketch/das.pdf}}}
\GWigfw{Diagnostics/#2/Sketch/das.pdf}
\GWigfw{ShowRooms/PlasmaPerformance/WellExecutedShots/\LastWellExecutedShot/python/#2.jpg}
\end{column}
\begin{column}{0.5\textwidth}
\GWigfw{Diagnostics/#2/PhotoGallery/ReprePhoto.jpg}
\end{column}
\end{columns}
\end{frame}}

\def\FigSlide#1#2#3{\begin{frame}\frametitle{#1}
\begin{center}
\begin{figure}[ht]
\includegraphics[width=#2\tw]{\GW/#3}
\end{figure}
\end{center}
\end{frame}}


\def\FigSlideWithRef#1#2#3#4#5{\begin{frame}\frametitle{#1}
\begin{center}
\begin{figure}[ht]
\includegraphics[width=#2\tw]{\GW/#3}
\end{figure}
\end{center}
\reference{#4}{#5}
%\flushright #4 \cite{#5}
%\printbibliography[keyword=#4]
\end{frame}}

\def\FigSlideWithURL#1#2#3#4{\begin{frame}\frametitle{#1}
\begin{center}
\begin{figure}[ht]
\includegraphics[width=#2\tw]{\GW/#3}
\end{figure}
\end{center}
\url{#4}
\end{frame}}


\ifthenelse{\isundefined{\GWinclMovie}}{\def\GWinclMovie{1}}{}
%Better use this:
%pdflatex "\def\GWinclMovie{1}\input{present.tex}" to include movies
%or this:
%pdflatex "\def\GWinclMovie{0}\input{present.tex}" to exclude movies



\def\GWMovieSlide#1#2#3{\begin{frame}\frametitle{#1}
\begin{center}
\begin{figure}[ht]
\ifnum \GWinclMovie=1
{\movie[width=9.1cm,height=6.5cm,poster,autostart,showcontrols]{\includegraphics[width=9.1cm,height=6.5cm]{Tools/VirtualModels/TatOko_OG/screenshots/#2}}{\GW/Tools/VirtualModels/TatOko_OG/movies/#3}}
\fi
\ifnum \GWinclMovie=2
{\movie[width=9.1cm,height=6.5cm,poster,autostart,showcontrols]{\includegraphics[width=9.1cm,height=6.5cm]{\GW/Tools/VirtualModels/TatOko_OG/screenshots/#2}}{#3}}
\fi
\ifnum \GWinclMovie=0
{\GWig{width=9.1cm,height=6.5cm}{Tools/VirtualModels/TatOko_OG/screenshots/#2}}
\fi
\end{figure}
\end{center}
\end{frame}}

\def\GWFigSlide#1#2#3{\begin{frame}\frametitle{#1}
\begin{center}
\begin{figure}[ht]
\GWig{width=#2\tw}{#3}
\end{figure}
\end{center}
\end{frame}}

\def\GMstory#1#2{\begin{frame}\frametitle{#1}
\begin{center}
\begin{figure}[ht]
\GWig{width=0.8\tw}{#2}
\end{figure}
\end{center}
\end{frame}}

\def\SlideUpImgBtItems#1#2#3#4{\begin{frame}\frametitle{#1}
\begin{center}
\begin{figure}[ht]
\GWig{width=#2\tw}{#3}
\end{figure}
\end{center}
\begin{itemize}
#4
\end{itemize}
\end{frame}}

\def\SlideLeftImgRightItems#1#2#3#4{\begin{frame}\frametitle{#1}
\begin{columns}
\begin{column}{0.5\textwidth}
\begin{figure}[ht]
\GWig{width=#2\tw}{#3}
\end{figure} 
\end{column}
\begin{column}{0.5\textwidth}
\begin{itemize}
#4
\end{itemize}
\end{column}
\end{columns}
\end{frame}}

%bibtex stuff
\setbeamertemplate{bibliography entry article}{}
\setbeamertemplate{bibliography entry title}{}
\setbeamertemplate{bibliography entry location}{}
\setbeamertemplate{bibliography entry note}{}
\begin{document} 
\def\GWslide{\slide{Acknowledgement}{
 \begin{block}{Financial support highly appreciated:}
 CTU RVO68407700, SGS 17/138/OHK4/2T/14, GAČR GA18-02482S, EU funds CZ.02.1.01/0.0/0.0/16\_019/0000778 and CZ.02.2.69/0.0/0.0/16\_027/0008465, IAEA F13019, 
FUSENET and EUROFUSION.
  \end{block}
 \begin{block}{Students, teachers, technicians (random order):}
\begin{center}
 Vladimír Fuchs, Ondřej Grover, Tomáš Markovič, Tomáš Odstrčil, Gergo Pokol,  Gabriel Vondrášek, Jan Stockel, Jan Mlynář, Jaroslav Krbec, Vladimír Linhart, Kateřina Jiráková, Ondřej Ficker, Jaroslav Čeřovský, Martin Himmel. Petr Švihra, \bf{Petr Mácha}, Vojtěch Fišer, Filip Papoušek, Sergei Kulkov, Martin Imríšek.
\end{center}
  \end{block}
}}


\def\EXF2slide{\slide{Acknowledgement}{
 \begin{block}{Financial support highly appreciated:}
 CTU RVO68407700, SGS 17/138/OHK4/2T/14, GAČR GA18-02482S, EU funds CZ.02.1.01/0.0/0.0/16\_019/0000778 and CZ.02.2.69/0.0/0.0/16\_027/0008465, IAEA F13019, 
FUSENET and EUROFUSION.
  \end{block}
 \begin{block}{Students, teachers, technicians (random order):}
\begin{center}
 Vladimír Fuchs, {\bf Ondřej Grover}, Jindřich Kocman, Tomáš Markovič,  Michal Odstrčil, Tomáš Odstrčil, Gergo Pokol,  Igor Jex, Gabriel Vondrášek, František Žácek, Lukáš Matěna, {\bf Jan Stockel}, Jan Mlynář, Jaroslav Krbec, Radan Salomonovič, Vladimír Linhart, {\bf Kateřina Jiráková}, {\bf Ondřej Ficker}, Pravesh Dhyani, Juan, Jaroslav Čeřovský, Bořek Leitl, Martin Himmel, {\bf Petr Švihra}.
\end{center}
  \end{block}
}}
\GWslide\bibliographystyle{apalike}\bibliography{/GW/root/bibtex/golem,/GW/root/bibtex/others}\end{document}
