diff options
author | Ryan Kavanagh <rak@rak.ac> | 2022-04-25 14:04:46 -0400 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2022-04-25 14:04:46 -0400 |
commit | 058cf543a32f2be331e1194597db0c2e7f0d4075 (patch) | |
tree | 167d3345c72fb3a590b4de3a2bbbf449744b3811 | |
parent | whitespace cleanup (diff) |
Switch from home brewed \draftstamp to gitinfo2
Diffstat (limited to '')
-rw-r--r-- | cmuthesis.cls | 31 | ||||
-rw-r--r-- | cmuthesis_template.tex | 16 |
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}} |