Skip to content

Commit

Permalink
Merge pull request #4 from sgoodm/master
Browse files Browse the repository at this point in the history
Update to compile in Overleaf and meet 2020 standards
  • Loading branch information
yishanhe authored Nov 8, 2020
2 parents ebf7097 + 5df115b commit 98f15ad
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 61 deletions.
63 changes: 34 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# TeX Template of Physical Standards for Theses & Dissertations for College of William & Mary, Arts & Sciences

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

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

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

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

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

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

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

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

> Committed with the physical standards set on May 2018. Refactored the
> wmthesis class to make it easier to understand and modify.
> Committed with the physical standards set on May 2018. Refactored the
> wmthesis class to make it easier to understand and modify.
> Maintain the first Github repository. -- Shanhe Yi
- [Seth Goodman](https://github.com/sgoodm)

> Updated 11/20 to compile in Overleaf and meet current standards

## Usage

The files used to produce the thesis.pdf file are

./thesis.tex the top-level LaTeX file
./structure.tex the structure of the thesis
./Makefile can be used to compile to a PDF, either
with or without also compiling the bibtex,
as well as cleaning out unnecessary files
./Makefile can be used to compile to a PDF, either
with or without also compiling the bibtex,
as well as cleaning out unnecessary files
and creating a zipped backup
./acknowledge.tex the acknowledgements
./abstract.tex the abstract of the thesis
Expand All @@ -61,16 +66,16 @@ The files used to produce the thesis.pdf file are
./thesis.bib the file that BiBTeX uses to create thesis.bbl
(see Lamport's LaTeX book)
./wmthesis.cls defines the wmthesis class
./wmchapter.sty used by ./stcy/wmthesis.cls to set the top
./wmchapter.sty used by ./stcy/wmthesis.cls to set the top
margin at the beginning of each chapter
./wmbib.bst the BiBTeX style file used to create the
bibiliography
bibiliography
(see Lamport's LaTeX book)
./signed_approval_page.pdf the dummy signed approval page, replace it with your scan copy
./uarial.sty the style file for arial font

To compile the LaTeX files and the bibliography, type "make" on the command
line.
line.
To compile just the LaTeX files, type `make latex` , `make pdflatex` or `make xelatex`.

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

Adding `proposal`, `draft`, or `final` based on your pace.
Adding `proposal`, `draft`, or `final` based on your pace.


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


```tex
\documentclass[11pt, draft]{wmthesis}
\documentclass[11pt, draft]{wmthesis}
% has all required pages and a blank approval page.
```


```tex
\documentclass[11pt, final]{wmthesis}
% includes all required pages.
% It will also replace the blank approval pages with a signed pdf
% includes all required pages.
% It will also replace the blank approval pages with a signed pdf
% - rename your scann copy as 'signed_approval_page.pdf'.
```


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




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

### Ways of install Arial font

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

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

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

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


then, in your `Makefile`, make sure
then, in your `Makefile`, make sure

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

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

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

After that, check with
After that, check with

```shell
fc-match Arial
Expand Down
71 changes: 39 additions & 32 deletions wmthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
\@setflag \@draft = \@true
\@setflag \@final = \@true

\DeclareOption{thesis}{\@setflag \@thesis = \@true}
\DeclareOption{dissertation}{\@setflag \@thesis = \@false}
\DeclareOption{thesis}{\@setflag \@thesis = \@true}
\DeclareOption{dissertation}{\@setflag \@thesis = \@false}
\DeclareOption{proposal}{\@setflag \@proposal = \@true%
\@setflag \@draft = \@false%
\@setflag \@final = \@false}
Expand Down Expand Up @@ -115,7 +115,7 @@


%%----------------------------------------------------------------
% Set toc
% Set toc
%%----------------------------------------------------------------
\RequirePackage[titles]{tocloft}
\newlength\mylength
Expand Down Expand Up @@ -155,7 +155,7 @@



\newcommand{\thesisLocation}[1]{\gdef\thesis@location{#1}}
\newcommand{\thesisLocation}[1]{\gdef\thesis@location{#1}}
\newcommand{\thesisHometown}[1]{\gdef\ThesisHometown{#1}}

\newcommand{\thesisDegreeOne}[1]{\gdef\ThesisDegreeOne{#1}}
Expand Down Expand Up @@ -193,21 +193,12 @@
\addtocounter{thesis@members}{1}}


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


%%----------------------------------------------------------------
% Set penalties
% Set penalties
%%----------------------------------------------------------------
% Penalties are the main value that TeX tries to minimise when line or page breaking,
% They may be inserted explicitly (\penalty125 means that the penalty for breaking at that point is 125).
% Penalties are the main value that TeX tries to minimise when line or page breaking,
% They may be inserted explicitly (\penalty125 means that the penalty for breaking at that point is 125).
% Some penalties are built in to the TeX system and inserted automatically. Here we custom define a few.
\def\defaultpenalty{1000} \clubpenalty=\defaultpenalty
\widowpenalty=\defaultpenalty
Expand Down Expand Up @@ -292,16 +283,16 @@
\hspace{.1in} \\
\hspace{.1in} \\
\hspace{.1in} \\ % 4 lines between hometown and prior degrees -- Ruth
\ifdefined\ThesisDegreeOne \ThesisDegreeOne \\ \fi
\ifdefined\ThesisDegreeOne \ThesisDegreeOne \\ \fi
\ifdefined\ThesisDegreeTwo \ThesisDegreeTwo \\ \fi
\ifdefined\ThesisDegreeThree \ThesisDegreeThree \\ \fi
% Support at most 3 previous degrees if there are more degrees, you have to manually add them. -- Shanhe
\hspace{.1in} \\
\hspace{.1in} \\
\hspace{.1in} \\
\hspace{.1in} \\ % 4 lines between prior degrees and purpose statement -- Ruth
{A \if \@thesis Thesis \else Dissertation \fi presented to the Graduate Faculty\\
of the College of William \& Mary in Candidacy for the Degree of\\
{A \if \@thesis Thesis \else Dissertation \fi presented to the Graduate Faculty
of \\ The College of William \& Mary in Candidacy for the Degree of\\
\ifdefined\ThesisType \ThesisType \else Doctor of Philosophy \fi}\\
\hspace{.1in} \\
\hspace{.1in} \\
Expand Down Expand Up @@ -379,12 +370,16 @@
\hspace{.1in} \\ % 3 lines between signatures -- Ruth
\underline{\hspace*{\thesisapprovalwidth}}\\
{\small\thesis@memberiii, \thesis@deptiii\\
\thesis@orgiii}
\hspace{.1in} \\
\hspace{.1in} \\
\hspace{.1in} \\ % 3 lines between signatures -- Ruth
\underline{\hspace*{\thesisapprovalwidth}}\\
{\small\thesis@memberiv, \thesis@deptiv\\
%-----------------
% uncomment / copy following section to add additional members to committee
%-----------------
% \thesis@orgiii}
% \hspace{.1in} \\
% \hspace{.1in} \\
% \hspace{.1in} \\ % 3 lines between signatures -- Ruth
% \underline{\hspace*{\thesisapprovalwidth}}\\
% {\small\thesis@memberiv, \thesis@deptiv\\
%-----------------
\thesis@orgiv}
\hspace{.1in} \\
\hspace{.1in} \\
Expand All @@ -393,7 +388,7 @@
\else
\underline{\hspace*{\thesisapprovalwidth}}\\
{\small\thesis@memberv, \thesis@deptv\\
\thesis@orgv}
\thesis@orgv}
\fi
\end{center}
\end{singlespace}
Expand All @@ -402,7 +397,7 @@

%%--------------------------------------------
%%--The abstract page
%%--Title 14 and content 12, single space between
%%--Title 14 and content 12, single space between
% title and content. -- Shanhe
%%-- @see https://en.wikibooks.org/wiki/LaTeX/Fonts
%%-- 11pt documentclass:
Expand All @@ -421,6 +416,7 @@
}

%%--------------------------------------------

%%--The toc page
\newcommand{\maketocpage}{
\newpage
Expand All @@ -429,8 +425,14 @@
\renewcommand{\thepage}{\roman{page}}
\begingroup%
\renewcommand{\bfseries}{\relax}% %prevent TOC from being bold
%%----------------------------------------------------------------
% Set the title that will be printed on the Contents page -- Ruth
%%----------------------------------------------------------------
% The negative vspace is used to make sure that only one line is
% between the title and the first line for each of these pages.
\renewcommand{\contentsname}{\begin{center}\Large\normalfont TABLE OF CONTENTS\vspace{-.75in}\end{center}}
{\large \tableofcontents }
\endgroup%
\endgroup%
}

%%--------------------------------------------
Expand All @@ -441,11 +443,11 @@
\addcontentsline{toc}{chapter}{Acknowledgments}
\Large\acknowledgeName
\end{center}
\begin{singlespace}
\begin{flushleft}
\input{\thesis@ack}
\begin{singlespace}
\input{\thesis@ack}
\end{singlespace}
\end{flushleft}
\end{singlespace}
}

%%--------------------------------------------
Expand All @@ -455,7 +457,9 @@
\begin{center}
\addcontentsline{toc}{chapter}{Dedications}
\vspace*{3in}
{\large \thesis@dedication}
\begin{singlespace}
{\large \thesis@dedication}
\end{singlespace}
\end{center}
}

Expand All @@ -466,6 +470,8 @@
\newpage
%\begin{singlespace}
\addcontentsline{toc}{chapter}{List of Tables}
\renewcommand\listtablename{\begin{center}\Large\normalfont LIST OF TABLES\vspace{-.6in}\end{center}}

{\large \listoftables }
%\end{singlespace}
}
Expand All @@ -476,6 +482,7 @@
\newpage
%\begin{singlespace}
\addcontentsline{toc}{chapter}{List of Figures}
\renewcommand\listfigurename{\begin{center}\Large\normalfont LIST OF FIGURES\vspace{-.6in}\end{center}}
{\large \listoffigures }
%\end{singlespace}
}
Expand Down

0 comments on commit 98f15ad

Please sign in to comment.