Add compiled versions of the examples along with our useful files
[drexel-thesis.git] / example-1.tex
1 %%
2 %% This is file `example-1.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% drexel-thesis.dtx  (with options: `example-part')
8 %% 
9 %% This is a generated file.
10 %% 
11 %% Copyright (C) 2010-2012 W. Trevor King
12 %% 
13 %% This file may be distributed and/or modified under the conditions of
14 %% the LaTeX Project Public License, either version 1.3 of this license
15 %% or (at your option) any later version.  The latest version of this
16 %% license is in:
17 %% 
18 %%    http://www.latex-project.org/lppl.txt
19 %% 
20 %% and version 1.3 or later is part of all distributions of LaTeX version
21 %% 2003/06/01 or later.
22 %% 
23 \part{A Part Heading}
24 \chapter{A Chapter Heading}
25 \section{A Section Heading}
26 The following sectioning commands are available:
27 \begin{quote}
28  part \\
29  chapter \\
30  section \\
31  subsection \\
32  subsubsection \\
33  paragraph \\
34  subparagraph
35 \end{quote}
36
37 \subsection{natbib}
38 You can cite your references with |natbib|'s |\citet| and |\citep|
39 macros.  See
40 \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}
41 {the natbib manual} for details.
42
43 Here we have a text citation \citet{rief97} followed by a
44 parenthetical citation\citep{rief97}.
45
46 \subsubsection{Tables and Figures}
47 \Blindtext[2]
48 \begin{table}
49   \begin{center}
50   \begin{tabular}{r@{.}l r@{.}l r@{.}l}
51     \multicolumn{2}{c}{Time (s)} &
52       \multicolumn{2}{c}{John Henry (m)} &
53       \multicolumn{2}{c}{Steam drill (m)} \\
54     0&0 & 0&0 & 0&0 \\
55     10&0 & 4&3 & 3&75 \\
56     30&0 & 11&9 & 10&1 \\
57     \ldots
58   \end{tabular}
59   \caption{A table float.} % low caption allowed with floatrow
60 %% Note the strange |r@{.}l| notation in the |\tabular| column
61 %% definition.  This allows for numbers aligned at the decimal point
62 %% (see \href{http://www.stat.unipg.it/tex-man/ltx-68.html}{here}).
63 %%
64 %% |\multicolumn{num_cols}{alignment}{contents}| allows the headings
65 %% to span the pre- and post-decimal columns.
66   \end{center}
67 \end{table}
68 \Blindtext[2]
69 \begin{figure}
70   \caption{A figure float. \blindtext} % high caption allowed with floatrow
71   \begin{center}
72     \includegraphics[width=0.4\textwidth]{drexel-logo}
73   \end{center}
74 \end{figure}
75 \Blindtext[3]
76 \begin{figure}
77   \begin{center}
78     \subfloat[][]{%
79       \includegraphics[width=0.2\textwidth]{drexel-logo}%
80       \label{fig:sub-a}}
81     \subfloat[][]{%
82       \includegraphics[width=0.2\textwidth]{drexel-logo}%
83       \label{fig:sub-b}}
84     \caption{(a) One subfig float. (b) Another subfig float.%
85       \label{fig:both}}
86   \end{center}
87 \end{figure}
88 You can reference the subfig floats individually (\ref{fig:sub-a}) or
89 together (\ref{fig:both}).
90
91 \Blindtext[3]
92
93 \part{Another Part}
94 \chapter{Another Chapter}
95 \Blindtext[5]
96 \chapter{A Long Title Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla
97 Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla}
98 \Blindtext[5]
99 \endinput
100 %%
101 %% End of file `example-1.tex'.