forked from debanjanamex/EDGER_latex_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedger_example.tex
148 lines (105 loc) · 4.82 KB
/
edger_example.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
\documentclass{edger}
\pagestyle{plain}
\begin{document}\thispagestyle{new}
\title{An example EDGER paper in latex
}
\shorttitle{Example Manuscript}
\authors{Author1, Author2, and Author3}
\institution{}
%\begin{mdframed}[style=mdfexample1]
\begin{edgerabstract}
The \verb|\edgerabstract| environment formats and aligns the abstract and draws a border around it. Do not worry if your abstract is longer than one page, the environment would extend the box to multiple pages. \textcolor{red}{To compile the tex file just use \texttt{make all} command after replacing the file name in \texttt{Makefile}. Just replace the file name before \texttt{.tex} extension.} Blind text follows: \lipsum[1]
\end{edgerabstract}
\section*{Introduction}
\lipsum[1-7]
\section*{Figures}
Single figures can be plotted through the \verb|\plot| command. The syntax goes as
\verb|\plot{strue}{width=0.5\textwidth}{A sample figure caption for a sample figure }| .
The figure can be referred as Figure~\ref{fig:strue} using \verb|\ref{fig:strue}|
\plot{strue}{width=0.5\textwidth}{A sample figure caption for a sample figure. Along caption must be indented like this. This matches the exact style in the word template. Again, A sample figure caption for a sample figure. Along caption must be indented like this. This matches the exact style in the word template.}
Blind Text Follows
\lipsum[1-7]
\subsection*{Multiple figures}
Multiple figures are implemented with the \verb|\subfigure| environment.
\begin{figure}
\centering
\begin{subfigure}[c]{0.495\textwidth}
\multiplot{strue}{width=0.99\textwidth,height=0.5\textwidth}{}
\end{subfigure}
\begin{subfigure}[c]{0.495\textwidth}
\multiplot{sstart}{width=0.99\textwidth,height=0.5\textwidth}{}
\end{subfigure}
\begin{subfigure}[c]{0.495\textwidth}
\multiplot{sinv}{width=0.99\textwidth,height=0.5\textwidth}{}
\end{subfigure}
\begin{subfigure}[c]{0.495\textwidth}
\multiplot{sinv_copy}{width=0.99\textwidth,height=0.5\textwidth}{}
\end{subfigure}
\caption{(a) One figure (b) Second figure (c) Third figure and (d) Fourth figure. The caption here is very long, so long that it should be able to take at least two lines of text. So that we can see that the desired indentation of the figure caption.}
\label{fig:bigfig}
\end{figure}
Individual figures can be accessed as Figure~\ref{fig:sstart} and single figure can be referred as Figure~\ref{fig:bigfig}.
\lipsum[1-7]
\section*{Table}
A table is implemented using the \verb|\tabl| command with an example shown below adapted from segtex class.
\tabl{example}{This table is specified in the document by \texttt{
$\backslash$tabl\{example\}\{This caption.\}\{\ldots\}} The table has to be indented like Figure captions and the captions should be at the top of the table.
}{
\begin{center}
\begin{tabular}{|c|c|c|}
\hline
\multicolumn{3}{|c|}{Table Example} \\
\hline
migration\rule[-2ex]{0ex}{5ex} &
$\omega \rightarrow k_z$ &
$k_y^2+k-z^2\cos^2 \psi=4\omega^2/v^2$ \\
\hline
\parbox{1in}{zero-offset\\diffraction}\rule[-4ex]{0ex}{8ex} &
$k_z\rightarrow\omega_0$ &
$k_y^2+k_z^2=4\omega_0^2/v^2$ \\
\hline
DMO+NMO\rule[-2ex]{0in}{5ex} & $\omega\rightarrow\omega_0$ &
$\frac{1}{4}
v^2k_y^2\sin^2\psi+\omega_0^2\cos^2\psi=\omega^2$ \\
\hline
radial DMO\rule[-2ex]{0in}{5ex} & $\omega\rightarrow\omega_s$ &
$\frac{1}{4}v^2k_y^2\sin^2\psi+\omega_s^2=\omega^2$\\
\hline
radial NMO\rule[-2ex]{0in}{5ex} & $\omega_s\rightarrow\omega_0$ &
$\omega_0\cos\psi=\omega_s$\\
\hline
\end{tabular}
\end{center}
}
The table can be referred to as Table~\ref{tabl:example}.
\lipsum[1-7]
\section*{equations}
Equations are implemented using the \verb|\equation| environment. An example is given below
\begin{equation}
\begin{bmatrix}
\mathbf{M}_{bb} & \mathbf{M}_{ba} \\
\mathbf{M}_{ab} & \mathbf{M}_{aa}
\end{bmatrix}
\begin{bmatrix}
\mathbf{p}_{b} \\
\mathbf{p}_{a}
\end{bmatrix}
=
\begin{bmatrix}
\mathbf{s}_{b} \\
\mathbf{s}_{a}
\end{bmatrix}
\label{eqn:system}
\end{equation}
The equation can be referred to as equation~\ref{eqn:system}.
\lipsum[1-7]
\section*{Referring intext}
In-line references are written as \cite{knuth1989} while in-text references can be referred with \cite[]{lamport}. The references are based on the seg style after the segtex format.
Re-compiling after adding new references can lead to misssing references. I have added a script \verb|refscript.sh| which should be run after adding new references that rebuilds the reference index and new references are added.
\newpage
\bibliographystyle{seg} % style file is seg.bst
\bibliography{edger}
\appendix % This is an example of appendix
\section{Sample Appendix}
This is an example of appendix. \verb|\appendix| environment need to be started before begining appendix. The contents are written in \verb|\section| format as before.
\end{document}