-
Notifications
You must be signed in to change notification settings - Fork 0
/
chapter_dummy.tex
93 lines (75 loc) · 1.78 KB
/
chapter_dummy.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
%===================================== CHAP 5 =================================
\chapter{Useful stuff}
\todo{Remove this chapter before delivering the report. Only meant for storing useful code.}
\todo{Equations}
To write an equation
\begin{verbatim}
\begin{eqnarray}\label{eq1}
F = m \times a
\end{eqnarray}
\end{verbatim}
\noindent This will produce
\begin{eqnarray}\label{eq1}
F = m \times a
\end{eqnarray}
\noindent To refer to the equation
\begin{verbatim}
\eqref{eq1}
\end{verbatim}
\noindent This will produce \eqref{eq1}.
\todo{Figures}
To create a figure
\begin{verbatim}
\begin{figure}[t]
\centering
\includegraphics[width=0.5\textwidth]{fig/pikachu}
\caption{Pikachu.}
\label{fig1}
\end{figure}
\end{verbatim}
\begin{figure}[t]
\centering
\includegraphics[width=0.5\textwidth]{fig/pikachu}
\caption{Pikachu.}
\label{fig1}
\end{figure}
\noindent To refer to the figure
\begin{verbatim}
\textbf{Fig. \ref{fig1}}
\end{verbatim}
\noindent This will produce \textbf{Fig. \ref{fig1}}
\todo{Tables}
To creat a table
\begin{verbatim}
\begin{table}[t]
\begin{center}
\begin{tabular}{ | l | l | l | l |}
\hline
\textbf{No.} & \textbf{Data 1} & \textbf{Data 2} \\ \hline
1 & a1 & b1 \\ \hline
2 & a2 & b2 \\ \hline
\end{tabular}
\end{center}
\caption{Table 1.}
\label{Tab1}
\end{table}
\end{verbatim}
\noindent This will produce
\begin{table}[t]
\begin{center}
\begin{tabular}{ | l | l | l | l |}
\hline
\textbf{No.} & \textbf{Data 1} & \textbf{Data 2} \\ \hline
1 & a1 & b1 \\ \hline
2 & a2 & b2 \\ \hline
\end{tabular}
\end{center}
\caption{Table 1.}
\label{Tab1}
\end{table}
\noindent To refer to the table
\begin{verbatim}
\textbf{Table. \ref{Tab1}}
\end{verbatim}
\noindent This will produce \textbf{Table. \ref{Tab1}}.
\cleardoublepage