Skip to content

Commit 98f15ad

Browse files
authored
Merge pull request #4 from sgoodm/master
Update to compile in Overleaf and meet 2020 standards
2 parents ebf7097 + 5df115b commit 98f15ad

File tree

2 files changed

+73
-61
lines changed

2 files changed

+73
-61
lines changed

README.md

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# TeX Template of Physical Standards for Theses & Dissertations for College of William & Mary, Arts & Sciences
22

3-
This directory contains a collection of template files that can be used with
4-
LaTeX to produce a PhD dissertation that conforms pretty closely to the W&M
3+
This directory contains a collection of template files that can be used with
4+
LaTeX to produce a PhD dissertation that conforms pretty closely to the W&M
55
"Physical Standards for Theses & Dissertations".
66

77
http://www.wm.edu/as/graduate/studentresources/thesis-dissertations/physicalstandards/index.php
@@ -11,46 +11,51 @@ http://www.wm.edu/as/graduate/studentresources/thesis-dissertations/physicalstan
1111
- [William L. Bynum](http://www.cs.wm.edu/~bynum/)
1212
- [Rance Necaise](http://necaiseweb.org/)
1313

14-
> The department is indebted to Rance Necaise, who contributed the files from
15-
> which these files were derived. Rance received his PhD from the department
14+
> The department is indebted to Rance Necaise, who contributed the files from
15+
> which these files were derived. Rance received his PhD from the department
1616
> in August of 1998. -- William L. Bynum
1717
1818

1919
- [Bob Matthews](http://matthews.sites.truman.edu/)
2020

21-
> Updated 9/04 to conform to Arts and Science Graduate Writer's Guide of Nov.
21+
> Updated 9/04 to conform to Arts and Science Graduate Writer's Guide of Nov.
2222
> 2003. Your milege may vary. -- Bob Matthews == rem
2323
2424
- [Ruth Lamprecht](https://www.linkedin.com/in/ruthlamprecht/)
2525
- [Andrew Pyles](https://www.linkedin.com/in/andrew-j-pyles-b44909/)
2626

27-
> Updated 07/13 to conform to Arts and Science standards of Oct. 2012, with
27+
> Updated 07/13 to conform to Arts and Science standards of Oct. 2012, with
2828
> help from Andrew Pyles -- Ruth
2929
3030
- [David T. Nguyen](http://davidnguyen.cz/)
3131

32-
> Modifications to comply with Physical Standards set on 08/13/2015
32+
> Modifications to comply with Physical Standards set on 08/13/2015
3333
3434
- [Ed Novak](https://www.fandm.edu/ed-novak)
3535

36-
> Updated 06/16 to conform to the new William and Mary physical standards and
36+
> Updated 06/16 to conform to the new William and Mary physical standards and
3737
> submission system online with ProQuest. -- Ed Novak
3838
3939
- Shanhe Yi
4040

41-
> Committed with the physical standards set on May 2018. Refactored the
42-
> wmthesis class to make it easier to understand and modify.
41+
> Committed with the physical standards set on May 2018. Refactored the
42+
> wmthesis class to make it easier to understand and modify.
4343
> Maintain the first Github repository. -- Shanhe Yi
4444
45+
- [Seth Goodman](https://github.com/sgoodm)
46+
47+
> Updated 11/20 to compile in Overleaf and meet current standards
48+
49+
4550
## Usage
4651

4752
The files used to produce the thesis.pdf file are
4853

4954
./thesis.tex the top-level LaTeX file
5055
./structure.tex the structure of the thesis
51-
./Makefile can be used to compile to a PDF, either
52-
with or without also compiling the bibtex,
53-
as well as cleaning out unnecessary files
56+
./Makefile can be used to compile to a PDF, either
57+
with or without also compiling the bibtex,
58+
as well as cleaning out unnecessary files
5459
and creating a zipped backup
5560
./acknowledge.tex the acknowledgements
5661
./abstract.tex the abstract of the thesis
@@ -61,16 +66,16 @@ The files used to produce the thesis.pdf file are
6166
./thesis.bib the file that BiBTeX uses to create thesis.bbl
6267
(see Lamport's LaTeX book)
6368
./wmthesis.cls defines the wmthesis class
64-
./wmchapter.sty used by ./stcy/wmthesis.cls to set the top
69+
./wmchapter.sty used by ./stcy/wmthesis.cls to set the top
6570
margin at the beginning of each chapter
6671
./wmbib.bst the BiBTeX style file used to create the
67-
bibiliography
72+
bibiliography
6873
(see Lamport's LaTeX book)
6974
./signed_approval_page.pdf the dummy signed approval page, replace it with your scan copy
7075
./uarial.sty the style file for arial font
7176

7277
To compile the LaTeX files and the bibliography, type "make" on the command
73-
line.
78+
line.
7479
To compile just the LaTeX files, type `make latex` , `make pdflatex` or `make xelatex`.
7580

7681
If you are writing a thesis other than a dissertation, adding `thesis` to the document class option
@@ -79,7 +84,7 @@ If you are writing a thesis other than a dissertation, adding `thesis` to the do
7984
\documentclass[11pt, draft, thesis]{wmthesis}
8085
```
8186

82-
Adding `proposal`, `draft`, or `final` based on your pace.
87+
Adding `proposal`, `draft`, or `final` based on your pace.
8388

8489

8590
```tex
@@ -89,23 +94,23 @@ Adding `proposal`, `draft`, or `final` based on your pace.
8994

9095

9196
```tex
92-
\documentclass[11pt, draft]{wmthesis}
97+
\documentclass[11pt, draft]{wmthesis}
9398
% has all required pages and a blank approval page.
9499
```
95100

96101

97102
```tex
98103
\documentclass[11pt, final]{wmthesis}
99-
% includes all required pages.
100-
% It will also replace the blank approval pages with a signed pdf
104+
% includes all required pages.
105+
% It will also replace the blank approval pages with a signed pdf
101106
% - rename your scann copy as 'signed_approval_page.pdf'.
102107
```
103108

104109

105-
Feel free to contact the contributors or open an issue if any you have any questions regarding the use of these files.
106-
And you are very welcomed for **PULL REQUEST**.
110+
Feel free to contact the contributors or open an issue if any you have any questions regarding the use of these files.
111+
And you are very welcomed for **PULL REQUEST**.
107112
Let's combine efforts - long live this template !
108-
113+
109114

110115

111116

@@ -121,13 +126,13 @@ However, you can follow the instrcutures below to setup Arial if you like to use
121126

122127
### Ways of install Arial font
123128

124-
If you insist on usingf Arial font, depends on you are using pdflatex, or latex, or xelatex, and the platforms,
129+
If you insist on usingf Arial font, depends on you are using pdflatex, or latex, or xelatex, and the platforms,
125130
there are different ways to install arial fonts, we list a few here and expect pull request to this repo for latest methods to
126131
get the Arial font.
127132

128133
#### 1. MacOS or Ubuntu - Using PdfLaTeX or LaTeX
129134

130-
This method shows font as `A030` (tested in edit mode of PDFExpert), but it is Arial indeed.
135+
This method shows font as `A030` (tested in edit mode of PDFExpert), but it is Arial indeed.
131136
Might make this method less favored. Someone using this method needs to get consent from the office lady.
132137

133138
On Mac OS, you can install MacTex to get the Tex environment.
@@ -189,7 +194,7 @@ in you `thesis.tex`, put
189194
```
190195

191196

192-
then, in your `Makefile`, make sure
197+
then, in your `Makefile`, make sure
193198

194199
```makefile
195200
xelatex:
@@ -205,9 +210,9 @@ then `make xelatex` to compile the latex.
205210
#### 3. Aria in Ubuntu using XeLaTeX - from David
206211

207212
> Modifications to comply with Physical Standards set on 08/13/2015 done by David T. Nguyen
208-
> PhD, February 2016
213+
> PhD, February 2016
209214
> Topic: Enhancing Mobile Device System Using Information from Users and Upper Layers
210-
> Use PDF figures (for some reason EPS figures are not displayed correctly,
215+
> Use PDF figures (for some reason EPS figures are not displayed correctly,
211216
> you can use `epspdf myfigure.eps` to convert)
212217

213218
Compiling in Ubuntu: use Kile as an editor, and use XeLaTeX button to compile
@@ -218,7 +223,7 @@ sudo apt-get install ttf-mscorefonts-installer
218223
sudo fc-cache
219224
```
220225

221-
After that, check with
226+
After that, check with
222227

223228
```shell
224229
fc-match Arial

wmthesis.cls

Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
\@setflag \@draft = \@true
3939
\@setflag \@final = \@true
4040

41-
\DeclareOption{thesis}{\@setflag \@thesis = \@true}
42-
\DeclareOption{dissertation}{\@setflag \@thesis = \@false}
41+
\DeclareOption{thesis}{\@setflag \@thesis = \@true}
42+
\DeclareOption{dissertation}{\@setflag \@thesis = \@false}
4343
\DeclareOption{proposal}{\@setflag \@proposal = \@true%
4444
\@setflag \@draft = \@false%
4545
\@setflag \@final = \@false}
@@ -115,7 +115,7 @@
115115

116116

117117
%%----------------------------------------------------------------
118-
% Set toc
118+
% Set toc
119119
%%----------------------------------------------------------------
120120
\RequirePackage[titles]{tocloft}
121121
\newlength\mylength
@@ -155,7 +155,7 @@
155155

156156

157157

158-
\newcommand{\thesisLocation}[1]{\gdef\thesis@location{#1}}
158+
\newcommand{\thesisLocation}[1]{\gdef\thesis@location{#1}}
159159
\newcommand{\thesisHometown}[1]{\gdef\ThesisHometown{#1}}
160160

161161
\newcommand{\thesisDegreeOne}[1]{\gdef\ThesisDegreeOne{#1}}
@@ -193,21 +193,12 @@
193193
\addtocounter{thesis@members}{1}}
194194

195195

196-
%%----------------------------------------------------------------
197-
% Set the title that will be printed on the Contents page -- Ruth
198-
%%----------------------------------------------------------------
199-
% The negative vspace is used to make sure that only one line is
200-
% between the title and the first line for each of these pages.
201-
\renewcommand{\contentsname}{\begin{center}\Large\normalfont TABLE OF CONTENTS\vspace{-.75in}\end{center}}
202-
\renewcommand\listfigurename{\begin{center}\Large\normalfont LIST OF FIGURES\vspace{-.6in}\end{center}}
203-
\renewcommand\listtablename{\begin{center}\Large\normalfont LIST OF TABLES\vspace{-.6in}\end{center}}
204-
205196

206197
%%----------------------------------------------------------------
207-
% Set penalties
198+
% Set penalties
208199
%%----------------------------------------------------------------
209-
% Penalties are the main value that TeX tries to minimise when line or page breaking,
210-
% They may be inserted explicitly (\penalty125 means that the penalty for breaking at that point is 125).
200+
% Penalties are the main value that TeX tries to minimise when line or page breaking,
201+
% They may be inserted explicitly (\penalty125 means that the penalty for breaking at that point is 125).
211202
% Some penalties are built in to the TeX system and inserted automatically. Here we custom define a few.
212203
\def\defaultpenalty{1000} \clubpenalty=\defaultpenalty
213204
\widowpenalty=\defaultpenalty
@@ -292,16 +283,16 @@
292283
\hspace{.1in} \\
293284
\hspace{.1in} \\
294285
\hspace{.1in} \\ % 4 lines between hometown and prior degrees -- Ruth
295-
\ifdefined\ThesisDegreeOne \ThesisDegreeOne \\ \fi
286+
\ifdefined\ThesisDegreeOne \ThesisDegreeOne \\ \fi
296287
\ifdefined\ThesisDegreeTwo \ThesisDegreeTwo \\ \fi
297288
\ifdefined\ThesisDegreeThree \ThesisDegreeThree \\ \fi
298289
% Support at most 3 previous degrees if there are more degrees, you have to manually add them. -- Shanhe
299290
\hspace{.1in} \\
300291
\hspace{.1in} \\
301292
\hspace{.1in} \\
302293
\hspace{.1in} \\ % 4 lines between prior degrees and purpose statement -- Ruth
303-
{A \if \@thesis Thesis \else Dissertation \fi presented to the Graduate Faculty\\
304-
of the College of William \& Mary in Candidacy for the Degree of\\
294+
{A \if \@thesis Thesis \else Dissertation \fi presented to the Graduate Faculty
295+
of \\ The College of William \& Mary in Candidacy for the Degree of\\
305296
\ifdefined\ThesisType \ThesisType \else Doctor of Philosophy \fi}\\
306297
\hspace{.1in} \\
307298
\hspace{.1in} \\
@@ -379,12 +370,16 @@
379370
\hspace{.1in} \\ % 3 lines between signatures -- Ruth
380371
\underline{\hspace*{\thesisapprovalwidth}}\\
381372
{\small\thesis@memberiii, \thesis@deptiii\\
382-
\thesis@orgiii}
383-
\hspace{.1in} \\
384-
\hspace{.1in} \\
385-
\hspace{.1in} \\ % 3 lines between signatures -- Ruth
386-
\underline{\hspace*{\thesisapprovalwidth}}\\
387-
{\small\thesis@memberiv, \thesis@deptiv\\
373+
%-----------------
374+
% uncomment / copy following section to add additional members to committee
375+
%-----------------
376+
% \thesis@orgiii}
377+
% \hspace{.1in} \\
378+
% \hspace{.1in} \\
379+
% \hspace{.1in} \\ % 3 lines between signatures -- Ruth
380+
% \underline{\hspace*{\thesisapprovalwidth}}\\
381+
% {\small\thesis@memberiv, \thesis@deptiv\\
382+
%-----------------
388383
\thesis@orgiv}
389384
\hspace{.1in} \\
390385
\hspace{.1in} \\
@@ -393,7 +388,7 @@
393388
\else
394389
\underline{\hspace*{\thesisapprovalwidth}}\\
395390
{\small\thesis@memberv, \thesis@deptv\\
396-
\thesis@orgv}
391+
\thesis@orgv}
397392
\fi
398393
\end{center}
399394
\end{singlespace}
@@ -402,7 +397,7 @@
402397

403398
%%--------------------------------------------
404399
%%--The abstract page
405-
%%--Title 14 and content 12, single space between
400+
%%--Title 14 and content 12, single space between
406401
% title and content. -- Shanhe
407402
%%-- @see https://en.wikibooks.org/wiki/LaTeX/Fonts
408403
%%-- 11pt documentclass:
@@ -421,6 +416,7 @@
421416
}
422417

423418
%%--------------------------------------------
419+
424420
%%--The toc page
425421
\newcommand{\maketocpage}{
426422
\newpage
@@ -429,8 +425,14 @@
429425
\renewcommand{\thepage}{\roman{page}}
430426
\begingroup%
431427
\renewcommand{\bfseries}{\relax}% %prevent TOC from being bold
428+
%%----------------------------------------------------------------
429+
% Set the title that will be printed on the Contents page -- Ruth
430+
%%----------------------------------------------------------------
431+
% The negative vspace is used to make sure that only one line is
432+
% between the title and the first line for each of these pages.
433+
\renewcommand{\contentsname}{\begin{center}\Large\normalfont TABLE OF CONTENTS\vspace{-.75in}\end{center}}
432434
{\large \tableofcontents }
433-
\endgroup%
435+
\endgroup%
434436
}
435437

436438
%%--------------------------------------------
@@ -441,11 +443,11 @@
441443
\addcontentsline{toc}{chapter}{Acknowledgments}
442444
\Large\acknowledgeName
443445
\end{center}
444-
\begin{singlespace}
445446
\begin{flushleft}
446-
\input{\thesis@ack}
447+
\begin{singlespace}
448+
\input{\thesis@ack}
449+
\end{singlespace}
447450
\end{flushleft}
448-
\end{singlespace}
449451
}
450452

451453
%%--------------------------------------------
@@ -455,7 +457,9 @@
455457
\begin{center}
456458
\addcontentsline{toc}{chapter}{Dedications}
457459
\vspace*{3in}
458-
{\large \thesis@dedication}
460+
\begin{singlespace}
461+
{\large \thesis@dedication}
462+
\end{singlespace}
459463
\end{center}
460464
}
461465

@@ -466,6 +470,8 @@
466470
\newpage
467471
%\begin{singlespace}
468472
\addcontentsline{toc}{chapter}{List of Tables}
473+
\renewcommand\listtablename{\begin{center}\Large\normalfont LIST OF TABLES\vspace{-.6in}\end{center}}
474+
469475
{\large \listoftables }
470476
%\end{singlespace}
471477
}
@@ -476,6 +482,7 @@
476482
\newpage
477483
%\begin{singlespace}
478484
\addcontentsline{toc}{chapter}{List of Figures}
485+
\renewcommand\listfigurename{\begin{center}\Large\normalfont LIST OF FIGURES\vspace{-.6in}\end{center}}
479486
{\large \listoffigures }
480487
%\end{singlespace}
481488
}

0 commit comments

Comments
 (0)