addendum for translation credits
[packaging-tutorial.git] / beamerthemedebian.sty
1 \ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/theme/compatibility/beamerthemedebian.sty,v 1.8 2004/10/07 20:53:10 tantau Exp $
2
3 \mode<presentation>
4
5 \setbeamersize{text margin left=3mm,text margin right=3mm}
6
7 \useinnertheme{rounded}
8 \useinnertheme{circles}
9 \setbeamertemplate{itemize items}[default]
10 \setbeamertemplate{blocks}[rounded]
11 \setbeamertemplate{navigation symbols}{}
12 \setbeamertemplate{sections/subsections in toc shaded}[default][50]
13
14 %%% FONTS
15 \setbeamerfont{frametitle}{parent=structure,size=\Large}
16 \setbeamerfont{framesubtitle}{parent=frametitle,size=\large}
17 % do not reduce size of subitems
18 \setbeamerfont{itemize/enumerate subbody}{size=\normalsize}
19 \setbeamerfont{itemize/enumerate subsubbody}{size=\normalsize}
20
21 %%% COLORS
22 \definecolor{debianred}{rgb}{.780,.000,.211} % 199,0,54
23 \definecolor{debianblue}{rgb}{0,.208,.780} % 0,53,199
24 \definecolor{debianlightbackgroundblue}{rgb}{.941,.941,.957} % 240,240,244
25 \definecolor{debianbackgroundblue}{rgb}{.776,.784,.878} % 198,200,224
26
27 \definecolor{noir}{RGB}{3,3,36}
28 \definecolor{bleu}{RGB}{10,10,120}
29 \definecolor{bleuclair}{RGB}{17,17,150}
30 \definecolor{rouge}{RGB}{200,0,0}
31 \definecolor{jaune}{RGB}{255,255,0}
32 \definecolor{vert}{RGB}{0,255,0}
33 \definecolor{rougebg}{RGB}{160,0,0}
34
35 \setbeamercolor{alerted text}{fg=rouge}
36
37 \setbeamercolor*{palette primary}{fg=jaune,bg=vert}
38 \setbeamercolor*{palette secondary}{fg=jaune,bg=vert}
39 \setbeamercolor*{palette tertiary}{fg=jaune,bg=vert}
40 \setbeamercolor*{palette quaternary}{fg=jaune,bg=vert}
41 \setbeamercolor*{palette sidebar primary}{fg=jaune,bg=vert}
42 \setbeamercolor*{palette sidebar secondary}{fg=jaune,bg=vert}
43 \setbeamercolor*{palette sidebar tertiary}{fg=jaune,bg=vert}
44 \setbeamercolor*{palette sidebar quaternary}{fg=jaune,bg=vert}
45
46 \setbeamercolor{section in head/foot}{fg=white,bg=noir}
47 \setbeamercolor{subsection in head/foot}{fg=white,bg=noir}
48
49 \setbeamercolor{author in head/foot}{fg=black,bg=white}
50 \setbeamercolor{title in head/foot}{fg=black,bg=white}
51
52 \setbeamercolor*{titlelike}{fg=white,bg=rougebg}
53
54 \setbeamercolor{frametitle}{fg=rougebg,bg=white}
55
56 \setbeamercolor{item projected}{fg=white,bg=rougebg}
57 \setbeamercolor{item}{fg=rougebg}
58
59 \setbeamercolor{block title}{fg=white,bg=rougebg}
60 \setbeamercolor{block body}{parent=normal text, bg=rougebg!5!white}
61
62 \setbeamercolor{section in toc}{fg=black,bg=white}
63 \setbeamercolor{subsection in toc}{fg=black,bg=white}
64
65
66
67 %\definecolor{altext}{rgb}{0.90,0.60,0.00}
68 %\definecolor{altext}{rgb}{1.00,1.00,0.00}
69 %\setbeamercolor{alerted text}{fg=altext}
70
71 %%% OUTER THEME
72 \usesectionheadtemplate
73   {\hfill\insertsectionhead}
74   {\hfill\color{fg!50!bg}\insertsectionhead}
75
76                                 % Head
77
78
79 \setbeamertemplate{frametitle}{%
80   \ifbeamer@plainframe%
81   \else%
82     \vskip0.1em%
83     {\leftskip-\beamer@leftmargin\advance\leftskip by0.3cm%
84       \rightskip-\beamer@rightmargin plus1fil\advance\rightskip by0.3cm\leavevmode
85       {\usebeamercolor{frametitle}\usebeamerfont{frametitle}
86       \Large\bfseries{\underline{\insertframetitle}}}\par}%
87       \vskip-.3cm
88   \fi%
89 }
90
91 \defbeamertemplate*{footline}{split theme}
92 {%
93   \leavevmode%
94   \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.1cm plus1fill,rightskip=.1cm]{author in head/foot}%
95     \usebeamerfont{author in head/foot}\insertshortauthor
96   \end{beamercolorbox}%
97   \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.1cm,rightskip=.1cm plus1fil]{title in head/foot}%
98           \hfill \usebeamerfont{title in head/foot}\insertshorttitle \hskip 2em \insertframenumber{} / \inserttotalframenumber{}
99   \end{beamercolorbox}}%
100   \vskip0pt%
101 }
102
103 \setbeamerfont{block title}{size={}}
104
105 % define sectionintoc (found in /usr/share/texmf/tex/latex/beamer/base/beamerbasetoc.sty)
106 % to change vskip1.5em into vskip1em
107 \def\beamer@sectionintoc#1#2#3#4#5{%
108   \ifnum\c@tocdepth>0%
109   \ifnum#4=\beamer@showpartnumber%
110   {
111   \beamer@saveanother%
112   \gdef\beamer@todo{}%
113   \beamer@slideinframe=#1\relax%
114   \expandafter\only\beamer@tocsections{\gdef\beamer@todo{%
115       \beamer@tempcount=#5\relax%
116       \advance\beamer@tempcount by\beamer@sectionadjust%
117       \edef\inserttocsectionnumber{\the\beamer@tempcount}%
118       \def\inserttocsection{\hyperlink{Navigation#3}{#2}}%
119       \beamer@tocifnothide{\ifnum\c@section=#1\beamer@toc@cs\else\beamer@toc@os\fi}%
120       {
121         \ifbeamer@pausesections\pause\fi%
122         \ifx\beamer@toc@ooss\beamer@hidetext
123           \vskip1em
124         \else
125           \vfill
126         \fi
127         {%
128           \hbox{\vbox{%
129               \def\beamer@breakhere{\\}%
130               \beamer@tocact{\ifnum\c@section=#1\beamer@toc@cs\else\beamer@toc@os\fi}{section in toc}}}%
131          \par%
132         }%
133       }%
134     }
135   }%
136   \beamer@restoreanother%
137   }
138   \beamer@todo%
139   \fi\fi%
140 }
141
142
143 \mode
144 <all>
145
146