org-mode-poster/src/org-mode-poster_poster.tex

172 lines
4.3 KiB
TeX
Raw Normal View History

2018-04-02 19:40:42 +02:00
% Created 2018-04-02 Mon 13:40
2018-04-02 10:57:06 +02:00
% Intended LaTeX compiler: pdflatex
\documentclass[final]{beamer}
\usetheme{ph}
\usepackage[orientation=portrait,size=a0,scale=1.4]{beamerposter}
\usepackage[absolute,overlay]{textpos}
\usepackage[authoryear]{natbib}
\setlength{\paperwidth}{36in}
\setlength{\paperheight}{48in}
\setlength{\textwidth}{0.98\paperwidth}
\setlength{\textheight}{0.98\paperheight}
\graphicspath{{../output/figures/}{../lib/}}
\usepackage[export]{adjustbox}
\usepackage{graphicx,caption}
2018-04-02 19:40:42 +02:00
\usepackage{minted}
2018-04-02 10:57:06 +02:00
\usepackage{eurosym}
2018-04-02 19:40:42 +02:00
\usepackage{listings}
2018-04-02 10:57:06 +02:00
\usepackage{textcomp}
\usepackage{bibentry}
\date{}
\author{
Philipp Homan$^{1}$,
\\
\normalsize{$^{1}$Department of Psychiatry,}
\normalsize{The Donald and Barbara Zucker}
\normalsize{School of Medicine at Northwell/Hofstra,}
2018-04-02 19:40:42 +02:00
\normalsize{Hempstead, NY}
2018-04-02 10:57:06 +02:00
}
\usetheme{default}
2018-04-02 19:40:42 +02:00
\date{2018-04-02 13:40}
2018-04-02 10:57:06 +02:00
\title{A scientific poster entirely written in org-mode using GNU emacs and the beamer library}
\begin{document}
2018-04-02 19:40:42 +02:00
\begin{frame}[fragile,label={sec:orgd2177c7}]{}
\begin{columns}
\begin{column}[t]{0.45\columnwidth}
2018-04-02 10:57:06 +02:00
\begin{block}{Background}
\begin{itemize}
\item Org-mode is not only useful for producing blog posts and even
2018-04-02 19:40:42 +02:00
scientific manuscripts; it is also perfectly suitable to make
decent looking scientific posters
2018-04-02 10:57:06 +02:00
\item We combine a relatively simple custom \LaTeX style file and common
org-mode syntax
2018-04-02 19:40:42 +02:00
\item The nice thing about org-mode is that we can populate the poster with
code, graphs and numbers from inline code in languages such as R,
python, Matlab and even shell scripting
\item Inline code would look like this, which will produce a graph
(Fig. \ref{fig:orgeb3e62b}):
2018-04-02 10:57:06 +02:00
\end{itemize}
2018-04-02 19:40:42 +02:00
\begin{columns}
\begin{column}[T]{0.48\columnwidth}
\begin{minted}[linenos=true]{r}
x <- rnorm(100, 0, 1)
hist(x, col="gray")
\end{minted}
2018-04-02 10:57:06 +02:00
\begin{figure}[htbp]
\centering
2018-04-02 19:40:42 +02:00
\includegraphics[width=.9\linewidth]{3.png}
\caption{\label{fig:orgeb3e62b}
This is the output.}
2018-04-02 10:57:06 +02:00
\end{figure}
2018-04-02 19:40:42 +02:00
\end{column}
\end{columns}
2018-04-02 10:57:06 +02:00
\end{block}
2018-04-02 19:40:42 +02:00
\begin{block}{Methods: Inline code and tables}
\begin{itemize}
\item In addition to inline code, we can also produce tables
\item Tables are very powerful in org-mode, they even include spreadsheet
capabilities
\item Some code to process the vector from above to make a table out of its
summary could look like this, which would result in a little table
(Table \ref{tab:org9ea6927}) :
\end{itemize}
\begin{columns}
\begin{column}[T]{0.48\columnwidth}
\begin{minted}[linenos=true]{r}
m <- round(mean(x), 2)
s <- round(sd(x), 2)
data.frame(Mean=m, SD=s)
\end{minted}
\vspace{2cm}
\begin{table}[htbp]
2018-04-02 10:57:06 +02:00
\centering
2018-04-02 19:40:42 +02:00
\begin{tabular}{rr}
Mean & SD\\
\hline
-0.06 & 0.95\\
\end{tabular}
\caption{\label{tab:org9ea6927}
A table.}
\end{table}
\end{column}
\end{columns}
2018-04-02 10:57:06 +02:00
\end{block}
\end{column}
2018-04-02 19:40:42 +02:00
\begin{column}[t]{0.45\columnwidth}
\begin{block}{Results: graphics}
\begin{itemize}
\item Of course we can also include graphics
\item Here, we use shell scripting to grab an image with curl from the
internet (Fig. \ref{fig:orgfbcdbeb}):
\end{itemize}
\begin{columns}
\begin{column}[T]{0.78\columnwidth}
\small
\begin{minted}[linenos=true]{sh}
curl -0 https://www.gnu.org/software/emacs/images/emacs.png
\end{minted}
\normalsize
\vspace{2cm}
2018-04-02 10:57:06 +02:00
\begin{figure}[htbp]
\centering
2018-04-02 19:40:42 +02:00
\includegraphics[page=9,width=0.2\textwidth]{emacs.png}
\caption{\label{fig:orgfbcdbeb}
This is the downloaded image.}
2018-04-02 10:57:06 +02:00
\end{figure}
2018-04-02 19:40:42 +02:00
\end{column}
\end{columns}
2018-04-02 10:57:06 +02:00
\end{block}
2018-04-02 19:40:42 +02:00
\begin{block}{Results: columns}
2018-04-02 10:57:06 +02:00
\begin{columns}
\begin{column}[T]{0.48\columnwidth}
\captionsetup{justification=justified,width=.8\linewidth}
\begin{figure}[htbp]
\centering
\includegraphics[page=3,width=0.9\textwidth]{org-mode-poster-4.png}
2018-04-02 19:40:42 +02:00
\caption{\label{fig:org9ac2cf6}
\textbf{This is the left figure of a two-column block}}
2018-04-02 10:57:06 +02:00
\end{figure}
\end{column}
\begin{column}[T]{0.48\columnwidth}
\captionsetup{justification=justified,width=.8\linewidth}
\begin{figure}[htbp]
\centering
\includegraphics[page=9,width=0.9\textwidth]{org-mode-poster-4.png}
2018-04-02 19:40:42 +02:00
\caption{\label{fig:org558ce26}
\textbf{This is the right figure.}}
2018-04-02 10:57:06 +02:00
\end{figure}
\end{column}
\end{columns}
\end{block}
\begin{block}{Conclusions}
\begin{itemize}
2018-04-02 19:40:42 +02:00
\item This little example is meant to show how incredibly versatile
org-mode is
\item One can now produce scientific posters with a simple text editor
2018-04-02 10:57:06 +02:00
\end{itemize}
\end{block}
\end{column}
\end{columns}
\end{frame}
\end{document}