aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans-Nikolai Viessmann2016-05-30 13:41:44 +0100
committerHans-Nikolai Viessmann2016-05-30 13:41:44 +0100
commit042545d740bd7a7c3924ff942e5003c05160b95d (patch)
treee56f73edaa77d6f2eebd97104eaf0959a748f4d3
parentb642dce01f50847cff68066c7318d42ebc342b8a (diff)
downloadecr-poster-042545d740bd7a7c3924ff942e5003c05160b95d.tar.gz
ecr-poster-042545d740bd7a7c3924ff942e5003c05160b95d.zip
Updated specs somewhat
* Added alt ecr logo * Added support for subtitle * Added makefile
-rw-r--r--Makefile22
-rw-r--r--ecrposter.cls32
-rw-r--r--example.pdfbin1862746 -> 1864687 bytes
-rw-r--r--example.tex5
-rw-r--r--logos/ECR_Alt/ECR_Logo_Alt.pdfbin0 -> 1755565 bytes
-rw-r--r--logos/ECR_Alt/ECR_Logo_Alt.tex11
6 files changed, 61 insertions, 9 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1164f4d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+NAME := example
+
+SRC := \
+ $(NAME).tex \
+ ecrposter.cls
+
+.PHONY: clean
+
+$(NAME).pdf: $(SRC)
+ if which latexmk > /dev/null 2>&1; then \
+ latexmk -pdf -f -pdflatex='pdflatex -halt-on-error -file-line-error' $<;\
+ else \
+ pdflatex -halt-on-error -file-line-error $< && \
+ bibtex $(patsubst %.tex,%,$<) && \
+ pdflatex -halt-on-error -file-line-error $< ;\
+ pdflatex -halt-on-error -file-line-error $< ;\
+ fi
+
+clean:
+ $(RM) *.aux *.log *.out *.vrb $(NAME).pdf \
+ $(NAME).bbl $(NAME).blg $(NAME).fdb_latexmk \
+ $(NAME).toc $(NAME).fls
diff --git a/ecrposter.cls b/ecrposter.cls
index 0467b0a..70aca0c 100644
--- a/ecrposter.cls
+++ b/ecrposter.cls
@@ -22,8 +22,9 @@
% Load Packages
\RequirePackage[T1]{fontenc}
\RequirePackage{fix-cm}
-\RequirePackage{helvet}
+\RequirePackage[scaled]{helvet}
\RequirePackage{sansmath}
+\RequirePackage{inconsolata}
\RequirePackage[export]{adjustbox}
% ---------------------------------------------------------------------------- %
@@ -41,11 +42,17 @@
%% lengths and other dimensions
\newlength{\footerheight}
\newlength{\offcentre}
-%% more concise column spacing
-\newcommand{\third}{0.333333} % As with all things, precision's shadow is chaos
+%%% As with all things, precision's shadow is chaos %%%
%% better spacing between blocks
\newcommand{\qspace}{\vspace{0.25\baselineskip}}
\newcommand{\haspace}{\vspace{0.5\baselineskip}}
+%% add support for a subtitle
+\newcommand{\@subtitle}{~}
+\newcommand{\subtitle}[1]{\renewcommand{\@subtitle}{#1}}
+%% add specifier for alternative ECR logo (user-made, unauthorized!!!)
+\newtoggle{ecr_logo_alt}
+\togglefalse{ecr_logo_alt}
+\newcommand{\useecrlogoalt}{\toggletrue{ecr_logo_alt}}
%% we do some nastiness and undefine some TikZPoster stuff
\let\titlegraphic\@undefined
@@ -186,8 +193,11 @@
\noindent%
\begin{minipage}{\linewidth}
\centering
- \color{titlefgcolor}{\bfseries \huge \parbox{\titleboxwidth}{\vspace{2em}\centering \@title} \par}
- \vspace*{2em}
+ \color{titlefgcolor}{%
+ {\bfseries \huge \parbox{\titleboxwidth}{\centering \@title}}\vspace*{0.5em}\linebreak
+ {\Large \parbox{\titleboxwidth}{\centering \@subtitle}}\par
+ }
+ \vspace*{1.5em}
{\Large \@author \par}
\vspace*{0.5em}
{\large \@institute}
@@ -195,11 +205,15 @@
}%
\noindent%
\begin{minipage}{\linewidth}
- \includegraphics[valign=c,height=0.05\textheight]{logos/ECR_Logo.pdf}
+ \iftoggle{ecr_logo_alt}{%
+ \includegraphics[valign=c,height=0.052\textheight]{logos/ECR_Alt/ECR_Logo_Alt.pdf}
+ }{%
+ \includegraphics[valign=c,height=0.052\textheight]{logos/ECR_Logo.pdf}
+ }
\hfill
- \includegraphics[valign=c,height=0.03\textheight]{logos/HW_Logo_positive.pdf}
+ \includegraphics[valign=c,height=0.032\textheight]{logos/HW_Logo_positive.pdf}
\hspace{2em}
- \includegraphics[valign=c,height=0.04\textheight]{logos/University_of_Edinburgh_Logo.pdf}
+ \includegraphics[valign=c,height=0.045\textheight]{logos/University_of_Edinburgh_Logo.pdf}
\end{minipage}
}
@@ -232,7 +246,7 @@
\end{minipage}
}};
- \draw[color=titlebottomcolor,line width=5mm,anchor=south] ($(-0.5\textwidth,-0.5\textheight+\footerheight)$) -- ($(0.5\textwidth,-0.5\textheight+\footerheight)$);
+ \draw[color=titlebottomcolor,line width=4mm,anchor=south] ($(-0.5\textwidth,-0.5\textheight+\footerheight)$) -- ($(0.5\textwidth,-0.5\textheight+\footerheight)$);
\end{scope}
}
diff --git a/example.pdf b/example.pdf
index 93266c4..1cce500 100644
--- a/example.pdf
+++ b/example.pdf
Binary files differ
diff --git a/example.tex b/example.tex
index 13cc3c7..2f264db 100644
--- a/example.tex
+++ b/example.tex
@@ -5,12 +5,17 @@
%% You can use any options supported by TikZPoster package
\documentclass{ecrposter}
+%% This macro controls whether you want to use the Official ECR logo or
+%% the user modified one (which is unauthorised!!!).
+%\useecrlogoalt{}
+
%% This macro has not been added to the ECRPoster document class because
%% it might be nice, if it doesn't bother you, to show the TikZPoster logo :)
\tikzposterlatexaffectionproofoff{} % to remove the TikZPoster logo
% Title Related content
\title{Title of Your Work}
+\subtitle{Subtitle}
\institute{[Lead University], Edinburgh Centre for Robotics} % See Section 4.1
\author{First Author, Second Author}
diff --git a/logos/ECR_Alt/ECR_Logo_Alt.pdf b/logos/ECR_Alt/ECR_Logo_Alt.pdf
new file mode 100644
index 0000000..14191fc
--- /dev/null
+++ b/logos/ECR_Alt/ECR_Logo_Alt.pdf
Binary files differ
diff --git a/logos/ECR_Alt/ECR_Logo_Alt.tex b/logos/ECR_Alt/ECR_Logo_Alt.tex
new file mode 100644
index 0000000..0d326a0
--- /dev/null
+++ b/logos/ECR_Alt/ECR_Logo_Alt.tex
@@ -0,0 +1,11 @@
+\documentclass[tikz,border=0pt]{standalone}
+
+\begin{document}
+ \definecolor{aqua-new}{RGB}{102,203,204}
+ \definecolor{aqua-new-dark}{RGB}{54,150,146}
+ \begin{tikzpicture}
+ \node at (0,0) {\includegraphics{../ECR_Logo.pdf}};
+ \draw[draw=aqua-new,fill=aqua-new,rotate around={45:(-0.2,0.3)}] (0.2,-0.6) rectangle (2.1,1.3);
+ \draw[draw=none,fill=aqua-new-dark] (0,0.52) circle (1cm);
+ \end{tikzpicture}
+\end{document}