Debian Codegraph @

texmf-dist/doc/latex/uafthesis/example/ch2.tex

raw
1 \chapter{Basic Use}
2
3 \section{Introduction}
4
5 In this section, I take the main file, show some snippets, and explain what
6 they all mean, or why you would want to use these things.
7
8 \section{example.tex}
9
10 \begin{verbatim}
11 \documentclass{uafthesis}
12 \end{verbatim}
13
14 This is where the secret sauce is.
15
16 \begin{verbatim}
17 \usepackage{fixltx2e} % Allows \(\) in captions, amongst other things.
18 \usepackage{ppl} % The Paladino font
19 \usepackage{amsmath, amssymb, amsfonts} % Thanks, AMS!
20 \usepackage{graphicx, float} % Graphics stuff
21 \usepackage{verbatim} % For very basic listings and multi-line comments.
22 %\usepackage{chapterbib} % This is an option for those bundling papers.
23 \usepackage[square]{natbib}
24 %\usepackage{tocbibind} % This fixes the "bibliography in ToC" problem.
25 % Use with chapterbib.
26 \usepackage{url} % I quote some URLs in the bibliography"
27 \end{verbatim}
28
29 \texttt{fixltx2e} fixes an annoying bug where using inline mathematics
30 delimiters in captions for graphics and tables would cause errors in the
31 compiler. Alternately, one may simply use the dollar signs instead.
32
33 \texttt{ppl} is the ``Paladino'' font, which has been extremely popular for
34 UAF theses in the past. There is, however, no rule against using ``Computer
35 Modern'' or some other font, and in fact ``Paladino'' was originally intended
36 for headings only when it was designed (fun fact).
37
38 Some writers of theses end up bundling multiple published papers into a thesis,
39 especially in the case of PhD candidates. \texttt{chapterbib} allows for
40 separate bibliographies for each chapter, which is the most appropriate format
41 given this bundled-paper style of thesis. Many theses---mine included---only
42 have a single bibliography.
43
44 Finally, \texttt{natbib} allows one to change how citations appear.
45
46 \small
47 \begin{verbatim}
48 \input{custom-macros.tex}
49 \end{verbatim}
50 \normalsize
51
52 Many authors write their own \LaTeX macros in order to make writing their thesis
53 easier. This document does not have any custom macros.
54
55 \small
56 \begin{verbatim}
57 \begin{document}
58
59 \title{An Example Thesis Document}
60 \author{Joshua Holbrook}
61
62 \degreeyear{2011}
63 \degreemonth{May}
64 \degree{Master of Arts}
65 \department{Dept. of Fresh Beats}
66 \numberofmembers{3} % Make sure this is right! The grad school hates empty
67 % signature lines.
68 \prevdegrees{B.A.M.F.}
69 \college{College of Pwning Noobs}
70
71 \makesig
72 \maketitle
73 \end{verbatim}
74 \normalsize
75
76 In this section, the important information about the thesis is filled in, and
77 then the signature page and title page are generated.
78
79 \small
80 \begin{verbatim}
81 % Wondering when to use `input' and when to use `include?'
82 % read http://en.wikibooks.org/wiki/LaTeX/Basics#Big_Projects .
83 \begin{abstract}
84 \input abstract.tex
85 \end{abstract}
86
87 %Table of Contents and such
88 \tableofcontents
89 \listoffigures
90 \listoftables
91 %\listofothermaterials
92 \listofappendices
93 \end{verbatim}
94 \normalsize
95
96 Here, the abstract is inserted, then the table of contents and other tables.
97 Note that the appendices are in a separate table. \textbf{This is not typical}
98 in \LaTeX and requires special handling, as detailed in the next chapter.
99 Similarly with the List of Other Materials, if your thesis has one (think
100 CDs and such).
101
102 \small
103 \begin{verbatim}
104 \begin{acknowledgements}
105 \input acknowledgements.tex
106 \end{acknowledgements}
107
108 \begin{quotepage}
109 \input quotepage.tex
110 \end{quotepage}
111
112 \include{ch1}
113 \include{ch2}
114 \include{ch3}
115 \end{verbatim}
116 \normalsize
117
118 After inputting a few more pages, the chapters (separate documents) are all
119 included.
120
121 \small
122 \begin{verbatim}
123 \nocite{wikibook}
124 \bibliographystyle{agufull08}
125 \bibliography{thesis}
126 \end{verbatim}
127 \normalsize
128
129 This generates the bibliography. Note that the bibliography style is set to
130 \texttt{agufull08}. Generally, the graduate school isn't picky about
131 bibliography style, as long as it's consistent. For geophysics papers (very
132 common at UAF), the AGU style is a great choice. It is included here, but may
133 also be found at AGU's web site.
134
135 \small
136 \begin{verbatim}
137 \appendix
138 \include{apx1}
139
140 \end{document}
141 \end{verbatim}
142 \normalsize
143
144 This is how appendices are included. In fact, they are written just like
145 regular chapters, and the \textbackslash appendix flag signals that following
146 chapters should be given letters (A, B, C...) instead of numbers (1, 2, 3...).