-
Notifications
You must be signed in to change notification settings - Fork 0
/
presentation.tex
271 lines (232 loc) · 6.69 KB
/
presentation.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
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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
% ----------------------------------------
% ----------------------------------------
% Presentation template
% Author: Miloš D. Petrašinović <mpetrasinovic@mas.bg.ac.rs>
% Faculty of Mechanical Engineering, University of Belgrade
% Department of Aerospace Engineering, Flying structures
% https://vazmfb.com
% Belgrade, 2023
% ----------------------------------------
% ----------------------------------------
% ----------------------------------------
% Used packages definition and document format
% ----------------------------------------
\documentclass[12pt]{beamer}
\usetheme{_vazmfb}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{ulem}
\usepackage{lineno}
\usepackage{hyperref}
\usepackage{subcaption}
\usepackage{textcomp}
\usepackage{setspace}
\usepackage{gensymb}
\usepackage[numbered]{matlab-prettifier}
\usepackage{graphicx}
\usepackage[english]{babel}
\usepackage{placeins}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage[toc,title]{appendix}
\usepackage{nomencl}
\usepackage{float}
\usepackage{caption}
\usepackage{bigstrut}
\usepackage{booktabs}
\usepackage{colortbl}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{siunitx}
\usepackage{array}
\usepackage{fancyvrb}
\usepackage{icomma}
\usepackage{lmodern}
\usepackage{listings}
\usepackage{diagbox}
\usepackage{bm}
\usepackage[numbered]{matlab-prettifier}
% Folder for figures
\graphicspath{{figures/}}
% Colors
\definecolor{tamno-plava}{cmyk}{1,0.79,0.32,0.17}
\definecolor{svetlo-plava}{cmyk}{0.93,0.64,0.03,0}
\definecolor{siva}{cmyk}{0.73,0.67,0.65,0.8}
\definecolor{tamno-siva}{HTML}{aaaaaa}
\definecolor{zelena}{cmyk}{1,0,1,0.5}
% Enumerations
\newcommand\itemS{\item[\textbf{\S}]}
% Matrix
\makeatletter
\renewcommand*\env@matrix[1][c]{\hskip -\arraycolsep
\let\@ifnextchar\new@ifnextchar
\array{*\c@MaxMatrixCols #1}}
\makeatother
% Matlab code
\lstset{
style = Matlab-editor,
basicstyle = \fontfamily{pcr}\selectfont\footnotesize, % if you want to use Courier
numberstyle = \tiny\color{siva},
commentstyle = \color{zelena},
}
% Units of measurement
\sisetup{
per-mode=fraction,
fraction-function=\tfrac
}
% Norms
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\newcommand{\abs}[1]{\left\lvert#1\right\rvert}
\newcommand{\diff}[1]{\mathrm{d}#1}
% Font
\usefonttheme{default}
%\usefonttheme{serif}
% No continuation in the next row
\tolerance=1
\emergencystretch=\maxdimen
\hyphenpenalty=10000
\hbadness=10000
%----------------------------------
% INPUT DATA
%----------------------------------
\title[Course title]{Course title} % Enter course title
\subtitle{Presentation title} % Enter presentation title
\date{20.11.2023.} % Enter presentation date
\institute[Department of Aerospace Engineering]{\textbf{Department of Aerospace Engineering} \\ Faculty of Mechanical Engineering \\ University of Belgrade}
\authorsgroup{\orcid{First name Last Name}{0000-0000-0000-0000}} % Replace first and last name and 0000-0000-0000-0000 with ORCID
\webpage{vazmfb.com/course/} % Replace the course with the course address
\webpageurl{https://vazmfb.com/course/} % Replace the course with the course address
% ----------------------------------------
% BEGINNING OF THE DOCUMENT
% ----------------------------------------
\begin{document}
% ----------------------------------------
% FIRST FRAME
% ----------------------------------------
{
\setbeamertemplate{headline}{}
\setbeamertemplate{footline}{}
\maketitle
}
\addtocounter{framenumber}{-1} % without counting the first page
% ----------------------------------------
% Section
% ----------------------------------------
\section{Section title}
% ----------------------------------------
% FRAME
% ----------------------------------------
\begin{frame}{Slide title}
Inserting an image (image \ref{orao}) into the presentation % Referencing with \label and \ref
\begin{figure}
\centering
\includegraphics[width=0.9\textwidth]{orao}
\caption{Figure captiom}
\label{orao}
\end{figure}
\end{frame}
% ----------------------------------------
% FRAME
% ----------------------------------------
\begin{frame}{}
Lists and two columns on slide
\vspace{1cm} % vertical distance
% Left half
\begin{minipage}{0.49\textwidth}
\begin{itemize}
\item First
\item Second
\item Third
\end{itemize}
\end{minipage}
% Right half
\begin{minipage}{0.49\textwidth}
\begin{enumerate}
\item First
\item Second
\item Third
\end{enumerate}
\end{minipage}
\vspace{1cm} % vertical distance
\textit{Website address with link:} % Italic text
\url{https://vazmfb.com}
\href{https://vazmfb.com}{Text with link to vazmfb.com}
\end{frame}
% ----------------------------------------
% FRAME
% ----------------------------------------
\begin{frame}{New slide title}
\begin{vazmfb_block}{Definition title}
Definition text
\end{vazmfb_block}
Equation \ref{eq1} % The equation and all other elements are referenced in the same way
\begin{equation}
\label{eq1}
\Pi = \frac{1}{2} \int_{V} \bm{\varepsilon}^T\, \bm{\sigma}\, \text{d}V = \frac{1}{2} \int_{V} \bm{\varepsilon}^T\, \bm{c}\, \bm{\varepsilon}\, \diff{V}
\end{equation}
\end{frame}
% ----------------------------------------
% FRAME
% ----------------------------------------
\begin{frame}{}
Program example:
\lstinputlisting[language=Matlab, caption=Program caption]{programs/program.m}
Example of \textbf{matrix equations} % Bold text
\footnotesize
\begin{equation}
\begin{bmatrix}
\sigma_{xx} \\
\sigma_{yy} \\
\sigma_{zz} \\
\sigma_{yz} \\
\sigma_{xz} \\
\sigma_{xy} \\
\end{bmatrix}
=
\begin{bmatrix}
c_{11} & c_{12} & c_{13} & c_{14} & c_{15} & c_{16} \\
& c_{22} & c_{23} & c_{24} & c_{25} & c_{26} \\
& & c_{33} & c_{34} & c_{35} & c_{36} \\
& & & c_{44} & c_{45} & c_{46} \\
& & & & c_{55} & c_{56} \\
\multicolumn{2}{c}{\text{Sim.}} & & & & c_{66} \\
\end{bmatrix}
\begin{bmatrix}
\varepsilon_{xx} \\
\varepsilon_{yy} \\
\varepsilon_{zz} \\
\gamma_{yz} \\
\gamma_{xz} \\
\gamma_{xy} \\
\end{bmatrix}
\end{equation}
\end{frame}
% ----------------------------------------
% FRAME
% ----------------------------------------
\begin{frame}{}
Example table
\begin{table}[H]
\large
\centering
\caption{Table caption}
\begin{tabular}[H]{|l|c|}
\hline
First cell & Right \\ \hline
Down & Diagonal \\ \hline
\end{tabular}
\end{table}
\end{frame}
\section{End of presentation}
% ----------------------------------------
% FRAME
% ----------------------------------------
\begin{frame}
\centering
\Huge Thank you for your attention!
\end{frame}
% ----------------------------------------
% END OF DOCUMENT
% ----------------------------------------
\end{document}