Fixe theme alignments.
[hacks/latex/beamer-upsud.git] / beamerthemeUpsud.sty
index f832e2e..812af3e 100644 (file)
@@ -90,7 +90,7 @@
 \setbeamerfont{sidebar right}{parent=sidebar}
 
 \setbeamerfont{frametitle}{parent=structure,size=\Large,series=\bfseries}
-\setbeamerfont{framesubtitle}{parent=frametitle,size=\footnotesize}
+\setbeamerfont{framesubtitle}{parent=frametitle,size=\scriptsize,series=\it,family=\it}
 
 \setbeamerfont{caption}{size=\small}
 \setbeamerfont{caption name}{parent={structure,caption}}
 %%% 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}
-      \node (a) at (current page.south east) {};
-      \node (b) at (current page.north west) {};
-      \draw [line width=0pt, upsblue, fill=upsblue] (a) rectangle (b);
-      \node (c) at (current page.east) {};
-      \node (d) at (current page.west) {};
-
-      \draw [line width=0pt, upsdarkblue, fill=upsdarkblue] ($(c) + (0, 1.3cm)$) rectangle ($(d) - (0, 1.3cm)$);
-      \node [anchor=east, xshift=1.2mm,yshift=5.6cm] at (current page.south east) {
-            \includegraphics[width=3cm]{upsud-reserve}
+      \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=1em, xshift=1cm,align=left] (e) at (current
+      \node [anchor=west, yshift=0pt, xshift=2em,align=left] at (current
       page.west) {\usebeamerfont{title}\inserttitle\\\usebeamerfont{date}\insertdate};
-      \node [anchor=north west, xshift=1cm, align=left] (f) at
-      ($(current page.west) - (0cm, 1.3cm)$)
+      \node [anchor=north west, xshift=1cm, align=left] at
+      ($(current page.west) - (0cm, 28.25pt)$)
       {\usebeamerfont{author}\insertauthor};
 
     \end{tikzpicture}
   \begin{tikzpicture}[remember picture,overlay,x=\paperwidth,y=1.5cm]
 
     \begin{scope}{on background layer}
-      \node (g) at (current page.north west) {};
-      \node (h) at ($(current page.north east) - (0cm, 1.5cm)$) {};
-      \draw[upsblue, fill=upsblue] (g) rectangle (h);
+      \draw[upsblue, fill=upsblue] (current page.north west)
+      rectangle ($(current page.north east) - (0cm, 30pt)$);
 
-      \node [anchor=north east, yshift=1.7mm,xshift=1.7mm] (i) at (current page.north east) {
-        \includegraphics[height=1.5cm]{upsud-reserve}
+      \node [anchor=north east, yshift=4.5pt, xshift=4.5pt] at (current
+      page.north east) {
+        \includegraphics[height=30pt]{upsud-reserve}
       };
     \end{scope}
-    \node [anchor=west] (i) at ($(current page.north west) + (1cm, -0.75cm)$) {
+    \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}
 }