Skip to content

Commit

Permalink
Version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Arni Magnusson committed Nov 10, 2020
0 parents commit 7278aca
Show file tree
Hide file tree
Showing 15 changed files with 169 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/demo.tex
Original file line number Diff line number Diff line change
@@ -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}
Binary file added etc/design_background/background_full.odp
Binary file not shown.
Binary file added etc/design_background/background_full.pdf
Binary file not shown.
Binary file added etc/design_background/background_side.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added etc/design_background/background_side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions etc/design_titlepage/notes.txt
Original file line number Diff line number Diff line change
@@ -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
Binary file added etc/design_titlepage/titlepage_bottom.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added etc/design_titlepage/titlepage_full.odp
Binary file not shown.
Binary file added etc/design_titlepage/titlepage_full.pdf
Binary file not shown.
Binary file added etc/design_titlepage/titlepage_top.odp
Binary file not shown.
Binary file added etc/design_titlepage/titlepage_top.pdf
Binary file not shown.
10 changes: 10 additions & 0 deletions etc/design_titlepage/titlepage_top.sh
Original file line number Diff line number Diff line change
@@ -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
Binary file added sty/figs/gfcm-background.pdf
Binary file not shown.
Binary file added sty/figs/gfcm-titlepage.pdf
Binary file not shown.
127 changes: 127 additions & 0 deletions sty/gfcm.sty
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 7278aca

Please sign in to comment.