|
1 \ProvidesPackage{beamerthemeplaincu}[2003/11/07 ver 0.93] |
|
2 \NeedsTeXFormat{LaTeX2e}[1995/12/01] |
|
3 |
|
4 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>. |
|
5 % |
|
6 % This program can be redistributed and/or modified under the terms |
|
7 % of the LaTeX Project Public License Distributed from CTAN |
|
8 % archives in directory macros/latex/base/lppl.txt. |
|
9 |
|
10 \newcommand{\slidecaption}{} |
|
11 |
|
12 \mode<presentation> |
|
13 |
|
14 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
15 % comic fonts fonts |
|
16 \DeclareFontFamily{T1}{comic}{}% |
|
17 \DeclareFontShape{T1}{comic}{m}{n}{<->s*[.9]comic8t}{}% |
|
18 \DeclareFontShape{T1}{comic}{m}{it}{<->s*[.9]comic8t}{}% |
|
19 \DeclareFontShape{T1}{comic}{m}{sc}{<->s*[.9]comic8t}{}% |
|
20 \DeclareFontShape{T1}{comic}{b}{n}{<->s*[.9]comicbd8t}{}% |
|
21 \DeclareFontShape{T1}{comic}{b}{it}{<->s*[.9]comicbd8t}{}% |
|
22 \DeclareFontShape{T1}{comic}{m}{sl}{<->ssub * comic/m/it}{}% |
|
23 \DeclareFontShape{T1}{comic}{b}{sc}{<->sub * comic/m/sc}{}% |
|
24 \DeclareFontShape{T1}{comic}{b}{sl}{<->ssub * comic/b/it}{}% |
|
25 \DeclareFontShape{T1}{comic}{bx}{n}{<->ssub * comic/b/n}{}% |
|
26 \DeclareFontShape{T1}{comic}{bx}{it}{<->ssub * comic/b/it}{}% |
|
27 \DeclareFontShape{T1}{comic}{bx}{sc}{<->sub * comic/m/sc}{}% |
|
28 \DeclareFontShape{T1}{comic}{bx}{sl}{<->ssub * comic/b/it}{}% |
|
29 % |
|
30 \renewcommand{\rmdefault}{comic}% |
|
31 \renewcommand{\sfdefault}{comic}% |
|
32 \renewcommand{\mathfamilydefault}{cmr}% mathfont should be still the old one |
|
33 % |
|
34 \DeclareMathVersion{bold}% mathfont needs to be bold |
|
35 \DeclareSymbolFont{operators}{OT1}{cmr}{b}{n}% |
|
36 \SetSymbolFont{operators}{bold}{OT1}{cmr}{b}{n}% |
|
37 \DeclareSymbolFont{letters}{OML}{cmm}{b}{it}% |
|
38 \SetSymbolFont{letters}{bold}{OML}{cmm}{b}{it}% |
|
39 \DeclareSymbolFont{symbols}{OMS}{cmsy}{b}{n}% |
|
40 \SetSymbolFont{symbols}{bold}{OMS}{cmsy}{b}{n}% |
|
41 \DeclareSymbolFont{largesymbols}{OMX}{cmex}{b}{n}% |
|
42 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
43 |
|
44 |
|
45 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
46 % colours |
|
47 \setbeamercolor{normal text}{fg=white} |
|
48 %%%\setbeamercolor{background canvas}{bg=black} |
|
49 \setbeamertemplate{background canvas}[vertical shading] |
|
50 [bottom=white!5!black,top=white!5!black,middle=white!25!black] |
|
51 |
|
52 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
53 % Frametitles |
|
54 \setbeamerfont{frametitle}{size={\huge}} |
|
55 \setbeamerfont{frametitle}{family={\usefont{T1}{ptm}{b}{n}}} |
|
56 \setbeamercolor{frametitle}{fg=white!80!black} |
|
57 |
|
58 \setbeamertemplate{frametitle}{% |
|
59 \vskip 2mm % distance from the top margin |
|
60 \hskip -3mm % distance from left margin |
|
61 \vbox{% |
|
62 \begin{minipage}{1.05\textwidth}% |
|
63 \centering% |
|
64 \insertframetitle% |
|
65 \end{minipage}}% |
|
66 } |
|
67 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
68 |
|
69 |
|
70 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
71 % Foot |
|
72 % |
|
73 \setbeamertemplate{navigation symbols}{} |
|
74 \usefoottemplate{% |
|
75 \vbox{% |
|
76 \tinyline{% |
|
77 \tiny\hfill\textcolor{gray!50}{\slidecaption{} -- |
|
78 p.~\insertframenumber/\inserttotalframenumber}}}% |
|
79 } |
|
80 |
|
81 |
|
82 |
|
83 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
84 %%\beamertemplateballitem |
|
85 \setbeamertemplate{itemize items}[ball] |
|
86 \setbeamercolor{item}{fg=red} |
|
87 |
|
88 \pgfdeclareradialshading[bg,parent.bg]{bigsphere}{\pgfpoint{-0.1849315ex}{.2260273ex}}% |
|
89 {% |
|
90 color(0cm)=(bg!15); |
|
91 color(0.1643835ex)=(bg!75); |
|
92 color(0.3287671ex)=(bg!70!black); |
|
93 color(0.4520547ex)=(bg!50!black)} |
|
94 |
|
95 \pgfdeclareradialshading{bigspherered}{\pgfpoint{-0.1849315ex}{.2260273ex}}% |
|
96 {% |
|
97 color(0cm)=(red!15); |
|
98 color(0.1643835ex)=(red!75); |
|
99 color(0.3287671ex)=(red!70!black); |
|
100 color(0.4520547ex)=(red!50!black)} |
|
101 |
|
102 \pgfdeclareradialshading[bg,parent.bg]{smallsphere}{\pgfpoint{-0.1479452ex}{0.18287671ex}}% |
|
103 {% |
|
104 color(0cm)=(bg!15); |
|
105 color(0.1315068ex)=(bg!75); |
|
106 color(0.2630136ex)=(bg!70!black); |
|
107 color(0.36164383ex)=(bg!50!black)} |
|
108 |
|
109 \setlength\leftmargini{2mm} |
|
110 \setlength\leftmarginii{0.6cm} |
|
111 \setlength\leftmarginiii{1.5cm} |
|
112 |
|
113 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
114 % blocks |
|
115 %\definecolor{cream}{rgb}{1,1,.65} |
|
116 \definecolor{cream}{rgb}{1,1,.8} |
|
117 |
|
118 \setbeamerfont{block title}{size=\normalsize} |
|
119 \setbeamercolor{block title}{fg=black,bg=cream} |
|
120 \setbeamercolor{block body}{fg=black,bg=cream} |
|
121 \setbeamertemplate{blocks}[rounded][shadow=true] |
|
122 \setbeamercolor{boxcolor}{fg=red,bg=cream} |
|
123 |
|
124 |
|
125 % |
|
126 % Boxed environment with semi-transparent shadow. |
|
127 % |
|
128 \newlength{\boxw} |
|
129 \newlength{\boxh} |
|
130 \newlength{\shadowsize} |
|
131 \newlength{\boxroundness} |
|
132 \newlength{\tmpa} |
|
133 \newsavebox{\shadowblockbox} |
|
134 |
|
135 \setlength{\shadowsize}{6pt} |
|
136 \setlength{\boxroundness}{3pt} |
|
137 |
|
138 \newenvironment{shadowblock}[1]% |
|
139 {\begin{lrbox}{\shadowblockbox}\begin{minipage}{#1}}% |
|
140 {\end{minipage}\end{lrbox}% |
|
141 \settowidth{\boxw}{\usebox{\shadowblockbox}}% |
|
142 \settodepth{\tmpa}{\usebox{\shadowblockbox}}% |
|
143 \settoheight{\boxh}{\usebox{\shadowblockbox}}% |
|
144 \addtolength{\boxh}{\tmpa}% |
|
145 \begin{tikzpicture} |
|
146 \addtolength{\boxw}{\boxroundness * 2} |
|
147 \addtolength{\boxh}{\boxroundness * 2} |
|
148 |
|
149 \foreach \x in {0,.05,...,1} |
|
150 { |
|
151 \setlength{\tmpa}{\shadowsize * \real{\x}} |
|
152 \fill[xshift=\shadowsize - 1pt,yshift=-\shadowsize + 1pt, |
|
153 black,opacity=.04,rounded corners=\boxroundness] |
|
154 (\tmpa, \tmpa) rectangle +(\boxw - \tmpa - \tmpa, \boxh - \tmpa - \tmpa); |
|
155 } |
|
156 |
|
157 \filldraw[fill=cream, draw=black, rounded corners=\boxroundness] |
|
158 (0, 0) rectangle (\boxw, \boxh); |
|
159 \draw node[xshift=\boxroundness,yshift=\boxroundness,inner sep=0pt, |
|
160 outer sep=0pt,anchor=south west] (0,0) {\usebox{\shadowblockbox}}; |
|
161 \end{tikzpicture}} |
|
162 |
|
163 |
|
164 \mode |
|
165 <all> |
|
166 |
|
167 |
|
168 |
|
169 |
|
170 |
|
171 |