-
Notifications
You must be signed in to change notification settings - Fork 1
/
latex_exam_template.tex
235 lines (199 loc) · 6.77 KB
/
latex_exam_template.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
% latex_exam_template.tex (Version 2021.2)
%
% A LaTeX template for written exams.
% Wouter Grouve (https://personen.utwente.nl/w.j.b.grouve)
% Faculty of Engineering Technology, University of Twente.
%
% Based on the excellent template from the Australian National
% Unversity, created by Timothy Kam in 2004. The original version can
% be found here: https://ctan.org/pkg/anufinalexam?lang=en
%
% Licence type: Free as defined in the GNU General Public Licence:
% http://www.gnu.org/licenses/gpl.html
\documentclass[a4paper,12pt,fleqn]{article}
\usepackage{lastpage}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{fancyhdr}
\usepackage{enumitem}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage[skip=2pt,font=small]{caption}
\usepackage{environ}
\usepackage{mdframed}
% Booleans to show answers and to ask students to return the question form
\newif\ifshowanswers
\newif\ifreturnform
% ==============================================================================
% Question command
%
\newcounter{question}
\newcommand*\question{%
\stepcounter{question}%
\paragraph{Question \thequestion}}
% ==============================================================================
% Answer boxes
%
\mdtheorem[outerlinewidth=2,roundcorner=10pt,
leftmargin=0,rightmargin=0,
backgroundcolor=yellow!40,outerlinecolor=blue!70!black,
innertopmargin=\topskip,splittopskip=\topskip,
ntheorem=true,]{answer_box}{Answer}[section]
\NewEnviron{answer}{
\ifshowanswers
\begin{answer_box*}
\BODY
\end{answer_box*}
\fi}
% ==============================================================================
% Show answers?
%
\showanswerstrue
% \showanswersfalse
% ==============================================================================
% Return form?
%
% \returnformtrue
\returnformfalse
% ==============================================================================
%
% Course information
%
% ==============================================================================
\newcommand{\institution}{{\Large UNIVERSITY OF TWENTE}\\\vspace{4mm}
Faculty of Engineering Technology\\
Minor Aircraft Engineering}
\newcommand{\coursename}{Aircraft Structures}
\newcommand{\coursecode}{202000157}
\newcommand{\frontimage}{img/plane.png}
\newcommand{\examtype}{Final Exam}
\newcommand{\examdate}{January 2021}
\newcommand{\examtime}{Two hours}
\newcommand{\materials}{Calculator, Formula Sheet}
\newcommand{\lastwords}{End of Examination}
% ==============================================================================
%
% Margins, header and footer
%
% ==============================================================================
\setlength{\topmargin}{0cm}
\setlength{\textheight}{9.25in}
\setlength{\oddsidemargin}{0.0in}
\setlength{\evensidemargin}{0.0in}
\setlength{\textwidth}{16cm}
\pagestyle{fancy}
\cfoot{\footnotesize{Page \thepage \ of \pageref{finalpage}
-- \coursename \ (\coursecode)}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\begin{document}
% ==============================================================================
%
% Title page
%
% ==============================================================================
\thispagestyle{empty}
\begin{center}
\large\textbf{\institution}
\end{center}
\vspace{1cm}
\begin{center}
\vspace{1cm}
\includegraphics[scale=.8]{\frontimage}
\end{center}
\vspace{2cm}
\begin{center}
\Large\textbf{\coursename} (\coursecode)
\end{center}
\begin{center}
\textit{ \examtype{} -- \examdate}
\end{center}
\vspace{1cm}
\vspace{2cm}
\begin{center}
\textit{Available Time: \examtime}
\end{center}
\begin{center}
\textit{Permitted Materials: \materials}
\end{center}
\ifreturnform
\begin{table}[b]
\centering
\begin{tabular}{p{6cm}p{5cm}}\hline\\[-7pt]
Name: & Student number:\\[5pt]\hline
\end{tabular}
\end{table}
\fi
% ==============================================================================
%
% Second page: Generally used for instruction
%
% ==============================================================================
\newpage
\setcounter{page}{1}
\begin{quote}
Generic guidelines:
\begin{enumerate}
\ifreturnform
\item Write your name and student number on top of this page and
hand this document at the end of the exam. Your exam will not be
graded if you fail to return this question form.
\fi
\item The front page lists the materials you can use during this
exam. Any other materials are not allowed. This includes mobile
devices.
\item When asked, elaborate your answers by providing the
equations used or listing the assumptions made.
\item Please write clearly. I am an engineer not an
archaeologist.
\end{enumerate}
\vspace{3mm}
\textbf{NB. This is an individual exam.} Good luck!
\end{quote}
\bigskip
% ==============================================================================
%
% Exam questions
%
% ==============================================================================
\newpage
\question [ 15/100 points ] The two dimensional stress state at a
particular point in a structure equals \mbox{$\sigma_{\text{x}} =$ 350
MPa}, \mbox{$\sigma_{\text{y}} =$ 225 MPa} and
\mbox{$\tau_{\text{xy}} =$ 100 MPa}.
\begin{enumerate}
\item{} [ 10 points ] Calculate the principal stresses and the
orientation of the corresponding principal planes.
\begin{answer}
The principal stresses are: $\sigma_{\textrm{I}} = 405$ MPa and
$\sigma_{\textrm{II}} = 170$ MPa, while the principal planes are
oriented at $\theta = 0.51 \pm \pi/2$ or
$\theta = 29^{\circ} \pm 90^{\circ}$.
As a reminder, the equations for the principal stresses are:
\begin{equation*}
\sigma_{\textrm{I,II}} = \frac{\sigma_{\textrm{x}} + \sigma_{\textrm{y}}}{2} \pm
\frac{1}{2}\sqrt{(\sigma_{\textrm{x}} - \sigma_{\textrm{y}})^2 + 4\tau^2_{\textrm{xy}}},
\end{equation*}
while the principal planes can be found using:
\begin{equation*}
\tan 2\theta = \frac{2\tau_{\textrm{xy}}}{\sigma_{\textrm{x}} - \sigma_{\textrm{y}}}.
\end{equation*}
Points: Award 3 points for the correct equation for the principal
stresses, 3 points for the correct equation for the principal
planes and 2 points for each correct answer.
\end{answer}
\item{} [ 5 points ] What is the magnitude of the shear stress
acting on the principal planes?
\begin{answer}
The shear stress on the principal planes equals 0 MPa.
Points: 5 points for the correct answer, otherwise 0.
\end{answer}
\end{enumerate}
\question [ 15/100 points ] The turbine blades in modern jet engines are
subjected to intense heat and extreme loads\ldots
\begin{center}
\vspace{3cm}
--------- \textit{\lastwords} ---------
\end{center}
\label{finalpage}
\end{document}