Commit 09973f08 authored by Cédric Ware's avatar Cédric Ware
Browse files

Fine tuning dimensions and colors.

parent 1b29bdf4
......@@ -66,7 +66,7 @@
\author{Graba Tarik}
\email{tarik.graba@telecom-paris.fr}
\institute{COMELEC--SEN}
\institute{Une école de l'IMT}
\date{}
% Logo additionnel sur la page de titre (pour une conf ou un évènement).
......@@ -83,7 +83,7 @@
\begin{itemize}
\item Boîtes en bas de page
\item Frise de titre du frame
\item Police Helvetica (ou FIXME)
\item Police Helvetica (ou Dinot)
\item Logo Télécom Paris + IP Paris
\end{itemize}
\item Rupture avec la tradition \LaTeX :
......@@ -367,14 +367,14 @@
%
% On inclut un frame standard précompilé.
\node [draw,dotted,above right,inner sep=0pt] (slide) at (0,0) {%
\includegraphics[width={0.5\textwidth + 0.5em},page=2]{model-slide2.pdf}%
\includegraphics[width={0.5\paperwidth - 1pt},page=2]{model-slide2.pdf}%
};
%
% On cache le texte pour éviter la distraction.
\fill[white,opacity=0.7]
(0.5em,\footerlogoheight) rectangle (0.8\paperwidth,0.8\paperheight)
(slide.north west)
++(1.01\tptframetitlefriezewidth,-0.99\tptframetitlefriezesep)
++(1.01\tptframetitlefriezewidth,-0.8\tptframetitlefriezesep)
rectangle +(0.5\paperwidth,-0.2\paperheight);
\foreach \c in {%
east,north east,north,north west,west,south west,south,south east} {%
......@@ -399,7 +399,8 @@
++(\tptbottomboxsep,0) coordinate (bottomboxsep)
++(\tptmidbottomboxwidth,0) coordinate (midbottomboxwidth)
(south east)
+(1,0) coordinate (xlines3)
+(0.8,0) coordinate (xlines3)
+(1.5,0) coordinate (xlines4)
++(0,\tptbottomboxesmargin) coordinate (logo base)
++(0,\tptfooterlogoyshift) coordinate (footerlogoyshift)
++(0,\footerlogoheight) coordinate (footerlogoheight)
......@@ -438,24 +439,25 @@
% On trace les lignes indicatrices côté droit.
\draw
(logo base) -- (logo base -| xlines3) coordinate (endpoint logo base)
(footerlogoyshift) ++(0.2,0.5) coordinate (tmp)
(footerlogoyshift) ++(0.2,-0.5) coordinate (tmp)
(tmp -| xlines3) coordinate (endpoint footerlogoyshift)
(tmp -| xlines4) -- (endpoint footerlogoyshift)
-- ++(-0.5,0) -- (tmp |- footerlogoyshift) -- (footerlogoyshift)
(footerlogoheight)
-- (footerlogoheight -| xlines3) coordinate (endpoint footerlogoheight);
-- (footerlogoheight -| xlines4) coordinate (endpoint footerlogoheight);
%
% On indique les dimensions côté droit.
\draw[->,transform canvas={xshift=-3pt}]
(endpoint logo base -| endpoint footerlogoyshift)
-- node[right] {\Xtt tptfooterlogoyshift} (endpoint footerlogoyshift);
\draw[->,transform canvas={xshift=-3pt}]
(endpoint footerlogoyshift)
(endpoint footerlogoyshift -| endpoint footerlogoheight)
-- node[right] {\Xtt footerlogoheight} (endpoint footerlogoheight);
%
% On trace les lignes indicatrices verticales.
\foreach \x/\dy in {%
leftbottomboxwidth/2.1,midbottomboxwidth/0.6,%
frametitlefriezewidth/1.2,frametitlesep/0.5} {
frametitlefriezewidth/1.4,frametitlesep/0.5} {
\draw (\x) -- +(0,\dy) coordinate (endpoint \x);
}
%
......
......@@ -170,12 +170,12 @@
\newcommand*\tpt@deflength[2]{\newlength{#1}\setlength{#1}{#2}}
% Taille des logos dans la page de titre.
\tpt@deflength{\titlelogowidth}{2cm}
\tpt@deflength{\titleaffiliationlogowidth}{2cm}
\tpt@deflength{\titlelogowidth}{0.142\paperwidth}
\tpt@deflength{\titleaffiliationlogowidth}{0.11\paperwidth}
% Taille des logos en bas de page.
\tpt@deflength{\footerlogomargin}{1em}% Marge horizontale droite.
\tpt@deflength{\footerlogoheight}{.07812\paperwidth}% Hauteur des logos.
\tpt@deflength{\footerlogomargin}{0.018\paperwidth}% Marge horizontale droite.
\tpt@deflength{\footerlogoheight}{0.155\paperheight}% Hauteur des logos.
%
% Déclaration des logos.
......@@ -254,19 +254,13 @@
% Ensemble des logos de bas de page.
\logo{\insertMainLogo\iftpt@affiliation\insertAffLogo\fi}
% .3 cm pour un beamer standard de 9.6cm de haut
\newcommand\footlineheight{0.03125\paperheight}
% 1mm pour un beamer standard de 12.8cm de large
\newcommand\footlinespacing{0.0078125\paperwidth}
%
% Fonts and colors.
%
\definecolor{tptred}{RGB}{191,18,56}
\definecolor{tptbrown}{RGB}{109,80,71}
\colorlet{tptgray}{black!40}
\colorlet{tptgray}{black!30}
\setbeamercolor{frametitle}{fg=tptred,bg=white}
\setbeamercolor{structure}{fg=tptred}
......@@ -286,17 +280,18 @@
\setbeamercolor{block body}{bg=normal text.bg!98!tptbrown}
\setbeamercolor{block title alerted}{use={normal text,alerted text},fg=alerted text.fg!75!normal text.fg,bg=normal text.bg!75!tptred}
\setbeamercolor{block body alerted}{bg=normal text.bg!95!tptred}
\setbeamercolor{itemize subitem}{fg=tptbrown}
\setbeamerfont{title}{size*={14}{16},series=\bfseries}
\setbeamerfont{subtitle}{size*={10}{14},series=\bfseries}
\setbeamerfont{author in title frame}{size*={10}{12}, family=\sffamily}
\setbeamerfont{title}{size*={17}{20},series=\bfseries}
\setbeamerfont{subtitle}{size*={9.5}{12},series=\bfseries}
\setbeamerfont{author in title frame}{size*={9.5}{12}, family=\sffamily}
\setbeamerfont{email in title frame}{size*={8}{10},family=\ttfamily}
\setbeamerfont{date in title frame}{size*={8}{10}, family=\sffamily}
\setbeamerfont{date in head/foot}{size*={6}{7},series=\sffamily}
\setbeamerfont{page in head/foot}{size*={5}{6},series=\sffamily}
\setbeamerfont{institute in head/foot}{size*={6}{7},series=\sffamily}
\setbeamerfont{author in head/foot}{size*={6}{7},series=\sffamily}
\setbeamerfont{date in head/foot}{size*={4}{5},family=\sffamily}
\setbeamerfont{page in head/foot}{size*={5}{6},family=\sffamily}
\setbeamerfont{institute in head/foot}{size*={5}{6},family=\sffamily}
\setbeamerfont{author in head/foot}{size*={5}{6},family=\sffamily}
\setbeamerfont{frametitle}{size*={14}{18},series=\bfseries}
%
......@@ -356,7 +351,7 @@
\end{minipage}%
\vspace{.03\paperheight}\par%
\begin{beamercolorbox}[sep=0cm,wd=.6\paperwidth]{title}
\tptfrieze{.2\paperwidth}{.4cm}{%
\tptfrieze{.205\paperwidth}{.0427\paperheight}{%
page in head/foot.bg,institute in head/foot.bg,title in head/foot.bg}
\end{beamercolorbox}%
\vspace{.20\paperheight}%
......@@ -389,19 +384,21 @@
% changeable par une option du package.
%
\tpt@deflength{\footlinespacing}{0.008\paperwidth}
\tpt@deflength{\tptbottomboxsep}{\footlinespacing}
\tpt@deflength{\tptbottomboxesmargin}{3pt}
\tpt@deflength{\tptleftbottomboxwidth}{.15\paperwidth}
\tpt@deflength{\tptmidbottomboxwidth}{.27\paperwidth}
\tpt@deflength{\tptbottomboxesbase}{1ex}
\tpt@deflength{\tptbottomboxesheight}{%
\dimexpr \footlineheight + \tptbottomboxesbase \relax}
\tpt@deflength{\tptfooterlogoyshift}{-2pt}
\tpt@deflength{\tptbottomboxesmargin}{0.01778\paperheight}
\tpt@deflength{\tptleftbottomboxwidth}{0.154\paperwidth}
\tpt@deflength{\tptmidbottomboxwidth}{0.276\paperwidth}
\tpt@deflength{\tptbottomboxesbase}{0.00889\paperheight}
\tpt@deflength{\tptbottomboxesheight}{0.0338\paperheight}
\tpt@deflength{\tptfooterlogoyshift}{-1.5pt}
% Macros génériques et spécialisées pour faire une boîte.
% Paramètres : [options beamercolorbox], couleur Beamer, contenu.
\newcommand*\tpt@bottombox[3]{%
\begin{beamercolorbox}[center,#1]{#2}
\usebeamerfont*{#2}%
#3
\end{beamercolorbox}%
}
......@@ -497,10 +494,10 @@
%
% Titre du frame : dimensions.
%
\tpt@deflength{\tptframetitlesep}{3ex}
\tpt@deflength{\tptframetitlefriezesep}{5mm}
\tpt@deflength{\tptframetitlefriezewidth}{19.5mm}
\tpt@deflength{\tptframetitlefriezeheight}{5mm}
\tpt@deflength{\tptframetitlesep}{0.018\paperwidth}
\tpt@deflength{\tptframetitlefriezesep}{0.112\paperheight}
\tpt@deflength{\tptframetitlefriezewidth}{0.153\paperwidth}
\tpt@deflength{\tptframetitlefriezeheight}{0.032\paperheight}
\tpt@deflength{\tptframetitleyshift}{0pt}
\tpt@deflength{\tptframetitleyshiftifsubtitle}{8pt}% FIXME
\tpt@deflength{\tptframetitledepth}{2.1mm}% FIXME
......
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