Skip to content
Projects

Blocks and columns

Download notebookView on GitHubRun when the site was built.

A poster is a title, the authors and blocks of text and figures in columns. Text, titles and captions are LaTeX, so they can hold maths.

from plasma_posters import Poster
poster = Poster(
"Speeds in a thermal plasma",
authors="Max Lindqvist",
institute="Max Planck Institute for Plasma Physics",
columns=2,
)
poster.block("The distribution", r"$f(v) \propto v^2 \exp(-m v^2 / 2 k_B T)$")
poster.figure(
"Three temperatures", "maxwellian.pdf", caption="Normalised to its peak.", column=1
)

Blocks are stacked in their column in the order they are added. to_latex gives the document, a tikzposter file:

print(poster.to_latex())
\documentclass[25pt, a0paper, portrait]{tikzposter}
\usepackage{graphicx}
\usepackage{amsmath, amssymb}
\usetheme{Simple}
\title{\parbox{0.8\linewidth}{\centering Speeds in a thermal plasma}}
\author{Max Lindqvist}
\institute{Max Planck Institute for Plasma Physics}
\begin{document}
\maketitle
\begin{columns}
\column{0.5}
\block{The distribution}{
$f(v) \propto v^2 \exp(-m v^2 / 2 k_B T)$
}
\column{0.5}
\block{Three temperatures}{
\begin{tikzfigure}[Normalised to its peak.]
\includegraphics[width=0.95\linewidth]{maxwellian.pdf}
\end{tikzfigure}
}
\end{columns}
\end{document}

poster.save("poster.tex") writes it, and poster.build("poster.pdf") writes the .tex next to the PDF and compiles it with lualatex. Figure paths are relative to the .tex file. A .tex edited by hand is compiled with

plasma-posters build poster.tex