summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/uantwerpendocs/beamerinnerthemeuantwerpen.sty
blob: 05f6c2c01e864339dcd00f48ae2572bb5f6ddb95 (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
%%
%% This is file `beamerinnerthemeuantwerpen.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% uantwerpendocs.dtx  (with options: `bmrinner')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2013-2021  by Walter Daems <walter.daems@uantwerpen.be>
%% 
%% This work may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.3 of this license
%% or (at your option) any later version.  The latest version of this
%% license is in:
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%% and version 1.3 or later is part of all distributions of LaTeX version
%% 2005/12/01 or later.
%% 
%% This work has the LPPL maintenance status `maintained'.
%% 
%% The Current Maintainer of this work is Walter Daems.
%% 
\def\fileversion{3.2}
\def\filedate{2021/03/23}


\mode<presentation>

\setlength\parskip{0.5\baselineskip}
\setlength\parindent{0em}

\setbeamertemplate{sections/subsections in toc}[square]
\setbeamertemplate{itemize items}[square]


\newif\if@noround
\@noroundfalse

\newcommand\uantwerpenleftshape[3][]{
  \newcommand\mycradius{0.05*(\getlength{\paperheight}-1.6)}%
  \coordinate (bl) at #2;
  \coordinate (tr) at #3;
  \if@noround
  \path[#1] (bl) rectangle (tr);
  \else
  \path[#1] (bl|-tr) -- (tr) -- (bl-|tr) -- ($(bl)+({\mycradius},0)$)
  arc(-90:-180:{\mycradius}) -- cycle;
  \fi
}
\newcommand\uantwerpenrightshape[3][]{
  \newcommand\mycradius{0.05*(\getlength{\paperheight}-1.6)}%
  \coordinate (bl) at #2;
  \coordinate (tr) at #3;
  \if@noround
  \path[#1] (bl) rectangle (tr);
  \else
  \path[#1] (bl|-tr) -- (tr) -- ($(bl-|tr)+(0,{\mycradius})$)
  arc(0:-90:{\mycradius}) -- (bl) -- cycle;
  \fi
}

\newcommand\darken[2][0.5]{%
  \begin{tikzpicture}[inner sep=0pt,outer sep=0pt]
    \node (a) {#2};
    \fill[fill=black,opacity=#1] (a.south west) rectangle (a.north east);
  \end{tikzpicture}
}

\newcommand\uantwerpencallout[4][]{
  \begin{tikzpicture}
    \uantwerpenleftshape[fill=black,fill opacity=0.0,text opacity=1,text=white,#1]{({-#2/2},-{#3/2})}{({#2/2},{#3/2})}
    \node[align=left,anchor=center] at (0,0) { \callout\\ #4 };
  \end{tikzpicture}
}

\newcommand\callout[1][scale=0.70711]{
  \begin{tikzpicture}[#1]
    \fill[maincolor] (0.4,0) -- (0.5,0) -- (0.75,-0.15) -- (0.75,0) --
    (0.9,0) arc(-90:0:0.1) -- (1,0.65) arc(0:90:0.1) -- (0.1,0.75) arc
    (90:180:0.1) -- (0,0.1) arc(-180:-90:0.1) -- cycle;
    \foreach \x in {0.35,0.7} {
      \begin{scope}[shift={(\x,0.425)},scale=0.25]
        \fill[white] (0,0) circle[radius=0.5];
        \fill[white] (0.5,0) arc(0:-90:1) --
        (-0.5,-0.725) arc(-90:0:0.725) -- cycle;
      \end{scope}
    }
  \end{tikzpicture}
}

\newcommand\uantwerpenicon[1][scale=1]{
  \includegraphics[#1]{\iconfile}
}

\newcommand\heading[1]{\par{\usebeamercolor{\maybeinverse heading}\color{fg}{\small\bfseries #1~}}}
\newcommand\subheading[1]{\par{
    \usebeamercolor{\maybeinverse
      subheading}\color{fg}{\footnotesize\it\bfseries #1~}}}

\mode
<all>
\endinput
%%
%% End of file `beamerinnerthemeuantwerpen.sty'.