Debian Codegraph @

texmf-dist/doc/latex/ndsu-thesis-2022/ndsu-example.tex

raw
1 %**********************************START
2 \documentclass[ms-thesis,12pt,mathdesign]{ndsu-thesis-2022}
3
4 %Refer documentation (ndsu-thesis-2022-documentation.pdf) for various options and commands
5
6 %**********************************Packages, newcommands, and other customization
7 \usepackage[sort&compress]{natbib}
8 \citestyle{egu} % plain, agu, egu, agms, dcu, kluwer, cospar, nature
9 \newcommand\tend{\tempend{apalike}{mybib}}
10
11 %**********************************First and second page material
12 \title{The Title of My M.S. Thesis}
13 \author{Samuel Fargo Bison}
14 \date{January 2022}
15 \progdeptchoice{Department} % Use Department (or) Program
16 \department{Mathematics}
17
18 \cchair{Prof. John Adams} % Use actual committee members names
19 \cmembera{Prof. Abraham Lincoln}
20 \cmemberb{Prof. George Washington}
21 \cmemberc{Prof. Theodore Roosevelt} % If 3rd not required - delete this line
22 \approvaldate{12/14/2022}
23 \approver{Prof. James Garfield}
24
25 %**********************************Front matter
26 \abstract{This is the abstract for my thesis. \\ \emph{Abstracts for doctoral
27 dissertations must use 350 words or less. Abstracts for master's papers or master's
28 theses must use 150 words or less.}\\ \kant[16]} % dummy text
29
30 \acknowledgements{I acknowledge people here. \\ \emph{Acknowledgements text should be
31 placed here.} \\ \kant[15]}
32
33 \dedication{This thesis is dedicated to my cat, Mr. Fluffles.\\ \emph{This section
34 dedicates the disquisition to a few significant people. The text must be double-spaced
35 and aligned center to the page.} \\ Which is already taken care of by this \LaTeX\ class.}
36
37 \preface{You can put a preface here. \\ \emph{This section is optional!} \\ \kant[14]}
38
39 \listofabbreviations{% may use title case
40 AC & Alternating Current \\
41 NDSU & North Dakota State University \\
42 ZL & Zeta Level}
43
44 \listofsymbols{% may use sentence case
45 $A$ & Area (\si{\m\squared})\\
46 $e$ & Euler's constant (\num{2.718281828}) \\
47 $R^2$ & Coefficient of determination}
48
49 %**********************************Document start
50 \begin{document}
51
52 %**********************************First chapter - paper style
53 \mypaperheading{The First Chapter - Paper Style - Long title of this technical paper}{*}
54 {This paper is planned to be submitted as a peer-reviewed article \ldots\ more information
55 about the author(s), title, \emph{journal}, to be added.}
56
57 \section{Abstract11}
58 Paper-styled chapters will have abstracts. Abstract of this chapter goes here. \kant[1]
59
60 \section{Section12}
61 This is the first section of the thesis (1st level: 1.2. Section). \kant[2]
62
63 \section{Section13}
64 This is the second section of the thesis (1st level: 1.3. Section). \kant[3]
65
66 \subsection{Subsection131}
67 This is the subsection text (2nd level: 1.3.1. Subsection). \kant[4]
68
69 \subsubsection{Subsubsection1311}
70 This is the subsection text (3rd level: 1.3.1.1. Subsubsection). \kant[5]
71
72 \paragraph{Paragraph13111}
73 This is the subsection text (4th level: 1.3.1.1.1. Paragraph). \kant[6]
74
75 \section{Table and Figure}
76 This is the third section of the thesis (1st level: 1.4. Section). This section
77 illustrates the inclusion of a simple table (\cref{tab:1}) and a figure shown later.
78
79 \begin{table}[h]
80 \centering
81 \caption{Table captions go at the top of the table. This was long caption of the table
82 included in the first chapter --- so that we see how it breaks into another line and
83 having a single spacing. Usually tables are of full-width and are demonstrated subsequently.}
84 \vspace{-1ex}
85 \begin{tabular}{clr}
86 \toprule
87 Number & Month & Days\\
88 \midrule
89 1 & January & 31\\
90 2 & February & 28\\
91 3 & March & 31\\
92 \bottomrule
93 \end{tabular}
94 \label{tab:1}
95 \end{table} \kant[7]
96
97 Now the figure (\cref{fig:1}) illustrates an example figure from the \texttt{mwe} package.
98
99 \myfig{H}{0.6}{example-image-duck}{Caption for this example image in this first chapter.}
100 {fig:1} \kant[8-9]
101
102 %**********************************Second chapter - regular
103 \myheading{The Second Chapter - Regular Style - Long title for this chapter}
104
105 Regular style chapters will not have abstracts. General information or outline of the
106 chapter is given here --- before breaking into sections.
107
108 \section{Excellent Results}
109 This is another section of the thesis (1st level: 2.1. Experimental Results).
110 \Cref{tab:2} presents the results in a tabular form that spans the entire width.
111 Please note the results shown (\cref{tab:2}) are preliminary.
112
113 \begin{table}[ht]
114 \centering
115 \caption{Table spanning entire width (full-width) using \texttt{setlength} and
116 \texttt{tabcolsep}}
117 \vspace{-1ex}
118 \setlength{\tabcolsep}{3.75em}
119 \begin{tabular}{@{\hspace{2ex}} lccr @{\hspace{2ex}}}
120 \toprule
121 Number & Name of month & Days & Season\\
122 \midrule
123 4 & April & 30 & Spring\\
124 5 & May & 31 & Summer\\
125 6 & June & 30 & Summer\\
126 \bottomrule
127 \end{tabular}
128 \begin{tablenotes}[flushleft]
129 \footnotesize
130 \item \hspace{-1ex} \emph{Note}: The \texttt{tablenotes} environment produces table footnotes.
131 \end{tablenotes}
132 \label{tab:2}
133 \end{table} \kant[7-8]
134
135 \subsection{Minor Results}
136 This is a subsection of the thesis (1st level: 2.2. Experimental Results). \kant[8]
137 The \Cref{fig:2} is an example image with command showing all arguments including the optional
138 caption placement. The example figure (\cref{fig:2}) is included in the \texttt{mwe} package.
139
140 \myfig[2ex]{H}{0.5}{example-image}{Caption for this example image demonstrating an optional
141 2ex vertical spacing. Compare this with a narrow caption spacing without optional argument in
142 \cref{fig:1}.}{fig:2}
143 \kant[8]
144
145 \section{Some References}
146 Referring to all entries in the ``\texttt{mybib.bib}'' file to generate the citations here
147 and the listing using the \texttt{\textbackslash citep\{\ldots\}} ``natbib'' command
148 (cite parenthesis)\citep{texbook,lcompanion,latex2e,knuth1984,lesk1977,amsthm2017,
149 calvo2004using,cannayen2011latex,kopka2004guide,notso2021}.
150
151 The same using \texttt{\textbackslash citet\{\ldots\}} command (cite text) in the running
152 text as: The authors \citet{texbook,lcompanion,latex2e,knuth1984,lesk1977,amsthm2017,
153 calvo2004using,cannayen2011latex,kopka2004guide,notso2021} have something to do
154 with \LaTeX. For most bibliography citation and list creation, these two commands
155 are sufficient.
156
157 %**********************************Bibliography handling
158 \biblio{apalike}{mybib} % Shortcut command using style and bib-file arguments
159
160 %**********************************Named appendix A
161 \namedappendices{A}{Named first appendix}
162 Appendix material can be included here. First including a figure (fig.~\ref{fig:ap1}).
163
164 \section{Appendix A - Section With Figure}
165 \myfigap{H}{0.5}{example-image-golden}{A golden ratio rectangle image.}{fig:ap1} \kant[8]
166
167 \section{Appendix A - Section With Table}
168 And, then including a table (table.~\ref{tab:ap1}).
169
170 \begin{appendixtable}[h!]
171 \centering
172 \caption{Use of \texttt{tabu} environment for full-width table - applicable to both main text
173 and appendix. Note the use of \texttt{booktabs} commands and `X' parameters to reproduce
174 Table~\ref{tab:2}. }
175 \begin{tabu} {X X[2, c] X[2,c] X[r]} %X[2, c] = coef. = 2, align = center
176 \toprule
177 Number & Name of month & Days & Season\\
178 \midrule
179 4 & April & 30 & Spring\\
180 5 & May & 31 & Summer\\
181 6 & June & 30 & Summer\\
182 \bottomrule
183 \end{tabu}
184 \begin{tablenotes}[flushleft]
185 \footnotesize
186 \item \hspace{-1ex} \emph{Note}: The \texttt{tablenotes} environment produces table footnotes.
187 Refer to \texttt{tabu} documentation for further details.
188 \end{tablenotes}
189 \label{tab:ap1}
190 \end{appendixtable}
191
192 \subsection{Appendix A Subsection}
193 \kant[10]
194
195 %**********************************Named Appendix B
196 \namedappendices{B}{Named second appendix}
197 Appendix material can be included here. First including a figure (fig.~\ref{fig:ap2}).
198
199 \section{Appendix B - Section With Figure}
200 \kant[9]
201 \myfigap[0.5ex]{H}{0.7}{example-grid-100x100pt}{A $10 \times 10$ grid of different
202 concentric colors.}{fig:ap2}
203
204 \section{Appendix B - Section With Table}
205 Now coding another appendix table (table.~\ref{tab:ap2}) that spans the entire width using
206 the manual method (using `tabcolsep' command; and `resize' command to fit large tables).
207
208 \begin{appendixtable}[h]
209 \centering
210 \caption{Squares and cubes named appendix table using \texttt{siunitx} package.}
211 \setlength{\tabcolsep}{7.1ex}
212 \begin{tabular}{@{\hspace{2ex}} lcrr @{\hspace{2ex}}}
213 \toprule
214 Number & Square & Cubes & Fourth power\\
215 \midrule
216 11 & 121 & \num{1331} & \num{14641}\\
217 22 & 484 & \num{10648} & \num{234256}\\
218 333 & \num{110889} & \num{36926037} & \num{12296370321}\\
219 \bottomrule
220 \end{tabular}
221 \label{tab:ap2}
222 \end{appendixtable}
223
224 \subsection{Appendix B Subsection}
225 \kant[11]
226
227 \closeappendices % Closing (redundant) of appendices for LOAT and LOAF generation
228
229 \end{document}
230 %**********************************END