Add UKAEA LaTeX beamer template from Chris Macmackin
This commit is contained in:
parent
ed61fbb1e2
commit
f7266fda77
|
@ -88,7 +88,9 @@
|
||||||
hyperref
|
hyperref
|
||||||
capt-of
|
capt-of
|
||||||
listings
|
listings
|
||||||
|
bera
|
||||||
;
|
;
|
||||||
|
latex-beamer-ukaea.pkgs = [ (callPackage ./texlive/latex-beamer-ukaea/default.nix { }) ];
|
||||||
})
|
})
|
||||||
|
|
||||||
# Development tools
|
# Development tools
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
# UKAEA Beamer Style
|
||||||
|
|
||||||
|
This provides a Beamer theme for the default UKAEA branding. Subbrands
|
||||||
|
(CCFE, RACE, etc.) are not current available, but would not be
|
||||||
|
difficult to add.
|
||||||
|
|
||||||
|
For best results, it is recommended that you install the non-free
|
||||||
|
Latex fonts, as described here:
|
||||||
|
<https://www.tug.org/fonts/getnonfreefonts/>. However you will still
|
||||||
|
get perfectly acceptable results without them.
|
||||||
|
|
||||||
|
The file `ukaea-example.tex` is provided as a starting point for your
|
||||||
|
presentations. Simply rename and modify it as needed. You must either
|
||||||
|
keep your presentation TeX file in the same directory as the `.sty`
|
||||||
|
and image files or install those files on your system. If you wish to
|
||||||
|
do the latter, [follow these
|
||||||
|
instructions](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages#Installing_a_package)
|
||||||
|
starting from step 3.
|
|
@ -0,0 +1,50 @@
|
||||||
|
\usepackage{xcolor}
|
||||||
|
|
||||||
|
\mode<presentation>
|
||||||
|
|
||||||
|
\definecolor{UkaeaCoreBlue}{RGB}{0,48,86}
|
||||||
|
\definecolor{UkaeaCoreWhite}{RGB}{255,255,255}
|
||||||
|
\definecolor{UkaeaCoreBlack}{RGB}{0,0,0}
|
||||||
|
\definecolor{UkaeaCoreGrey1}{RGB}{88,89,91}
|
||||||
|
\definecolor{UkaeaCoreGrey2}{RGB}{128,130,133}
|
||||||
|
\definecolor{UkaeaCoreGrey3}{RGB}{167,169,172}
|
||||||
|
\definecolor{UkaeaCoreGrey4}{RGB}{209,211,212}
|
||||||
|
\definecolor{UkaeaSecondaryYellow}{RGB}{246,212,77}
|
||||||
|
\definecolor{UkaeaSecondaryGreen}{RGB}{0,111,69}
|
||||||
|
\definecolor{UkaeaSecondaryBlue}{RGB}{0,130,202}
|
||||||
|
\definecolor{UkaeaSecondaryRed}{RGB}{201,37,44}
|
||||||
|
\definecolor{UkaeaSecondaryText}{RGB}{144,145,179}
|
||||||
|
\definecolor{CcfeOrange}{RGB}{248,151,29}
|
||||||
|
\definecolor{OasRed}{RGB}{230,62,48}
|
||||||
|
\definecolor{RaceSilver}{RGB}{191,196,217}
|
||||||
|
\definecolor{MrcGreen}{RGB}{5,206,124}
|
||||||
|
|
||||||
|
\setbeamercolor{headline}{bg=UkaeaCoreBlue}
|
||||||
|
\setbeamercolor{title page}{bg=UkaeaCoreBlue}
|
||||||
|
|
||||||
|
\setbeamercolor{title}{fg=UkaeaCoreWhite, bg=UkaeaCoreBlue}
|
||||||
|
\setbeamercolor{subtitle}{fg=UkaeaCoreWhite}
|
||||||
|
|
||||||
|
\setbeamercolor{author}{fg=UkaeaSecondaryText}
|
||||||
|
\setbeamercolor{date}{fg=UkaeaSecondaryText}
|
||||||
|
\setbeamercolor{institute}{fg=UkaeaSecondaryText}
|
||||||
|
|
||||||
|
\setbeamercolor{normal text}{fg=UkaeaCoreBlue}
|
||||||
|
|
||||||
|
\setbeamercolor{structure}{fg=UkaeaCoreBlue}
|
||||||
|
\setbeamercolor{frametitle}{fg=UkaeaCoreBlue}
|
||||||
|
\setbeamercolor{framesubtitle}{fg=UkaeaCoreBlue}
|
||||||
|
\setbeamercolor{alerted text}{fg=UkaeaSecondaryRed}
|
||||||
|
|
||||||
|
\setbeamercolor{block title}{fg=UkaeaCoreWhite, bg=UkaeaCoreBlue}
|
||||||
|
\setbeamercolor{block body}{parent=normal text, fg=UkaeaCoreBlack, bg=UkaeaCoreBlue!10}
|
||||||
|
|
||||||
|
\setbeamercolor{block title example}{fg=UkaeaCoreWhite, bg=UkaeaSecondaryBlue}
|
||||||
|
\setbeamercolor{block body example}{parent=normal text, fg=UkaeaCoreBlack, bg=UkaeaSecondaryBlue!10}
|
||||||
|
|
||||||
|
\setbeamercolor{block title alert}{fg=UkaeaCoreWhite, bg=UkaeaSecondaryRed}
|
||||||
|
\setbeamercolor{block body alert}{parent=normal text, fg=UkaeaCoreBlack, bg=UkaeaSecondaryRed!10}
|
||||||
|
|
||||||
|
\setbeamercolor{pagenumber}{fg=UkaeaCoreGrey3}
|
||||||
|
|
||||||
|
\mode<all>
|
|
@ -0,0 +1,24 @@
|
||||||
|
% to use non-standard font
|
||||||
|
\usepackage{iftex}
|
||||||
|
|
||||||
|
\usepackage[T1]{fontenc}
|
||||||
|
\IfFileExists{uarial.sty}{
|
||||||
|
\usepackage{newtxsf, uarial, textcomp}
|
||||||
|
\usepackage[italic]{mathastext}
|
||||||
|
}{
|
||||||
|
\usepackage[scaled]{helvet}
|
||||||
|
}
|
||||||
|
\renewcommand\familydefault{\sfdefault}
|
||||||
|
\usepackage[scaled]{beramono}
|
||||||
|
|
||||||
|
\setbeamerfont{title}{family=\fontfamily{ugq}, size=\LARGE}
|
||||||
|
\setbeamerfont{subtitle}{family=\sffamily, series=\mdseries, size=\large}
|
||||||
|
|
||||||
|
\setbeamerfont{institute}{family=\fontfamily{ugq}, size=\Large}
|
||||||
|
\setbeamerfont{author}{family=\sffamily, series=\bfseries, size=\footnotesize}
|
||||||
|
\setbeamerfont{date}{family=\sffamily, series=\bfseries, size=\footnotesize}
|
||||||
|
|
||||||
|
\setbeamerfont{frametitle}{family=\fontfamily{ugq}, size=\LARGE}
|
||||||
|
\setbeamerfont{framesubtitle}{family=\sffamily, series=\mdseries, size=\Large}
|
||||||
|
|
||||||
|
\setbeamerfont{normal text}{family=\sffamily, series=\mdseries, size=\Large}
|
|
@ -0,0 +1,24 @@
|
||||||
|
\mode<presentation>
|
||||||
|
|
||||||
|
\defbeamertemplate{itemize item}{circ}%
|
||||||
|
{\small\raise.2ex\hbox{$\bullet$}}
|
||||||
|
|
||||||
|
\defbeamertemplate{itemize subitem}{circ}%
|
||||||
|
{\small\raise.1ex\hbox{$\circ$}}
|
||||||
|
|
||||||
|
\defbeamertemplate{itemize subsubitem}{circ}%
|
||||||
|
{\scriptsize\raise.1ex\hbox{$\bullet$}}
|
||||||
|
|
||||||
|
\setbeamertemplate{items}[circ]
|
||||||
|
|
||||||
|
\setbeamertemplate{frametitle}
|
||||||
|
{
|
||||||
|
\nointerlineskip%
|
||||||
|
\vspace{4mm}\hspace{-8mm}
|
||||||
|
\begin{beamercolorbox}[wd=0.8\paperwidth]{frametitle}
|
||||||
|
\usebeamerfont{frametitle}{\insertframetitle}\par
|
||||||
|
\usebeamerfont{framesubtitle}{\usebeamercolor{framesubtitle}\insertframesubtitle}
|
||||||
|
\end{beamercolorbox}
|
||||||
|
}
|
||||||
|
|
||||||
|
\mode<all>
|
|
@ -0,0 +1,96 @@
|
||||||
|
\usepackage{tikz}
|
||||||
|
|
||||||
|
\mode<presentation>
|
||||||
|
|
||||||
|
\DeclareOptionBeamer{logo}{\def\beamer@ukaea@logo{#1}}
|
||||||
|
\ExecuteOptionsBeamer{logo=ukaea_logo.png}
|
||||||
|
\DeclareOptionBeamer{extratitletext}{\def\beamer@ukaea@extratitletext{#1}}
|
||||||
|
\ExecuteOptionsBeamer{extratitletext=}
|
||||||
|
\ProcessOptionsBeamer
|
||||||
|
|
||||||
|
\newcommand{\ukaeatriangle}[1] {
|
||||||
|
\begin{tikzpicture}
|
||||||
|
\useasboundingbox (0,0) rectangle(\the\paperwidth,0.2\paperwidth);
|
||||||
|
\node (t1) at (\paperwidth, 0.2\paperwidth) {};
|
||||||
|
\node (t2) at (0.8\paperwidth, 0.2\paperwidth) {};
|
||||||
|
\node (t3) at (\paperwidth, 0.) {};
|
||||||
|
\fill[fill=#1] (t1.center)--(t2.center)--(t3.center);
|
||||||
|
\if \beamer@ukaea@logo\@empty
|
||||||
|
\else
|
||||||
|
\node (logo) at (0.9415\paperwidth, 0.1415\paperwidth) {
|
||||||
|
\includegraphics[height=0.073\paperwidth]{\beamer@ukaea@logo}
|
||||||
|
};
|
||||||
|
\fi
|
||||||
|
\end{tikzpicture}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
\setbeamertemplate{title page}
|
||||||
|
{%
|
||||||
|
\newdimen\title@graphic@height
|
||||||
|
\begin{minipage}[t]{\paperwidth}
|
||||||
|
\hspace*{-1cm}\inserttitlegraphic{}
|
||||||
|
\end{minipage}
|
||||||
|
|
||||||
|
\settoheight{\title@graphic@height}{\inserttitlegraphic{}}
|
||||||
|
\vspace*{-\title@graphic@height minus 0.004\paperheight}
|
||||||
|
\hspace*{-1cm}%
|
||||||
|
\begin{minipage}{\paperwidth}
|
||||||
|
\usebeamercolor[bg]{headline}
|
||||||
|
\ukaeatriangle{bg}\par
|
||||||
|
\end{minipage}
|
||||||
|
|
||||||
|
\vspace*{-2.59cm}
|
||||||
|
\hspace*{-1.085cm}
|
||||||
|
\begin{tikzpicture}
|
||||||
|
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
|
||||||
|
|
||||||
|
\node (q1) at (0,0.54\paperheight) {};
|
||||||
|
\node (q2) at (\the\paperwidth,0.32\paperheight) {};
|
||||||
|
\node (q3) at (0,0) {};
|
||||||
|
\node (q4) at (\the\paperwidth,0) {};
|
||||||
|
\fill[fill=bg] (q1.center)--(q2.center)--(q4.center)--(q3.center);
|
||||||
|
\node[anchor=north west,text width=0.9\paperwidth] (titletext) at (0.4,0.44\paperheight) {
|
||||||
|
\usebeamerfont{institute}{\usebeamercolor[fg]{institute}\insertinstitute}\par
|
||||||
|
\smallskip
|
||||||
|
\usebeamerfont{title}{\usebeamercolor[fg]{title}\inserttitle}\par
|
||||||
|
\usebeamerfont{subtitle}{\usebeamercolor[fg]{subtitle}\insertsubtitle}\par
|
||||||
|
|
||||||
|
\bigskip
|
||||||
|
% \begin{minipage}{0.6\textwidth}
|
||||||
|
\usebeamercolor[fg]{date}{\usebeamerfont{date}\insertdate}\par
|
||||||
|
\usebeamercolor[fg]{author}{\usebeamerfont{author}\insertauthor}\par
|
||||||
|
% \end{minipage}
|
||||||
|
};
|
||||||
|
\node[anchor=south east,text width=0.45\paperwidth] (extratext) at
|
||||||
|
(1.28\paperwidth, 0.15) {
|
||||||
|
\usebeamercolor[fg]{title}
|
||||||
|
\usebeamerfont{main text}
|
||||||
|
\beamer@ukaea@extratitletext
|
||||||
|
};
|
||||||
|
\end{tikzpicture}
|
||||||
|
\addtocounter{framenumber}{-1}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
\setbeamertemplate{headline}
|
||||||
|
{%\vspace{-0.07cm}\hspace{0.795\paperwidth}
|
||||||
|
\ukaeatriangle{bg}
|
||||||
|
\vspace{-0.2\paperwidth}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
\setbeamertemplate{footline}
|
||||||
|
{
|
||||||
|
\leavevmode
|
||||||
|
\hbox{
|
||||||
|
\begin{beamercolorbox}[wd=1.0cm,ht=1.5cm,dp=0.3cm,right, rightskip=0.1cm]{pagenumber}%
|
||||||
|
\textbf{\large{\usebeamercolor[fg]{pagenumber}\insertframenumber{}}}
|
||||||
|
\end{beamercolorbox}
|
||||||
|
\usebeamercolor[fg]{normal text}{\textbf{\Large |} \raisebox{0.5ex}{\insertshorttitle}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
\mode<all>
|
||||||
|
\endinput
|
|
@ -0,0 +1,24 @@
|
||||||
|
\mode<presentation>
|
||||||
|
|
||||||
|
% Requirement
|
||||||
|
\RequirePackage{tikz}
|
||||||
|
\RequirePackage{xcolor}
|
||||||
|
|
||||||
|
% Options
|
||||||
|
\DeclareOptionBeamer{logo}{\PassOptionsToPackage{logo=#1}{beamerouterthemeukaea}}
|
||||||
|
\DeclareOptionBeamer{sponsors}{\PassOptionsToPackage{sponsors=#1}{beamerouterthemeukaea}}
|
||||||
|
\ProcessOptionsBeamer
|
||||||
|
|
||||||
|
% Settings
|
||||||
|
\useinnertheme{ukaea}
|
||||||
|
\useoutertheme{ukaea}
|
||||||
|
\usecolortheme{ukaea}
|
||||||
|
\usefonttheme{ukaea}
|
||||||
|
|
||||||
|
\setbeamertemplate{navigation symbols}{}
|
||||||
|
\setbeamertemplate{blocks}[default]
|
||||||
|
%\setbeamertemplate{blocks}[rounded][shadow=true]
|
||||||
|
|
||||||
|
\titlegraphic{\includegraphics[width=\paperwidth]{ukaea-jet.jpg}}
|
||||||
|
|
||||||
|
\mode<all>
|
|
@ -0,0 +1,11 @@
|
||||||
|
{ stdenvNoCC }:
|
||||||
|
stdenvNoCC.mkDerivation {
|
||||||
|
pname = "latex-beamer-ukaea";
|
||||||
|
version = "0.1";
|
||||||
|
src = ./.;
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/tex/latex
|
||||||
|
cp -r $src/* $out/tex/latex
|
||||||
|
'';
|
||||||
|
tlType = "run";
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 244 KiB |
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
Loading…
Reference in a new issue