Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

beamerthemelines.sty 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122
  1. % Copyright 2021 by Jan Benda
  2. %
  3. % This file may be distributed and/or modified
  4. %
  5. % 1. under the LaTeX Project Public License and/or
  6. % 2. under the GNU Public License.
  7. \ProvidesPackage{beamerthemelines}[2021/02/28 beamer theme with horizontal lines]
  8. \RequirePackage{tikz}
  9. \RequirePackage{pifont}
  10. \newif\if@beamer@footline@author
  11. \newif\if@beamer@footline@institute
  12. \newif\if@beamer@footline@date
  13. \newif\if@beamer@footline@title
  14. \newif\if@beamer@footline@page
  15. \newif\if@beamer@footline@logoleft
  16. \newif\if@beamer@footline@logoright
  17. \newif\if@beamer@frametitle@logoleft
  18. \newif\if@beamer@frametitle@logoright
  19. \DeclareOptionBeamer{author}{\@beamer@footline@authortrue}
  20. \DeclareOptionBeamer{hideauthor}{\@beamer@footline@authorfalse}
  21. \DeclareOptionBeamer{institute}{\@beamer@footline@institutetrue}
  22. \DeclareOptionBeamer{hideinstitute}{\@beamer@footline@institutefalse}
  23. \DeclareOptionBeamer{date}{\@beamer@footline@datetrue}
  24. \DeclareOptionBeamer{hidedate}{\@beamer@footline@datefalse}
  25. \DeclareOptionBeamer{title}{\@beamer@footline@titletrue}
  26. \DeclareOptionBeamer{hidetitle}{\@beamer@footline@titlefalse}
  27. \DeclareOptionBeamer{page}{\@beamer@footline@pagetrue}
  28. \DeclareOptionBeamer{hidepage}{\@beamer@footline@pagefalse}
  29. \DeclareOptionBeamer{logofootleft}{\@beamer@footline@logolefttrue\@beamer@footline@logorightfalse}
  30. \DeclareOptionBeamer{logofootright}{\@beamer@footline@logorighttrue\@beamer@footline@logoleftfalse}
  31. \DeclareOptionBeamer{logotitleleft}{\@beamer@frametitle@logolefttrue\@beamer@frametitle@logorightfalse}
  32. \DeclareOptionBeamer{logotitleright}{\@beamer@frametitle@logorighttrue\@beamer@frametitle@logoleftfalse}
  33. \DeclareOptionBeamer{hidelogo}{\@beamer@footline@logoleftfalse\@beamer@footline@logorightfalse\@beamer@frametitle@logoleftfalse\@beamer@frametitle@logorightfalse}
  34. \ExecuteOptionsBeamer{author}
  35. \ExecuteOptionsBeamer{hideinstitute}
  36. \ExecuteOptionsBeamer{hidedate}
  37. \ExecuteOptionsBeamer{hidetitle}
  38. \ExecuteOptionsBeamer{page}
  39. \ExecuteOptionsBeamer{hidelogo}
  40. \ProcessOptionsBeamer
  41. %%%%% \titlelogo command:
  42. \mode<all>{
  43. \newcommand\titlelogo[1]{\def\inserttitlelogo{#1}}
  44. \titlelogo{}
  45. }
  46. %%%%% \sectiongraphic command:
  47. \mode<all>{
  48. \newcommand\sectiongraphic[1]{\def\insertsectiongraphic{#1}}
  49. \sectiongraphic{}
  50. }
  51. %%%%% \subsectiongraphic command:
  52. \mode<all>{
  53. \newcommand\subsectiongraphic[1]{\def\insertsubsectiongraphic{#1}}
  54. \subsectiongraphic{}
  55. }
  56. \mode<presentation>
  57. % margins:
  58. \setbeamersize{text margin left=1.5ex,text margin right=1.5ex}
  59. % no navigation symbols:
  60. \defbeamertemplate{navigation symbols}{empty}{}
  61. \setbeamertemplate{navigation symbols}[empty]
  62. % no side bars:
  63. \setbeamertemplate{sidebar left}[default]
  64. \defbeamertemplate{sidebar right}{empty}{}
  65. \setbeamertemplate{sidebar right}[empty]
  66. % no headline:
  67. \setbeamertemplate{headline}[default]
  68. %%%%% horizontal line %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  69. % a horizontal line on top of a box over the whole linewidth
  70. % arguments: name of color theme, width of line
  71. \newcommand{\beamer@horizontal@line@top}[2]{%
  72. \ifbeamercolorempty[fg]{#1}{}{%
  73. \begin{beamercolorbox}[vmode,wd=\linewidth]{#1}
  74. \rule{\linewidth}{#2}
  75. \end{beamercolorbox}%
  76. \par\nointerlineskip}%
  77. }
  78. % a horizontal line below a box over the whole linewidth
  79. % arguments: name of color theme, width of line
  80. \newcommand{\beamer@horizontal@line@bottom}[2]{%
  81. \ifbeamercolorempty[fg]{#1}{}{%
  82. \par\nointerlineskip%
  83. \begin{beamercolorbox}[vmode,wd=\linewidth]{#1}
  84. \rule{\linewidth}{#2}
  85. \end{beamercolorbox}}%
  86. }
  87. %%%%% page numbers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  88. \defbeamertemplate{page number in head/foot}{frames}{%
  89. {\usebeamerfont{page number in head/foot}%
  90. \makebox[2.5ex][r]{\insertframenumber{}}}}
  91. \defbeamertemplate{page number in head/foot}{framestotal}{%
  92. {\usebeamerfont{page number in head/foot}%
  93. \makebox[7ex][r]{\insertframenumber{} / \inserttotalframenumber{}}}}
  94. \defbeamertemplate{page number in head/foot}{slides}{%
  95. {\usebeamerfont{page number in head/foot}%
  96. \makebox[2.5ex][r]{\insertframenumber{} } %
  97. \newcount{\c@tmp@numslides}%
  98. \c@tmp@numslides=\numexpr\beamer@endpageofframe-\beamer@startpageofframe\relax%
  99. \makebox[2.5ex][r]{\ifnum\c@tmp@numslides>0 -- \insertslidenumber{}\fi}}}
  100. \setbeamertemplate{page number in head/foot}[frames]
  101. %%%%% footline %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  102. %%%%% footline line:
  103. \defbeamertemplate{footline line}{text}[1][1pt]%
  104. {
  105. \ifbeamercolorempty[fg]{footline line}{}{%
  106. \begin{beamercolorbox}[wd=\paperwidth,dp=0pt,ht=#1,sep=0pt,%
  107. leftskip=\beamer@leftmargin,rightskip=\beamer@rightmargin]{footline line}%
  108. \rule{\columnwidth}{#1}%
  109. \end{beamercolorbox}%
  110. \nointerlineskip%
  111. }%
  112. }
  113. \defbeamertemplate{footline line}{page}[1][1pt]%
  114. {
  115. \ifbeamercolorempty[fg]{footline line}{}{%
  116. \begin{beamercolorbox}[wd=\paperwidth,dp=0pt,ht=#1,sep=0pt,%
  117. leftskip=0pt,rightskip=0pt]{footline line}%
  118. \rule{\paperwidth}{#1}%
  119. \end{beamercolorbox}%
  120. \nointerlineskip%
  121. }%
  122. }
  123. \setbeamertemplate{footline line}[text][0.5pt]
  124. %%%%% footline separator:
  125. \defbeamertemplate{footline separator}{text}[1][1pt]{%
  126. {\usebeamercolor[fg]{footline separator}\enspace\rule[-0.55ex]{#1}{2.3ex}\thickspace}}
  127. \defbeamertemplate{footline separator}{full}[1][1pt]{%
  128. {\usebeamercolor[fg]{footline separator}\enspace\rule[-1.2ex]{#1}{4ex}\thickspace}}
  129. \defbeamertemplate{footline separator}{dash}{%
  130. {\usebeamercolor[fg]{footline separator}\thickspace{} ---\thickspace}}
  131. \defbeamertemplate{footline separator}{space}{%
  132. {\usebeamercolor[fg]{footline separator}\enspace\thickspace}}
  133. \setbeamertemplate{footline separator}[text][0.5pt]
  134. \setbeamercolor{footline separator}{parent=footline}
  135. %%%%% footline: pageright
  136. \defbeamertemplate{footline}{pageright}{%
  137. \usebeamerfont{footline}%
  138. \usebeamertemplate{footline line}%
  139. \begin{beamercolorbox}[wd=1\paperwidth,dp=1.2ex,ht=2.8ex,%
  140. leftskip=1\beamer@leftmargin,rightskip=1\beamer@rightmargin]{footline}
  141. \hypersetup{linkcolor=}%
  142. \newif\if@tempsep%
  143. \@tempsepfalse%
  144. % logo left:
  145. \if@beamer@footline@logoleft%
  146. \ifx\insertlogo\@empty\else\raisebox{-1ex}{\insertlogo}\quad\fi%
  147. \fi
  148. % author:
  149. \if@beamer@footline@author
  150. {\usebeamerfont{author in head/foot}%
  151. \insertshortauthor}%
  152. \@tempseptrue
  153. \fi
  154. % institute:
  155. \if@beamer@footline@institute
  156. \if@tempsep\usebeamertemplate{footline separator}\hskip0.6ex\fi
  157. {\usebeamerfont{institute in head/foot}%
  158. \insertshortinstitute}%
  159. \@tempseptrue
  160. \fi
  161. % date:
  162. \if@beamer@footline@date
  163. \if@tempsep\usebeamertemplate{footline separator}\hskip0.6ex\fi
  164. {\usebeamerfont{date in head/foot}%
  165. \insertshortdate}%
  166. \@tempseptrue
  167. \fi
  168. % title:
  169. \if@beamer@footline@title
  170. \if@tempsep\usebeamertemplate{footline separator}\hskip0.6ex\fi
  171. {\usebeamerfont{title in head/foot}%
  172. \insertshorttitle}%
  173. \@tempseptrue
  174. \fi
  175. \hfill
  176. % page:
  177. \if@beamer@footline@page
  178. \usebeamertemplate{footline separator}
  179. \usebeamertemplate{page number in head/foot}%
  180. \fi
  181. % logo right:
  182. \if@beamer@footline@logoright%
  183. \ifx\insertlogo\@empty\else\quad \raisebox{-1ex}{\insertlogo}\fi%
  184. \fi
  185. \end{beamercolorbox}
  186. }
  187. %%%%% footline: pageleft
  188. \defbeamertemplate{footline}{pageleft}{%
  189. \usebeamerfont{footline}%
  190. \usebeamertemplate{footline line}%
  191. \begin{beamercolorbox}[wd=1\paperwidth,dp=1.2ex,ht=2.8ex,%
  192. leftskip=1\beamer@leftmargin,rightskip=1\beamer@rightmargin]{footline}
  193. \hypersetup{linkcolor=}%
  194. % logo left:
  195. \if@beamer@footline@logoleft%
  196. \ifx\insertlogo\@empty\else\raisebox{-1ex}{\insertlogo}\quad\fi%
  197. \fi
  198. % page:
  199. \if@beamer@footline@page
  200. \usebeamertemplate{page number in head/foot}%
  201. \fi
  202. \hfill
  203. \newif\if@tempsep%
  204. \@tempsepfalse%
  205. % author:
  206. \if@beamer@footline@author
  207. {\usebeamerfont{author in head/foot}%
  208. \insertshortauthor}%
  209. \@tempseptrue
  210. \fi
  211. % institute:
  212. \if@beamer@footline@institute
  213. \if@tempsep\usebeamertemplate{footline separator}\hskip0.6ex\fi
  214. {\usebeamerfont{institute in head/foot}%
  215. \insertshortinstitute}%
  216. \@tempseptrue
  217. \fi
  218. % date:
  219. \if@beamer@footline@date
  220. \if@tempsep\usebeamertemplate{footline separator}\hskip0.6ex\fi
  221. {\usebeamerfont{date in head/foot}%
  222. \insertshortdate}%
  223. \@tempseptrue
  224. \fi
  225. % title:
  226. \if@beamer@footline@title
  227. \if@tempsep\usebeamertemplate{footline separator}\hskip0.6ex\fi
  228. {\usebeamerfont{title in head/foot}%
  229. \insertshorttitle}%
  230. \@tempseptrue
  231. \fi
  232. % logo right:
  233. \if@beamer@footline@logoright%
  234. \ifx\insertlogo\@empty\else\quad \raisebox{-1ex}{\insertlogo}\fi%
  235. \fi
  236. \end{beamercolorbox}
  237. }
  238. \setbeamertemplate{footline}[pageright]
  239. \setbeamercolor{footline line}{parent=footline}
  240. %%%%% frametitle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  241. %%%%% frametitle line:
  242. \defbeamertemplate{frametitle line}{text}[1][1pt]%
  243. {\beamer@horizontal@line@bottom{frametitle line}{#1}}
  244. \defbeamertemplate{frametitle line}{page}[1][1pt]%
  245. {
  246. \ifbeamercolorempty[fg]{frametitle line}{}{%
  247. \nointerlineskip%
  248. \begin{beamercolorbox}[wd=\paperwidth,dp=0pt,ht=#1,sep=0pt,%
  249. leftskip=0pt,rightskip=0pt]{frametitle line}%
  250. \rule{\paperwidth}{#1}%
  251. \end{beamercolorbox}%
  252. }%
  253. }
  254. \setbeamertemplate{frametitle line}[text][0.5pt]
  255. %%%%% frametitle: boxline
  256. \defbeamertemplate{frametitle}{boxline}%
  257. {
  258. \ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
  259. \usebeamerfont{frametitle}%
  260. \begin{beamercolorbox}[wd=1\paperwidth,dp=1.2ex,ht=3.2ex,sep=0pt,%
  261. leftskip=1\beamer@leftmargin,rightskip=1\beamer@rightmargin]{frametitle}
  262. % logo left:
  263. \if@beamer@frametitle@logoleft%
  264. \ifx\insertlogo\@empty\else\raisebox{-0.7ex}{\insertlogo}\quad\fi%
  265. \fi
  266. % title:
  267. \insertframetitle\strut%
  268. % logo right:
  269. \if@beamer@frametitle@logoright%
  270. \ifx\insertlogo\@empty\else\hfill \raisebox{-0.7ex}{\insertlogo}\fi%
  271. \fi
  272. \end{beamercolorbox}%
  273. \usebeamertemplate{frametitle line}%
  274. % subtitle:
  275. \ifx\insertframesubtitle\@empty\else%
  276. \vspace{-0.5ex}
  277. \begin{beamercolorbox}[wd=1\paperwidth,sep=0pt,%
  278. leftskip=1\beamer@leftmargin,rightskip=1\beamer@rightmargin]{framesubtitle}
  279. \usebeamerfont{framesubtitle}\insertframesubtitle\strut
  280. \end{beamercolorbox}%
  281. \fi%
  282. \vspace{-1ex}
  283. }
  284. \setbeamertemplate{frametitle}[boxline]
  285. %%%%% itemize and enumerate %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  286. %%%%% itemize symbols:
  287. \newcommand{\itemarrow}{\tikz[baseline]{%
  288. \draw[line width=0.2ex] (0ex, 0.2ex) -- (0.45ex,0.7ex) -- (0ex, 1.2ex);}}
  289. \newcommand{\itemfilledarrow}{\tikz[baseline]{%
  290. \filldraw[line width=0.2ex] (0ex, 0.2ex) -- (0.5ex,0.7ex) -- (0ex, 1.2ex) -- cycle;}}
  291. \newcommand{\itemdash}{\tikz[baseline]{%
  292. \draw[line width=0.2ex] (0ex, 0.7ex) -- (0.9ex,0.7ex);}}
  293. \newcommand{\checkit}{{\usebeamercolor[fg]{itemize item check}\ding{51}}} % or \checkmark
  294. \newcommand{\uncheckit}{{\usebeamercolor[fg]{itemize item uncheck}\ding{55}}}
  295. \defbeamertemplate{itemize item}{arrow}{\itemarrow}
  296. \defbeamertemplate{itemize item}{filledarrow}{\itemfilledarrow}
  297. \defbeamertemplate{itemize item}{dash}{\itemdash}
  298. \defbeamertemplate{itemize item}{check}{\checkit}
  299. \defbeamertemplate{itemize item}{uncheck}{\uncheckit}
  300. \defbeamertemplatealias{itemize item}{emph}{filledarrow}
  301. \defbeamertemplatealias{itemize item}{message}{arrow}
  302. \defbeamertemplate{itemize subitem}{arrow}{\itemarrow}
  303. \defbeamertemplate{itemize subitem}{dash}{\itemdash}
  304. \defbeamertemplate{itemize subitem}{check}{\checkmark}
  305. % default, triangle, circle, square, ball, arrow, dash, check, uncheck:
  306. \setbeamertemplate{itemize item}[arrow]
  307. \setbeamertemplate{itemize subitem}[dash]
  308. %%%%% emph item:
  309. \newenvironment{emphenv}{\only{\setbeamertemplate{itemize item}[emph]}}{}
  310. %%%%% check item:
  311. \newenvironment{checkenv}{\only{\setbeamertemplate{itemize item}[check]}}{}
  312. %%%%% uncheck item:
  313. \newenvironment{uncheckenv}{\only{\setbeamertemplate{itemize item}[uncheck]}}{}
  314. %%%%% message like item:
  315. \newenvironment{messageenv}{\only{\setbeamertemplate{itemize item}[message]\setbeamercolor{itemize item}{use={message item symbol},fg=message item symbol.fg}\usebeamerfont{message item}\usebeamercolor[fg]{message item}}}{}
  316. %%%%% enumerate style:
  317. \defbeamertemplate{enumerate item}{alph}{\alph{enumi})}
  318. \defbeamertemplate{enumerate item}{Alph}{\Alph{enumi})}
  319. \defbeamertemplate{enumerate item}{arabic}{\arabic{enumi}.}
  320. \defbeamertemplate{enumerate item}{roman}{\roman{enumi}.}
  321. \defbeamertemplate{enumerate item}{Roman}{\Roman{enumi}.}
  322. \defbeamertemplate{enumerate subitem}{alph}{\alph{enumii})}
  323. \defbeamertemplate{enumerate subitem}{arabic}{\arabic{enumii})}
  324. \defbeamertemplate{enumerate subitem}{roman}{\roman{enumii})}
  325. \setbeamertemplate{enumerate item}[arabic] % default, circle, square, ball, alph, Alph, arabic, roman, Roman
  326. \setbeamertemplate{enumerate subitem}[alph] % default, circle, square, ball, alph, arabic, roman
  327. %%%%% block environments:
  328. \newcommand{\block@lines@begin}[4]{%
  329. \par\vskip\medskipamount%
  330. \usebeamerfont{#1 title#2}%
  331. \setbox0=\hbox{\insertblocktitle\unskip}%
  332. \ifdim\wd0=0pt\else%
  333. \beamer@horizontal@line@top{#1 line#2 top}{#3}
  334. \begin{beamercolorbox}[wd=\linewidth,ht=2.4ex,dp=0.9ex,leftskip=2mm,rightskip=2mm]{#1 title#2}
  335. \strut\insertblocktitle
  336. \end{beamercolorbox}
  337. \fi
  338. \nointerlineskip
  339. \beamer@horizontal@line@top{#1 line#2 middle}{#4}
  340. \usebeamerfont{#1 body#2}%
  341. \begin{beamercolorbox}[wd=\linewidth,sep=2mm]{#1 body#2}
  342. }
  343. \newcommand{\block@lines@end}[3]{%
  344. \vspace{-0.4ex}%
  345. \end{beamercolorbox}%
  346. \beamer@horizontal@line@bottom{#1 line#2 bottom}{#3}
  347. }
  348. %%%%% block environment:
  349. \defbeamertemplate{block begin}{lines}[2]{\block@lines@begin{block}{}{#1}{#2}}
  350. \defbeamertemplate{block end}{lines}[1]{\block@lines@end{block}{}{#1}}
  351. \setbeamertemplate{block begin}[lines]{0.5pt}{0.5pt}
  352. \setbeamertemplate{block end}[lines]{0.5pt}
  353. \setbeamercolor{block line top}{fg=}
  354. \setbeamercolor{block line middle}{fg=}
  355. \setbeamercolor{block line bottom}{fg=}
  356. %%%%% block alerted environment:
  357. \defbeamertemplate{block alerted begin}{lines}[2]{\block@lines@begin{block}{ alerted}{#1}{#2}}
  358. \defbeamertemplate{block alerted end}{lines}[1]{\block@lines@end{block}{ alerted}{#1}}
  359. \setbeamertemplate{block alerted begin}[lines]{0.5pt}{0.5pt}
  360. \setbeamertemplate{block alerted end}[lines]{0.5pt}
  361. \setbeamercolor{block line alerted top}{fg=}
  362. \setbeamercolor{block line alerted middle}{fg=}
  363. \setbeamercolor{block line alerted bottom}{fg=}
  364. %%%%% block example environment:
  365. \defbeamertemplate{block example begin}{lines}[2]{\block@lines@begin{block}{ example}{#1}{#2}}
  366. \defbeamertemplate{block example end}{lines}[1]{\block@lines@end{block}{ example}{#1}}
  367. \setbeamertemplate{block example begin}[lines]{0.5pt}{0.5pt}
  368. \setbeamertemplate{block example end}[lines]{0.5pt}
  369. \setbeamercolor{block line example top}{fg=}
  370. \setbeamercolor{block line example middle}{fg=}
  371. \setbeamercolor{block line example bottom}{fg=}
  372. %%%%% theorem environments (theorem, corollary, fact, lemma, definition, example):
  373. \newenvironment<>{theoremblock}[1]{%
  374. \begin{actionenv}#2%
  375. \def\insertblocktitle{#1}%
  376. \par%
  377. \usebeamertemplate{block theorem begin}}
  378. {\par%
  379. \usebeamertemplate{block theorem end}%
  380. \end{actionenv}}
  381. \renewcommand{\inserttheoremblockenv}{theoremblock}
  382. \renewcommand{\inserttheoremheadfont}{}
  383. \defbeamertemplate{block theorem begin}{lines}[2]{\block@lines@begin{theorem}{}{#1}{#2}}
  384. \defbeamertemplate{block theorem end}{lines}[1]{\block@lines@end{theorem}{}{#1}}
  385. \setbeamertemplate{block theorem begin}[lines]{0.5pt}{0.5pt}
  386. \setbeamertemplate{block theorem end}[lines]{0.5pt}
  387. \setbeamercolor{theorem line top}{fg=}
  388. \setbeamercolor{theorem line middle}{fg=}
  389. \setbeamercolor{theorem line bottom}{fg=}
  390. %%%%% new message box command:
  391. \defbeamertemplate{message symbol}{default}{}
  392. \defbeamertemplate{message symbol}{circle}{\raisebox{0.1ex}{$\bullet$}}
  393. \defbeamertemplate{message symbol}{arrow}{\itemarrow}
  394. \setbeamertemplate{message symbol}[circle]
  395. \newcommand{\message@box@body}{
  396. \begin{beamercolorbox}[vmode,wd=\linewidth,sep=1mm,leftskip=1mm,rightskip=1mm]{message}
  397. \setbox0=\hbox{\usebeamertemplate{message symbol}\unskip}%
  398. \ifdim\wd0=0pt%
  399. \strut\insertmessage
  400. \else
  401. \begin{list}
  402. {\usebeamercolor[fg]{message symbol}
  403. \usebeamertemplate{message symbol}}
  404. {\itemindent 0pt
  405. \labelwidth 1ex
  406. \labelsep 0.6ex
  407. \leftmargin 2.5ex
  408. \rightmargin 1mm}
  409. \item\relax\usebeamercolor[fg]{message}\relax
  410. \insertmessage
  411. \end{list}
  412. \vspace{-0.6ex}
  413. \fi
  414. \end{beamercolorbox}
  415. }
  416. \defbeamertemplate{message}{default}{%
  417. \par\vskip\medskipamount%
  418. \usebeamerfont{message}%
  419. \message@box@body
  420. }
  421. \defbeamertemplate{message}{lines}[2]{%
  422. \par\vskip\medskipamount%
  423. \usebeamerfont{message}%
  424. \beamer@horizontal@line@top{message line top}{#1}
  425. \message@box@body
  426. \beamer@horizontal@line@bottom{message line bottom}{#2}
  427. }
  428. \setbeamertemplate{message}[lines]{1pt}{1pt}
  429. \newcommand<>{\messagebox}[1]{%
  430. \only#2{\def\insertmessage{#1}%
  431. \usebeamertemplate*{message}}
  432. }
  433. \setbeamercolor{message}{parent=block title alerted}
  434. \setbeamercolor{message line top}{fg=}
  435. \setbeamercolor{message line bottom}{fg=}
  436. \setbeamercolor{message symbol}{fg=}
  437. \setbeamercolor{message item}{use=alerted text, fg=alerted text.fg}
  438. \setbeamercolor{message item symbol}{use=alerted text, fg=alerted text.fg}
  439. % verse environment:
  440. \expandafter\let\csname beamer@@tmpop@verse begin@default\endcsname\relax % remove old template
  441. \defbeamertemplate{verse begin}{default}{}
  442. \defbeamertemplate{verse begin}{lines}[1][1pt]{\beamer@horizontal@line@top{verse line top}{#1}\vskip1ex}
  443. \setbeamertemplate{verse begin}[lines][0.5pt] % default, lines
  444. \expandafter\let\csname beamer@@tmpop@verse end@default\endcsname\relax % remove old template
  445. \defbeamertemplate{verse end}{default}{}
  446. \defbeamertemplate{verse end}{lines}[1][1pt]{\beamer@horizontal@line@bottom{verse line bottom}{#1}}
  447. \setbeamertemplate{verse end}[lines][0.5pt] % default, lines
  448. \renewenvironment<>{verse}
  449. { \actionenv#1%
  450. \setlength{\beamer@quotation@tmp}{\linewidth}
  451. \beamercolorbox[vmode,wd=\linewidth]{verse}
  452. \usebeamertemplate{verse begin}
  453. \usebeamerfont*{verse}%
  454. \list{}{
  455. \leftmargin 2.5em
  456. \rightmargin 2.5em
  457. \parsep 1ex
  458. }%
  459. \item\relax
  460. }
  461. {%
  462. \endlist
  463. \setlength{\linewidth}{\beamer@quotation@tmp}
  464. \usebeamertemplate{verse end}
  465. \endbeamercolorbox
  466. \endactionenv%
  467. }
  468. \setbeamercolor{verse line top}{fg=}
  469. \setbeamercolor{verse line bottom}{fg=}
  470. %%%%% quotation, quote:
  471. % font selection
  472. % https://tex.stackexchange.com/questions/25249/how-do-i-use-a-particular-font-for-a-small-section-of-text-in-my-document
  473. % pbk , phv, pnc, qcs
  474. \newcommand{\openquote}[2]{\tikz[baseline]{%
  475. \useasboundingbox (0, 0) rectangle (1ex, 1.7ex);
  476. \node[scale=#2, xshift=-0.28ex, yshift=-0.75ex] at (current bounding box.north east) {\usebeamerfont*{#1 symbol}\textquoteleft};
  477. }}
  478. \newcommand{\closequote}[2]{\tikz[baseline]{%
  479. \useasboundingbox (0, 0) rectangle (1ex, 1.7ex);
  480. \node[scale=#2, xshift=-0.28ex, yshift=-0.75ex] at (current bounding box.north east) {\usebeamerfont*{#1 symbol}\textquoteright};
  481. }}
  482. \newcommand{\opendblquote}[2]{\tikz[baseline]{%
  483. \useasboundingbox (0, 0) rectangle (1ex, 1.7ex);
  484. \node[scale=#2, xshift=-0.45ex, yshift=-0.75ex] at (current bounding box.north east) {\usebeamerfont*{#1 symbol}\textquotedblleft};
  485. }}
  486. \newcommand{\closedblquote}[2]{\tikz[baseline]{%
  487. \useasboundingbox (0, 0) rectangle (1ex, 1.7ex);
  488. \node[scale=#2, xshift=-0.45ex, yshift=-0.75ex] at (current bounding box.north east) {\usebeamerfont*{#1 symbol}\textquotedblright};
  489. }}
  490. \def\insertquotesource{}
  491. % #1: template base name
  492. % #2: symbol to the left of the source
  493. % #3: symbol to the right of the source
  494. \newcommand{\quote@source@left}[3]{%
  495. \ifx\insertquotesource\@empty\else%
  496. \item[%
  497. \usebeamerfont{#1 source}%
  498. \usebeamercolor{#1 source}%
  499. #2\insertquotesource#3]%
  500. \fi}
  501. \newcommand{\quote@source@right}[3]{%
  502. \ifx\insertquotesource\@empty\else%
  503. \par{}\hfill%
  504. \usebeamerfont{#1 source}%
  505. \usebeamercolor{#1 source}%
  506. #2\insertquotesource#3%
  507. \fi}
  508. % linebreaking from
  509. % https://tex.stackexchange.com/questions/13756/quote-environment-with-reference-at-the-end-right :
  510. \newcommand{\quote@source@rightline}[3]{%
  511. \ifx\insertquotesource\@empty\else%
  512. \leavevmode\unskip\nobreak\hfil\penalty50\hskip2em\hbox{}\nobreak\hfil%
  513. \usebeamerfont{#1 source}%
  514. \usebeamercolor{#1 source}%
  515. \makebox{#2\insertquotesource#3}%
  516. \parfillskip=0pt \finalhyphendemerits=0 \endgraf%
  517. \fi}
  518. % quotation environment
  519. \defbeamertemplate{quotation symbol}{default}{}
  520. \defbeamertemplate{quotation symbol}{openquote}[1][4]{\usebeamercolor[fg]{quotation symbol}\openquote{quotation}{#1}}
  521. \defbeamertemplate{quotation symbol}{closequote}[1][4]{\usebeamercolor[fg]{quotation symbol}\closequote{quotation}{#1}}
  522. \defbeamertemplate{quotation symbol}{opendblquote}[1][4]{\usebeamercolor[fg]{quotation symbol}\opendblquote{quotation}{#1}}
  523. \defbeamertemplate{quotation symbol}{closedblquote}[1][4]{\usebeamercolor[fg]{quotation symbol}\closedblquote{quotation}{#1}}
  524. \setbeamertemplate{quotation symbol}[opendblquote][4] % default, openquote, closequote, opendblquote, closedblquote
  525. \defbeamertemplate{quotation source}{default}{}
  526. \defbeamertemplate{quotation source}{left}{\quote@source@left{quotation}{}{}}
  527. \defbeamertemplate{quotation source}{leftbrackets}{\quote@source@left{quotation}{(}{)}}
  528. \defbeamertemplate{quotation source}{right}{\quote@source@right{quotation}{}{}}
  529. \defbeamertemplate{quotation source}{rightbrackets}{\quote@source@right{quotation}{(}{)}}
  530. \defbeamertemplate{quotation source}{dashright}{\quote@source@right{quotation}{ --- }{}}
  531. \defbeamertemplate{quotation source}{tilderight}{\quote@source@right{quotation}{ $\sim$ }{}}
  532. \defbeamertemplate{quotation source}{rightline}{\quote@source@rightline{quotation}{}{}}
  533. \defbeamertemplate{quotation source}{rightlinebrackets}{\quote@source@rightline{quotation}{(}{)}}
  534. \defbeamertemplate{quotation source}{dashrightline}{\quote@source@rightline{quotation}{ --- }{}}
  535. \defbeamertemplate{quotation source}{tilderightline}{\quote@source@rightline{quotation}{ $\sim$ }{}}
  536. % default, left, leftbrackets, right, rightbrackets, dashright, tilderight,
  537. % rightline, rightlinebrackets, dashrightline, tilderightline:
  538. \setbeamertemplate{quotation source}[dashrightline]
  539. \expandafter\let\csname beamer@@tmpop@quotation begin@default\endcsname\relax % remove old template
  540. \defbeamertemplate{quotation begin}{default}{}
  541. \defbeamertemplate{quotation begin}{lines}[1][1pt]{\beamer@horizontal@line@top{quotation line top}{#1}\vskip1ex}
  542. \setbeamertemplate{quotation begin}[lines][0.5pt] % default, lines
  543. \expandafter\let\csname beamer@@tmpop@quotation end@default\endcsname\relax % remove old template
  544. \defbeamertemplate{quotation end}{default}{}
  545. \defbeamertemplate{quotation end}{lines}[1][1pt]{\beamer@horizontal@line@bottom{quotation line bottom}{#1}}
  546. \setbeamertemplate{quotation end}[lines][0.5pt] % default, lines
  547. \newlength{\beamer@quotation@tmp}
  548. % see definition in /usr/share/texmf/tex/latex/beamer/base/beamerbaselocalstructure.sty
  549. \renewenvironment<>{quotation}[1][]
  550. { \def\insertquotesource{#1}
  551. \actionenv#2%
  552. \setlength{\beamer@quotation@tmp}{\linewidth}
  553. \beamercolorbox[vmode,wd=\linewidth]{quotation}
  554. \usebeamertemplate{quotation begin}
  555. \usebeamerfont*{quotation}%
  556. \setbox0=\hbox{\usebeamertemplate{quotation symbol}\unskip}%
  557. \ifdim\wd0=0pt
  558. \list{}{
  559. \leftmargin 1em
  560. \rightmargin 1em
  561. \listparindent 1.5em
  562. \itemindent \listparindent
  563. \parsep \z@ \@plus\p@
  564. }%
  565. \item\relax
  566. \else
  567. \list{}{
  568. \leftmargin 2.5em
  569. \rightmargin 2em
  570. \listparindent 1.5em
  571. \itemindent \listparindent
  572. \labelsep \listparindent
  573. \advance\labelsep by 0.5ex\relax
  574. \parsep \z@ \@plus\p@
  575. }%
  576. \item[\usebeamertemplate{quotation symbol}]\relax
  577. \fi
  578. }
  579. {%
  580. \usebeamercolor[fg]{quotation source}\usebeamertemplate{quotation source}
  581. \endlist
  582. \setlength{\linewidth}{\beamer@quotation@tmp}
  583. \usebeamertemplate{quotation end}
  584. \endbeamercolorbox
  585. \endactionenv%
  586. }
  587. \setbeamercolor{quotation symbol}{parent=structure}
  588. \setbeamercolor{quotation source}{}
  589. \setbeamercolor{quotation line top}{fg=}
  590. \setbeamercolor{quotation line bottom}{fg=}
  591. % quote environment:
  592. \defbeamertemplate{quote symbol}{default}{}
  593. \defbeamertemplate{quote symbol}{openquote}[1][4]{{\usebeamercolor[fg]{quote symbol}\openquote{quote}{#1}}}
  594. \defbeamertemplate{quote symbol}{closequote}[1][4]{{\usebeamercolor[fg]{quote symbol}\closequote{quote}{#1}}}
  595. \defbeamertemplate{quote symbol}{opendblquote}[1][4]{{\usebeamercolor[fg]{quote symbol}\opendblquote{quote}{#1}}}
  596. \defbeamertemplate{quote symbol}{closedblquote}[1][4]{{\usebeamercolor[fg]{quote symbol}\closedblquote{quote}{#1}}}
  597. \setbeamertemplate{quote symbol}[opendblquote][4] % default, openquote, closequote, opendblquote, closedblquote
  598. \defbeamertemplate{quote source}{default}{}
  599. \defbeamertemplate{quote source}{left}{\quote@source@left{quote}{}{}}
  600. \defbeamertemplate{quote source}{leftbrackets}{\quote@source@left{quote}{(}{)}}
  601. \defbeamertemplate{quote source}{right}{\quote@source@right{quote}{}{}}
  602. \defbeamertemplate{quote source}{rightbrackets}{\quote@source@right{quote}{(}{)}}
  603. \defbeamertemplate{quote source}{dashright}{\quote@source@right{quote}{ --- }{}}
  604. \defbeamertemplate{quote source}{tilderight}{\quote@source@right{quote}{ $\sim$ }{}}
  605. \defbeamertemplate{quote source}{rightline}{\quote@source@rightline{quote}{}{}}
  606. \defbeamertemplate{quote source}{rightlinebrackets}{\quote@source@rightline{quote}{(}{)}}
  607. \defbeamertemplate{quote source}{dashrightline}{\quote@source@rightline{quote}{ --- }{}}
  608. \defbeamertemplate{quote source}{tilderightline}{\quote@source@rightline{quote}{ $\sim$ }{}}
  609. % default, left, leftbrackets, right, rightbrackets, dashright, tilderight,
  610. % rightline, rightlinebrackets, dashrightline, tilderightline:
  611. \setbeamertemplate{quote source}[dashrightline]
  612. \expandafter\let\csname beamer@@tmpop@quote begin@default\endcsname\relax % remove old template
  613. \defbeamertemplate{quote begin}{default}{}
  614. \defbeamertemplate{quote begin}{lines}[1][1pt]{\beamer@horizontal@line@top{quote line top}{#1}\vskip1ex}
  615. \setbeamertemplate{quote begin}[lines][0.5pt] % default, lines
  616. \expandafter\let\csname beamer@@tmpop@quote end@default\endcsname\relax % remove old template
  617. \defbeamertemplate{quote end}{default}{}
  618. \defbeamertemplate{quote end}{lines}[1][1pt]{\beamer@horizontal@line@bottom{quote line bottom}{#1}}
  619. \setbeamertemplate{quote end}[lines][0.5pt] % default, lines
  620. \renewenvironment<>{quote}[1][]
  621. { \def\insertquotesource{#1}
  622. \actionenv#2%
  623. \setlength{\beamer@quotation@tmp}{\linewidth}
  624. \beamercolorbox[vmode,wd=\linewidth]{quote}%
  625. \usebeamertemplate{quote begin}%
  626. \usebeamerfont*{quote}%
  627. \setbox0=\hbox{\usebeamertemplate{quote symbol}\unskip}%
  628. \ifdim\wd0=0pt
  629. \list{}{
  630. \leftmargin 2.5em
  631. \rightmargin 2.5em
  632. \parsep 1ex
  633. }%
  634. \item\relax%
  635. \else
  636. \list{}{
  637. \leftmargin 2.5em
  638. \rightmargin 2.5em
  639. \labelsep 0.5ex
  640. \parsep 1ex
  641. }%
  642. \item[\usebeamertemplate{quote symbol}]\relax%
  643. \fi%
  644. }
  645. {%
  646. \usebeamercolor[fg]{quote source}\usebeamertemplate{quote source}
  647. \endlist
  648. \setlength{\linewidth}{\beamer@quotation@tmp}
  649. \usebeamertemplate{quote end}
  650. \endbeamercolorbox%
  651. \endactionenv%
  652. }
  653. \setbeamercolor{quote symbol}{parent=structure}
  654. \setbeamercolor{quote source}{}
  655. \setbeamercolor{quote line top}{fg=}
  656. \setbeamercolor{quote line bottom}{fg=}
  657. %%%%% title page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  658. %%%%% title page logo line:
  659. \defbeamertemplate{title page logo line}{text}[1][1pt]%
  660. {\beamer@horizontal@line@bottom{title page logo line}{#1}}
  661. \defbeamertemplate{title page logo line}{page}[1][1pt]%
  662. {
  663. \ifbeamercolorempty[fg]{title page logo line}{}{%
  664. \nointerlineskip%
  665. \begin{beamercolorbox}[wd=\paperwidth,dp=0pt,ht=#1,sep=0pt,%
  666. leftskip=0pt,rightskip=0pt]{title page logo line}%
  667. \rule{\paperwidth}{#1}%
  668. \end{beamercolorbox}%
  669. }%
  670. }
  671. \setbeamertemplate{title page logo line}[text][0.5pt]
  672. %%%%% title page graphic line:
  673. \defbeamertemplate{title page graphic line}{default}[1][1ex]%
  674. {\beamer@horizontal@line@bottom{title page graphic line}{#1}}
  675. \setbeamertemplate{title page graphic line}[default][1.5ex]
  676. %%%%% title page title line:
  677. \defbeamertemplate{title page title line}{default}[1][1ex]%
  678. {\beamer@horizontal@line@bottom{title page title line}{#1}}
  679. \setbeamertemplate{title page title line}[default][0.2ex]
  680. %%%%% title page author \and command:
  681. \defbeamertemplate{title page author and}{space}{\def\beamer@andtitle{\quad}}
  682. \defbeamertemplate{title page author and}{comma}{\def\beamer@andtitle{,\quad}}
  683. \defbeamertemplate{title page author and}{line}{\def\beamer@andtitle{\enspace$\vert$\enspace\thickspace}}
  684. \defbeamertemplate{title page author and}{and}{\def\beamer@andtitle{\thickspace\&\enspace}}
  685. \setbeamertemplate{title page author and}[line]
  686. %%%%% title page institute \and command:
  687. \defbeamertemplate{title page institute and}{default}{}
  688. \defbeamertemplate{title page institute and}{space}{\def\beamer@andinst{\quad}}
  689. \defbeamertemplate{title page institute and}{comma}{\def\beamer@andinst{,\quad}}
  690. \defbeamertemplate{title page institute and}{line}{\def\beamer@andinst{\enspace$\vert$\enspace\thickspace}}
  691. \setbeamertemplate{title page institute and}[line]
  692. %%%%% title page: leftlines
  693. \defbeamertemplate*{title page}{leftlines}
  694. {
  695. \vbox{}
  696. % title logo with line:
  697. \ifx\inserttitlelogo\@empty\else%
  698. \begin{beamercolorbox}[wd=\linewidth]{titlelogo}
  699. \inserttitlelogo%
  700. \end{beamercolorbox}%
  701. \vspace{1.2ex}
  702. \ifbeamercolorempty[fg]{title page logo line}{}{%
  703. \usebeamertemplate{title page logo line}%
  704. \vspace{1ex}}
  705. \fi
  706. % title graphic:
  707. \ifx\inserttitlegraphic\@empty\else%
  708. \begin{beamercolorbox}[wd=\linewidth]{titlegraphic}
  709. \inserttitlegraphic%
  710. \end{beamercolorbox}%
  711. \usebeamertemplate{title page graphic line}%
  712. \fi%
  713. \vfill\vfill\vfill
  714. % title:
  715. \begin{beamercolorbox}[wd=\linewidth]{title}
  716. \usebeamerfont{title}\inserttitle\par%
  717. \end{beamercolorbox}%
  718. % subtitle:
  719. \ifx\insertsubtitle\@empty\else%
  720. \vspace{1ex}
  721. \begin{beamercolorbox}[wd=\linewidth]{subtitle}
  722. \usebeamerfont{subtitle}\insertsubtitle\par%
  723. \end{beamercolorbox}%
  724. \fi%
  725. \vfill
  726. \usebeamertemplate{title page title line}%
  727. \vfill
  728. % author:
  729. \begin{beamercolorbox}[wd=\linewidth]{author}
  730. \usebeamertemplate{title page author and}%
  731. \usebeamerfont{author}\insertauthor
  732. \end{beamercolorbox}
  733. \vfill
  734. % institute and date:
  735. \begin{beamercolorbox}[wd=\linewidth]{institute}
  736. \usebeamertemplate{title page institute and}%
  737. \usebeamerfont{institute}\insertinstitute
  738. \hfill
  739. \usebeamerfont{date}\insertdate
  740. \end{beamercolorbox}
  741. }
  742. %%%%% title page: centerlines
  743. \defbeamertemplate*{title page}{centerlines}
  744. {
  745. \vbox{}
  746. % title logo with line:
  747. \ifx\inserttitlelogo\@empty\else%
  748. \begin{beamercolorbox}[wd=\linewidth,center]{titlelogo}
  749. \inserttitlelogo%
  750. \end{beamercolorbox}%
  751. \vspace{1.2ex}
  752. \usebeamertemplate{title page logo line}%
  753. \vspace{1ex}
  754. \fi
  755. % title graphic:
  756. \ifx\inserttitlegraphic\@empty\else%
  757. \begin{beamercolorbox}[wd=\linewidth,center]{titlegraphic}
  758. \inserttitlegraphic%
  759. \end{beamercolorbox}%
  760. \usebeamertemplate{title page graphic line}%
  761. \fi%
  762. \vfill\vfill\vfill
  763. % title:
  764. \begin{beamercolorbox}[wd=\linewidth,center]{title}
  765. \usebeamerfont{title}\inserttitle\par%
  766. \end{beamercolorbox}%
  767. % subtitle:
  768. \ifx\insertsubtitle\@empty\else%
  769. \vspace{1ex}
  770. \begin{beamercolorbox}[wd=\linewidth,center]{subtitle}
  771. \usebeamerfont{subtitle}\insertsubtitle\par%
  772. \end{beamercolorbox}%
  773. \fi%
  774. \vfill
  775. \usebeamertemplate{title page title line}%
  776. \vfill
  777. % author:
  778. \begin{beamercolorbox}[wd=\linewidth,center]{author}
  779. \usebeamertemplate{title page author and}%
  780. \usebeamerfont{author}\insertauthor
  781. \end{beamercolorbox}
  782. \vfill
  783. % institute and date:
  784. \begin{beamercolorbox}[wd=\linewidth,center]{institute}
  785. \usebeamertemplate{title page institute and}%
  786. \usebeamerfont{institute}\insertinstitute
  787. \hfill
  788. \usebeamerfont{date}\insertdate
  789. \end{beamercolorbox}
  790. }
  791. \setbeamertemplate{title page}[leftlines]
  792. %%%%% section page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  793. % section name separator: space
  794. \defbeamertemplate{section name separator}{space}{}
  795. % section name separator: text
  796. \defbeamertemplate{section name separator}{text}[1][1pt]%
  797. {{\usebeamercolor[fg]{section name separator}\rule[-0.5ex]{#1}{2.4ex}}}
  798. \setbeamertemplate{section name separator}[text][1pt]
  799. %%%%% section page: left
  800. \defbeamertemplate{section page}{left}[1][0.3\textheight]
  801. {
  802. \vspace{#1}%
  803. \begin{columns}[t,onlytextwidth]
  804. \begin{column}{0.1\textwidth}
  805. \usebeamerfont{section name}%
  806. \raggedleft{\usebeamercolor[fg]{section name}%
  807. \makebox[0.5\linewidth][r]{\insertsectionnumber}%
  808. \makebox[0.5\linewidth][c]{\usebeamertemplate{section name separator}}}%
  809. \end{column}
  810. \begin{column}{0.9\textwidth}
  811. \usebeamerfont{section title}%
  812. {\usebeamercolor[fg]{section title}\hypersetup{linkcolor=}\insertsection}%
  813. \ifx\insertsectiongraphic\@empty\else%
  814. \vspace{1.5ex}
  815. \begin{beamercolorbox}[wd=\linewidth]{sectiongraphic}
  816. \usebeamerfont{normal text}%
  817. \insertsectiongraphic%
  818. \end{beamercolorbox}%
  819. \fi
  820. \end{column}
  821. \end{columns}
  822. }
  823. \setbeamertemplate{section page}[left][0.3\textheight]
  824. %%%%% start each section with a special slide:
  825. \AtBeginSection{
  826. \frame[plain]{\sectionpage}
  827. }
  828. %%%%% subsection page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  829. % subsection page separator: space
  830. \defbeamertemplate{subsection name separator}{space}{}
  831. % subsection page separator: text
  832. \defbeamertemplate{subsection name separator}{text}[1][1pt]%
  833. {{\usebeamercolor[fg]{subsection name separator}\rule[-0.5ex]{#1}{2.4ex}}}
  834. \setbeamertemplate{subsection name separator}[text][1pt]
  835. %%%%% subsection page: left
  836. \defbeamertemplate{subsection page}{left}[1][0.3\textheight]%
  837. {
  838. \vspace{#1}%
  839. \begin{columns}[t,onlytextwidth]
  840. \begin{column}{0.1\textwidth}
  841. \usebeamerfont{section name}%
  842. \raggedleft{\usebeamercolor[fg]{section name}%
  843. \makebox[0.5\linewidth][r]{\insertsectionnumber}%
  844. \makebox[0.5\linewidth][c]{\usebeamertemplate{section name separator}}}%
  845. \end{column}
  846. \begin{column}{0.9\textwidth}
  847. \usebeamerfont{section title}%
  848. {\usebeamercolor[fg]{section title}\hypersetup{linkcolor=}\insertsection}%
  849. \end{column}
  850. \end{columns}
  851. \vspace{2ex}
  852. \begin{columns}[t,onlytextwidth]
  853. \begin{column}{0.1\textwidth}
  854. \raggedleft%
  855. \usebeamerfont{subsection name}%
  856. {\usebeamercolor[fg]{subsection name}%
  857. \makebox[0.5\linewidth][r]{\insertsubsectionnumber}%
  858. \makebox[0.5\linewidth][c]{\usebeamertemplate{subsection name separator}}}%
  859. \end{column}
  860. \begin{column}{0.9\textwidth}
  861. \usebeamerfont{subsection title}%
  862. {\usebeamercolor[fg]{subsection title}\hypersetup{linkcolor=}\insertsubsection}%
  863. \ifx\insertsectiongraphic\@empty\else%
  864. \vspace{1.5ex}
  865. \begin{beamercolorbox}[wd=\linewidth]{subsectiongraphic}
  866. \usebeamerfont{normal text}%
  867. \insertsubsectiongraphic%
  868. \end{beamercolorbox}%
  869. \fi
  870. \end{column}
  871. \end{columns}
  872. }
  873. \setbeamertemplate{subsection page}[left][0.3\textheight]
  874. %%%%% table of contents %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  875. % default, (sub)sections numbered, circle, square, ball, ball unnumbered:
  876. \setbeamertemplate{section in toc}[sections numbered]
  877. \setbeamertemplate{subsection in toc}[sections numbered]
  878. %%%%% fonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  879. \renewcommand{\familydefault}{\sfdefault}
  880. \setbeamerfont{normal text}{size=\normalsize}
  881. \setbeamerfont{frametitle}{size=\LARGE}
  882. \setbeamerfont{framesubtitle}{size=\large}
  883. \setbeamerfont{title}{size=\Large, shape=\bfseries}
  884. \setbeamerfont{subtitle}{size=\large, shape=\bfseries}
  885. \setbeamerfont{author}{size=\large}
  886. \setbeamerfont{institute}{size=\normalsize}
  887. \setbeamerfont{date}{size=\tiny}
  888. \setbeamerfont{block title}{parent={normal text}}
  889. \setbeamerfont{block body}{parent={normal text}}
  890. \setbeamerfont{block title alerted}{parent={block title}}
  891. \setbeamerfont{block body alerted}{parent={block body}}
  892. \setbeamerfont{block title example}{parent={block title}}
  893. \setbeamerfont{block body example}{parent={block body}}
  894. \setbeamerfont{theorem title}{parent={block title}}
  895. \setbeamerfont{theorem body}{parent={block body}}
  896. \setbeamerfont{message}{parent={normal text}, size=\large}
  897. \setbeamerfont{message item}{parent={normal text}, size=\large}
  898. \setbeamerfont{quotation}{shape=\slshape}
  899. \setbeamerfont{quotation symbol}{family*=pbk} % pbk , phv, pnc, qcs
  900. \setbeamerfont{quotation source}{parent={normal text}, size=\small, shape=\upshape}
  901. \setbeamerfont{quote}{shape=\slshape}
  902. \setbeamerfont{quote symbol}{family*=pbk} % pbk , phv, pnc, qcs
  903. \setbeamerfont{quote source}{parent={normal text}, size=\small, shape=\upshape}
  904. \setbeamerfont{verse}{shape=\itshape}
  905. \setbeamerfont*{section title}{size=\huge}
  906. \setbeamerfont*{section name}{size=\huge}
  907. \setbeamerfont*{subsection title}{size=\Large}
  908. \setbeamerfont*{subsection name}{size=\Large}
  909. \setbeamerfont{footline}{size=\footnotesize}
  910. \setbeamerfont{author in head/foot}{}
  911. \setbeamerfont{date in head/foot}{}
  912. \setbeamerfont{institute in head/foot}{}
  913. \setbeamerfont{title in head/foot}{}
  914. \setbeamerfont{page number in head/foot}{}
  915. \mode<all>