GOAP-AI-Unreal/Documentation/COMP250-AI-Latex/SUtheme.sty

143 lines
4.2 KiB
Plaintext
Raw Permalink Normal View History

2023-03-24 05:53:26 +00:00
% SU Theme for the tikzposter
% package.
%
% Modified from https://www.overleaf.com/latex/templates/university-of-melbourne-poster-template/swfmhrpvfryh
% The original author is Jiyu Chen
% modified by Qi Dang
% Last Modified: 2021-01-10
%
% -- COLORS --
% SU palette based on https://www.su.se/staff/organisation-governance/governing-documents-rules-and-regulations/communication-collaboration/guidelines-for-the-visual-identity-at-stockholm-university-1.17458
% SU - Stockholm University primary palette
% Base color
\definecolor{SUBlue}{HTML}{002F5F}
% Complementary colors
\definecolor{SUOliveLeaf}{HTML}{A3A86B}
\definecolor{SUSky}{HTML}{ACDEE6}
\definecolor{SUWater}{HTML}{9BB2CE}
\definecolor{SUFire}{HTML}{D95E00}
% emory secondary palette
\definecolor{Cyan}{HTML}{00aeef} % Pantone Cyan
\definecolor{SkyBlue}{HTML}{41b6e6} % Pantone 298
\definecolor{Teal}{HTML}{487f84} % Pantone 5483
\definecolor{KellyGreen}{HTML}{348338} % Pantone 7740
\definecolor{SeaGreen}{HTML}{006c5b} % Pantone 568
\definecolor{Olive}{HTML}{5c8118} % Pantone 370
\definecolor{Orange}{HTML}{c35413} % Pantone 1595
\definecolor{Red}{HTML}{da291c} % Pantone 485
\definecolor{Magenta}{HTML}{c6007e} % Pantone 233
\definecolor{Purple}{HTML}{6558b1} % Pantone 2102
\definecolor{Grape}{HTML}{6d2077} % Pantone 259
% neutrals palette
\definecolor{Black}{HTML}{101820} % Pantone Black 6
\definecolor{CoolGray5}{HTML}{b1b3b3} % Pantone Cool Gray 5
\definecolor{CoolGray2}{HTML}{d0d0ce} % Pantone Cool Gray 2
\definecolor{CoolGray1}{HTML}{d9d9d9} % Pantone Cool Gray 1
% web palette
\definecolor{LightYellow}{HTML}{ffde75}
% tikzposter color palette
\definecolorpalette{SUPalette} {
\definecolor{colorOne}{named}{SUBlue}
\definecolor{colorTwo}{named}{SUBlue}
\definecolor{colorThree}{named}{SUBlue}
}
% tikzposter style
\definecolorstyle{SUStyle} {
\usecolorpalette{SUPalette}
}{
% background
\colorlet{backgroundcolor}{white}
\colorlet{framecolor}{white}
% title colors
\colorlet{titlefgcolor}{white}
\colorlet{titlebgcolor}{SUBlue}
% block colors
\colorlet{blocktitlebgcolor}{colorOne}
\colorlet{blocktitlefgcolor}{white}
\colorlet{blockbodybgcolor}{white}
\colorlet{blockbodyfgcolor}{Black}
% innerblock colors
\colorlet{innerblocktitlebgcolor}{white}
\colorlet{innerblocktitlefgcolor}{Black}
\colorlet{innerblockbodybgcolor}{colorTwo}
\colorlet{innerblockbodyfgcolor}{Black}
% note colors
\colorlet{notefgcolor}{Black}
\colorlet{notebgcolor}{colorTwo}
\colorlet{noteframecolor}{colorTwo}
}
% -- STYLE --
% background
\definebackgroundstyle{SUBackgroundStyle}{
\draw[line width=0pt, color=framecolor, fill=backgroundcolor]
(bottomleft) rectangle (topright);
}
% title
\definetitlestyle{SUTitleStyle}{
width=\textwidth, linewidth=5pt, titletotopverticalspace=0in
}{
\begin{scope}[line width=\titlelinewidth,]
\draw[color=colorThree, fill=titlebgcolor,round cap-round cap, ]
(\titleposleft,\titleposbottom)--(\titleposright,\titleposbottom);
\end{scope}
}
% block
\defineblockstyle{SUBlockStyle}{
titlewidthscale=0.9, bodywidthscale=1, roundedcorners=5
}{
\draw[color=framecolor, fill=blockbodybgcolor,
rounded corners=\blockroundedcorners] (blockbody.south west)
rectangle (blockbody.north east);
\ifBlockHasTitle
\draw[color=framecolor, fill=blocktitlebgcolor,
rounded corners=\blockroundedcorners] (blocktitle.south west)
rectangle (blocktitle.north east);
\fi
}
% -- THEME --
% SU theme
\definelayouttheme{SUTheme}{
\usecolorstyle[colorPalette=SUPalette]{SUStyle}
\usebackgroundstyle{SUBackgroundStyle}
\usetitlestyle{SUTitleStyle}
\useblockstyle{SUBlockStyle}
\useinnerblockstyle{Default}
\usenotestyle{Default}
}
% -- TITLE FORMAT --
% place logo to right of centered title
\makeatletter
\renewcommand\TP@maketitle{%
\centering
\begin{minipage}[b]{0.8\linewidth}
\centering
\color{titlefgcolor}
{\bfseries \Huge \sc \@title \par}
\vspace*{1em}
{\huge \@author \par}
\vspace*{1em}
{\LARGE \@institute}
\end{minipage}%
\tikz[remember picture,overlay]\node[anchor=south east,xshift=0.5\linewidth,inner sep=0pt] {%
\@titlegraphic
};
}
\makeatother