Skip to content

Commit

Permalink
Add beamer theme HTWDD
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelos Drossos committed Feb 16, 2017
1 parent 6f905d3 commit 3442605
Show file tree
Hide file tree
Showing 12 changed files with 865 additions and 0 deletions.
111 changes: 111 additions & 0 deletions beamerthemeHTWDD/beamercolorthemeHTWDD.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
% Copyright 2015-2017 by Angelos Drossos <dev.angelos.drossos@openmailbox.org>
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/LICENSE.md for more details.
\ProvidesPackage{beamercolorthemeHTWDD}[2017/02/15 HTWDD beamer color style]

\mode<presentation>

%% OWN COLORS
\definecolor{htwddblack}{named}{black}
\definecolor{htwddred}{rgb}{0.627,0,0}
\definecolor{htwddgreen}{rgb}{0,0.627,0}
\definecolor{htwddblue}{rgb}{0.027,0.267,0.584}
\definecolor{htwddorange}{RGB}{255,158,28}

%% See 'BEAMER appearance cheat sheet'
%% structure was included in GLOBAL DEFINITIONS,
%% because it is a very important color for other elements

%% STRUCTURE OF THE PRESENTATION
%% - GLOBAL DEFINITIONS
\setbeamercolor{normal text}{fg=black, bg=black!40}
\setbeamercolor{titlelike}{fg=black,bg=black!40}
%\setbeamercolor{separation line}{}
%\setbeamercolor{fine separation line}{}
\setbeamercolor{structure}{fg=htwddblack}
%% - COLOR PALETTES
%% By default, the palette colors do not have a background
%% and the foreground ranges from structure.fg to black.
\setbeamercolor{palette primary}{use=structure,fg=black,bg=structure.fg!20!white}
\setbeamercolor{palette secondary}{use=structure,fg=black,bg=structure.fg!20!white}
\setbeamercolor{palette tertiary}{use=structure,fg=black,bg=structure.fg!20!white}
\setbeamercolor{palette quaternary}{use=structure,fg=black,bg=structure.fg!20!white}
%\setbeamercolor{palette sidebar primary}{}
%\setbeamercolor{palette sidebar secondary}{}
%\setbeamercolor{palette sidebar tertiary}{}
%\setbeamercolor{palette sidebar quaternary}{}
%% - TITLE PAGE
%% - PART, SECTION, SUBSECTION PAGES
%% - TABLE OF CONTENTS
%% - BIBLIOGRAPHY
%% - NOTE PAGE

%% STRUCTURE OF A FRAME
%% - BACKGROUND
%% - HEADLINES AND FOOTLINES
%% - SIDEBAR
%% - NAVIGATION BARS
%% - NAVIGATION SYMBOLS
%% - LOGO

%% ELEMENTS OF A FRAME
%% - FRAME TITLE
%% - ABSTRACT
%% - HYPERLINKS AND BUTTONS
%% - LISTS
%% - HIGHLIGHTING
%% - BLOCK ENVIRONMENTS
%% - THEOREM ENVIRONMENTS
%% - FIGURES AND TABLES
%% - VERSE, QUOTATIONS AND QUOTES
%% - FOOTNOTES
%% - MATHEMATICS

%% TEXT
\setbeamercolor{alerted text}{fg=htwddorange}
\setbeamercolor{example text}{fg=htwddgreen}


%% BLOCK
\setbeamercolor{block title}{fg=white, bg=htwddblue}
\setbeamercolor{block body}{fg=black, bg=htwddblue!20}
\setbeamercolor{block title alerted}{fg=white, bg=htwddred}
\setbeamercolor{block body alerted}{fg=black, bg=htwddred!20}
\setbeamercolor{block title alerted}{fg=white, bg=htwddorange}
\setbeamercolor{block body alerted}{fg=black, bg=htwddorange!20}
\setbeamercolor{block title example}{fg=white, bg=htwddgreen}
\setbeamercolor{block body example}{fg=black, bg=htwddgreen!20}

%% ITEM
%\setbeamercolor{item}{fg=orange}

%% TITLE PAGE
\setbeamercolor{title page}{bg=htwddblue!20}
\setbeamercolor{title}{parent=structure}
\setbeamercolor{subtitle}{parent=structure}
\setbeamercolor{author}{parent=structure}
\setbeamercolor{institute}{parent=structure}
\setbeamercolor{date}{parent=structure}

%% FRAMETITLE
\setbeamercolor{frametitle}{parent=structure}
\setbeamercolor{framesubtitle}{parent=structure}

%% HEADLINE and FOOTLINE
\setbeamercolor{headline}{bg=white}
\setbeamercolor{footline}{bg=white}
\setbeamercolor{title in head/foot}{parent=structure}
\setbeamercolor{author in head/foot}{parent=structure}
\setbeamercolor{institute in head/foot}{parent=structure}
\setbeamercolor{page number in head/foot}{parent=structure}
\setbeamercolor{progressbar in head/foot}{parent=structure}
\setbeamercolor{section in head/foot}{parent=structure}
\setbeamercolor{subsection in head/foot}{parent=structure}

