diff --git a/beamerThemeKenotom.sty b/beamerThemeKenotom.sty index fe90d4a..9d8a90b 100644 --- a/beamerThemeKenotom.sty +++ b/beamerThemeKenotom.sty @@ -24,24 +24,23 @@ % key-value: theme: {classic(default), light, dark} \DeclareOptionBeamer{theme}{\def\beamer@kenotom@theme{#1}} -% key-value: backround: {none(default), ribon} -\DeclareOptionBeamer{backround}{\def\beamer@kenotom@backround{#1}} +% key-value: background: {none(default), ribon} +\DeclareOptionBeamer{background}{\def\beamer@kenotom@background{#1}} % key-value: title: {normal(default), small, large} \DeclareOptionBeamer{title}{\def\beamer@kenotom@title{#1}} -% key-value: navigation: {enable(default), disable} -\DeclareOptionBeamer{navigation}{\def\beamer@kenotom@navigation{#1}} +% Option: navigation +\DeclareOptionBeamer{nonavigation}{\def\beamer@kenotom@nonavigation{}} + +% Option: fancy +\DeclareOptionBeamer{fancy}{\def\beamer@kenotom@fancy{}} -% key-value: fancy: {disable(default), enable} -\DeclareOptionBeamer{fancy}{\def\beamer@kenotom@fancy{#1}} % Set default options \ExecuteOptionsBeamer{theme=classic} -\ExecuteOptionsBeamer{backround=none} +\ExecuteOptionsBeamer{background=none} \ExecuteOptionsBeamer{title=normal} -\ExecuteOptionsBeamer{navigation=enable} -\ExecuteOptionsBeamer{fancy=disable} \ProcessOptionsBeamer @@ -93,7 +92,7 @@ } % [1]: Banner image -\newcommand{\SetBackroundPlain}[1]{% +\newcommand{\SetBackgroundPlain}[1]{% \setbeamertemplate{background}{% \begin{tikzpicture}[overlay,remember picture] % Banner @@ -141,7 +140,7 @@ % % [1]: Color % [2]: Text -%\newcommand{\InsertBackroundToText}[2]{% +%\newcommand{\InsertBackgroundToText}[2]{% %% \colorbox{#1}{% %% \parbox{\dimexpr\textwidth-2\fboxsep\relax}{#2} % \colorbox{#1}{#2} @@ -158,16 +157,21 @@ \colorlet{TitleColor}{KenotomGreyLight} \colorlet{TitleColorFancy}{KenotomWhite} \colorlet{TitleColorAux}{KenotomGreenLight} - \colorlet{FrameTitleColor}{KenotomGrey} - \colorlet{BlockTitleColor}{KenotomGrey} + \colorlet{SectionTitleColor}{KenotomGreenLight} + \colorlet{FrameTitleColor}{KenotomGreenLight} + \colorlet{BlockTitleColor}{KenotomGreenLight} \colorlet{TextColor}{KenotomGreenGreyLight} \colorlet{StructureColor}{KenotomGreenLight} + \colorlet{SectionFrameOpacityColor}{KenotomGreenGreyDark} + \colorlet{GraphicBoxColor}{KenotomGreyDark1} + \colorlet{GraphicLineColor}{KenotomGreenLight} + \colorlet{NavigationColor}{KenotomGreen} - \colorlet{NavigationColorFancy}{KenotomWhite} + \colorlet{NavigationColorFancy}{KenotomGreen} \colorlet{NavigationArrowsColor}{KenotomGreyLight} - \colorlet{NavigationArrowsColorFancy}{KenotomWhite} + \colorlet{NavigationArrowsColorFancy}{KenotomGreyLight} \colorlet{TableCaptionColor}{KenotomGreyDark1} \colorlet{TableCaptionTextColor}{KenotomWhite} @@ -178,12 +182,17 @@ \colorlet{TitleColor}{KenotomGrey} \colorlet{TitleColorFancy}{KenotomWhite} \colorlet{TitleColorAux}{KenotomGreen} + \colorlet{SectionTitleColor}{KenotomWhite!90!KenotomGreenLight} \colorlet{FrameTitleColor}{KenotomGrey} \colorlet{BlockTitleColor}{KenotomGrey} \colorlet{TextColor}{KenotomGrey} \colorlet{StructureColor}{KenotomGreen} + \colorlet{SectionFrameOpacityColor}{KenotomGreenLight} + \colorlet{GraphicBoxColor}{KenotomGreyDark1} + \colorlet{GraphicLineColor}{KenotomGreenLight} + \colorlet{NavigationColor}{KenotomGreen} \colorlet{NavigationColorFancy}{KenotomWhite} \colorlet{NavigationArrowsColor}{KenotomGrey} @@ -198,12 +207,22 @@ \colorlet{TitleColor}{KenotomGreyDark1} \colorlet{TitleColorFancy}{KenotomWhite} \colorlet{TitleColorAux}{KenotomGreen} + \colorlet{SectionTitleColor}{KenotomWhite!90!KenotomGreenLight} + \colorlet{TitleColorFancy}{KenotomWhite} \colorlet{FrameTitleColor}{KenotomGreyDark2} \colorlet{BlockTitleColor}{KenotomGreyDark2} - \colorlet{TextColor}{KenotomGreenGrey} + \colorlet{TextColor}{KenotomGreyDark1} \colorlet{StructureColor}{KenotomGreen} + \colorlet{SectionFrameOpacityColor}{KenotomGreenLight} + \colorlet{GraphicBoxColor}{KenotomGreyDark1} + \colorlet{GraphicLineColor}{KenotomGreenLight} + + \colorlet{SectionFrameOpacityColor}{KenotomGreen} + \colorlet{GraphicBoxColor}{KenotomGreyDark1} + \colorlet{GraphicLineColor}{KenotomGreenLight} + \colorlet{NavigationColor}{KenotomGreen} \colorlet{NavigationColorFancy}{KenotomWhite} \colorlet{NavigationArrowsColor}{KenotomGreyDark1} @@ -247,8 +266,8 @@ \addtobeamertemplate{footnote}{}{\vspace{2ex}} -% Default backround (We overwrite it temporary inside kenotom frame environments) -\ifnum \isequal{\beamer@kenotom@backround}{ribon}=0 +% Default background (We overwrite it temporary inside kenotom frame environments) +\ifnum \isequal{\beamer@kenotom@background}{ribon}=0 \SetBackgroundImage{media/BannerLogoLink.png}{media/Ribon.png}{0.04}{0.15} \else %None \SetBackgroundPlain{media/BannerLogoLink.png} @@ -260,7 +279,7 @@ \setsansfont[Scale=MatchLowercase]{Open Sans} % General -\ifnum \isequal{\beamer@kenotom@navigation}{disable}=0 +\ifdefined \beamer@kenotom@nonavigation \setbeamertemplate{navigation symbols}{} \fi \setbeamertemplate{caption}[numbered] @@ -304,7 +323,7 @@ \setbeamerfont{institute}{size=\InstituteSize} \renewcommand{\maketitle}{% - \ifnum \isequal{\beamer@kenotom@fancy}{enable}=0 + \ifdefined \beamer@kenotom@fancy \TitleFrameFancy \else {% once \SetBackgroundImage{media/BannerLink.png}{media/Ribon.png}{0.04}{0.4} @@ -341,7 +360,7 @@ % Section frames \AtBeginSection[]{% - \ifnum \isequal{\beamer@kenotom@fancy}{enable}=0 + \ifdefined \beamer@kenotom@fancy \SectionFrameFancy \fi } @@ -355,7 +374,7 @@ \newcommand{\InsertFancySection}{% \FancySectionSize - \textcolor{TitleColorFancy}{ + \textcolor{SectionTitleColor}{ \ifnum \thesection<10 \FancySectionFontStyle{0\thesection} \\ \else @@ -442,7 +461,7 @@ \begin{column}{0.6\textwidth} \setlength{\TPHorizModule}{\textwidth} \setlength{\TPVertModule}{\textheight} - \begin{textblock}{1}[0.5,0.5](0.5,0.35) + \begin{textblock}{1}[0.5,0.5](0.55,0.35) \centering \huge \textbf {\textcolor{KenotomGrey}{#2} \textcolor{KenotomGreen}{#3}} \end{textblock} @@ -461,7 +480,7 @@ } \newcommand{\OutlineFrame}[3][subsections]{% - \ifnum \isequal{\beamer@kenotom@fancy}{enable}=0 + \ifdefined \beamer@kenotom@fancy \OutlineFrameFancy[#1]{#2}{#3} \else \begin{frame}{#2 #3} @@ -478,6 +497,27 @@ \newcommand{\SectionFrameFancy}{ {% once \SetBackgroundImage{media/nothing.png}{media/SectionBackground.png}{0}{1.0} \setbeamercolor{navigation symbols}{fg=NavigationColorFancy, bg=NavigationArrowsColorFancy} + \addtobeamertemplate{background}{}{% + \begin{tikzpicture}[overlay,remember picture] + % Rectangular fill + \fill[SectionFrameOpacityColor, opacity=0.95] + (current page.south east) rectangle (0.3075\paperwidth, \paperheight); + % Circle fill + \fill[GraphicBoxColor, opacity=0.95] + (0.3075\paperwidth, -0.5\paperheight) circle (0.1537\paperwidth); + % Border lines + \draw[color=GraphicLineColor, line width=0.8mm] + (0.3075\paperwidth, -0.5\paperheight) circle (0.17\paperwidth); + \draw[color=GraphicLineColor, line width=0.8mm] + (0.4775\paperwidth, -0.5\paperheight) -- (0.9\paperwidth, -0.5\paperheight); + \fill[GraphicLineColor, opacity=0.95] + (0.9\paperwidth, -0.5\paperheight) circle (1.2mm); + % City + \node[anchor=center] at (0.3075\paperwidth, -0.5\paperheight) {% + \includegraphics[width=0.1945\paperwidth]{media/City.png} + }; + \end{tikzpicture} + } \begin{frame} \setlength{\TPHorizModule}{\paperwidth} \setlength{\TPVertModule}{\paperheight} diff --git a/kenotom_template.tex b/kenotom_template.tex index 556dea9..b78f0ac 100644 --- a/kenotom_template.tex +++ b/kenotom_template.tex @@ -5,9 +5,9 @@ % author: Christos Choutouridis % -\documentclass[11pt,aspectratio=169,xcolor={table,dvipsnames},t]{beamer} +\documentclass[11pt,aspectratio=43,xcolor={table,dvipsnames},t]{beamer} -\usetheme[backround=ribon,theme=dark,navigation=enable,fancy=enable]{Kenotom} +\usetheme[background=none, theme=dark, fancy]{Kenotom} \title{Your presentation title} \subtitle{Your subtitle (if there's one)} diff --git a/media/City.png b/media/City.png new file mode 100644 index 0000000..9ec020e Binary files /dev/null and b/media/City.png differ diff --git a/media/SectionBackground.png b/media/SectionBackground.png index 2598483..8ebe8b8 100644 Binary files a/media/SectionBackground.png and b/media/SectionBackground.png differ diff --git a/media/svg/City.svg b/media/svg/City.svg new file mode 100644 index 0000000..a90b567 --- /dev/null +++ b/media/svg/City.svg @@ -0,0 +1,70 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/media/svg/SectionBackground.svg b/media/svg/SectionBackground.svg index fc36a3e..86235e9 100644 --- a/media/svg/SectionBackground.svg +++ b/media/svg/SectionBackground.svg @@ -30,15 +30,15 @@ inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="0.40572917" - inkscape:cx="482.33335" - inkscape:cy="612.0281" + inkscape:cx="580.92128" + inkscape:cy="572.59293" inkscape:document-units="mm" inkscape:current-layer="layer1" showgrid="false" units="in" inkscape:window-width="1920" inkscape:window-height="1011" - inkscape:window-x="1920" + inkscape:window-x="0" inkscape:window-y="32" inkscape:window-maximized="1" /> - - - - - - diff --git a/media/svg/SectionBackground_old.svg b/media/svg/SectionBackground_old.svg new file mode 100644 index 0000000..20a350f --- /dev/null +++ b/media/svg/SectionBackground_old.svg @@ -0,0 +1,110 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + +