Skip to content

Commit

Permalink
Merge branch 'master' into Berkeley
Browse files Browse the repository at this point in the history
  • Loading branch information
mpacer committed Feb 8, 2016
2 parents c06b98e + b127edc commit 06782a9
Show file tree
Hide file tree
Showing 24 changed files with 242 additions and 55 deletions.
9 changes: 8 additions & 1 deletion assets/latex-base/Dissertate.cls
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,17 @@
\endlist}

% Some definitions.
\def\advisor#1{\gdef\@advisor{#1}}
\def\coadvisorOne#1{\gdef\@coadvisorOne{#1}}
\def\coadvisorTwo#1{\gdef\@coadvisorTwo{#1}}
\def\committeeInternal#1{\gdef\@committeeInternal{#1}}
\def\committeeInternalOne#1{\gdef\@committeeInternalOne{#1}}
\def\committeeInternalTwo#1{\gdef\@committeeInternalTwo{#1}}
\def\committeeExternal#1{\gdef\@committeeExternal{#1}}
\def\degreeyear#1{\gdef\@degreeyear{#1}}
\def\degreemonth#1{\gdef\@degreemonth{#1}}
\def\degreeterm#1{\gdef\@degreeterm{#1}}
\def\degree#1{\gdef\@degree{#1}}
\def\advisor#1{\gdef\@advisor{#1}}
\def\department#1{\gdef\@department{#1}}
\def\field#1{\gdef\@field{#1}}
\def\university#1{\gdef\@university{#1}}
Expand Down
1 change: 1 addition & 0 deletions assets/latex-base/chapters/appendixA.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%!TEX root = ../dissertation.tex
\chapter{Some extra stuff}
\label{AppendixA}

Expand Down
1 change: 1 addition & 0 deletions assets/latex-base/chapters/chapter1.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%!TEX root = ../dissertation.tex
\begin{savequote}[75mm]
Nulla facilisi. In vel sem. Morbi id urna in diam dignissim feugiat. Proin molestie tortor eu velit. Aliquam erat volutpat. Nullam ultrices, diam tempus vulputate egestas, eros pede varius leo.
\qauthor{Quoteauthor Lastname}
Expand Down
1 change: 1 addition & 0 deletions assets/latex-base/chapters/chapter2.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%!TEX root = ../dissertation.tex
\begin{savequote}[75mm]
This is some random quote to start off the chapter.
\qauthor{Firstname lastname}
Expand Down
1 change: 1 addition & 0 deletions assets/latex-base/chapters/chapter3.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%!TEX root = ../dissertation.tex
\begin{savequote}[75mm]
Nulla facilisi. In vel sem. Morbi id urna in diam dignissim feugiat. Proin molestie tortor eu velit. Aliquam erat volutpat. Nullam ultrices, diam tempus vulputate egestas, eros pede varius leo.
\qauthor{Quoteauthor Lastname}
Expand Down
1 change: 1 addition & 0 deletions assets/latex-base/chapters/conclusion.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%!TEX root = ../dissertation.tex
\chapter{Conclusion}
\label{conclusion}

Expand Down
1 change: 1 addition & 0 deletions assets/latex-base/chapters/introduction.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%!TEX root = ../dissertation.tex
\chapter{Introduction}
\label{introduction}

Expand Down
22 changes: 11 additions & 11 deletions assets/latex-base/dissertation.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@

% the front matter
\input{frontmatter/personalize}
\maketitle
\copyrightpage

% \maketitle
% \copyrightpage
\frontmatter
\setstretch{1.2}
\abstractpage
\tableofcontents
%\authorlist
\listoffigures
\dedicationpage
\acknowledgments

\doublespacing
% \abstractpage
% \tableofcontents
% %\authorlist
% \listoffigures
% \dedicationpage
% \acknowledgments

% \doublespacing

% include each chapter...
\setcounter{chapter}{-1} % start chapter numbering at 0
Expand Down
1 change: 1 addition & 0 deletions assets/latex-base/endmatter/colophon.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%!TEX root = ../dissertation.tex
\newpage

