blob: 672e03520f59977560a2fd522a4f763da5c75cbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
|
% Copyright 2003--2007 by Till Tantau
% Copyright 2010 by Vedran Mileti\'c
% Copyright 2012,2013,2015 by Vedran Mileti\'c, Joseph Wright
% Copyright 2017,2018 by Louis Stuart, Joseph Wright
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.
\mode
<presentation>
% Maximum dead cycles
\maxdeadcycles=1000
% Calculate maximum number of sections/subsections per part
\beamer@subsubsectionmax=0\relax
\beamer@subsectionmax=0\relax
\beamer@sectionmax=0\relax
\beamer@sectioncount=0\relax
\newrobustcmd*\headcommand[1]{\global\advance\beamer@totalheads by1\relax
\expandafter\gdef\csname @@head\the\beamer@totalheads\endcsname{#1}}
\newrobustcmd*\dohead{\beamer@headcounter=0\relax\loop\ifnum\beamer@headcounter<\beamer@totalheads
\advance\beamer@headcounter by1\relax
\csname @@head\the\beamer@headcounter\endcsname\repeat}
\def\beamer@startpageofframe{1}
\def\beamer@endpageofframe{1}
\def\beamer@slidenumber{1}
\def\beamer@overlaynumber{1}
\def\beamer@startpageofsubsection{1}
\def\beamer@endpageofsubsection{1}
\def\beamer@startpageofsection{1}
\def\beamer@endpageofsection{1}
\def\beamer@startpageofpart{1}
\def\beamer@endpageofpart{1}
\def\beamer@endpageofdocument{1}
\def\beamer@startpageofappendix{}
\def\inserttotalframenumber{1}
\def\insertmainframenumber{\inserttotalframenumber}
\newrobustcmd*\partentry[2]{\beamer@sectioncount=0\relax}
\def\beamer@initsectionentry#1#2#3#4#5{\advance\beamer@sectioncount by1\relax
\ifnum\beamer@sectionmax<\beamer@sectioncount\beamer@sectionmax=\beamer@sectioncount\fi}
\def\beamer@initslideentry#1#2#3#4#5#6{\ifnum\beamer@subsectionmax<#2\relax\beamer@subsectionmax=#2\fi}
\def\beamer@initsubsubsectionentry#1#2#3#4#5#6{\ifnum\beamer@subsubsectionmax<#4\relax\beamer@subsubsectionmax=#4\fi}
\def\beamer@framepages#1#2{}
\def\beamer@subsectionpages#1#2{}
\def\beamer@sectionpages#1#2{}
\def\beamer@partpages#1#2{}
\def\beamer@appendixpages#1{\gdef\beamer@startpageofappendix{#1}}
\def\beamer@documentpages#1{\gdef\beamer@endpageofdocument{#1}}
\setlength\lineskip{1\p@}
\setlength\normallineskip{1\p@}
\renewcommand\baselinestretch{}
\setlength\parskip{0\p@}% \@plus \p@}
\@lowpenalty 51
\@medpenalty 151
\@highpenalty 301
\setcounter{topnumber}{2}
\renewcommand\topfraction{.7}
\setcounter{bottomnumber}{1}
\renewcommand\bottomfraction{.3}
\setcounter{totalnumber}{3}
\renewcommand\textfraction{.9}%.2}
\renewcommand\floatpagefraction{.1}%5}
\setcounter{dbltopnumber}{2}
\renewcommand\dbltopfraction{.7}
\renewcommand\dblfloatpagefraction{.5}
\@beginparpenalty -\@lowpenalty
\@endparpenalty -\@lowpenalty
\@itempenalty -\@lowpenalty
\g@addto@macro\beamer@firstminutepatches{%
\pdfstringdefDisableCommands{%
\let\\=\
\let\newline=\\%
}%
}
\g@addto@macro\beamer@lastminutepatches{%
\beamer@activecjk
\makeatletter
\begingroup
\@input{\jobname.nav}%
\endgroup
\let\beamer@sectionentryorig=\sectionentry
\let\beamer@slideentryorig=\slideentry
\let\beamer@subsubsectionentryorig=\beamer@subsubsectionentry
\let\sectionentry=\beamer@initsectionentry
\let\slideentry=\beamer@initslideentry
\let\beamer@subsubsectionentry=\beamer@initsubsubsectionentry
\dohead
\let\sectionentry=\beamer@sectionentryorig
\let\slideentry=\beamer@slideentryorig
\let\beamer@subsubsectionentry=\beamer@subsubsectionentryorig
\beamer@calculateheadfoot
\ifbeamer@draftmode
\setbeamertemplate{footline}{%
\color{black!25}%
\kern-\Gm@lmargin\vrule width\paperwidth
height\footheight\kern-\Gm@rmargin}%
\setbeamertemplate{headline}{%
\color{black!25}%
\kern-\Gm@lmargin\vrule width\paperwidth
height\headheight\kern-\Gm@rmargin}%
\setbeamertemplate{sidebar left}{%
\color{black!20}%
\vrule width \beamer@leftsidebar height\sidebarheight}%
\setbeamertemplate{sidebar right}{%
\color{black!20}%
\vrule width \beamer@rightsidebar height\sidebarheight}%
\setbeamertemplate{sidebar canvas left}{}%
\setbeamertemplate{sidebar canvas right}{}%
\fi
\makeatother
}
\setcounter{tocdepth}{3}
\setlength\arraycolsep{5\p@}
\setlength\tabcolsep{6\p@}
\setlength\arrayrulewidth{.4\p@}
\setlength\doublerulesep{2\p@}
\setlength\tabbingsep{\labelsep}
\skip\@mpfootins = \skip\footins
\setlength\fboxsep{3\p@}
\setlength\fboxrule{.4\p@}
\newcommand\contentsname{\translate{Contents}}
\newcommand\listfigurename{\translate{List of Figures}}
\newcommand\listtablename{\translate{List of Tables}}
\newcommand\refname{\translate{References}}
\newcommand\bibname{\translate{Bibliography}}
\newcommand\indexname{\translate{Index}}
\newcommand\figurename{\translate{Figure}}
\newcommand\algorithmname{\translate{Algorithm}}
\newcommand\tablename{\translate{Table}}
\newcommand\partname{\translate{Part}}
\newcommand\chaptername{\translate{Chapter}}
\newcommand\appendixname{\translate{Appendix}}
\newcommand\abstractname{\translate{Abstract}}
% This is suboptimal; for full localization babel should be used.
\def\today{\ifcase\month\or
\translate{January}\or \translate{February}\or \translate{March}\or
\translate{April}\or \translate{May}\or \translate{June}\or
\translate{July}\or \translate{August}\or \translate{September}\or
\translate{October}\or \translate{November}\or \translate{December}\fi
\space\number\day, \number\year}
\setlength\columnsep{10\p@}
\setlength\columnseprule{0\p@}
\onecolumn
\parindent0pt
\AtEndDocument{%
\clearpage
\beamer@tempcount=\c@page\advance\beamer@tempcount by -1 %
\if@filesw
\immediate\write\@auxout{\string\@writefile{nav}%
{\noexpand\headcommand{\noexpand\beamer@partpages{\the\beamer@partstartpage}{\the\beamer@tempcount}}}}%
\immediate\write\@auxout{\string\@writefile{nav}%
{\noexpand\headcommand{\noexpand\beamer@subsectionpages{\the\beamer@subsectionstartpage}{\the\beamer@tempcount}}}}%
\immediate\write\@auxout{\string\@writefile{nav}%
{\noexpand\headcommand{\noexpand\beamer@sectionpages{\the\beamer@sectionstartpage}{\the\beamer@tempcount}}}}%
\immediate\write\@auxout{\string\@writefile{nav}%
{\noexpand\headcommand{\noexpand\beamer@documentpages{\the\beamer@tempcount}}}}
\immediate\write\@auxout{\string\@writefile{nav}%
{\noexpand\headcommand{\noexpand\gdef\noexpand\inserttotalframenumber{\the\c@framenumber}}}}
\newwrite\tf@nav
\immediate\openout\tf@nav\jobname.nav\relax
\newwrite\tf@toc
\immediate\openout\tf@toc\jobname.toc\relax
\newwrite\tf@snm
\immediate\openout\tf@snm\jobname.snm\relax
\fi
}
%
% Managing short inserts
%
\define@key{beamerst}{respectlinebreaks}[true]{%
\def\beamer@stlinebreakrule{}}
\define@key{beamerst}{width}{%
\def\beamer@ststart{%
\begin{minipage}[t]{#1}%
\raggedright
\beamer@stalign
\beamer@stlinebreakrule
}%
\def\beamer@stend{\end{minipage}}}
\define@key{beamerst}{center}[true]{%
\def\beamer@stalign{\centering}}
\define@key{beamerst}{spill}[true]{%
\def\beamer@stalign{\parshape...}}%
\newcommand{\beamer@setupshort}[1]{%
\def\beamer@stlinebreakrule{\def\\{}}%
\def\beamer@stalign{}%
\def\beamer@ststart{\hbox\bgroup\def\\{}}%
\def\beamer@stend{\egroup}%
\setkeys{beamerst}{#1}}%
\newcommand{\beamer@insertshort}[1]{%
\beamer@ststart#1\beamer@stend
}
\mode
<all>
\AtBeginDocument
{
\ifx\includegraphics\@undefined
\else
\renewcommand<>\includegraphics{%
\@ifstar
{\Gin@cliptrue}
{\Gin@clipfalse}%
\@ifnextchar[%]
{\beamer@includegraphics{#1}}
{\beamer@@@includegraphics{#1}{}}%
}
\long\def\beamer@includegraphics#1[#2]{%
\@ifnextchar[%]
{\beamer@@includegraphics{#1}{#2}}
{\beamer@@@includegraphics{#1}{#2}}%
}
\long\def\beamer@@includegraphics#1#2[#3]#4{%
\only#1{\beameroriginal\includegraphics[{#2}][{#3}]{#4}}%
}
\long\def\beamer@@@includegraphics#1#2#3{%
\only#1{\beameroriginal\includegraphics[{#2}]{#3}}%
}
\fi
\ifx\pgfuseimage\@undefined
\else
\renewcommand<>\pgfuseimage[1]{\only#2{\beameroriginal\pgfuseimage{#1}}\ignorespaces}
\renewcommand<>\pgfimage[2][]{\only#3{\beameroriginal\pgfimage[{#1}]{#2}}\ignorespaces}
\fi
}
|