-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerouterthemeltds.sty
139 lines (125 loc) · 3.44 KB
/
beamerouterthemeltds.sty
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
\ProvidesPackage{beamerouterthemeltds}
\mode<presentation>
\DeclareOptionBeamer{debug}{\def\ltds@debug}
\ProcessOptionsBeamer
\useoutertheme[left, height=1.2cm, width=1.8cm, headheight=1.2cm]{sidebar}
% ------------------ %
% Title page %
% ------------------ %
\newsavebox{\titlebox}
\newenvironment{title-box}[1]%
{%
\begin{lrbox}{\titlebox}
\begin{minipage}{#1}
}{%
\end{minipage}
\end{lrbox}
\noindent
\setlength{\fboxsep}{0pt}
\ifdefined\ltds@debug
\else
\setlength{\fboxrule}{0pt}
\fi
\fbox{\usebox{\titlebox}}
}
\newcommand{\model}[1]{%
\def\checkmodel{#1}
}
\newcommand{\issue}[2]{%
\def\insertmatter{#1}
\def\insertissue{#2}
}
\newcommand{\conference}[2]{%
\def\insertconfname{#2}
\def\insertconfshortname{#1}
}
\setbeamertemplate{title page}{%
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=south west, xshift=-0.12cm, yshift=-0.15cm] (background) at (current page.south west)
{%
\includegraphics[width=1.28\linewidth]{img/layout/title.jpg}
};
\end{tikzpicture}
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=north east, yshift=-0.5cm] (matter) at (current page.north east)
{%
\begin{title-box}{4cm}
\scriptsize\raggedleft\insertmatter\space-\space\insertissue\\
\tiny\raggedleft \insertdate
\end{title-box}
};
\end{tikzpicture}
\begin{tikzpicture}[remember picture,overlay]
\node [anchor=north east, yshift=-3cm] (title) at (current page.north east)
{%
\begin{title-box}{8.5cm}
\begin{center}
\Large \usebeamercolor[fg]{palette primary} \inserttitle
\end{center}
\end{title-box}
};
\node[anchor=north, below=0.2cm of title] (subtitle)
{%
\begin{title-box}{8cm}
\begin{center}
\large \usebeamercolor[fg]{palette quaternary} \insertsubtitle
\end{center}
\end{title-box}
};
\end{tikzpicture}
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=south west, xshift=1.5cm, yshift=2cm] (authors) at (current page.south west)
{%
\begin{title-box}{3cm}
{\tiny \usebeamercolor[fg]{palette primary} \insertauthor}
\end{title-box}
};
\end{tikzpicture}
}
% ------------------ %
% Table of contents %
% ------------------ %
\setbeamertemplate{section in toc}{%
\inserttocsectionnumber.~\inserttocsection
}
\setbeamertemplate{subsection in toc}{%
\quad \footnotesize \inserttocsubsectionnumber.~\inserttocsubsection \\
}
\setbeamertemplate{subsubsection in toc}{%
\qquad \scriptsize \inserttocsubsubsectionnumber.~\inserttocsubsubsection \\
}
% ------------------ %
% Sidebar %
% ------------------ %
\setbeamertemplate{sidebar canvas left}{}
\setbeamertemplate{sidebar left}{
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=south west, xshift=-0.06cm, yshift=-0.25cm] at (current page.south west)
{%
\includegraphics[height=\paperheight]{img/layout/sidebar.png}
};
\node[anchor=south west, xshift=0.6cm] at (current page.south west)
{%
\color{white} \insertpagenumber
};
\end{tikzpicture}
}
% ------------------ %
% Navigation symbols %
% ------------------ %
\setbeamertemplate{navigation symbols}{}
% ------------------ %
% Logo %
% ------------------ %
\setbeamertemplate{logo}{
\begin{beamercolorbox}{bg=palette secondary.fg}
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=north west, xshift=0.25cm, yshift=-0.3cm] at (current page.north west)
{%
\includegraphics[width=0.8\beamer@sidebarwidth]{img/logo/ltds_fr_s.jpg}
};
\end{tikzpicture}
\end{beamercolorbox}
}
\mode
<all>