diff --git a/doc/demo.tex b/doc/demo.tex new file mode 100644 index 0000000..fa6c1db --- /dev/null +++ b/doc/demo.tex @@ -0,0 +1,16 @@ +\documentclass[aspectratio=169]{beamer} +\usepackage{gfcm} +\title{Example} +\author{Arni Magnusson} +\date{\begin{transbox}{18ex}6 November 2020\end{transbox}} +\begin{document} + +\begin{frame} + \titlepage +\end{frame} + +\begin{frame}{Heading} + Lorem ipsum +\end{frame} + +\end{document} diff --git a/etc/design_background/background_full.odp b/etc/design_background/background_full.odp new file mode 100644 index 0000000..39a22a7 Binary files /dev/null and b/etc/design_background/background_full.odp differ diff --git a/etc/design_background/background_full.pdf b/etc/design_background/background_full.pdf new file mode 100644 index 0000000..f5b0eb0 Binary files /dev/null and b/etc/design_background/background_full.pdf differ diff --git a/etc/design_background/background_side.jpg b/etc/design_background/background_side.jpg new file mode 100644 index 0000000..404b655 Binary files /dev/null and b/etc/design_background/background_side.jpg differ diff --git a/etc/design_background/background_side.png b/etc/design_background/background_side.png new file mode 100644 index 0000000..89e59be Binary files /dev/null and b/etc/design_background/background_side.png differ diff --git a/etc/design_titlepage/notes.txt b/etc/design_titlepage/notes.txt new file mode 100644 index 0000000..274aef6 --- /dev/null +++ b/etc/design_titlepage/notes.txt @@ -0,0 +1,16 @@ +1. Ocean bottom banner + +Copied from East Med presentation, pasted into PSP, saved as PNG, converted to +JPG. + +2. FAO and GFCM top banner + +Arrange on top of a full screenshot of a title slide, to get size and location + +FAO logo is from SVG, color adjusted to 70-140-200 [#468cc8]. + +GFCM logo is from 480 px wide PNG + +FAO text is Noto Sans SemiCondensed 17, 95% line spacing, color 70-140-200 + +GFCM text is Noto Sans SemiCondensed 14.6, 85% line spacing, color 55-85-110 diff --git a/etc/design_titlepage/titlepage_bottom.jpg b/etc/design_titlepage/titlepage_bottom.jpg new file mode 100644 index 0000000..4fcaaa4 Binary files /dev/null and b/etc/design_titlepage/titlepage_bottom.jpg differ diff --git a/etc/design_titlepage/titlepage_full.odp b/etc/design_titlepage/titlepage_full.odp new file mode 100644 index 0000000..e516fa3 Binary files /dev/null and b/etc/design_titlepage/titlepage_full.odp differ diff --git a/etc/design_titlepage/titlepage_full.pdf b/etc/design_titlepage/titlepage_full.pdf new file mode 100644 index 0000000..c604a70 Binary files /dev/null and b/etc/design_titlepage/titlepage_full.pdf differ diff --git a/etc/design_titlepage/titlepage_top.odp b/etc/design_titlepage/titlepage_top.odp new file mode 100644 index 0000000..854505a Binary files /dev/null and b/etc/design_titlepage/titlepage_top.odp differ diff --git a/etc/design_titlepage/titlepage_top.pdf b/etc/design_titlepage/titlepage_top.pdf new file mode 100644 index 0000000..8650ddf Binary files /dev/null and b/etc/design_titlepage/titlepage_top.pdf differ diff --git a/etc/design_titlepage/titlepage_top.sh b/etc/design_titlepage/titlepage_top.sh new file mode 100644 index 0000000..35ffc47 --- /dev/null +++ b/etc/design_titlepage/titlepage_top.sh @@ -0,0 +1,10 @@ +2pdf titlepage_top.odp + +pcrop titlepage_top.pdf 532:418 608:1088 +out titlepage_top + +# pcrop titlepage_top.pdf 532:418 608:674 +# out banner_fao + +# pcrop titlepage_top.pdf 532:728 608:1088 +# out banner_gfcm diff --git a/sty/figs/gfcm-background.pdf b/sty/figs/gfcm-background.pdf new file mode 100644 index 0000000..f5b0eb0 Binary files /dev/null and b/sty/figs/gfcm-background.pdf differ diff --git a/sty/figs/gfcm-titlepage.pdf b/sty/figs/gfcm-titlepage.pdf new file mode 100644 index 0000000..c604a70 Binary files /dev/null and b/sty/figs/gfcm-titlepage.pdf differ diff --git a/sty/gfcm.sty b/sty/gfcm.sty new file mode 100644 index 0000000..684d7fd --- /dev/null +++ b/sty/gfcm.sty @@ -0,0 +1,127 @@ +% LaTeX package to apply GFCM slide format + +% History +% 1.0 06 Nov 2020 AM created, based on ices.sty + +\ProvidesPackage{gfcm} + +% -------------- +% 1 Dependencies +% -------------- + +% 1.1 Packages +\usepackage{listings} +\usepackage{tikz} + +% 1.2 Background and title page +\graphicspath{{figs/}} + +% ---------- +% 2 Settings +% ---------- + +% 2.1 Character +\frenchspacing +\lstset{basicstyle=\ttfamily,literate={~}{$\sim$}{2}} + +% 2.2 Color +\definecolor{darkblue}{rgb}{0.1,0.3,0.5} +\definecolor{blue}{rgb}{0.0,0.4,0.7} +\definecolor{darkgray}{rgb}{0.2,0.2,0.2} +\definecolor{gray}{rgb}{0.6,0.6,0.6} +\definecolor{darkgreen}{rgb}{0.1,0.4,0.4} +\definecolor{green}{rgb}{0.0,0.6,0.5} +\definecolor{orange}{rgb}{0.9,0.3,0.2} +\setbeamercolor{palette primary}{fg=white,bg=darkblue} +\setbeamercolor{item}{fg=darkgreen,bg=white} + +% 2.3 Slide title +\setbeamercolor{frametitle}{fg=darkgray} +\setbeamerfont{frametitle}{size=\Large,series=\bfseries} + +% 2.4 List +\setbeamertemplate{itemize item}{\scriptsize\raise1.25pt + \hbox{\donotcoloroutermaths$\blacktriangleright$}} + +% 2.5 Footer +\setbeamercolor{footline}{fg=white} +\setbeamertemplate{navigation symbols}{ + \usebeamerfont{footline}\usebeamercolor[fg]{footline} + \begin{minipage}{\paperwidth} + \hspace{146.5mm}\hfill\insertpagenumber\hfill\vspace{2.7mm} + \end{minipage} +} +% 2.6 Margins +\setbeamersize{sidebar width left=3.5ex,text margin left=5ex, + text margin right=3.5ex} +\setbeamertemplate{frametitle}{\vspace{2ex}\insertframetitle} + +% 2.7 Background +\setbeamertemplate{background}{ + \includegraphics[width=\paperwidth]{gfcm-background} +} + +% 2.8 Title page +\newcommand\titlepos{18} +\newcommand\authorpos{-42} +\newcommand\datepos{-96} +\newenvironment{transbox}[1]{\begin{tikzpicture}\node[text width=#1, + fill=blue!90,fill opacity=0.5,text opacity=1,rounded corners] + \bgroup}{\egroup;\end{tikzpicture}} +\setbeamercolor{title}{fg=darkgray} +\setbeamercolor{author}{fg=darkgreen} +\setbeamercolor{date}{fg=white} +\setbeamerfont{title}{series=\LARGE\bfseries} +\setbeamerfont{author}{size=\scriptsize,series=\bfseries} +\setbeamerfont{date}{size=\small,series=\bfseries} +\setbeamertemplate{title page}{ + \begin{picture}(0,0) + \put(-45,-147){ + \includegraphics[width=\paperwidth]{gfcm-titlepage} + } + \put(-3,\titlepos){ + \begin{minipage}{\textwidth} + \usebeamerfont{title}\usebeamercolor[fg]{title}\flushleft\inserttitle + \end{minipage} + } + \put(-3,\authorpos){ + \begin{minipage}{\textwidth} + \usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor + \end{minipage} + } + \put(305,\datepos){ + \begin{minipage}{\textwidth} + \usebeamerfont{date}\usebeamercolor[fg]{date}\insertdate + \end{minipage} + } + \end{picture} +} + +% ---------- +% 3 Commands +% ---------- + +% 3.1 Color +\newcommand\black{\color{black}} +\newcommand\blue{\color{blue}} +\newcommand\darkblue{\color{darkblue}} +\newcommand\gray{\color{gray}} +\newcommand\darkgray{\color{darkgray}} +\newcommand\green{\color{green}} +\newcommand\darkgreen{\color{darkgreen}} +\newcommand\orange{\color{orange}} +\newcommand\textblack[1]{\textcolor{black}{#1}} +\newcommand\textblue[1]{\textcolor{blue}{#1}} +\newcommand\textdarkblue[1]{\textcolor{darkblue}{#1}} +\newcommand\textgray[1]{\textcolor{gray}{#1}} +\newcommand\textdarkgray[1]{\textcolor{darkgray}{#1}} +\newcommand\textgreen[1]{\textcolor{green}{#1}} +\newcommand\textdarkgreen[1]{\textcolor{darkgreen}{#1}} +\newcommand\textorange[1]{\textcolor{orange}{#1}} +\newcommand\textwhite[1]{\textcolor{white}{#1}} +\newcommand\white{\color{white}} + +% 3.2 Special +\newcommand\comment[1]{\quad\textgreen{\textit{\small #1}}} +\newcommand\fns{\footnotesize} +\newcommand\h{\hspace}