Commit 26c5fac8 authored by Ivo Kabadshow's avatar Ivo Kabadshow

initial commit of FZJ CD v17.12

parents
% Latex-Beamer Template Research Centre Juelich
% version 17.12
% please report any problems to i.kabadshow@fz-juelich.de
% this version does support pdflatex, xelatex and lualatex
%
\mode<presentation>
% new colors
\definecolor{fzjblue}{RGB}{2,61,107} % first color
\colorlet{color1}{fzjblue}
\definecolor{fzjlightblue}{RGB}{173,189,227} % second color
\colorlet{color2}{fzjlightblue}
\definecolor{fzjgray}{RGB}{235,235,235} % third color
\colorlet{color3}{fzjgray}
\definecolor{fzjred}{RGB}{235, 95, 115} % FZJ raspberry red
\colorlet{color4}{fzjred}
\definecolor{fzjgreen}{RGB}{185, 210, 95} % FZJ grass green
\colorlet{color4}{fzjgreen}
\definecolor{fzjyellow}{RGB}{250, 235, 90} % FZJ citrus yellow
\colorlet{color4}{fzjyellow}
\definecolor{fzjviolet}{RGB}{175, 130, 185} % FZJ Hyacinth violet
\colorlet{color4}{fzjviolet}
\definecolor{fzjorange}{RGB}{250, 180, 90} % FZJ apricot orange
\colorlet{color4}{fzjorange}
\definecolor{fzjwhite}{RGB}{255,255,255}
\setbeamercolor{note page}{bg=white, fg=black}
\setbeamercolor{note title}{bg=fzjlightblue!50!white, fg=black}
\setbeamercolor{note date}{fg=fzjblue}
% beamer color definitions
\setbeamercolor{structure}{fg=fzjblue,bg=}
\setbeamercolor{palette primary}{use=structure,fg=fzjblue,bg=}
\setbeamercolor{title}{fg=white,bg=}
\setbeamercolor{subtitle}{fg=fzjlightblue,bg=}
\setbeamercolor{header}{fg=fzjblue,bg=}
\setbeamercolor{navigation symbols}{fg=fzjgray,bg=}
\setbeamercolor{frametitle}{fg=fzjblue,bg=}
\setbeamercolor{framesubtitle}{fg=fzjblue,bg=}
\setbeamercolor{footline}{fg=fzjblue, bg=}
\setbeamercolor{inverse}{fg=fzjwhite,bg=fzjblue}
\setbeamercolor{normal text}{fg=black,bg=white}
\setbeamercolor{date in head/foot}{fg=structure}
\setbeamercolor{alerted text}{fg=fzjred}
\setbeamercolor{example text}{fg=fzjlightblue}
\setbeamercolor{emphasized text}{fg=fzjblue}
\setbeamercolor{part name}{fg=white}
\setbeamercolor{part title}{fg=white}
% Block stuff
\setbeamercolor{block title}{use=structure,fg=white,bg=structure.fg}
\setbeamercolor{block title alerted}{use=alerted text,fg=white,bg=alerted text.fg}
\setbeamercolor{block title example}{use=example text,fg=white,bg=example text.fg}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!10!bg}
\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=fzjgray}
\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=fzjgray}
\mode<all>
% Latex-Beamer Template Research Centre Juelich
% version 17.12
% please report any problems to i.kabadshow@fz-juelich.de
% this version does support pdflatex, xelatex and lualatex
%
\mode<presentation>
\setbeamerfont{subtitle short}{size*={16pt}{18pt},series=\bfseries} % 30pt, baselineskip 36pt
\setbeamerfont{subtitle long}{size*={9pt}{11pt},series=\bfseries} % 18pt, baselineskip 22pt
\setbeamerfont*{subtitle}{parent=subtitle long} % reset font (*) and use parent font size
% deault subline style to short UPPERCASE s p a c e d text
\setbeamerfont*{subtitle}{parent=subtitle short}
%\setbeamerfont{normal text}{size*={8pt}{9pt}} % 14pt, baselineskip 18pt
\setbeamerfont{footline}{size*={4.5pt}{5pt}}
\setbeamerfont{frametitle}{size*={16pt}{16pt},series=\bfseries} %30pt, baselineskip 36pt
\setbeamerfont{framesubtitle}{size*={9pt}{11pt},series=\bfseries} % 18pt, baselineskip 22pt
% Default Definitions
\setbeamerfont{alerted text}{}
\setbeamerfont{example text}{}
\setbeamerfont{structure}{}
\setbeamerfont{tiny structure}{size=\tiny}
\setbeamerfont{title in head/foot}{}
\setbeamerfont{title in sidebar}{size=\tiny}
\setbeamerfont{author}{}
\setbeamerfont{author in head/foot}{}
\setbeamerfont{author in sidebar}{size=\tiny}
\setbeamerfont{institute}{size=\scriptsize}
\setbeamerfont{institute in head/foot}{}
\setbeamerfont{institute in sidebar}{}
\setbeamerfont{date}{size*={8pt}{8pt}}
\setbeamerfont{date in head/foot}{parent=footline}
\setbeamerfont{date in sidebar}{}
\setbeamerfont{part name}{size=\Large}
\setbeamerfont{part title}{parent=title}
\setbeamerfont{section in toc}{parent=structure}
\setbeamerfont{section in toc shaded}{parent=section in toc}
\setbeamerfont{section in head/foot}{}
\setbeamerfont{section in sidebar}{size=\tiny}
\setbeamerfont{section number projected}{size=\small,parent={section in toc,projected text}}
\setbeamerfont{subsection in toc}{}
\setbeamerfont{subsection in toc shaded}{parent=subsection in toc}
\setbeamerfont{subsection in head/foot}{}
\setbeamerfont{subsection in sidebar}{}
\setbeamerfont{subsubsection in toc}{size=\footnotesize}
\setbeamerfont{subsubsection in toc shaded}{parent=subsubsection in toc}
\setbeamerfont{subsubsection in head/foot}{}
\setbeamerfont{subsubsection in sidebar}{}
\setbeamerfont{headline}{parent={tiny structure}}
\setbeamerfont{footline}{parent={tiny structure}}
\setbeamerfont{sidebar}{size=\Tiny,parent={tiny structure}}
\setbeamerfont{sidebar left}{parent=sidebar}
\setbeamerfont{sidebar right}{parent=sidebar}
\setbeamerfont{caption}{size=\small}
\setbeamerfont{caption name}{parent={structure,caption}}
\setbeamerfont{button}{size=\tiny}
\setbeamerfont{block body}{}
\setbeamerfont{block body alerted}{}
\setbeamerfont{block body example}{}
\setbeamerfont{block title}{size=\large,parent={structure,block body}}
\setbeamerfont{block title alerted}{parent={block title,alerted text}}
\setbeamerfont{block title example}{parent={block title,example text}}
\setbeamerfont{item}{parent=structure}
\setbeamerfont{subitem}{parent=item}
\setbeamerfont{subsubitem}{parent=subitem}
\setbeamerfont{item projected}{size=\tiny,parent={item,projected text}}
\setbeamerfont{subitem projected}{parent=item projected}
\setbeamerfont{subsubitem projected}{parent=subitem projected}
\setbeamerfont{itemize item}{parent=item}
\setbeamerfont{itemize subitem}{parent=subitem}
\setbeamerfont{itemize subsubitem}{parent=subsubitem}
\setbeamerfont{enumerate item}{parent=item}
\setbeamerfont{enumerate subitem}{parent=subitem}
\setbeamerfont{enumerate subsubitem}{parent=subsubitem}
\setbeamerfont{itemize/enumerate body}{}
\setbeamerfont{itemize/enumerate subbody}{size=\small}
\setbeamerfont{itemize/enumerate subsubbody}{size=\footnotesize}
\setbeamerfont{description item}{parent=item}
\setbeamerfont{projected text}{parent={tiny structure}}
\setbeamerfont{abstract}{size=\small}
\setbeamerfont{abstract title}{parent={abstract,structure},size=\normalsize}
\setbeamerfont{verse}{family=\rmfamily,shape=\itshape}
\setbeamerfont{quotation}{shape=\itshape}
\setbeamerfont{quote}{parent=quotation}
\setbeamerfont{note page}{size=\small}
\makeatletter
\pgfkeys{
/beamerfzj/font/title/.cd,
.is choice,
.default=regular,
regular/.code={%
\let\beamerfzj@titleformatcaps\emptydummya%
\let\beamerfzj@titleformatspacinga\emptydummya%
\let\beamerfzj@titleformatspacingb\emptydummyb%
\setbeamerfont{title}{size*={16pt}{18pt},series=\bfseries} % 32pt, baselineskip 36pt%
},
allcaps/.code={%
\let\beamerfzj@titleformatcaps\uppercase%
\let\beamerfzj@titleformatspacinga\textls%
\let\beamerfzj@titleformatspacingb\addfontfeature%
\setbeamerfont{title}{size*={16pt}{18pt},series=\bfseries} % 32pt, baselineskip 36pt%
},
}
\pgfkeys{
/beamerfzj/font/subtitle/.cd,
.is choice,
.default=allcaps,
regular/.code={%
\let\beamerfzj@subtitleformatcaps\emptydummya%
\let\beamerfzj@subtitleformatspacinga\emptydummya
\let\beamerfzj@subtitleformatspacingb\emptydummyb%
\setbeamerfont{subtitle long}{size*={9pt}{11pt},series=\bfseries} % 18pt, baselineskip 22pt
},
allcaps/.code={%
\let\beamerfzj@subtitleformatcaps\uppercase%
\let\beamerfzj@subtitleformatspacinga\textls%
\let\beamerfzj@subtitleformatspacingb\addfontfeature%
\setbeamerfont{title}{size*={16pt}{16pt},series=\bfseries} % 30pt, baselineskip 36pt%
},
}
\pgfkeys{
/beamerfzj/font/part/.cd,
.is choice,
.default=allcaps,
regular/.code={%
\let\beamerfzj@partformatcaps\emptydummya%
\let\beamerfzj@partformatspacinga\emptydummya
\let\beamerfzj@partformatspacingb\emptydummyb%
\setbeamerfont{part}{size*={16pt}{18pt},series=\bfseries} % 30pt, baselineskip 36pt%
},
allcaps/.code={%
\let\beamerfzj@partformatcaps\MakeUppercase%
\let\beamerfzj@partformatspacinga\textls%
\let\beamerfzj@partformatspacingb\addfontfeature%
\setbeamerfont{part}{size*={16pt}{18pt},series=\bfseries} % 30pt, baselineskip 36pt%
},
}
\fzjset{part=allcaps}
% define options for letter spacing
\providecommand{\emptydummyb}[1]{} % eats argument of \uppercase() and and \addfontfeature{}
\providecommand{\emptydummya}[2][]{#2}{} % eats optional argument of textls and forwards #2 argument
\providecommand{\addfontfeature}[1]{} % defined only if latex or pdflatex is used, available in xelatex and lualatex
\providecommand{\textls}[2][]{#2}{} % defined only if microtype is loaded
% redefine beamer title, subtitle command
\def\beamerfzj@titleformat#1{#1}
\def\beamerfzj@subtitleformat#1{#1}
\def\beamerfzj@partformat#1{#1}
\patchcmd{\beamer@title}%
{\def\inserttitle{#2}}%
{\def\inserttitle{{\beamerfzj@titleformatspacingb{LetterSpace=15.0}\beamerfzj@titleformatcaps{\beamerfzj@titleformatspacinga[120]{#2}}}}}%
{}%
{\PackageError{beamerfzj}{Patching original title failed}\@ehc}
\patchcmd{\beamer@subtitle}%
{\def\insertsubtitle{#2}}%
{\def\insertsubtitle{{\beamerfzj@subtitleformatspacingb{LetterSpace=15.0}\beamerfzj@subtitleformatcaps{\beamerfzj@subtitleformatspacinga[120]{#2}}}}}%
{}%
{\PackageError{beamerfzj}{Patching original subtitle failed}\@ehc}
\patchcmd{\beamer@part}%
{\def\insertpart{\expandafter\hyperlink\partlink}}%
{\def\insertpart{{\beamerfzj@partformatspacingb{LetterSpace=15.0}\beamerfzj@partformatcaps{\beamerfzj@partformatspacinga[120]{\expandafter\hyperlink\partlink}}}}}%
{}%
{\PackageError{beamerfzj}{Patching original part failed}\@ehc}
\makeatother
\mode
<all>
% Latex-Beamer Template Research Centre Juelich
% version 17.12
% please report any problems to i.kabadshow@fz-juelich.de
% this version does support pdflatex, xelatex and lualatex
%
\mode<presentation>
%------------------------------------------------
% subtitle: allow different styles
%------------------------------------------------
\expandafter\let\csname beamer@@tmpop@subtitle@default\endcsname\relax
\defbeamertemplate*{subtitle}{short}
{%
\setbeamerfont*{subtitle}{parent=subtitle short}
}
\defbeamertemplate{subtitle}{long}
{%
\setbeamerfont*{subtitle}{parent=subtitle long}
}
\defbeamertemplatealias{subtitle}{default}{short}
% Enumerate items, Juelich
\setbeamertemplate{enumerate items}[square]
\expandafter\let\csname beamer@@tmpop@itemize item@square\endcsname\relax
\defbeamertemplate*{itemize item}{square}{\small\hbox{\vrule width 1ex height 1ex}}
\expandafter\let\csname beamer@@tmpop@itemize subitem@square\endcsname\relax
\defbeamertemplate*{itemize subitem}{square}{\footnotesize\hbox{\vrule width 1ex height 1ex}}
\expandafter\let\csname beamer@@tmpop@itemize subsubitem@dash\endcsname\relax
\defbeamertemplate*{itemize subsubitem}{dash}{\footnotesize---}
\setbeamercolor{block title}{use=structure,fg=white,bg=structure.fg}
% fix block spacing
%\addtobeamertemplate{block begin}{\vskip-\medskipamount}{}
\addtobeamertemplate{block end}{}{\vskip-\smallskipamount}
%
\renewcommand{\emph}[1]{\structure{#1}}
\let\oldabovecaptionskip\abovecaptionskip
\let\oldbelowcaptionskip\belowcaptionskip
\BeforeBeginEnvironment{columns}{%
\setlength{\abovecaptionskip}{\dimexpr\oldabovecaptionskip+12.2pt\relax}%
\setlength{\belowcaptionskip}{\dimexpr\oldbelowcaptionskip-11.86pt\relax}%
\begin{minipage}{\linewidth}}
\AfterEndEnvironment{columns}{\end{minipage}}
\mode<all>
This diff is collapsed.
% Latex-Beamer Template Research Centre Juelich
% version 17.12
% please report any problems to i.kabadshow@fz-juelich.de
% this version does support pdflatex, xelatex and lualatex
%
\RequirePackage{ifluatex,ifxetex,ifpdf}
\RequirePackage{tikz}
\usetikzlibrary{calc}
\RequirePackage[sfdefault,lf]{carlito}
\ifluatex
\RequirePackage{microtype}
\RequirePackage{fontspec}
\else\ifxetex
\RequirePackage{fontspec}
\else
\RequirePackage{microtype}
\fi\fi
\newcommand{\fzjset}[1]{\pgfkeys{/beamerfzj/.cd,#1}}
\pgfkeys{/beamerfzj/.cd,
.search also={
/beamerfzj/inner,
/beamerfzj/outer,
/beamerfzj/color,
/beamerfzj/font,
}
}
\mode<handout>{%
\usepackage{pgf}
\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]
\pgfpageslogicalpageoptions{1}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{2}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{3}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{4}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{5}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{6}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{7}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{8}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{9}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{10}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{11}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{12}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{13}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{14}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{15}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
\pgfpageslogicalpageoptions{16}{border code=\pgfsetlinewidth{0.4pt}\pgfstroke}
}
\mode<presentation>
% Juelich specific definitions
\deftranslation[]{SlideName}{Slide}
\deftranslation[to=German]{SlideName}{Folie}
\deftranslation[]{HelmholtzBanner}{Member of the Helmholtz Association}
\deftranslation[to=German]{HelmholtzBanner}{Mitglied der Helmholtz-Gemeinschaft}
\usefonttheme{Juelich}
\usecolortheme{Juelich}
\useinnertheme{Juelich}
\useoutertheme{Juelich}
% default settings for title, part and section pages
\fzjset{title=allcaps}
\fzjset{subtitle=regular}
\fzjset{part=regular}
\mode<all>
% define progressbar
\makeatletter
\def\progressbar@progressbar{} % the progress bar
\newcount\progressbar@tmpcounta% auxiliary counter
\newcount\progressbar@tmpcountb% auxiliary counter
\newdimen\progressbar@pbht %progressbar height
\newdimen\progressbar@pbwd %progressbar width
\newdimen\progressbar@tmpdim % auxiliary dimension
\progressbar@pbwd=\paperwidth
\progressbar@pbht=0.2ex
\def\progressbar@progressbar{%
\progressbar@tmpcounta=\insertframenumber
\progressbar@tmpcountb=\inserttotalframenumber
\progressbar@tmpdim=\progressbar@pbwd
\multiply\progressbar@tmpdim by \progressbar@tmpcounta
\divide\progressbar@tmpdim by \progressbar@tmpcountb
\begin{tikzpicture}
\draw[draw=none,fill=fzjblue] %
(0pt, 0pt) rectangle ++ (\progressbar@tmpdim, \progressbar@pbht);
\end{tikzpicture}%
}
\makeatother
File added
File added
\documentclass{beamer}
\usetheme{Juelich}
\title{My first talk with \LaTeX{}}
\subtitle{The template works!}
\author{Your Name}
\institute{Your Institute}
\date{\today}
\titlegraphic{\includegraphics%
[height=0.45\paperheight]{placeholder}
}
\begin{document}
\maketitle
\end{document}
\documentclass[t,handout]{beamer}
\usetheme{Juelich}
\title{My first talk with \LaTeX{}}
\subtitle{The template works!}
\author{Your Name}
\institute{Your Institute}
\date{\today}
\titlegraphic{\includegraphics%
[height=0.45\paperheight]{placeholder}
}
\begin{document}
\maketitle
\begin{frame}
\frametitle{My first slide title}
\framesubtitle{My first slide subtitle}
\end{frame}
\end{document}
File added
This diff is collapsed.
File added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment