Skip to content
Snippets Groups Projects
presentation.tex 7.22 KiB
% input packages to load, custom user macros
\input{config/header}
\input{config/user_macros}

%% ================================================================================
%% Compilation
%% ================================================================================

% Remark: For compilation with speaking notes, 1) see
% ./notes/speaking/Speakin_Notes.org > Presentation notes setup.
% 2) To switch, see PDF Compilation options below.

%% ================================================================================
%% References
%% ================================================================================

%% ----------------------------------------------------------------------
%% Basics

% beamertheme-juelich tutorial
% texdoc -s juelich

% Figures and graphics in beamer
% https://latex-beamer.com/tutorials/beamer-figure/

% Overlays in beamer
% https://latex-beamer.com/tutorials/overlays/
% https://www.overleaf.com/learn/latex/Beamer_Presentations%3A_A_Tutorial_for_Beginners_(Part_4)%E2%80%94Overlay_Specifications
% https://www.texdev.net/2014/01/17/the-beamer-slide-overlay-concept/

% beamer slides design tips
% https://paulgp.github.io/beamer_tips.pdf

%% ----------------------------------------------------------------------
%% Code listings in beamer.

%
% There are two package options: listings (traditional) and minted (modern).
% Here, we use minted because we think it looks more like what we are used to
% from our IDE.
%
% General references:
% - https://de.overleaf.com/learn/latex/Code_listing
% - https://de.overleaf.com/learn/latex/Code_Highlighting_with_minted
%
% Some general notes on getting minted to work.
%
% minted use the pygment Python library, so Python has to be installed with that
% library. When LaTeX compiler is called, it has to be called with the
% -shell-escape option. If you use Emacs AucTeX, see wasmer's init.el file for how to
% do this.
%
% When using minted with beamer, frames with minted listings in them must be
% declared fragile. Fragile frames can't have overlays. There exist some
% workarounds for that:
% - https://nochair.net/posts/2011/05-05-fragile-latex-beamer.html
% - https://felix11h.github.io/blog/latex-beamer-minted
% - https://github.com/fx-latex/template_beamer-minted
% - https://tex.stackexchange.com/questions/26917/beamer-vs-minted-overlays/51618


%% ================================================================================
%% Troubleshooting
%% ================================================================================

% % move wide figure to the left on the slide:
%
% option 1): with hspace*
% % put a line \hspace* above the \includegraphics. example:
% \begin{center}
%   \hspace*{-0.45cm}
%   \includegraphics<1>[width=1.05\textwidth]{fig/mybigfig1.pdf}%
%   \includegraphics<2-3>[width=1.05\textwidth]{fig/mybigfig2}%
% \end{center}
%
% option 2): with changepage package.
% if hspace doesn't work, try this (see texdoc -s changepage for MWE)
% \begin{adjustwidth*}{-1em}{-1em} ...
%%

% Correct figure positioning with overlays:
% terminate each includegraphics with a '%'.
% https://stackoverflow.com/a/51708242/8116031

% Correct figure positioning with figure plus text overlays:
% Wrap the text in an overprint env. This works like itemize, where \item is
% replaced by \onslide commands:
% \begin{overprint}
%   \onslide<1>
%   Some text.
%   \onslide<2>
%   Some text. \\ But multiline.
% \end{overprint}
% % some figure
% The example above will make the text appear one after the other in the same place.

% Absolute positioning
%
% one option is to use the textpos package (for all kind of content).
%
% another is to use one of these tikz snippets
% https://www.ellipsix.net/blog/2012/12/absolute-positioning-in-tikz-and-beamer.html
% https://newbedev.com/absolute-positioning-in-beamer
% https://tex.stackexchange.com/a/244103
% e.g. used below for creating custom macro: highlight boxes for all kind of
% content. a simpler implementation for that (but only for on top of graphics)
% is here: https://tex.stackexchange.com/a/8917.
%

% short format citations / references on slide in footnote
%
% in preamble: \usepackage[citestyle=authoryear,bibstyle=authortitle,backend=biber]{biblatex}
% in document: \footcite{myref}.
% reference: https://tex.stackexchange.com/a/356169
%
% more tips on citations / using biblatex in beamer:
%
% % yt >  Federico Tartarini > Beamer LaTeX course > References and bibliography
% https://www.youtube.com/watch?v=E6pfvp4SIPY
%
% % wikibooks > latex/presentations > references
% https://en.wikibooks.org/wiki/LaTeX/Presentations#References_(Beamer)
%
% % reduce fontsize of \footcite{}
% https://tex.stackexchange.com/a/27209
%
% % get rid of 'visited on' text in printed bibliography
% https://tex.stackexchange.com/a/400385
%
% % examples of biblatex styles
% https://de.overleaf.com/learn/latex/Articles/Getting_started_with_BibLaTeX
%
% biblatex cheatsheet
% http://tug.ctan.org/info/biblatex-cheatsheet/biblatex-cheatsheet.pdf
%

% tikz input error:
% ERROR: Package PGF Math Error: Unknown operator `o' or `of' (in '2em of dim').
%
% Adapted tikz figure from class diag figures in jsc gsp18 presentation.
% for figures \input{../fig/presentation/classification-of-atomistic-ml*.tikz.
% When inputting more than one, got the weird error above.
% Error disappeared when put here (header = global config) the config from gsp
% config.d/pgf-tikz.tex (header: search 'tikz setup config from jsc gsp18
% presentation'). Possible cause: https://tex.stackexchange.com/a/94396 says
% that should have used the positioning library cause that provides the 'of'
% keyword. But I do that already in the local figure setup. so it must be
% something else in there.
%
% Selective \usetikzlibrary commenting revealed that missing import of the library
% 'chains' in the document preamble is responsible instead, not 'positioning'.
% If 'chains' is only imported in the local figure setups, the error remains.
%

%% ================================================================================
%% Document
%% ================================================================================
\begin{document}

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FRONTMATTER
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\input{frontmatter/titlepage}
% \input{frontmatter/slides-repo}

% slide outline % Section frontmatter
\AtBeginSection[]{}             % prevent TOC being printed before every section (default)
                                % this effectively disables the outline
% % Manual outline at start of talk, optional
% \begin{frame}[t]
%   \frametitle{Outline}
%   \tableofcontents
% \end{frame}

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% MAINMATTER
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\input{mainmatter/introduction}
\input{mainmatter/jij-prediction}
\input{mainmatter/vimp-prediction}
\input{mainmatter/outlook}


% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% BACKMATTER
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\input{backmatter/discussion}
\input{backmatter/references}

\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:


% exch spirit jukkr
% slide numbers
% kkr fleur identical accuracy