-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPennDiss.sty
More file actions
277 lines (247 loc) · 7.63 KB
/
PennDiss.sty
File metadata and controls
277 lines (247 loc) · 7.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
%
% University of Pennsylvania thesis style
% Dept. of Computer Information and Science
%
% Last edit Tue Nov. 19 12:00:00 2002
% Last edit by Gang Huang
% Modification of:
%
% penndiss.sty
% PENNDISS DOCUMENT-STYLE OPTION - released July, 1988
% for LaTeX version 2.09
% Author: Haim Levkowitz (modified from the Stanford U. style)
% University of Pennsylvania PhD thesis style -- option to the report style
% Note: This file is the .STY file. The file penndiss.DOC serves as
% documentation.
% Whenever there are discrepancies between the two file,
% this is the CORRECT thing. It has been fine-tuned for the precise
% margin requirement. It ``passed the test'' on Friday, July 29, 1988, when
% my dissertation, formated with it, was accepted.
% Haim Levkowitz, July 30, 1988.
% For an example, see [levkowitz.clr]dissroot.tex
\makeatletter \oddsidemargin 0.5in \evensidemargin 0.5in
\marginparwidth 40pt \marginparsep 10pt \topmargin 0pt \headsep
0in \textheight 8.5in \textwidth 5.9375in \voffset=-.125in
%\hoffset=.0625in %shifts text 1/16 in to the right
\flushbottom \brokenpenalty=10000
\renewcommand{\baselinestretch}{1.5}
%\renewcommand{\baselinestretch}{1.0}
%\def\cl@chapter{\@elt{section}\@elt{footnote}}
%\def\thefigure{\@arabic\c@figure}
%\def\thetable{\@arabic\c@table}
%\def\theequation{\arabic{equation}}
\newcommand{\upenn}{University of Pennsylvania}
\newcommand{\cis}{Computer and Information Science}
%% this is wack!!
% \def\@xfloat#1[#2]{\ifhmode \@bsphack\@floatpenalty -\@Mii\else
% \@floatpenalty-\@Miii\fi\def\@captype{#1}\ifinner
% \@parmoderr\@floatpenalty\z@
% \else\@next\@currbox\@freelist{\@tempcnta\csname ftype@#1\endcsname
% \multiply\@tempcnta\@xxxii\advance\@tempcnta\sixt@@n
% \@tfor \@tempa :=#2\do
% {\if\@tempa h\advance\@tempcnta \@ne\fi
% \if\@tempa t\advance\@tempcnta \tw@\fi
% \if\@tempa b\advance\@tempcnta 4\relax\fi
% \if\@tempa p\advance\@tempcnta 8\relax\fi
% }\global\count\@currbox\@tempcnta}\@fltovf\fi
%
%% not that i understand this, but changing this line allows hyperref colorlinks=true
%% as discovered in this forum post: http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2006-04/msg00840.html - bensapp
%% \global\setbox\@currbox\vbox\bgroup
%\global\setbox\@currbox\color@vbox\normalcolor\vbox\bgroup
%
% \def\baselinestretch{1}\@normalsize
% \boxmaxdepth\z@
% \hsize\columnwidth \@parboxrestore}
%
\long\def\@footnotetext#1{\insert\footins{\def\baselinestretch{1}\footnotesize
\interlinepenalty\interfootnotelinepenalty
\splittopskip\footnotesep
\splitmaxdepth \dp\strutbox \floatingpenalty \@MM
\hsize\columnwidth \@parboxrestore
\edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
{\rule{\z@}{\footnotesep}\ignorespaces
#1\strut}}}
\def\dept#1{\gdef\@dept{#1}}
\def\supervisor#1{\gdef\@supervisor{#1}}
\def\supervis@r{supervisor}
\def\supervisor#1{\gdef\@supervisor{#1}\gdef\supervis@r{Supervisor of Dissertation}}
\def\groupchair#1{\gdef\@groupchair{#1}\gdef\groupcha@r{Graduate Group
Chairperson}}
\def\submitdate#1{\gdef\@submitdate{#1}}
\def\copyrightyear#1{\gdef\@copyrightyear{#1}} % \author, \title in report
\def\@title{}\def\@author{}\def\@dept{electrical and systems enigneering}
\def\@supervisor{}%
\def\@groupchair{}%
\def\@submitdate{\ifcase\the\month\or January\or February\or March\or April\or May\or June\or July\or August\or
September\or October\or November\or December\fi \space \number\the\year}
%%\ifnum\month=12
%% \@tempcnta=\year \advance\@tempcnta by 1
%% \edef\@copyrightyear{\number\the\@tempcnta}
%%\else
\def\@copyrightyear{\number\the\year}
%%\fi
\newif\ifcopyright \newif\iffigurespage \newif\iftablespage
%%\copyrighttrue
\figurespagetrue \tablespagetrue
%Define the signature format
\long\def\signature#1{%
% \begin{flushleft}
\begin{center}
% \begin{minipage}{6in}
\parindent=0pt
\shortstack{\vrule width 2.75in height 0.4pt\\#1}
% \end{minipage}
\end{center}
% \end{flushleft}
}
%Define the signature format
\long\def\signatureTwo#1#2{%
% \begin{flushleft}
\begin{center}
% \begin{minipage}{6in}
\parindent=0pt
\shortstack{\vrule width 2.75in height 0.4pt\\#1} \hspace{0.2in}
\shortstack{\vrule width 2.75in height 0.4pt\\#2 \vspace{0.365in}}
% \end{minipage}
\end{center}
% \end{flushleft}
}
%Define the signature format
\long\def\signatureNoLineTwo#1#2{%
% \begin{flushleft}
\begin{center}
% \begin{minipage}{6in}
\parindent=0pt
\shortstack{#1} \hspace{0.1in}
\shortstack{#2}
% \end{minipage}
\end{center}
% \end{flushleft}
}
%%Define the signature format
%\long\def\signatureNoLineThree#1#2#3{%
%% \begin{flushleft}
%\begin{center}
%% \begin{minipage}{6in}
%\parindent=0pt
%\shortstack{#1} \hspace{0.2in}
%\shortstack{#2}\hspace{0.2in}
%\shortstack{#3}
%% \end{minipage}
%\end{center}
%% \end{flushleft}
%}
\def\titlep{%
\thispagestyle{empty}%
%\null\vskip.1in%
\begin{center}
{\Large\uppercase\expandafter{\@title}}
\vskip.3in%
{\Large\expandafter{\@author}}
\vskip.2in%
A DISSERTATION \\
\vskip.2in%
in
\vskip.2in%
{\Large\expandafter{\@dept}}
%\vfill
\vskip.2in
Presented to the Faculties of the University of Pennsylvania \\
in \\
Partial Fulfillment of the Requirements for the Degree of Doctor of Philosophy\\
\vskip.2in\@copyrightyear\vskip.6in
\end{center}
%\begin{multicols}
%\vfill
% \signatureTwo{Stella X. Yu, Adjunct Assistant Professor\\ Computer and Information Science \\ \vspace{0.04in}Clare Boothe Luce Assistant Professor \\ Computer Science, Boston College \\ Supervisor of Dissertation} {Jianbo Shi, Associate Professor \\ Computer and Information Science \\ Supervisor of Dissertation}
\signature{\@supervisor, Associate Professor\\Computer and Information Science\\ \supervis@r}
\vskip.3in
\signature{\@groupchair, Professor\\Computer and Information Science\\ \groupcha@r}
\vskip.2in%
\begin{center}
Dissertation Committee
\end{center}
\vskip.05in%
\begin{center}
\begin{tabular}{cc}
\shortstack{Kostas Daniilidis, Professor\\ \cis \\ \upenn} \hspace{0.2in} &
\shortstack{Jianbo Shi, Associate Professor \\ \cis \\ \upenn }
\\\\
\shortstack{Camillo J. Taylor, Associate Professor\\ \cis \\ \upenn} \hspace{0.2in} &
\shortstack{David Forsyth, Professor \\ Computer Science \\ University of Illinois}\\
\end{tabular}
\end{center}
\vskip.05in
%\begin{tabular}[c]{@{}cc@{}}
%\shortstack{Kostas Daniilidis, Professor\\ \cis \\ \upenn} \hspace{0.2in} &
% \shortstack{Jianbo Shi, Associate Professor \\ \cis \\ \upenn }\\
%\end{tabular}
% \end{center}
%\vskip.05in
%\begin{center}
%\begin{tabular}[c]{@{}cc@{}}
%\shortstack{Camillo J. Taylor, Associate Professor\\ \cis \\ \upenn} \hspace{0.2in} &
% \shortstack{David Forsyth, Professor \\ Computer Science \\ University of Illinois}\\
%\end{tabular}
%\end{center}
%\vskip.05in
%
}
\newpage
\def\copyrightpage{%
\thispagestyle{empty}%
\null\vfill
{\Large
\noindent \MYTITLE\\\\
\copyright \\\\
\@copyrightyear\\\\
\@author
}
\vfill\newpage}
\def\beforepreface{%
\pagenumbering{roman}%
\pagestyle{plain}%
\titlep%
\ifcopyright\copyrightpage\fi}
\def\prefacesection#1{
\pagestyle{plain}%
\chapter*{#1}
\addcontentsline{toc}{chapter}{#1}}
\def\abstractp{%
\begin{center}
{\uppercase{ABSTRACT}}\\
{\uppercase\expandafter{\@title}} \\
{\@author} \\
{\@supervisor}\\
\end{center}
\input{abstract}
}
\def\tocstuff{\newpage
\tableofcontents
\newpage
\iftablespage
{\addvspace{10pt}
\let\saveaddvspace=\addvspace
\def\addvspace##1{}
\listoftables
\let\addvspace=\saveaddvspace}
\newpage
\fi
\iffigurespage
{\addvspace{10pt}
\let\saveaddvspace=\addvspace
\def\addvspace##1{}
\listoffigures
\let\addvspace=\saveaddvspace}
\newpage
\fi
}
%\pagenumbering{arabic}
%\pagestyle{plain}}
%\def\prefacesectionfish{%
%
%\pagestyle{plain}%
%\input{fish}
%\addcontentsline{toc}{Preface}}
% Start with pagestyle{plain} in case front matter isn't processed \pagestyle{plain} \makeatother