Add tex.
[hacks/latex/texmf.git] / tex / latex / beamer-upsud / beamerthemeUpsud.sty
diff --git a/tex/latex/beamer-upsud/beamerthemeUpsud.sty b/tex/latex/beamer-upsud/beamerthemeUpsud.sty
new file mode 100644 (file)
index 0000000..502b112
--- /dev/null
@@ -0,0 +1,227 @@
+
+
+\mode<presentation>
+
+\RequirePackage{tikz}
+\usetikzlibrary{calc}
+\usetikzlibrary{backgrounds}
+%%% colors
+\definecolor{upsblue}{HTML}{005480}
+\definecolor{upsdarkblue}{HTML}{003a58}
+\definecolor{upsgreen}{RGB}{146, 185, 56}
+
+\definecolor{upsdarkgray}{RGB}{30, 29, 28}
+\definecolor{upsgray}{RGB}{110, 110, 109}
+\definecolor{upslightgray}{RGB}{155, 155, 155}
+
+
+\setbeamercolor{title}{fg = white, bg=upsblue}
+\setbeamercolor{frametitle}{fg = white}
+\setbeamercolor{item}{fg = upsgray}
+\setbeamercolor{subitem}{fg = upsgray}
+\setbeamercolor{subsubitem}{fg = upsgray}
+\setbeamercolor{description item}{fg = upsgreen}
+
+\setbeamercolor{normal text}{fg = upsgray}
+\setbeamercolor{alerted text}{fg = upsgreen}
+
+
+
+
+
+%%% font options
+
+
+\setbeamerfont{normal text}{} % ignored currently
+\setbeamerfont{alerted text}{family=\bf}
+\setbeamerfont{example text}{}
+
+\setbeamerfont{structure}{}
+\setbeamerfont{tiny structure}{size=\tiny}
+
+\setbeamerfont{title}{size=\tiny,parent=structure}
+\setbeamerfont{title in head/foot}{}
+\setbeamerfont{title in sidebar}{size=\tiny}
+
+\setbeamerfont{subtitle}{size=\normalsize,parent=title}
+
+\setbeamerfont{author}{size=\small}
+\setbeamerfont{author in head/foot}{}
+\setbeamerfont{author in sidebar}{size=\tiny}
+
+\setbeamerfont{institute}{size=\small}
+\setbeamerfont{institute in head/foot}{}
+\setbeamerfont{institute in sidebar}{}
+
+\setbeamerfont{date}{}
+\setbeamerfont{date in head/foot}{}
+\setbeamerfont{date in sidebar}{}
+
+\setbeamerfont{part name}{size=\LARGE}
+\setbeamerfont{part title}{size=\LARGE,parent=title}
+
+\setbeamerfont{section name}{size=\Large}
+\setbeamerfont{section title}{size=\Large,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 name}{size=\large}
+\setbeamerfont{subsection title}{size=\large,parent=title}
+
+\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{frametitle}{parent=structure,size=\Large,series=\bfseries}
+\setbeamerfont{framesubtitle}{parent=frametitle,size=\scriptsize,series=\it,family=\it}
+
+\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}
+
+%%%% Layout options
+
+
+%%%% Style options
+
+\setbeamertemplate{items}[square]
+\setbeamertemplate{sections/subsections in toc}[square]
+
+\setbeamertemplate{navigation symbols}{}
+%%% title page
+
+\setbeamercolor{title page}{bg=upsblue, fg=white}
+\setbeamercolor{framesubtitle}{bg=upsblue, fg=white}
+
+\setbeamerfont{title}{size=\Huge,parent=structure}
+\defbeamertemplate*{title page}{customized}[1][]
+{
+  \begin{tikzpicture}[remember picture,overlay,x=\paperwidth,y=\paperheight]
+    \begin{scope}{on background layer}
+      \draw [line width=0pt, upsblue, fill=upsblue] (current
+      page.south east) rectangle (current page.north west);
+
+      %%%% 70x90x56.5
+      \draw [line width=0pt, upsdarkblue, fill=upsdarkblue]
+      ($(current page.east) + (0pt, 28.25pt)$) rectangle ($(current page.west) - (0, 28.25pt)$);
+      \node [anchor=south east, xshift=3.5pt,yshift=-4pt] at
+      ($(current page.east) - (0, 28.25pt)$) {
+            \includegraphics[width=70pt]{upsud-reserve}
+          };
+      \end{scope}
+      \node [anchor=west, yshift=0pt, xshift=15pt,align=left] at (current
+      page.west) {\usebeamerfont{title}\inserttitle\\\usebeamerfont{date}\insertdate};
+      \node [anchor=north west, xshift=15pt, align=left] at
+      ($(current page.west) - (0cm, 28.25pt)$)
+      {\usebeamerfont{author}\insertauthor};
+      \node [anchor=north west, yshift=0pt, xshift=15pt, align=left] at
+      (current page.north west) {\usebeamerfont{institute}\insertinstitute};
+    \end{tikzpicture}
+%  \usebeamerfont{author}\insertauthor\par
+
+%   \usebeamerfont{institute}\insertinstitute\par
+%   \usebeamerfont{date}\insertdate\par
+%   \usebeamercolor[fg]{titlegraphic}\inserttitlegraphic
+}
+
+%%% frames
+\setbeamertemplate{frametitle}{
+  \begin{tikzpicture}[remember picture,overlay,x=\paperwidth,y=1.5cm]
+
+    \begin{scope}{on background layer}
+      \draw[upsblue, fill=upsblue] (current page.north west)
+      rectangle ($(current page.north east) - (0cm, 30pt)$);
+
+      \node [anchor=north east, yshift=4.5pt, xshift=4.5pt] at (current
+      page.north east) {
+        \includegraphics[height=30pt]{upsud-reserve}
+      };
+    \end{scope}
+    \node [anchor=north west] at ($(current page.north west) + (2em, 0pt)$) {
+      \usebeamerfont{frametitle}\insertframetitle
+    };
+    \node [anchor=south east] at ($(current page.north east) + (-2em,
+    -30pt)$) {
+      \usebeamerfont{framesubtitle}\insertsection
+    };
+    \end{tikzpicture}
+}
+
+\setbeamertemplate{footline}{
+  \ifnum\c@framenumber=1%
+  % On title page
+  \else%
+  \begin{tikzpicture}[remember picture,overlay]
+    \begin{scope}{on background layer}
+    \draw [upsgreen, line width=0.5pt] %
+     ($(current page.south east) + (-0.5cm, 0.5cm)$) -- ($(current
+     page.south west) + (0.5cm, 0.5cm)$);
+     \node [anchor=south east] at  ($(current page.south east) +
+     (-0.5cm, 0.2cm)$) { \insertframenumber/\inserttotalframenumber};
+     \end{scope}
+  \end{tikzpicture}
+  \fi
+}
+
+\mode
+<all>