-
Notifications
You must be signed in to change notification settings - Fork 5
/
example.rmd
168 lines (152 loc) · 5.99 KB
/
example.rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
---
title: Unnecessarily complicated research title
date: "`r format(Sys.time(), format='%Y-%m-%d %H:%M:%S %z')`"
author:
# order: student, principal, affiliates.
- name: The Student
affiliation: [1, 2]
- name: The Slavedriver
affiliation: 1
- name: Secondary Slavedriver
affiliation: 2
affiliation:
- key: 1
name: Department of studying and research, University of PhD
- key: 2
name: Institute for grant money
# -- rmarkdown stuff -- #
output:
pdf_document:
template: "poster-pandoc-template.tex"
keep_tex: yes
# -- preamble. if it's a lot use include-in-header and give a file instead -- #
header-includes:
# examples
- '\usepackage{mwe}'
- '\usepackage{fancyvrb}' # you get hyperref already
# -- template config -- #
# Examples of configuration
# if you change enough of these though, maybe just change the sty file.
beamerconfig:
blocks: # default rounded, no shadow. Do not recommend shadows.
rounded: true
# shadow: true
# colours:
# # (block|alerted|example) (body|title)
# - name: block body
# style: bg=white
# # the horizontal rule between header and poster
# - name: cboxb
# style: bg=black
papersize: a0 # the default.
orientation: landscape #@TODO
columnwidth: '0.3\paperwidth' # the default is 0.3\textwidth and you get \colwid set to it.
---
<!--
%-----------------------------------------------------------
% When including a figure in your poster, be sure that the commands are typed in the following order:
% \Begin{figure}
% \includegraphics[...]{...}
% \caption{...}
% \End{figure}
% That is, put the \caption after the \includegraphics
%-----------------------------------------------------------
-->
\nopandoc{\begin{columns}[t]} <!-- align top. If I use Begin, pandoc takes the [t] ... -->
\Begin{column}{\colwid}
<!-- --------------------- -->
\Begin{alertblock}{Summary}
Here is a barebones document for an A0 poster.
It was based off http://www.nathanieljohnston.com/2009/08/latex-poster-template/ but has been modified to work as an R Markdown file to be compiled with knitr (rmd to md) and then pandoc (md to tex) and then latex (tex to pdf).
Alert blocks are shaded and have padding so use them for the conclusion/summary.
\End{alertblock}
<!-- --------------------- -->
\Begin{block}{The Setup}
Required files:
* `poster.md`, this example R Markdown file.
* `poster-pandoc-template.tex`, the pandoc template for the poster.
* `beamerthemeconfposter.sty`, the beamer style file (I **think** you may be able to substitute your own, but I used the one from [here (
Computational Physics and Biophysics Group, Jacobs University, with modification by Nathaniel Johnston and Vel Gayevskiy)](https://www.overleaf.com/latex/templates/landscape-beamer-poster-template/vjpmsxxdvtqk)
Also:
* LaTeX packages `latexbeamer`, `pgf` (Tikz), `beamerposter`
* R package `knitr`
* pandoc
I've only tested this compiling from Rstudio.
You can set authors and affiliations in the YAML metadata, along with limited beamer styling (block rounded corners and so on).
\Begin{subblock}{Subblocks}
These are essentially second-level headings. The environment is called `subblock`.
The font size is slightly smaller. Set the heading colour via **TODO**.
**TODO**: the spacing seems to have disappeared again.
\End{subblock}
\End{block}
\End{column}
<!-- --------------------- -->
<!-- Second column. spanning two columns -->
<!-- --------------------- -->
<!-- column spanning two columns. -->
\Begin{column}{2\colwid}
\Begin{block}{Altering Column Spans}
You can make columns that span multiple other columns relatively easily. Lengths are defined in the template that make columns look normal-ish if you want to use a three-column layout like this poster. If you want to use a different number of columns, you can specify the base column width in the YAML preamble.
In particular, in the YAML:
~~~
columnwidth: '0.3\paperwidth'
~~~
You get `\colwid` for free, and using the `calc` package you can get multiples of it.
\End{block}
<!-- --------------------- -->
<!-- split up the 2-col wide column -->
<!-- --------------------- -->
\nopandoc{\Begin{columns}[t,totalwidth=2\colwid]}
<!-- --------------------- -->
<!-- Second column -->
<!-- --------------------- -->
\Begin{column}{\colwid}
\Begin{block}{Block Colours}
For the standard blocks there are two colours; one for the title and one for the block body:
\setbeamercolor{block title}{fg=red,bg=white}
\setbeamercolor{block body}{fg=black,bg=white}
The `fg` colour sets the text colour and `bg` sets the background colour.
For the normal blocks it makes no sense to use a background colour other than white. You *can* change it, but it will look weird!
\End{block}<!-- Block colours -->
<!-- --------------------- -->
\Begin{block}{Todo}
* verbatim straight quotes.
* knitr...
* bibliography
* theming: user puts in a theme e.g. warsaw first for colours if they like
* more control over font size
* spacing between institutions seems too large
* logos
* bibliography without explicit `\bibitem`, ie integrate biblatex?
* more spacing between blocks//standard spacing
* easy styling and so on.
* [WONT] explicit control over separator width?
\End{block}
<!-- --------------------- -->
\begin{block}{References}
Some references:
\small{\begin{thebibliography}{99}%@TODO incorporate with a bibtex
\bibitem{KLPL06} D.~W. Kribs, R. Laflamme, D. Poulin, M. Lesosky, Quantum Inf. \& Comp. \textbf{6} (2006), 383-399.
\bibitem{zanardi97} P. Zanardi, M. Rasetti, Phys. Rev. Lett. \textbf{79}, 3306 (1997).
\end{thebibliography}}
\end{block} <!-- references -->
\End{column}
<!-- --------------------- -->
<!-- Third column -->
<!-- --------------------- -->
\Begin{column}{\colwid}
\Begin{block}{Demo}
Some maths:
\[
\sum_{i=1}^{\infty} \frac{1}{i}\text{ does not converge.}
\]
A figure:
\begin{figure}
\includegraphics[width=\colwid]{example-image}
\caption{A caption.}
\end{figure}
\End{block}
\End{column}
\End{columns} <!-- end 2-column split -->
\End{column}
\End{columns}