Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/poster #29

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 37 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Helmholtz AI beamer template

The place for Helmholtz AI LaTeX templates!

You can find here the beamer slides and poster templates, with some
instructions on how to get started.


## Status

Expand Down Expand Up @@ -65,7 +70,7 @@ $ latexmk slides.tex
To get rid of all temporary files created during compilation use the `-c` flag (`-C` to also remove the final slides PDF):

```sh
$ latexmk -c
$ latexmk -c slides.tex
```

Note: At the time of writing, the contents of this repo can be readily used on [overleaf](https://overleaf.com).
Expand Down Expand Up @@ -97,6 +102,37 @@ scripts `init-theme-submodule.sh` for (i) and `link-theme.sh` for (ii) which
can help you with that. See `script.sh -h` for usage examples. In both cases
you may also want to copy `.latexmkrc` and `Makefile` over.

## Building the poster

Building the poster is the same process as building slides.
It uses the `beamerposter` package, so again please ensure that you
compile it with XeLaTeX or LuaLaTeX instead of the (usual default) pdfLaTeX.

If you use the provided `Makefile`, you will first need to edit it to
point to the poster, so change the first line to:

```
main=poster.tex
```

and then running the following in your terminal:

```sh
$ make
```

Otherwise, using the `latexmk` tool directly to compile it requires no
configuration changes to the included `.latexmkrc`, simply run:

```sh
$ latexmk poster.tex
```

To get rid of all temporary files created during compilation use the `-c` flag (`-C` to also remove the final slides PDF):

```sh
$ latexmk -c poster.tex
```

## License

Expand Down
17 changes: 17 additions & 0 deletions helmholtzaiposter.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
%% V0.1
%% 2020/10/09
%% by Markus Goetz, James Kahn, Arvid Weyrauch

\makeatletter
\def\beamer@calltheme#1#2#3{%
\def\beamer@themelist{#2}
\@for\beamer@themename:=\beamer@themelist\do
{\usepackage[{#1}]{\beamer@themelocation/#3\beamer@themename}}}

\def\usefolder#1{
\def\beamer@themelocation{#1}
}
\def\beamer@themelocation{}

\usefolder{theme}
\usetheme{HelmholtzAIPoster}
195 changes: 195 additions & 0 deletions poster.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
\documentclass[aspectratio=1610]{beamer}
% Default for larger posters
%\usepackage[orientation=portrait,size=a0,scale=1.4]{beamerposter}
% For smaller posters you might want a larger scale so the text is bigger
\usepackage[orientation=portrait,size=a2,scale=1.8]{beamerposter}

% This MUST be imported after beamerposter
\usepackage{helmholtzaiposter} %available: helmholtzai1, helmhotzai2
\usepackage{siunitx}
\sisetup{
mode=match,
propagate-math-font=true,
reset-math-version=false,
reset-text-family=false,
reset-text-series=false,
text-family-to-math=true,
text-series-to-math=true
}

% Alternative code rendering
\usepackage{minted}

% References
\usepackage[
backend=biber,
maxbibnames=2,
giveninits=true,
url=true,
isbn=false,
sorting=none,
date=year,
]{biblatex}
\addbibresource{lit.bib}

\title{Helmholtz AI Poster Template}
\author{Dr.\ Con Sultant}
\institute[Helmholtz AI]
{Helmholtz AI, Germany}
\date{\today}

\begin{document}

\begin{frame}[fragile]{}

% Here's where you could manually reduce the space after the headline
%\vspace{-5ex}

\begin{columns}[t]
\begin{column}{.5\linewidth}


% First steps
\begin{haiblock}{First steps}

\begin{enumerate}
\item Set the poster size \& scale in the preamble
(look for \texttt{beamerposter})
\item Fill in the title/name/date/etc.
\item Add any institute/sponsor logos to the bottom of the poster
\item Make any minor manual adjustments (e.g.~reducing space after heading)
\end{enumerate}

\end{haiblock}
% First block
\begin{haiblock}{Example block}

This template uses a custom environment called
\texttt{haiblock} which you can use just like a normal LaTeX block
(it's actually a custom \texttt{tcolorbox})

% Note the indent of the code, it'll treat everything
% in the minted environment literally
\begin{minted}[bgcolor=hgfgray10]{latex}
\begin{haiblock}{Title}
Contents of block
\end{haiblock}
\end{minted}

\end{haiblock}

% Column block
\begin{haiblock}{Block with columns}

Perhaps you want to compare two things?

Do so with columns!

\begin{columns}[t]
\begin{column}{0.5\linewidth}

\textbf{Left column}
\begin{itemize}
\item You can place
\item parallel points
\end{itemize}

\begin{figure}[b]
\centering
\includegraphics[width=\columnwidth]{example-image-b}%
\end{figure}
\end{column}%
\begin{column}{0.5\linewidth}

\textbf{Right column}
\begin{itemize}
\item within their own
\item columns
\end{itemize}

\begin{figure}[b]
\centering
\includegraphics[width=\columnwidth]{example-image-c}%
\end{figure}

\end{column}
\end{columns}

\vspace{1em}

And then add some additional info
\begin{figure}
\centering
\includegraphics[width=0.45\textwidth]{example-image}%
\hfill%
\includegraphics[width=0.45\textwidth]{example-image}%
\end{figure}

\end{haiblock}

\end{column}
\begin{column}{.5\linewidth}

% Example of full sized figure
\begin{haiblock}{Block with only figure}

\begin{figure}
\centering
\includegraphics[width=\columnwidth]{example-image-golden}
\end{figure}
\end{haiblock}

% Example of code snippets
\begin{haiblock}{Block with code}

Here's a snippet of code using the minted package

\begin{minted}[bgcolor=hgfgray10]{python}
import numpy as np

def foo(a, b):
"""
asd
"""
return a + b + 1
\end{minted}

\end{haiblock}

% Example of references
\begin{haiblock}{References}

\begin{enumerate}
\item
Use the usual \texttt{cite} commamd~\cite{baydin_2018}
\item
Use \texttt{fullcite} \\
\fullcite{baydin_2018}
\item
Print the full bibliography
\end{enumerate}

\printbibliography
\end{haiblock}


\end{column}
\end{columns}

\vfill
% Place any relevant logos here
\begin{figure}[b]
\centering
\includegraphics[width=0.2\textwidth,height=0.055\textheight,keepaspectratio]{logos/helmholtzai_logo_2_lines.eps}%
\hfill%
\includegraphics[width=0.2\textwidth,height=0.055\textheight,keepaspectratio]{logos/helmholtzai_logo_3_lines.eps}%
\hfill%
\includegraphics[width=0.2\textwidth,height=0.055\textheight,keepaspectratio]{logos/helmholtzai_logo_2_lines.eps}%
\hfill%
\includegraphics[width=0.2\textwidth,height=0.055\textheight,keepaspectratio]{logos/helmholtzai_logo_3_lines.eps}%
\end{figure}

\end{frame}


\end{document}
4 changes: 4 additions & 0 deletions theme/beamercolorthemeHelmholtzAI.sty
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,7 @@

\setbeamercolor{block title alerted}{bg=hgfinformation80,fg=white}
\setbeamercolor{block body alerted}{bg=hgfinformation40}

\setbeamercolor{title in headline}{fg=hgfblue,bg=}
\setbeamercolor{author in headline}{fg=hgfgray,bg=}
\setbeamercolor{institute in headline}{fg=hgfgray,bg=}
Loading