-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlab4_figures_and_equations.tex
314 lines (233 loc) · 5.64 KB
/
lab4_figures_and_equations.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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
\documentclass[a4paper, 12pt]{report}
\usepackage{color}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{amsmath} % used for showing matrix
\begin{document}
\title{My First Document}
\author{Jakir Hasan}
\date{\today}
\maketitle
\pagenumbering{roman}
\tableofcontents
\listoftables
\listoffigures
\newpage
\pagenumbering{arabic}
\setcounter{chapter}{1}
\addcontentsline{toc}{chapter}{Practical 1: Document Structure}
\chapter*{Practical 1: Document Structure}
\section{Introduction}
This is the introduction.
\section{Methods}
\subsection{Stage 1}
\label{sec1}
The first part of the methods.
\subsection{Stage 2}
The second part of the methods.
\section{Results}
Here are my results. Refering to section \ref{sec1} on page \pageref{sec1}.
\setcounter{chapter}{2}
\addcontentsline{toc}{chapter}{Practical 2: Typesetting Text}
\chapter*{Practical 2: Typesetting Text}
\section{Font Effects}
\textit{words in italic}\\
\textsl{words slanted}\\
\textsc{words in smallcaps}\\
\textbf{words in bold}\\
\texttt{words in teletype}\\
\textsf{sans serif words}\\
\textrm{roman words}\\
\underline{underlined words}
\section{Coloured Text}
{\color{red}fire} \\
{\color{red}Red}, {\color{green}green}, {\color{blue}blue}, {\color{magenta}magenta}, {\color{yellow}yellow}, and {\color{white}white}.
\section{Font Sizes}
{\tiny tiny words}\\
{\scriptsize scriptsize words}\\
{\footnotesize footnotesize words}\\
{\small small words}\\
{\normalsize normalsize words}\\
{\large large words}\\
{\Large Large words}\\
{\LARGE LARGE words}\\
{\huge huge words}
\section{Lists}
\begin{enumerate}
\item First thing
\item Second thing
\begin{itemize}
\item A sub-thing
\item Another sub-thing
\end{itemize}
\item Third thing
\end{enumerate}
\begin{itemize}
\item[-] First thing
\item[+] Second thing
\begin{itemize}
\item[Fish] A sub-thing
\item[Plants] Another sub-thing
\end{itemize}
\item[Q] Third thing
\end{itemize}
\vspace{12pt}
\section{Comments \& Spacing}
Believe that life is worth living% Note comic irony in the very first sentence
, and your belief will help create the fact.
\section{Special Characters}
\# \$ \% \^{} \& \_ \{ \} \~{} \textbackslash
\section{Checkpoint 2}
\#1A\textbackslash642 costs \$8 \& is sold at a \~{}10\% profit.
\setcounter{chapter}{3}
\addcontentsline{toc}{chapter}{Practical 3: Tables}
\chapter*{Practical 3: Tables}
\section{Tables}
\begin{table}
\begin{tabular}{|l|l|}
Apples & Green\\
Strawberries & Red\\
Oranges & Orange\\
\end{tabular}
\caption{Fruits}
\label{table1}
\end{table}
Table \ref{table1} shows fruits.
\vspace{12pt}
\begin{tabular}{rc}
Apples & Green\\
\hline
Strawberries & Red\\
\cline{1-1}
Oranges & Orange\\
\end{tabular}
\vspace{12pt}
\begin{tabular}{|r|c|}
\hline
8 & here's\\
\cline{2-2}
86 & stuff\\
\hline
\hline
2008 & now\\
\hline
\end{tabular}
\vspace{12pt}
\begin{tabular}{|c|c|c|c|}
\hline
\multicolumn{4}{|c|}{Country List}\\
\hline
Country Name & ALPHA 2 Code & ALPHA 3 Code & Numeric Code\\
\hline
Afghanistan & AF & AFG & 004\\
Albania & AL & ALB & 008\\
Algeria & DZ & DZA & 012\\
Angola & AO & AGO & 024\\
\hline
\end{tabular}
\newpage
\section{Checkpoint 3}
\begin{tabular}{l|r|r}
Item & Quantity & Price(\$)\\
\hline
Nails & 500 & 0.34\\
Wooden boards & 100 & 4.00\\
Bricks & 240 & 11.50\\
\end{tabular}
\vspace{12pt}
\begin{tabular}{l | c c c}
\multicolumn{1}{l |}{} &
\multicolumn{3}{c}{Year}\\
\cline{2-4}
City & 2006 & 2007 & 2008\\
\hline
London & 45789 & 46551 & 51298\\
Berlin & 34549 & 32543 & 29870\\
Paris & 49835 & 51009 & 51970\\
\end{tabular}
\setcounter{chapter}{4}
\addcontentsline{toc}{chapter}{Practical 4: Figures and Equations}
\chapter*{Practical 4: Figures and Equations}
\section{Figures}
\begin{figure}[h!]
\centering
\includegraphics[width=0.5\textwidth]{jakir_hasan}
\caption{My test image}
\end{figure}
\section{Sub Figures}
\begin{figure}[h]
\begin{subfigure}{0.4\textwidth}
\includegraphics[width=\textwidth]{Jakir}
\caption{Caption1}
\label{fig:subimage1}
\end{subfigure}
\begin{subfigure}{0.4\textwidth}
\includegraphics[width=\textwidth]{jakir_hasan}
\caption{Caption2}
\label{fig:subimage2}
\end{subfigure}
\end{figure}
\newpage
\section{Equations}
In line eqation $ 1 + 2 = 3 $. Isn't it nice?
$$ 1 + 2 = 3 $$
\begin{equation}
1 + 2 = 3
\end{equation}
\begin{eqnarray*}
a & = & b + c\\
& = & y - z
\end{eqnarray*}
\section{Powers \& Indices}
$$ n^2 $$
$$ 2_a $$
$$ b_{a-2} $$
\section{Fractions}
$$ \frac{a}{3} $$
$$ \frac{y}{\frac{3}{x}+b} $$
\section{Roots}
$$ \sqrt{y^2} $$
$$ \sqrt[x]{y^2} $$
\section{Sums, Limits \& Integrals}
$$ \sum_{x=1}^5y^z $$
$$ \lim_{x \to \infty} f(x) $$
$$ \int_a^b f(x) $$
\subsection{Matrices}
\begin{equation*} % * used for unnumbered equation
\left[
\begin{matrix}
1 & 0\\
0 & 1\\
\end{matrix}
\right]
\end{equation*}
\subsection{Greek Letters}
$ \alpha $
$ \beta $
$\delta, \Delta$
$ \theta, \Theta $
$ \mu $
$ \pi, \Pi $
$ \sigma, \Sigma $
$ \phi, \Phi $
$ \psi, \Psi $
$ \omega, \Omega $
\subsection{Checkpoint}
\begin{eqnarray}
e = mc^2\\
\pi = \frac{c}{d}\\
\frac{d}{dx}e^x = e^x\\
\frac{d}{dx}\int_0^\infty f(s)ds = f(x)\\
f(x) = \sum_i = 0^\infty \frac{f^{(i)}(0)}{i!}x^i\\
x = \sqrt{\frac{x_i}{z}y}\\
\left[
\begin{matrix}
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\\
\end{matrix}
\right]
\end{eqnarray}
\end{document}