summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmuthesis.cls31
-rw-r--r--cmuthesis_template.tex16
2 files changed, 14 insertions, 33 deletions
diff --git a/cmuthesis.cls b/cmuthesis.cls
index 25065f8..9d633b1 100644
--- a/cmuthesis.cls
+++ b/cmuthesis.cls
@@ -158,37 +158,6 @@
\@setabstract
}
-% A simple style file to provide a draft marking in the background of
-% a file
-% Thank you to Will Uther who provided the base code that I rolled
-% into this package
-% ChangeLog
-% 1.1: shrunk and shifted the stamp so that it avoid the unprintable
-% area at the top of the page
-% 1.2 dkoes - made it big and rotated and light
-% 1.3 dkoes - made it small, and unrotated since Jonathan Aldrich complained
-% 1.4 comar - moved it below the page number to avoid problem with synctex
-\RequirePackage{graphicx}
-\RequirePackage{eso-pic}
-\RequirePackage{color}
-
-%Got this from Will (will@cs.cmu.edu)
-%usage: \draftstamp{date}{label}
-\newcommand{\draftstamp}[2]{\definecolor{DraftGrey}{gray}{0.7}
- \ClearShipoutPicture\AddToShipoutPicture{
- \begin{minipage}[b][0.11\paperheight][t]{\paperwidth}
- \centering
- \vspace{.5in}
- \textcolor{DraftGrey}{\renewcommand{\baselinestretch}{1.0}\normalsize
- \begin{tabular}{c}
- #1 \\
- #2
- \end{tabular}
- }
-
- \end{minipage}
- }}
-
\newenvironment{dedication}
{\cleardoublepage \thispagestyle{empty} \vspace*{\stretch{1}} \begin{center} \em}
{\end{center} \vspace*{\stretch{3}} \clearpage}
diff --git a/cmuthesis_template.tex b/cmuthesis_template.tex
index 57e5117..a33a2c6 100644
--- a/cmuthesis_template.tex
+++ b/cmuthesis_template.tex
@@ -42,9 +42,21 @@
\PassOptionsToPackage{hscale=.8}{geometry}
\PassOptionsToPackage{nomarginpar}{geometry}
\PassOptionsToPackage{hmarginratio=1:1}{geometry}
+%% If you're versioning your thesis with Git (which you really should),
+%% then the following lines will add a stamp at the bottom of each page
+%% with the build time and current commit number. Very useful for
+%% knowing which particular draft of your thesis your advisors or
+%% committee members are talking about in their comments.
+%%
+%% See "Setup and tailoring" in the documentation for instructions on
+%% how to set up the post-commit, post-merge, and post-checkout hooks
+%% that generate the Git information used by the package:
+%% http://mirrors.ctan.org/macros/latex/contrib/gitinfo2/gitinfo2.pdf
+\usepackage[hhmmss]{datetime}
+\usepackage[mark,markifdirty,markifdraft]{gitinfo2}
+\renewcommand{\gitMark}{\gitBranch\,@\,\gitDescribe{}~\textbullet{}~{\today}~\currenttime}
+%% Comment them out if you do not want the stamp.
-% Provides a draft mark at the top of the document.
-\draftstamp{\today}{DRAFT}
\title{ %% {\it \huge Thesis Proposal}\\
{\bf Awesome Work in Computer Science}}