% If you do want an image in the colophon:
Expand Down
1 change: 1 addition & 0 deletions assets/latex-base/frontmatter/abstract.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%!TEX root = ../dissertation.tex
% the abstract

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Nam consectetuer. Sed aliquam, nunc eget euismod ullamcorper, lectus nunc ullamcorper orci, fermentum bibendum enim nibh eget ipsum. Donec porttitor ligula eu dolor. Maecenas vitae nulla consequat libero cursus venenatis. Nam magna enim, accumsan eu, blandit sed, blandit a, eros.
Expand Down
1 change: 1 addition & 0 deletions assets/latex-base/frontmatter/authorlist.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%!TEX root = ../dissertation.tex
\noindent The following authors contributed to Chapter 1: Albert Einstein, George Gamow and Pief Panofsky.

\noindent The following authors contributed to Chapter 2: I. I. Rabi, Niels Bohr and Norman Ramsey.
Expand Down
1 change: 1 addition & 0 deletions assets/latex-base/frontmatter/dedication.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%!TEX root = ../dissertation.tex
% dedication text

This is the dedication.
10 changes: 10 additions & 0 deletions assets/latex-base/frontmatter/personalize.tex
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
%!TEX root = ../dissertation.tex
% Some details about the dissertation.
\title{Title of the dissertation}
\author{Firstname M. Lastname}

%If you have one advisor
\advisor{Bigname Scientist}

\committeeInternalOne{Person Inside One}
\committeeInternalTwo{Person Inside Two}

%If you are coadvised
\coadvisorOne{Delightful Researcher}
\coadvisorTwo{Equally D. Researcher}
\committeeInternal{Person Inside}

% Everyone has an External committee member
\committeeExternal{Person Outside}

% ... about the degree.
Expand Down
4 changes: 4 additions & 0 deletions assets/latex-base/frontmatter/preface.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
%!TEX root = ../dissertation.tex
% the acknowledgments section

\newthought{Lorem ipsum dolor sit amet}, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Nam consectetuer. Sed aliquam, nunc eget euismod ullamcorper, lectus nunc ullamcorper orci, fermentum bibendum enim nibh eget ipsum. Donec porttitor ligula eu dolor. Maecenas vitae nulla consequat libero cursus venenatis. Nam magna enim, accumsan eu, blandit sed, blandit a, eros.
1 change: 1 addition & 0 deletions assets/latex-base/frontmatter/thanks.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%!TEX root = ../dissertation.tex
% the acknowledgments section

\newthought{Lorem ipsum dolor sit amet}, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien. Nam consectetuer. Sed aliquam, nunc eget euismod ullamcorper, lectus nunc ullamcorper orci, fermentum bibendum enim nibh eget ipsum. Donec porttitor ligula eu dolor. Maecenas vitae nulla consequat libero cursus venenatis. Nam magna enim, accumsan eu, blandit sed, blandit a, eros.
1 change: 1 addition & 0 deletions assets/schools/Berkeley/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Generic dissertation template
Empty file.
132 changes: 132 additions & 0 deletions assets/schools/Berkeley/style.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
% School name and location
\university{University of California, Berkeley}
\universitycity{Berkeley}
\universitystate{California}

% School color found from university's graphic identity site:
% http://brand.berkeley.edu/colors/

\definecolor{SchoolColor}{rgb}{0,0.19608,0.3843} %berkeley blue
\definecolor{chaptergrey}{rgb}{0,0.19608,0.3843} % chapter numbers

\hypersetup{
colorlinks,
citecolor=SchoolColor,
filecolor=black,
linkcolor=black,
urlcolor=SchoolColor,
}

% Formatting guidelines found in:
% http://www.gsas.harvard.edu/publications/form_of_the_phd_dissertation.php
\renewcommand{\frontmatter}{
\input{frontmatter/personalize}
\maketitle
\copyrightpage
\abstractpage
\dedicationpage
\tableofcontents
\acknowledgments
% \listoffigures % optional
\setcounter{page}{1}
\pagenumbering{arabic}
}