\mode
<all>
12 changes: 12 additions & 0 deletions beamerthemeHTWDD/beamerfontthemeHTWDD.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
% Copyright 2015-2017 by Angelos Drossos <dev.angelos.drossos@openmailbox.org>
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/LICENSE.md for more details.
\ProvidesPackage{beamerfontthemeHTWDD}[2017/02/15 HTWDD beamer font style]

%%%%% STILL UNUSED %%%%%

116 changes: 116 additions & 0 deletions beamerthemeHTWDD/beamerinnerthemeHTWDD.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
% Copyright 2015-2017 by Angelos Drossos <dev.angelos.drossos@openmailbox.org>
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/LICENSE.md for more details.
\ProvidesPackage{beamerinnerthemeHTWDD}[2017/02/15 HTWDD beamer inner style]

\mode<presentation>




%% Requirements
\RequirePackage{tikz}
\usetikzlibrary{math}
\usetikzlibrary{calc}

%% constant math calculations
\tikzmath {
% background size
coordinate \ctitlepagesize;
\ctitlepagesize = (\the\paperwidth, \the\paperheight);
}

\setbeamertemplate{items}[square]
\setbeamertemplate{sections/subsections in toc}[square]

%% text style of titlepage.
%% colors for 'title', 'author' and 'date'
%% must be declared in beamercolortheme
\defbeamertemplate*{title page}{HTWDD}
{
\hspace*{-\beamer@leftmargin}%<-- this % is important
\begin{tikzpicture}
%% include used colors (fg/bg)
\usebeamercolor{title page}
\usebeamercolor{title}
\usebeamercolor{author}
\usebeamercolor{institute}
\usebeamercolor{date}
%% title page background -- begin
\useasboundingbox[fill=title page.bg] (0,0) rectangle (\ctitlepagesize);
%% title page background -- end
%% title page foreground -- begin
%% LOGO
%\node[anchor=south west]
% (nlogo) at (0.01*\ctitlepagesizex, 0.02*\ctitlepagesizey)
% {\insertlogo};
\ifx\inserttitlegraphic\@empty
{
%% TITLE
\node[anchor=north, text width=0.9*\ctitlepagesizex, align=center, color=title.fg, font=\usebeamerfont{title}]
(ntitle) at (0.5*\ctitlepagesizex, 0.7*\ctitlepagesizey)
{\usebeamerfont{title}\inserttitle};
%% AUTHOR
\node[anchor=north, text width=0.9*\ctitlepagesizex, align=center, color=author.fg, font=\usebeamerfont{author}, yshift=-1ex]
(nauthor) at (ntitle.south)
{\usebeamerfont{author}\insertauthor};
%% INSTITUTE
\node[anchor=north, text width=0.9*\ctitlepagesizex, align=center, color=institute.fg, font=\usebeamerfont{institute}, yshift=-1ex]
(ninstitute) at (nauthor.south)
{\usebeamerfont{institute}\insertinstitute};
%% DATE
\node[anchor=north, text width=0.9*\ctitlepagesizex, align=center, color=date.fg, font=\usebeamerfont{date}, yshift=-1ex]
(ndate) at (ninstitute.south)
{\usebeamerfont{date}\insertdate};
}
\else
{
%% TITLE GRAPHIC
\node[anchor=south]
(ngraphic) at (0.5*\ctitlepagesizex, 0.05*\ctitlepagesizey)
{\inserttitlegraphic};
%% TITLE
\node[anchor=north, text width=0.9*\ctitlepagesizex, align=center, color=title.fg, font=\usebeamerfont{title}]
(ntitle) at (0.5*\ctitlepagesizex, 0.9*\ctitlepagesizey)
{\usebeamerfont{title}\inserttitle};
%% AUTHOR
\node[anchor=north, text width=0.9*\ctitlepagesizex, align=center, color=author.fg, font=\usebeamerfont{author}, yshift=-2ex]
(nauthor) at (ntitle.south)
{\usebeamerfont{author}\insertauthor};
%% INSTITUTE
\node[anchor=north, text width=0.9*\ctitlepagesizex, align=center, color=institute.fg, font=\usebeamerfont{institute}, yshift=-1ex]
(ninstitute) at (nauthor.south)
{\usebeamerfont{institute}\insertinstitute};
%% DATE
\node[anchor=north, text width=0.9*\ctitlepagesizex, align=center, color=date.fg, font=\usebeamerfont{date}, yshift=-1ex]
(ndate) at (ninstitute.south)
{\usebeamerfont{date}\insertdate};
}
\fi
%% title page foreground -- end
\end{tikzpicture}
}


%% ???
\defbeamertemplate*{part page}{HTWDD}
{}


%% ???
\defbeamertemplate*{section page}{HTWDD}
{}


%% ???
\defbeamertemplate*{subsection page}{HTWDD}
{}


\mode
<all>
Loading

0 comments on commit 3442605

Please sign in to comment.