-
Notifications
You must be signed in to change notification settings - Fork 0
/
aaltobeamerfunctions.tex
58 lines (53 loc) · 1.88 KB
/
aaltobeamerfunctions.tex
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
%Intermediate section title slide
\newcommand{\slaikka}[1][Sectiontitle]{
\section{#1}
\begin{frame}[c]
\frametitle{}
\begin{center}
{\Large \color{primarycolor}{\textbf{#1}}}
\end{center}
\end{frame}
}
%%%% This for easy placemnet of figure inside a block
\newcommand{\putfig}[3][1.0]{
\begin{block}{#3}
\includegraphics[width=#1\linewidth,height=#1\textheight,keepaspectratio]{#2}
\end{block}
}
%This is for a box
\newcommand{\tbox}[3][0.3]{
\tikzoverlay (n1) at (#2) {%
\begin{tikzpicture}[every node/.style={inner sep=0.5ex,outer sep=0}]
\tikzstyle{item}=[rectangle, draw=black, rounded corners,
fill=secondarycolor!10, drop shadow,
text centered, anchor=north, text=black]
\node (thenode)[item, rectangle]{
\begin{minipage}{#1\linewidth} #3 \end{minipage}};
\end{tikzpicture}
};
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%This is for a image. For titled image, use putfig
\newcommand{\timage}[3][0.3]{
\tikzoverlay (n1) at (#2) {%
\begin{tikzpicture}[every node/.style={inner sep=0.5ex,outer sep=0}]
\tikzstyle{item}=[rectangle, draw=black, rounded corners,
fill=secondarycolor!10, drop shadow,
text centered, anchor=north, text=white]
\node (thenode)[item, rectangle]{
\includegraphics[width=#1\textwidth,height=#1\textheight,keepaspectratio]{#3}};
\end{tikzpicture}
};
}
%Ellipse
\newcommand{\tellipse}[4]{
\begin{tikzpicture}[overlay]
\draw[secondarycolor,thick] (#1,#2) ellipse (#3 and #4);
\end{tikzpicture}
}
%Arrow
\newcommand{\tarrow}[2]{
\begin{tikzpicture}[overlay]
\draw[secondarycolor,thick,->] (#1) -- (#2);
\end{tikzpicture}
}