\renewcommand{\maketitle}{
\thispagestyle{empty}
\vspace*{\fill}
\vspace{10pt}
\begin{center}
\Huge \textcolor{SchoolColor}{\thetitle} \normalsize \\
\vspace{100pt}
By\\
\theauthor\\
\vspace{12pt}
\textsc{A Dissertation submitted in partial satisfaction of the\\
requirements for the degree of \\ \@degree\\
in\\ \@department\\ in the\\ Graduate Division\\ of the\\
\@university\\
\vspace{50pt}
Committee in charge:\\
\vspace{20pt}
Professor \@coadvisorOne, Co-chair\\
Professor \@coadvisorTwo, Co-chair\\
Professor \@committeeInternal\\
Professor \@committeeExternal\\
\vspace{50pt}
\@degreeterm\ \@degreeyear}
\end{center} \vspace*{\fill}
}


%\renewcommand{\maketitle}{
% \thispagestyle{empty}
% \vspace*{\fill}
% \vspace{10pt}
% \begin{center}
% \Huge \textcolor{SchoolColor}{\thetitle} \normalsize \\
% \vspace{100pt}
% By\\
% \theauthor\\
% \vspace{12pt}
% \textsc{A Dissertation submitted in partial satisfaction of the\\
% requirements for the degree of \\ \@degree\\
% in\\ \@department\\ in the\\ Graduate Division\\ of the\\
% \@university\\
% \vspace{50pt}
% Committee in charge:\\
% \vspace{20pt}
% Professor \@advisor, Chair\\
% Professor \@committeeInternalOne\\
% Professor \@committeeInternalTwo\\
% Professor \@committeeExternal\\
% \vspace{50pt}
% \@degreeterm\ \@degreeyear}
% \end{center} \vspace*{\fill}
%}

\newcommand{\copyrightpage}{
\newpage
\thispagestyle{empty}
\vspace*{\fill}
\scshape \noindent \small \copyright \small 2015\hspace{3pt}-- \theauthor \\
\noindent all rights reserved.
\vspace*{\fill}
\newpage
\rm
}

\newcommand{\abstractpage}{
\newpage
\setcounter{page}{1}
\pagenumbering{arabic}
\pagestyle{fancy}
\lhead{Co-advisors: Professors \@coadvisorOne {\textit \&} \@coadvisorTwo}
\rhead{\@author}
\renewcommand{\headrulewidth}{0.0pt}
\vspace*{35pt}
\begin{center}
\Large \textcolor{SchoolColor}{\@title} \normalsize \\
\vspace*{20pt}
\scshape Abstract \\ \rm
\end{center}
\input{frontmatter/abstract}
\vspace*{\fill}
\newpage \lhead{} \rhead{}
\cfoot{\thepage}
}

\newcommand{\acknowledgments}{
\chapter*{Acknowledgments}
\noindent
\input{frontmatter/thanks}
\vspace*{\fill} \newpage
}

\newcommand{\dedicationpage}{
\setcounter{page}{1}
\pagenumbering{roman}
\newpage \thispagestyle{fancy} \vspace*{\fill}
\scshape \noindent \input{frontmatter/dedication}
\vspace*{\fill} \newpage \rm
}
10 changes: 10 additions & 0 deletions assets/schools/Berkeley/word.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python
from ..Generic.generic import GenericTemplate
from docx import Document


class Template(GenericTemplate):

def __init__(self, arg=None):
super(Template, self).__init__()
self.arg = arg
4 changes: 3 additions & 1 deletion assets/schools/Generic/generic.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import print_function
from builtins import object
#!/usr/bin/env python
from docx import Document

Expand All @@ -8,7 +10,7 @@ def __init__(self):
self.document = Document('../assets/word-base/dissertate.docx')

def fill(self):
print ""
print("")

def save(self):
self.document.save('dissertation.docx')
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion assets/schools/NYU/style.sty
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

% Formatting guidelines found in:
% http://gsas.nyu.edu/docs/IO/4474/formattingguide.pdf

\renewcommand{\frontmatter}{
\pagenumbering{roman}
\input{frontmatter/personalize}
Expand Down Expand Up @@ -94,7 +95,7 @@
\thispagestyle{empty}
\vspace*{\fill}
\begin{center}
\includegraphics[width=45pt]{packages/images/NYUlogo.eps}
\includegraphics[width=45pt]{resources/NYUlogo.eps}
\end{center}
\vspace*{\fill}
}
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-docx==0.8.5
python-docx>=0.8.5
Loading

0 comments on commit 06782a9

Please sign in to comment.