Debian Codegraph @

texmf-dist/doc/latex/umthesis/example.tex

raw
1 \documentclass[12pt, letterpaper]{umthesis}
2
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 %%% optional packages %%%
5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6 %% these packages are all optional. I include them here
7 %% because I use them, and I know they work with this class
8
9 \usepackage{sidecap} %put captions beside a figure
10 \usepackage{ifpdf} % check to see if compiling as dvi or pdf
11 \usepackage{rotating} % rotate some text
12 \usepackage{graphicx} % include graphics files
13 %\usepackage[all]{xy} %for making simple graphs
14 \usepackage{index} %this is newer and more fully featured than makeidx
15 \usepackage{hhline} %fancy rules
16 \usepackage{amsmath,amssymb} %extra math commands and symbols
17 \usepackage{mathptmx} %use times for normal text and math
18 \usepackage{helvet} %use helvetica font for sans-serif
19 \usepackage{courier} % use courier font for typewriter and fixed width
20 \usepackage{colortbl} %allows for color in tables
21 \usepackage{subfigure} % groups figures into one large one
22 \usepackage{longtable} % multi-page tables
23 \usepackage{pdflscape} %better handling of landscape features
24 \usepackage{tabularx} %advanced tabular environment
25 \usepackage{multicol} % to use multiple columns
26 \usepackage{tikz} % package for making cool graphics - compatible with
27 % dvi, postscript, and pdf
28 \usetikzlibrary{arrows} % fancy arrows for tikz package
29 \usepackage{natbib} %more advanced handling of bibliographies
30 \bibpunct{(}{)}{;}{a}{,}{,} %settings for natbib, if using it
31 \usepackage[font=small,labelfont=bf,labelsep=quad]{caption} %more caption
32 \ifpdf %use these packages if we are compiling with pdf
33 \usepackage{epstopdf} %automatically converts .eps files to .pdf
34 \usepackage[final,expansion=true,protrusion=true]{microtype}
35 %advanced typesetting
36 \fi
37 %\usepackage[T1]{tipa} %phonetic fonts
38 %\usepackage{placeins} %prevent floats from floating past section
39 %\usepackage{flafter} %don't allow floats to appear before their definition
40 %formatting
41 %\usepackage{chngpage}%this allows resetting margins within the document
42 %\usepackage[color]{showkeys} % prints the names of labels that you use
43 % handy for proofreading purposes
44 %\usepackage[dvips]{geometry} %tells dvips about paper size options
45 %\usepackage{svn} % to keep track of revisions
46 %\SVN $Author: robfelty $
47 %\SVN $Revision: 24 $
48 %\SVN $Date: 2007-05-10 15:13:37 -0400 (Thu, 10 May 2007) $
49 %\SVN $Id: example.tex 24 2007-05-10 19:13:37Z robfelty $
50 %\usepackage{timestamp} % to give me a timestamp
51
52 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53 %% sectsty allows to do some fancier formatting
54 %% of chapter and section titles - it is not clear
55 %% to me whether Rackham allows this or not
56 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
57
58 %\usepackage{sectsty}
59 %\makeatletter
60 %\chapternumberfont{%
61 % \if@mainmatter%
62 % \rule{\textwidth}{2pt}\\%
63 % \vspace{-1em}\rule{\textwidth}{1pt}\\%
64 % \fi%
65 % \centering \huge \bf%
66 %}
67 %\chaptertitlefont{%
68 % \if@mainmatter%
69 % \vspace{-1em} \rule{\textwidth}{1pt}\\[.2em]%
70 % \fi%
71 % \centering \huge \bf%
72 %}
73 %\makeatother
74 %\usepackage[pdftex]{graphicx}
75
76 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
77 %%% fancy headers are not allowed by Rackham - however
78 %%% this does not mean that you can't use them for all other
79 %%% copies that you do not give to Rackham
80 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
81
82 %\usepackage{fancyhdr}
83 % \pagestyle{fancy}
84 % % with this we ensure that the chapter and section
85 % % headings are in lowercase.
86 % \renewcommand{\chaptermark}[1]{\markboth{#1}{}}
87 % \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
88 % \fancyhf{} % delete current setting for header and footer
89 % \fancyhead[LE,RO]{\thepage}
90 % \fancyhead[LO]{\rightmark}
91 % \fancyhead[RE]{\leftmark}
92 % %\fancyhead[RE,RO]{\bfseries\rightmark}
93 % %\fancyhead[LE,LO]{\bfseries\leftmark}
94 % %\fancyfoot[C]{\thepage}
95 % \renewcommand{\headrulewidth}{0.5pt}
96 % \renewcommand{\footrulewidth}{0pt}
97 % \addtolength{\headheight}{0.5pt} % make space for the rule
98 % \fancypagestyle{plain}{%
99 % \fancyhead{} % get rid of headers on plain pages
100 % %\fancyfoot[C]{\thepage}
101 % \fancyfoot{}
102 % \renewcommand{\headrulewidth}{0pt} % and the line
103 % }
104 \hfuzz2pt % Don't bother to report overfull hboxes if over-edge is < 2pt
105 \vfuzz2pt % Same for overfull vboxes (maybe just works for hfuzz?)
106
107 %this command can be used for table headers that need to be rotated, thus the
108 %name rotth, for rotated table header -- it takes two arguments, the width of
109 %the parbox to create (which since it is rotated is more like height), and the
110 %text to put in it
111 \newcommand\rotth[2]{%
112 \begin{sideways}%
113 \parbox[b]{#1}{\raggedright #2}%
114 \end{sideways}%
115 }
116 %this sets up a new command \dash, which makes nice dashes
117 \DeclareRobustCommand\dash{%
118 \unskip\nobreak\thinspace\textemdash\thinspace\ignorespaces}
119 %in bookmarks, use regular dash instead of emdash
120 \pdfstringdefDisableCommands{\renewcommand{\dash}{ - }}
121
122 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
123 %% additional options for the hyperref package (it is already loaded)
124 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
125 % \hypersetup{
126 % colorlinks,
127 % bookmarksnumbered,
128 % bookmarkstype={toc},
129 % bookmarksopen={true},
130 % bookmarksopenlevel={1},
131 % pdfstartview={FitH},
132 % citecolor={blue},
133 % %linkcolor={black},
134 % %urlcolor={black},
135 % pdfpagemode={UseOutlines},
136 % breaklinks=true
137 % }
138
139 %the next two lines will prevent hyphenation in phonetic transcriptions
140 %\usepackage{hyphenat}
141 %\newcommand{\ipa}[1]{\nohyphens{\textipa{#1}}}
142
143 %% redefine some rules for nice table formatting
144 \setlength{\arrayrulewidth}{.6pt}
145 \setlength{\doublerulesep}{0pt}
146
147 %% allow more floats on a page, and change the float separation from text
148 \setlength{\floatsep}{5pt}
149 \setlength{\intextsep}{5pt}
150 \renewcommand\floatpagefraction{.70}
151 \renewcommand\topfraction{.95}
152 \renewcommand\bottomfraction{.95}
153 \renewcommand\textfraction{.1}
154
155 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
156 %% line spacing %%%
157 %% Rackham requires onehalf or double spacing
158 %% The default for the class is onehalf
159 %% To change it for non-final copies, use one of the following options
160 %\singlespacing
161 %\doublespacing
162 %% The class file automatically singles spaces stuff which should
163 %% be single spaced according to rackham, like the bibliography,
164 %% titles, long quotations and such
165 %% However, if you want to, you can also change spacing for
166 %% a portion of text like so:
167 %%\begin{singlespacing} ... \end{singlespacing}
168 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
169
170 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
171 %%% title and author info %%%%
172 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
173 \author{\LaTeX}
174 \program{Professional Typesetting}
175 \degree{Doctor of Philosophy}
176 % if you only have chair, use \chaircommitteemember
177 % if you have outside members, you can specify their institution in the
178 % optional argument
179 \cochaircommitteemember{John Smith}{Professor}
180 \cochaircommitteemember{Mary Johnson}{Assistant Professor}
181 \committeemember[University of Hard Knocks]{Robert Hughes}{Professor}
182 \committeemember{Emily Dickens}{Assistant Professor}
183 \title{The most Rackham-standards compliant dissertation ever}
184
185 \makeindex %if you are including an index
186 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
187 %% IMPORTANT - learn to use includeonly - it is very helpful
188 %% 1. put each chapter in a separate file
189 %% 2. type \include{file} where you want it to go
190 %% 3. First you have to compile once with everything included,
191 %% then you can include only certain parts
192 %%
193 %% and the table of contents will still list all parts,
194 %% the chapter numbers will still all be correct
195 %% and you can easily print out (or e-mail or whatever) just one chapter
196 %% if you like, you can even leave out all the frontmatter stuff by putting
197 %% it in a separate file as well
198 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
199 \includeonly{%
200 intro,%
201 exp1,%
202 exp2,%
203 exp3,%
204 conclusion,%
205 appendix
206 }
207 \begin{document}
208 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
209 %% IMPORTANT -- must issue frontmatter, mainmatter, and backmatter
210 %% commands in right place. These commands handle page numbering and
211 %% formatting of various parts
212 %% \frontmatter - right after begin document
213 %% \mainmatter - right before first chapter
214 %% \backmatter - right before bibliography
215 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
216 \frontmatter
217
218 %%%% these command change latex's default hyphenation a bit.
219 % Setting tolerance low will encourage hyphenation.
220 % Setting tolerance high will discourage hyphenation
221 \pretolerance=-1
222 \tolerance=1000
223 \adjdemerits=6400
224 \doublehyphendemerits=90000
225 \finalhyphendemerits=14400
226
227 \maketitle
228 %%%%% the finalabstract environment typesets the abstract as it should be
229 % for the copies that go to Rackham separate of the actual dissertation.
230 \begin{finalabstract}
231 your abstract here
232 \end{finalabstract}
233 \makecopyright
234
235 \begin{frontispiece}
236 If we knew what we were doing, it wouldn't be called research\\
237 \dash Albert Einstein
238 \end{frontispiece}
239
240 \begin{dedication}
241 to Delores
242 \end{dedication}
243
244 \begin{acknowledgments}
245 these people helped me
246 \end{acknowledgments}
247
248 \begin{preface}
249 before reading this, you should know\dots
250 \end{preface}
251
252 \tableofcontents
253
254 % only use these commands if you have more than figure, table, and/or
255 % appendix, respectively
256 \listoftables
257 \listoffigures
258 \listofappendices
259
260 % the normal abstract is formatted the same as preface and acknowledgments,
261 % and is listed in the table of contents
262 \begin{abstract}
263 your abstract here
264 \end{abstract}
265 \mainmatter
266 \include{intro}
267 \include{exp1}
268 \include{exp2}
269 \include{exp3}
270 \include{conclusion}
271 \appendix
272 \include{appendix}
273
274 \backmatter
275 \bibliographystyle{mybibstyle} %my personal bibliography style
276 %\bibliographystyle{plain} %default bib style
277 \bibliography{felty}
278 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
279 %% if using an index, make sure to add it to the table of contents
280 %% and use phantomsection so hyperref links to the right page
281 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
282 %\phantomsection %makes sure it points to the right page
283 %\addtocontents{toc}{chapter}{Index}
284 %\printindex
285 \end{document}