Debian Codegraph @

texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.tex

raw
1 % !TEX TS-program = pdflatexmk
2 % v4.3 Testfile
3 \listfiles
4
5 \documentclass[lscape]{msu-thesis}
6
7 % lscape option is needed for this sample file to show correct placement
8 % of page numbers on landscape pages. If you don't have any landscape pages
9 % in your document, you don't need to load this option.
10 \usepackage[T1]{fontenc}
11 \usepackage{newtxtext,newtxmath} % If they want Times we’ll give them Times
12 \usepackage{amsmath}
13 %
14 \usepackage{natbib}
15 \bibliographystyle{apalike}
16
17 % If you need newlines in your title, you must use \protect\\
18 \title{Topics in the Syntax and Semantics of Phonology}
19 \author{Joe Linguist}
20 %\dualmajor{Linguistics}{Computer Science}
21 \fieldofstudy{Linguistics}
22 \dedication{This thesis is dedicated to someone.}
23 \date{2022}
24 \usepackage{listings}
25 \lstset{language=TeX,basicstyle={\ttfamily}}
26 \usepackage{lipsum}
27 \usepackage{xcolor}
28 \usepackage{enumitem}
29 \usepackage{calc}
30 \usepackage[unit=in]{fgruler}
31 \usepackage{gb4e}
32 \counterwithin{exx}{chapter}
33 \singlegloss
34
35 % Uncomment the next line for single spaced examples with gb4e
36 %\patchcommand{\exe}{\SingleSpacing}{}
37
38 % This code is an example of how to set up a new list of
39 \newcommand{\listlistingsname}{List of Listings}
40 \newlistof{listoflistings}{lol}{\listlistingsname}
41 \newfloat[chapter]{listing}{lol}{Listing}
42 \newlistentry{listing}{lol}{0}
43 \renewcommand*{\cftlistingname}{Listing\space}
44 \renewcommand*{\cftlistingaftersnum}{\msucaptiondelim}
45 \renewcommand*{\msuappendixdelim}{:}
46
47 \usepackage[bookmarksopenlevel=2,bookmarks=true]{hyperref} % not needed but here for testing
48 \setcounter{msutocdepth}{1} % default is 1; this puts only chapters in the TOC
49
50 \begin{document}
51
52 \frontmatter
53 \maketitlepage
54 % public abstract removed v4
55 %\begin{publicabstract}
56 %\lipsum[1]
57 %\end{publicabstract}
58 \begin{abstract}
59 \lipsum[1-6]
60 \end{abstract}
61 \clearpage
62 \makecopyrightpage
63 \makededicationpage
64 \clearpage
65 \chapter*{Acknowledgements}
66 \DoubleSpacing
67 \lipsum[1]
68 \clearpage
69 \SingleSpacing
70 \tableofcontents* % ToC will not appear in the table of contents
71 \clearpage
72 % removed other contents lists as per recommendations v4!
73 %\listoftables
74 \clearpage
75 %\listoffigures
76 \clearpage
77 %\listoflistings
78 % Add all the abbreviations here in their sorted order using \abbrev
79 \begin{abbreviations}
80 \abbrev{ASA}{A small abbreviation}
81 \abbrev{ABA}{An abbreviation with an explanation so long that the explanation should wrap to the next line and align properly with the previous line}
82 \end{abbreviations}
83 \mainmatter
84 % The next command changes chapters in the TOC to have no dotted leader
85 %\addtocontents{toc}{\protect\renewcommand{\protect\cftchapterdotsep}{\cftnodots}}
86 \chapter{Introduction}
87 This is some text that precedes a section.
88 \section{Some section}
89 \lipsum[2]
90
91 \subsection{Subsection}
92 \lipsum
93 \subsubsection{Subsubsection}
94 \begin{exe}
95 \ex\label{1}
96 \begin{xlist}
97 \ex[]{This is a linguistic example that is very long to see how it wraps around onto the next line of the text.}
98 \ex[]{This_{i} is an example_{i} with subscripts.}
99 \ex[*]{This is another example.}
100 \ex[]{This is a third example}
101 \ex[]{\gll Une example francaise\\
102 an example french\\
103 \trans A French example.}
104 \end{xlist}
105 \end{exe}
106 \lipsum[1]
107 \lipsum[2]\cite{Munn1999} says the following.\footnote{A footnote. This is a footnote with a subscript$_{\text{i}_{\text{j}}}$. \lipsum[9]} \lipsum[2]
108 \begin{table}
109 \centering
110 \begin{tabular}{ccc}
111 \toprule
112 Men & Women & Monsters\\
113 \midrule
114 29 & 33 & 51\\
115 \bottomrule
116 \end{tabular}
117 \caption{A sample table}
118 \end{table}
119
120 \lipsum[3]
121 \section{More stuff}
122 \lipsum[4]\cite{Munn2005}
123 \begin{figure}
124 \centering
125 {\color{gray!40}\rule{2in}{3in}}
126 \caption[A sample figure]{A sample figure with a figure caption that is extremely long to show single spacing in the long caption.}
127 \end{figure}
128 \lipsum[5]
129 \lipsum[10]
130 \chapter[A chapter with a really long title to\\see if the chapter titles wrap correctly]{A chapter with a really long title to see if the chapter titles wrap correctly}
131 \lipsum
132 \begin{figure}
133 \centering
134 {\color{gray!40}\rule{4in}{2in}}
135 \caption{Another sample figure}
136 \end{figure}
137 \lipsum[6]
138 \section{A section with a really long title to check that sections wrap in the right way}
139 \subsection{A subsection with a really long title to check that sections wrap in the right way}
140 \subsubsection{A subsubsection with a really long title to check that sections wrap in the right way}
141 \begin{table}
142 \centering
143 \begin{tabular}{ccc}
144 \toprule
145 Men & Women & Monsters\\
146 \midrule
147 29 & 33 & 51\\
148 \bottomrule
149 \end{tabular}
150 \caption{Another sample table.}
151 \end{table}
152 \lipsum[7]
153 \begin{exe}
154 \ex\label{2}
155 \begin{xlist}
156 \ex[]{This^{i^{j^{k}}} contains three superscripts of the right size.}
157 \ex[]{This_{i_{j_{k}}} contains three subscripts of the right size.}
158 \end{xlist}
159 \end{exe}
160 \begin{figure}
161 \centering
162 {\color{gray!40}\rule{4in}{2in}}
163 \caption{Another sample figure}
164 \end{figure}
165 \lipsum[2]
166 \begin{quote}
167 \SingleSpacing
168 This is a sample long quotation. \lipsum[2]
169
170 \hfill{\citep{Munn1999}}
171 \end{quote}
172 \begin{table}
173 \centering
174 \begin{tabular}{ccc}
175 \toprule
176 Men & Women & Monsters\\
177 \midrule
178 29 & 33 & 51\\
179 \bottomrule
180 \end{tabular}
181 \caption{Another sample table.}
182 \end{table}
183 \begin{listing}
184 \begin{lstlisting}
185 \begin{listing}
186 This is a listing
187 \end{listing}
188 \end{lstlisting}
189 \caption{A listing caption}
190 \end{listing}
191 \begin{listing}
192 \begin{lstlisting}
193 \begin{listing}
194 This is another listing
195 \end{listing}
196 \end{lstlisting}
197 \caption{Another listing caption}
198 \end{listing}
199 \lipsum[8]
200 \section{A section with no subsection following it}
201 \lipsum[9]
202 Now sample page in landscape (need to use [lscape] option for this)
203 First clear the page. Then make the page style {lscape}
204 \clearpage\pagestyle{lscape}
205 % Enclose landscape pages in the {landscape} environment. Every page within
206 % this environment will be landscape. There is no need to enclose each individual
207 % figures/tables in the environment if they appear on a set of adjacent landscape
208 % pages.
209 \begin{landscape}
210 \begin{table}
211 \centering
212 \begin{tabular}{lllllll}
213 \toprule
214 A & B & C & D & E & F & G \\
215 \midrule
216 821.3827119 & 661.0913922 & 106.3008156 & 474.009513 & 190.8146776 & 788.4459729 & 784.7964852 \\
217 863.5891052 & 308.5023091 & 15.97055732 & 319.4531424 & 932.4330525 & 313.8826277 & 574.5100815 \\
218 867.7203343 & 343.6538027 & 34.35605188 & 680.5890553 & 538.4341728 & 510.3271094 & 987.7874714 \\
219 144.6465988 & 86.30176472 & 145.0166526 & 26.00087715 & 694.0117063 & 556.0943379 & 650.0605751 \\
220 269.5656447 & 979.9087235 & 150.7698724 & 715.0255442 & 312.5203237 & 608.58149 & 737.0459961 \\
221 361.7660545 & 38.81968682 & 7.788463243 & 789.031736 & 599.306695 & 407.9588464 & 420.3577306 \\
222 22.45176377 & 631.7249181 & 266.0566897 & 81.77581697 & 399.0120086 & 460.8922885 & 341.5815705 \\
223 486.3650486 & 398.9817682 & 601.8745699 & 912.7856216 & 102.7510937 & 83.25854643 & 655.1995291 \\
224 306.8558515 & 672.2668801 & 582.1884719 & 607.9748493 & 126.3316726 & 672.490033 & 754.4823663 \\
225 745.6384032 & 369.5763752 & 170.8671329 & 248.2581139 & 994.2369771 & 28.13615151 & 230.6094341 \\
226 270.3421307 & 193.6617479 & 374.94621 & 769.6975098 & 342.6845841 & 917.8180557 & 827.1024885 \\
227 360.3810025 & 780.7139757 & 415.9038887 & 846.3157501 & 96.64026956 & 954.7160727 & 21.71722262 \\
228 487.6847246 & 200.8682708 & 739.9673152 & 395.1695216 & 524.7826343 & 228.4705562 & 39.95541901 \\
229 207.8091332 & 300.6871609 & 627.8808013 & 740.4949976 & 128.9558068 & 176.2158891 & 296.1642661 \\
230 336.7537922 & 859.907318 & 704.2503641 & 426.845866 & 773.8926695 & 883.1773631 & 64.85043069 \\
231 \bottomrule
232 \end{tabular}
233 \caption{Some random data that takes up too much room.}
234 \end{table}
235
236 \chapter{A chapter in landscape}
237
238 \begin{table}[htbp]
239 \centering
240 \begin{tabular}{lllllll}
241
242 \toprule
243 A & B & C & D & E & F & G \\
244 \midrule
245 821.3827119 & 661.0913922 & 106.3008156 & 474.009513 & 190.8146776 & 788.4459729 & 784.7964852 \\
246 863.5891052 & 308.5023091 & 15.97055732 & 319.4531424 & 932.4330525 & 313.8826277 & 574.5100815 \\
247 867.7203343 & 343.6538027 & 34.35605188 & 680.5890553 & 538.4341728 & 510.3271094 & 987.7874714 \\
248 144.6465988 & 86.30176472 & 145.0166526 & 26.00087715 & 694.0117063 & 556.0943379 & 650.0605751 \\
249 269.5656447 & 979.9087235 & 150.7698724 & 715.0255442 & 312.5203237 & 608.58149 & 737.0459961 \\
250 361.7660545 & 38.81968682 & 7.788463243 & 789.031736 & 599.306695 & 407.9588464 & 420.3577306 \\
251 22.45176377 & 631.7249181 & 266.0566897 & 81.77581697 & 399.0120086 & 460.8922885 & 341.5815705 \\
252 486.3650486 & 398.9817682 & 601.8745699 & 912.7856216 & 102.7510937 & 83.25854643 & 655.1995291 \\
253 306.8558515 & 672.2668801 & 582.1884719 & 607.9748493 & 126.3316726 & 672.490033 & 754.4823663 \\
254 745.6384032 & 369.5763752 & 170.8671329 & 248.2581139 & 994.2369771 & 28.13615151 & 230.6094341 \\
255 270.3421307 & 193.6617479 & 374.94621 & 769.6975098 & 342.6845841 & 917.8180557 & 827.1024885 \\
256 360.3810025 & 780.7139757 & 415.9038887 & 846.3157501 & 96.64026956 & 954.7160727 & 21.71722262 \\
257 487.6847246 & 200.8682708 & 739.9673152 & 395.1695216 & 524.7826343 & 228.4705562 & 39.95541901 \\
258 207.8091332 & 300.6871609 & 627.8808013 & 740.4949976 & 128.9558068 & 176.2158891 & 296.1642661 \\
259 336.7537922 & 859.907318 & 704.2503641 & 426.845866 & 773.8926695 & 883.1773631 & 64.85043069 \\
260
261 \bottomrule
262 \end{tabular}
263
264 \caption{Some random data that takes up too much room.}
265 \end{table}
266 \end{landscape}
267 %% at the end of the {landscape} environment, make the page style {plain}
268 \pagestyle{plain}
269 %
270 %\begin{appendices} ... \end{appendices}
271 % use this if you have more than one appendix
272 \clearpage
273 %\backmatter
274
275 \bibliography{MSU-thesis-testfile}
276 %\begin{appendix} ... \end{appendix} % use this if you have only one appendix
277 %\begin{appendix}
278 %\chapter{A single appendix}
279 %\lipsum[11]
280 %\end{appendix}
281
282 \begin{appendices} % use this if you have more than one appendix
283 \chapter{An appendix}
284 \section{An appendix section}
285 \lipsum[9-15]
286 \chapter{A second appendix}
287 \section{An appendix section}
288 \lipsum[16-17]
289 \end{appendices}
290
291
292 \end{document}
293