Commit 5e09254e authored by Florentin Rochet's avatar Florentin Rochet
Browse files

add poster

parents
The MIT License (MIT)
=====================
**Copyright (c) 2018 Anish Athalye (me@anishathalye.com)**
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
BUILD := \
poster \
DEPS := \
beamerthemegemini.sty \
beamercolorthemegemini.sty \
beamercolorthememit.sty \
beamercolorthemelabsix.sty \
LATEX := lualatex
BIBTEX := bibtex
TARGETS := $(patsubst %, %.pdf, $(BUILD))
# phony targets
all: $(TARGETS)
clean:
rm -rf *.pdf *.aux *.bbl *.blg *.log *.nav *.out *.snm *.toc
.PHONY: all clean
# main targets
poster.pdf: poster.tex poster.bib $(DEPS)
$(eval SRC_$@ = $(patsubst %.tex, %, $<))
$(LATEX) $(SRC_$@)
# $(BIBTEX) $(SRC_$@)
$(LATEX) $(SRC_$@)
$(LATEX) $(SRC_$@)
# Gemini
Gemini is a modern LaTeX [beamerposter] theme.
<p align="center">
<a href="https://raw.githubusercontent.com/anishathalye/gemini/assets/poster-gemini.pdf">
<img src="https://raw.githubusercontent.com/anishathalye/gemini/assets/poster-gemini-small.png">
</a>
</p>
# Dependencies
* A TeX installation that includes [LuaTeX]
* LaTeX package dependencies including beamerposter (these usually come with
your TeX installation, but if not, you can get them from [CTAN])
* [Raleway] and [Lato], which are both available under Open Font License
# Usage
1. Copy the files in this repository (or clone the repository)
1. In `poster.tex`, set up your paper size, column layout, and scale the
content as necessary
1. Make a copy of `beamercolorthemegemini.sty`, update the `\usecolortheme`
line in `poster.tex`, and theme the poster to your liking (optional, but
highly recommended)
1. Run `make` to build your poster
# Themes
Gemini currently includes three color themes:
* `gemini` (default)
* `mit`
* `labsix`
The alternative themes are intended to be inspiration for you to make your own
color theme. You're highly recommended to make your own color theme (it's
really easy!) or use the default Gemini theme.
## MIT theme
<p align="center">
<a href="https://raw.githubusercontent.com/anishathalye/gemini/assets/poster-mit.pdf">
<img src="https://raw.githubusercontent.com/anishathalye/gemini/assets/poster-mit-small.png">
</a>
</p>
## LabSix theme
<p align="center">
<a href="https://raw.githubusercontent.com/anishathalye/gemini/assets/poster-labsix.pdf">
<img src="https://raw.githubusercontent.com/anishathalye/gemini/assets/poster-labsix-small.png">
</a>
</p>
# Design goals
* **Minimal**: clean and easy to read, so that the emphasis is on the content
* **Batteries included**: works and looks good out of the box
* **Easy theming**: easy to create and use a new color theme
# Contributing
Contributions to Gemini such as bug reports, new themes, and new poster
components are greatly appreciated! Given the subjective nature of design,
you're encouraged to open an issue or pull request early to get feedback before
investing a lot of time in implementing a new feature.
# License
Copyright (c) 2018 Anish Athalye. Released under the MIT License. See
[LICENSE.md][license] for details.
[beamerposter]: https://github.com/deselaers/latex-beamerposter
[LuaTeX]: http://www.luatex.org/
[CTAN]: https://ctan.org/
[Raleway]: https://www.fontsquirrel.com/fonts/raleway
[Lato]: https://www.fontsquirrel.com/fonts/lato
[license]: LICENSE.md
seqdiag {
user -> browser [label = "Interact with first factor (ex: password)"];
browser --> webserver [label = "GET /authenticate"];
browser <-- webserver [label = "Send challenge, e.g.: Draw text 'cdsHzc782V'"];
browser --> webserver [label = "POST /check_authentication 'hi, I'm Bob. Here's my drawings'", rightnote = "Make a guess\n based on the\n learning phase"];
# webserver --> webserver [label = "Make a guess based on the learning phase"]
browser <-- webserver [label = "auth cookie and display 'success' / displays 'error'"];
user <- browser [label = "success / error"];
}
% Gemini theme
% https://github.com/anishathalye/gemini
% ====================
% Definitions
% ====================
\definecolor{lightgray}{RGB}{245, 246, 250}
\definecolor{blue}{RGB}{64, 115, 158}
\definecolor{darkblue}{RGB}{39, 60, 117}
% ====================
% Theme
% ====================
% Basic colors
\setbeamercolor{palette primary}{fg=black,bg=white}
\setbeamercolor{palette secondary}{fg=black,bg=white}
\setbeamercolor{palette tertiary}{bg=black,fg=white}
\setbeamercolor{palette quaternary}{fg=black,bg=white}
\setbeamercolor{structure}{fg=darkblue}
% Headline
\setbeamercolor{headline}{fg=lightgray,bg=blue}
\setbeamercolor{headline rule}{bg=darkblue}
% Block
\setbeamercolor{block title}{fg=blue,bg=white}
\setbeamercolor{block separator}{bg=black}
\setbeamercolor{block body}{fg=black,bg=white}
% Alert Block
\setbeamercolor{block alerted title}{fg=blue,bg=lightgray}
\setbeamercolor{block alerted separator}{bg=black}
\setbeamercolor{block alerted body}{fg=black,bg=lightgray}
% Heading
\setbeamercolor{heading}{fg=black}
% Itemize
\setbeamercolor{item}{fg=darkblue}
% Bibliography
\setbeamercolor{bibliography item}{fg=black}
\setbeamercolor{bibliography entry author}{fg=black}
\setbeamercolor{bibliography entry title}{fg=black}
\setbeamercolor{bibliography entry location}{fg=black}
\setbeamercolor{bibliography entry note}{fg=black}
% Gemini theme
% https://github.com/anishathalye/gemini
% ====================
% Definitions
% ====================
\definecolor{labsixorange}{RGB}{243, 111, 33}
% Extra colors
\definecolor{lightgray}{RGB}{240, 240, 240}
% ====================
% Theme
% ====================
% Basic colors
\setbeamercolor{palette primary}{fg=black,bg=white}
\setbeamercolor{palette secondary}{fg=black,bg=white}
\setbeamercolor{palette tertiary}{bg=black,fg=white}
\setbeamercolor{palette quaternary}{fg=black,bg=white}
\setbeamercolor{structure}{fg=labsixorange}
% Headline
\setbeamercolor{headline}{fg=black,bg=white}
\setbeamercolor{headline rule}{bg=black}
% Block
\setbeamercolor{block title}{fg=labsixorange,bg=white}
\setbeamercolor{block separator}{bg=black}
\setbeamercolor{block body}{fg=black,bg=white}
% Alert Block
\setbeamercolor{block alerted title}{fg=labsixorange,bg=lightgray}
\setbeamercolor{block alerted separator}{bg=black}
\setbeamercolor{block alerted body}{fg=black,bg=lightgray}
% Heading
\setbeamercolor{heading}{fg=black}
% Itemize
\setbeamercolor{item}{fg=labsixorange}
% Bibliography
\setbeamercolor{bibliography item}{fg=black}
\setbeamercolor{bibliography entry author}{fg=black}
\setbeamercolor{bibliography entry title}{fg=black}
\setbeamercolor{bibliography entry location}{fg=black}
\setbeamercolor{bibliography entry note}{fg=black}
% Gemini theme
% https://github.com/anishathalye/gemini
% ====================
% Definitions
% ====================
% Colors from http://web.mit.edu/graphicidentity/colors.html
\definecolor{mitred}{cmyk}{0.24, 1.0, 0.78, 0.17}
\definecolor{mitdarkgray}{cmyk}{0.48, 0.39, 0.39, 0.04}
\definecolor{mitlightgray}{cmyk}{0.24, 0.20, 0.20, 0.0}
% Extra colors
\definecolor{lightgray}{RGB}{240, 240, 240}
% ====================
% Theme
% ====================
% Basic colors
\setbeamercolor{palette primary}{fg=black,bg=white}
\setbeamercolor{palette secondary}{fg=black,bg=white}
\setbeamercolor{palette tertiary}{bg=black,fg=white}
\setbeamercolor{palette quaternary}{fg=black,bg=white}
\setbeamercolor{structure}{fg=mitred}
% Headline
\setbeamercolor{headline}{fg=black,bg=lightgray}
% Block
\setbeamercolor{block title}{fg=mitred,bg=white}
\setbeamercolor{block separator}{bg=black}
\setbeamercolor{block body}{fg=black,bg=white}
% Alert Block
\setbeamercolor{block alerted title}{fg=mitred,bg=lightgray}
\setbeamercolor{block alerted separator}{bg=black}
\setbeamercolor{block alerted body}{fg=black,bg=lightgray}
% Heading
\setbeamercolor{heading}{fg=black}
% Itemize
\setbeamercolor{item}{fg=mitred}
% Bibliography
\setbeamercolor{bibliography item}{fg=black}
\setbeamercolor{bibliography entry author}{fg=black}
\setbeamercolor{bibliography entry title}{fg=black}
\setbeamercolor{bibliography entry location}{fg=black}
\setbeamercolor{bibliography entry note}{fg=black}
% SWAT theme
% ====================
% Definitions
% ====================
\definecolor{lightgray}{RGB}{245, 246, 250}
\definecolor{blue}{RGB}{64, 115, 158}
\definecolor{purple}{RGB}{73,58,80}
\definecolor{darkblue}{RGB}{39, 60, 117}
% ====================
% Theme
% ====================
% Basic colors
\setbeamercolor{palette primary}{fg=black,bg=white}
\setbeamercolor{palette secondary}{fg=black,bg=white}
\setbeamercolor{palette tertiary}{bg=black,fg=white}
\setbeamercolor{palette quaternary}{fg=black,bg=white}
\setbeamercolor{structure}{fg=darkblue}
% Headline
\setbeamercolor{headline}{fg=lightgray,bg=purple}
\setbeamercolor{headline rule}{bg=darkblue}
% Block
\setbeamercolor{block title}{fg=purple,bg=white}
\setbeamercolor{block separator}{bg=black}
\setbeamercolor{block body}{fg=black,bg=white}
% Alert Block
\setbeamercolor{block alerted title}{fg=purple,bg=lightgray}
\setbeamercolor{block alerted separator}{bg=black}
\setbeamercolor{block alerted body}{fg=black,bg=lightgray}
% Heading
\setbeamercolor{heading}{fg=black}
% Itemize
\setbeamercolor{item}{fg=darkblue}
% Bibliography
\setbeamercolor{bibliography item}{fg=black}
\setbeamercolor{bibliography entry author}{fg=black}
\setbeamercolor{bibliography entry title}{fg=black}
\setbeamercolor{bibliography entry location}{fg=black}
\setbeamercolor{bibliography entry note}{fg=black}
% Gemini theme
% https://github.com/anishathalye/gemini
% ====================
% Dependencies
% ====================
\RequirePackage{exscale}
\RequirePackage{ragged2e}
\RequirePackage{changepage}
\RequirePackage{fontspec}
% ====================
% Fonts
% ====================
\newfontfamily\Raleway{Raleway}
\newfontfamily\Lato{Lato}
\usefonttheme{professionalfonts}
\setsansfont{Lato}[
UprightFont=*-Light,
ItalicFont=*-LightItalic,
BoldFont=*-Regular,
BoldItalicFont=*-Italic
]
\setbeamerfont{headline}{family=\Raleway}
\setbeamerfont{headline title}{size=\Huge,series=\bfseries}
\setbeamerfont{headline author}{size=\Large}
\setbeamerfont{headline institute}{size=\normalsize}
\setbeamerfont{block title}{family=\Raleway,size=\large,series=\bfseries}
\setbeamerfont{heading}{family=\Lato,series=\bfseries}
\setbeamerfont{caption}{size=\small}
% ====================
% Macros
% ====================
\newcommand{\samelineand}{\qquad}
% ====================
% Elements
% ====================
% List
\makeatletter
\def\@listi{\leftmargin\leftmarginii
\topsep 1ex % spacing before
\parsep 0\p@ \@plus\p@
\itemsep 0.5ex} % spacing between
\makeatother
% Itemize
\setbeamertemplate{itemize item}{\raise0.5ex \hbox{\vrule width 0.5ex height 0.5ex}}
\setbeamertemplate{itemize subitem}{\raise0.3ex \hbox{\vrule width 0.5ex height 0.5ex}}
\setbeamertemplate{itemize subsubitem}{\raise0.2ex \hbox{\vrule width 0.5ex height 0.5ex}}
% Enumerate
\setbeamertemplate{enumerate item}{\insertenumlabel.}
\setbeamertemplate{enumerate subitem}{\insertsubenumlabel.}
\setbeamertemplate{enumerate subsubitem}{\insertsubsubenumlabel.}
% Equation
\setlength\belowdisplayshortskip{2ex}
% Caption
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{caption label separator}[period]
\setlength{\abovecaptionskip}{2ex}
\setlength{\belowcaptionskip}{1ex}
% Bibliography
\setbeamertemplate{bibliography item}[text]
% Navigation
\beamertemplatenavigationsymbolsempty
% ====================
% Components
% ====================
% Heading
\newcommand\heading[1]
{%
\par\bigskip
{\usebeamerfont{heading}\usebeamercolor[fg]{heading}#1}\par\smallskip
}
% Headline
\setbeamertemplate{headline}
{
\begin{beamercolorbox}{headline}
\begin{columns}
\begin{column}{\paperwidth}
\usebeamerfont{headline}
\vskip3ex
\centering
{\usebeamerfont{headline title}\usebeamercolor[fg]{headline title}\inserttitle\\[0.5ex]}
{\usebeamerfont{headline author}\usebeamercolor[fg]{headline author}\insertauthor\\[1ex]}
{\usebeamerfont{headline institute}\usebeamercolor[fg]{headline institute}\insertinstitute\\[1ex]}
\end{column}
\end{columns}
\vspace{5ex}
\ifbeamercolorempty[bg]{headline rule}{}{
\begin{beamercolorbox}[wd=\paperwidth,colsep=0.5ex]{headline rule}\end{beamercolorbox}
}
\end{beamercolorbox}
}
% Block
\setbeamertemplate{block begin}
{
\begin{beamercolorbox}[colsep*=0ex,dp=2ex,center]{block title}
\vskip0pt
\usebeamerfont{block title}\insertblocktitle
\vskip-1.25ex
\begin{beamercolorbox}[colsep=0.025ex]{block separator}\end{beamercolorbox}
\end{beamercolorbox}
{\parskip0pt\par}
\usebeamerfont{block body}
\vskip-0.5ex
\begin{beamercolorbox}[colsep*=0ex]{block body}
\justifying
\setlength{\parskip}{1ex}
\vskip-2ex
}
\setbeamertemplate{block end}
{
\end{beamercolorbox}
\vskip0pt
\vspace*{2ex}
}
% Alert Block
\setbeamertemplate{block alerted begin}
{
\begin{beamercolorbox}[colsep*=0ex,dp=2ex,center]{block alerted title}
\vskip0.5ex
\usebeamerfont{block title}\insertblocktitle
\vskip-1.25ex
\begin{beamercolorbox}[colsep=0.025ex]{block alerted separator}\end{beamercolorbox}
\end{beamercolorbox}
{\parskip0pt\par}
\usebeamerfont{block body}
\vskip-0.5ex
\begin{beamercolorbox}[colsep*=0ex]{block alerted body}
\justifying
\begin{adjustwidth}{1ex}{1ex}
\setlength{\parskip}{1ex}
\vskip-2ex
}
\setbeamertemplate{block alerted end}
{
\end{adjustwidth}
\vskip1ex
\end{beamercolorbox}
\vskip0pt
\vspace*{2ex}
}
ALL: fig7a.pdf \
fig7b.pdf \
fig7c.pdf \
fig7d.pdf \
fig7e.pdf \
fig7f.pdf \
app1.pdf \
app3.pdf \
app2.pdf \
app4.pdf \
app5a.pdf \
app5b.pdf \
app5c.pdf \
app5d.pdf
.ONESHELL:
test: header.tex
.PHONY:test
%.pdf: %.gp header
cat header| sed "s|\\\|\\\\\\\|g" | sed 's/"/\\"/g' | awk '{printf "%s\\n", $$0}' | awk 'BEGIN{getline l < "-"}/XXX/{gsub("XXX",l)}1' $< 1> $*.gp2
gnuplot $*.gp2
rm $*.gp2
cat $*.tex | sed 's/documentclass/documentclass[7pt]/' > $*.tex.tmp
mv $*.tex.tmp $*.tex
latex $*.tex
dvipdf $*.dvi
pdfcrop $*.pdf
mv $*-crop.pdf $*.pdf
clean:
rm -rf *.pdf *.eps *.aux *.dvi *.log *.tex *.xcp *.out
.PHONY: clean
# line styles for ColorBrewer Set1
# for use with qualitative/categorical data
# provides 8 easy-to-name colors
# compatible with gnuplot >=4.2
# author: Anna Schneider
# line styles
set style line 1 lc rgb '#E41A1C' # red
set style line 2 lc rgb '#377EB8' # blue
set style line 3 lc rgb '#4DAF4A' # green
set style line 4 lc rgb '#984EA3' # purple
set style line 5 lc rgb '#FF7F00' # orange
set style line 6 lc rgb '#FFFF33' # yellow
set style line 7 lc rgb '#A65628' # brown
set style line 8 lc rgb '#F781BF' # pink
# palette
set palette maxcolors 8
set palette defined ( 0 '#E41A1C',\
1 '#377EB8',\
2 '#4DAF4A',\
3 '#984EA3',\
4 '#FF7F00',\
5 '#FFFF33',\
6 '#A65628',\
7 '#F781BF' )
set terminal epslatex size 3.5,1.75 font "" 8 standalone header \
"XXX"
set datafile separator ','
set output 'app1.tex'
load './Set1.plt'
set xrange [0.0:50]
set yrange [0.0:1.02]
set xlabel "Download Time (s)" offset 0,+0.5
set ylabel "CDF of Clients" offset +0.5,0
set grid back
set key inside right bottom Left width -2
set pointintervalbox 3
LW = 4
PS = 1.5
PI = 10
plot \
'~/prj/lapsit/location-aware-tor/paper/data_plot/app1_vanillator.csv' smooth bezier title "Vanilla" ls 1 lw LW dt 1, \
'~/prj/lapsit/location-aware-tor/paper/data_plot/app1_counterraptoralpha05.csv' smooth bezier title "Counter-RAPTOR ($\\alpha=0.5$)" ls 2 lw LW dt 2, \
'~/prj/lapsit/location-aware-tor/paper/data_plot/app1_counterraptoralpha1.csv' smooth bezier title "Counter-RAPTOR ($\\alpha=1.0$)" ls 3 lw LW dt 3, \
This source diff could not be displayed because it is too large. You can view the blob instead.
set terminal epslatex size 3.5,1.75 font "" 8 standalone header \
"XXX"
set datafile separator ','
set output 'app2.tex'
load './Set1.plt'
set xrange [0.0:50]
set yrange [0.0:1.02]
set xlabel "Download Time (s)" offset 0,+0.5
set ylabel "CDF of Clients" offset +0.5,0
set grid back
set key inside right bottom Left width -2
set pointintervalbox 3
LW = 4
PS = 1.5
PI = 10
plot \
'~/prj/lapsit/location-aware-tor/paper/data_plot/app2_vanillator.csv' smooth bezier title "Vanilla" ls 1 lw LW dt 1, \
'~/prj/lapsit/location-aware-tor/paper/data_plot/app2_counterraptoralpha05.csv' smooth bezier title "Counter-RAPTOR ($\\alpha=0.5$)" ls 2 lw LW dt 2, \
'~/prj/lapsit/location-aware-tor/paper/data_plot/app2_counterraptoralpha1.csv' smooth bezier title "Counter-RAPTOR ($\\alpha=1.0$)" ls 3 lw LW dt 3, \
This source diff could not be displayed because it is too large. You can view the blob instead.