Will add examples and improve formatting of style sheets

This commit is contained in:
lleene
2019-07-09 11:48:27 +01:00
parent 7d5530cd5d
commit a615559191
24 changed files with 784 additions and 229 deletions

View File

@ -5,95 +5,103 @@
\ProvidesClass{enginiposter}[2018/09/30 Engini Latex Poster Template.]
\LoadClass[portrait]{a0poster}
\makeatletter
\def\bstctlcite{\@ifnextchar[{\@bstctlcite}{\@bstctlcite[@auxout]}}
\def\@bstctlcite[#1]#2{\@bsphack
\@for\@citeb:=#2\do{%
\edef\@citeb{\expandafter\@firstofone\@citeb}%
\if@filesw\immediate\write\csname #1\endcsname{\string\citation{\@citeb}}\fi}%
\@esphack}
\makeatother
% color definitions
\RequirePackage{xcolor}
\definecolor{ngniprimary}{RGB}{33,48,79}
\definecolor{ngniharm1}{RGB}{48,33,79}
\definecolor{ngnibg}{RGB}{245,245,255}
\definecolor{ngniharm2}{RGB}{33,79,64}
% set lengths
% set lengths: what about geometry margins?
\newlength{\marginlength}%
\setlength{\marginlength}{2cm}
\setlength{\unitlength}{\paperwidth}%
\RequirePackage{graphicx}
\RequirePackage[margin=\marginlength,bottom=-5mm]{geometry}
\RequirePackage[margin=\marginlength,bottom=0mm]{geometry}
\RequirePackage{mdframed}
\mdfdefinestyle{ngniframe}{linecolor=ngniharm2, linewidth=10pt,topline=false,rightline=false,bottomline=false,backgroundcolor=ngnibg,font=\Large,fontcolor=black,frametitlefont=\huge\bfseries\color{ngnibg},frametitlebackgroundcolor=ngniharm1,frametitleaboveskip=25pt,frametitlebelowskip=25pt,subtitlebackgroundcolor=ngniharm1,subtitlefont=\huge\bfseries\color{ngnibg},subtitleinneraboveskip=25pt,subtitleinnerbelowskip=25pt,innertopmargin=25pt,innerbottommargin=25pt,innerleftmargin=50pt,innerrightmargin=50pt}
\mdfdefinestyle{ngniframe}{linecolor=ngniharm2, linewidth=5pt,topline=false,rightline=false,bottomline=false,backgroundcolor=ngnibg,font=\Large,fontcolor=black,frametitlefont=\huge\bfseries\color{ngnibg},frametitlebackgroundcolor=ngniharm1,frametitleaboveskip=25pt,frametitlebelowskip=25pt,subtitlebackgroundcolor=ngniharm1,subtitlefont=\huge\bfseries\color{ngnibg},subtitleinneraboveskip=25pt,subtitleinnerbelowskip=25pt,innertopmargin=25pt,innerbottommargin=25pt,innerleftmargin=50pt,innerrightmargin=50pt}
\def\@intro{}
\newcommand{\intro}[1]{\def\@intro{#1}}
\newcommand{\usection}[1]{\section*{#1}\addcontentsline{toc}{section}{#1}}
\newcommand{\fullbanner}[3]{%
\noindent\hspace{-1\marginlength}%
\colorbox{#1}{\color{#2}%
\begin{minipage}{\paperwidth}%
#3
\end{minipage}}}
\RequirePackage{amssymb}
\renewcommand{\labelitemi}{\raisebox{0.05em}{$\blacktriangleright\:$}}
\renewcommand{\labelitemii}{$\bullet\:$}
\renewcommand{\labelitemiii}{$\cdot\:$}
%make title banne with given hight
\renewcommand{\maketitle}[3]{
\newlength{\trimlength}%
\setlength{\trimlength}{0.35\paperwidth}
\setlength{\trimlength}{#1\trimlength}
\addtolength{\trimlength}{-18cm}
% Top Banner
\makeatletter
\newcommand{\address}[1]{\gdef\@address{#1}}
%make title banner with given hight
\renewcommand{\maketitle}{ % Prepares Top Banner
% Edit this such that it can include multiple figures in iteration
\noindent\hspace{1.33cm}\hspace{-1\marginlength}%
\begin{picture}(1, 0.04)%
\put(0,0){\includegraphics[height=4.5cm]{Style/IC_blue.pdf}}
\put(0.25,0){\includegraphics[height=4.5cm]{Style/banner_long.pdf}}
\put(0.835,0){\includegraphics[height=4.5cm]{Style/epsrc-bw.pdf}}
\end{picture}
%\colorbox{white}{%
\includegraphics[height=4.5cm]{Style/IC_blue.pdf}%
\hfill%
\includegraphics[height=4.5cm]{Style/banner_long.pdf}%
\hfill%
\includegraphics[height=4.5cm]{Style/epsrc-bw.pdf}%
%}
% Title Banner
\noindent\hspace{-0.06cm}\hspace{-1\marginlength}%
\begin{picture}(1, #1)%
\put(0,0){\includegraphics[width=\paperwidth, trim={0 0 0 -\trimlength}, clip=true]{Style/background_neuron.pdf}}
\put(0,#2){%
\colorbox{ngniprimary}{
\begin{minipage}{\paperwidth}%
\begin{center}
\vspace{1cm}
\veryHuge \color{ngnibg} \bf \@title \\
\bigskip
\Large \color{ngnibg} \bf \@author
\vspace{0.5cm}
\end{center}%
\end{minipage}}}
\end{picture}
\vspace{2cm}
\noindent\hspace{-1\marginlength}%
\includegraphics[width=\paperwidth, trim={0cm 17cm 0cm 0cm}]{Style/background_neuron.pdf}
\vspace{2cm}
% Abstract Banner
\noindent\hspace{-0.05cm}\hspace{-1\marginlength}%
\begin{picture}(1,0)
\put(0,#3){%
\colorbox{ngniprimary}{
\begin{minipage}{\paperwidth}
\vspace{1cm}
\color{ngnibg}
\Large
\centering
\@intro
\vspace{1.5cm}
\end{minipage}
}}
\end{picture}
}
\fullbanner{ngniharm1}{ngnibg}{%
\begin{center}
\bigskip
\veryHuge \noindent \ignorespaces \color{ngnibg} {\bf\@title} \par
\bigskip
\Large \noindent \ignorespaces \color{ngnibg} \bf\@author \par
\Large \noindent \ignorespaces \color{ngnibg} \bf\@address \par
\bigskip
\end{center}}}
\makeatother
\newcommand{\clearbackground}{%
\noindent\hspace{-1\marginlength}%
\includegraphics[width=\paperwidth, trim={0cm 10.58cm 0cm 0cm}]{Style/box.pdf}%
\vspace{\marginlength}}
\newcommand{\ngnifooter}[1]{
\vfill
\noindent\hspace{-0.05cm}\hspace{-1\marginlength}%
\colorbox{ngniharm1}{\begin{picture}(1,0.09)
\put(0.854,0.005){\colorbox{white}{\includegraphics[height=8cm,clip=true,trim=-10mm -10mm -10mm -10mm]{Style/main_logo.pdf}}}
\put(0.0218,0.005){\colorbox{white}{\includegraphics[height=8cm,width=2cm,clip=true,trim=10cm 0 0 0]{Style/main_logo.pdf}}}
\put(0.06,0.045){%
\begin{minipage}{0.75\paperwidth}
\color{ngnibg}
#1
\end{minipage}}
\end{picture}}
}
% Prepares a banner for the end-section with content
\newcommand{\ngnifooter}[1]{\vfill%
\fullbanner{ngniharm1}{ngnibg}{%
\begin{minipage}{6cm}%
\hspace{\marginlength}
\colorbox{white}{\rule{\marginlength}{0pt}\rule{0pt}{8cm}}
\hfill
\end{minipage}%
\begin{minipage}{0.75\paperwidth}\vspace{8mm}%
#1
\end{minipage}%
\hfill
\begin{minipage}{14cm}%
\colorbox{white}{\includegraphics[height=8cm,trim={-2mm -2mm -2mm -2mm}]{Style/main_logo.pdf}}%
\hfill%
\end{minipage}%
}}
\newcommand{\contentbanner}[3]{%
\noindent\hspace{-1\marginlength}%
\colorbox{#1}{\color{#2}%
\hspace{\marginlength}
\begin{minipage}{\dimexpr (\paperwidth-2\marginlength) \relax}%
\bigskip
#3
\bigskip
\end{minipage}}}