diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.tex | 61 |
1 files changed, 42 insertions, 19 deletions
diff --git a/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.tex b/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.tex index 5f871fdde4d..254e51e977b 100644 --- a/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.tex +++ b/Master/texmf-dist/doc/latex/msu-thesis/samples/MSU-thesis-testfile.tex @@ -1,7 +1,8 @@ +% !TEX TS-program = pdflatexmk % !BIB TS-program = bibtex \listfiles -\documentclass[lscape,plaintoc]{msu-thesis} +\documentclass[lscape]{msu-thesis} % lscape option is needed for this sample file to show correct placement % of page numbers on landscape pages. If you don't have any landscape pages % in your document, you don't need to load this option. @@ -13,30 +14,35 @@ \author{Joe Linguist} \fieldofstudy{Linguistics} \dedication{This thesis is dedicated to someone.} -\date{2014} - +\date{2016} +\usepackage{listings} \usepackage{lipsum} \usepackage{xcolor} \usepackage{gb4e} -%\usepackage{cgloss} \usepackage{natbib} -\usepackage{hyperref} % not needed but here for testing -%\setlength{\beforechapskip}{-5pt} - +\usepackage[bookmarksopenlevel=2,bookmarks=true]{hyperref} % not needed but here for testing - \counterwithin{exx}{chapter} \bibliographystyle{unified} \singlegloss + % Uncomment the next line for single spaced examples with gb4e %\patchcommand{\exe}{\SingleSpacing}{} +% This code is an example of how to set up a new list of +\newlistof{listoflistings}{lol}{List of Listings} +\newfloat[chapter]{listing}{lol}{Listing} +\newlistentry{listing}{lol}{0} +\renewcommand*{\cftlistingname}{Listing\space} +\renewcommand*{\cftlistingaftersnum}{\msucaptiondelim} +%\captiondelim{:\space} + \begin{document} \frontmatter \maketitlepage \begin{abstract} -\lipsum +\lipsum[1-6] \end{abstract} \clearpage \makecopyrightpage @@ -52,6 +58,8 @@ \listoftables \clearpage \listoffigures +\clearpage +\listoflistings \mainmatter % The next command changes chapters in the TOC to have no dotted leader %\addtocontents{toc}{\protect\renewcommand{\protect\cftchapterdotsep}{\cftnodots}} @@ -152,9 +160,21 @@ Men & Women & Monsters\\ \end{tabular} \caption{Another sample table.} \end{table} +\begin{listing} +\begin{lstlisting} +This is a listing +\end{lstlisting} +\caption{A listing caption} +\end{listing} +\begin{listing} +\begin{lstlisting} +This is another listing +\end{lstlisting} +\caption{Another listing caption} +\end{listing} \lipsum[8] -% Now sample page in landscape (need to use [lscape] option for this) -% First clear the page. Then make the page style {lscape} + Now sample page in landscape (need to use [lscape] option for this) + First clear the page. Then make the page style {lscape} \clearpage\pagestyle{lscape} % Enclose landscape pages in the {landscape} environment. Every page within % this environment will be landscape. There is no need to enclose each individual @@ -190,20 +210,23 @@ A & B & C & D & E & F & G \\ \caption{Some random data that takes up too much room.} \end{table} \end{landscape} -% at the end of the {landscape} environment, make the page style {plain} +%% at the end of the {landscape} environment, make the page style {plain} \pagestyle{plain} % -\appendices % use this if you have more than one appendix -%\appendix % use this if you have only one appendix - +%\begin{appendices} ... \end{appendices} +% use this if you have more than one appendix +\clearpage +\appendix % use this if you have only one appendix +%\begin{appendices} \chapter{An appendix} \section{An appendix section} \lipsum[9-15] -\chapter{An second appendix} -\section{An appendix section} -\lipsum[16-17] +%\chapter{An second appendix} +%\section{An appendix section} +%\lipsum[16-17] +%\end{appendices} \backmatter % The next command forces the Bibliography to have a dotted leader % (May not be required) @@ -211,7 +234,7 @@ A & B & C & D & E & F & G \\ \protect\renewcommand{\protect\cftchapterdotsep}{\cftdotsep}} \SingleSpacing % This command creates the cover page for the bibliography -\makebibliographycover +\makebibliographypage \bibliography{MSU-thesis-testfile} \end{document} |