Skip to content

Commit

Permalink
added gitinfo watermark
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Oct 29, 2015
1 parent 9b45012 commit 6df4313
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
Binary file modified bitshares-marketmechanics.pdf
Binary file not shown.
1 change: 0 additions & 1 deletion bitshares-marketmechanics.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
\documentclass[unpublished]{btswhitepaper}
\title{BitShares 2.0: Market Mechanics}
\input{AUTHORS}
\usepackage{gitinfo}
\begin{document}
\maketitle

Expand Down
20 changes: 4 additions & 16 deletions btswhitepaper.cls
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
\RequirePackage{algpseudocode}
\RequirePackage{siunitx}
\RequirePackage{tikz}
\RequirePackage{gitinfo2}

%% -----------------------------
%% Options
Expand Down Expand Up @@ -143,11 +144,13 @@
%% -----------------------------
%% Headers
%% -----------------------------
\newcommand{\gitline}{\raisebox{2ex}{\color{lightgray}Release: \gitDescribe{} (\gitAuthorDate)}}
\fancypagestyle{wp}{%
\fancyhf{}
\fancyhead[R]{{\color{black}\sffamily\thepage}\draftcode}
\fancyhead[L]{{\color{black}\sffamily \nouppercase{\textsc{\rightmark}}}}
\fancyfoot{}
\fancyfoot[L]{\gitline}
\fancyfoot[R]{\includegraphics[height=2cm]{figures/btslogo4.png}}
\renewcommand{\headrule}{\color{btslight}\hrule}
\renewcommand{\headrulewidth}{0.4pt}
Expand All @@ -156,6 +159,7 @@
\fancyhf{}
\fancyhead{\draftcode}
\fancyfoot{}
\fancyfoot[L]{\gitline}
\renewcommand{\headrule}{}
\renewcommand{\headrulewidth}{0pt}
}
Expand Down Expand Up @@ -192,19 +196,3 @@
\clubpenalty=1000
\widowpenalty=1000
\displaywidowpenalty=1000


%% TODO
% http://tex.blogoverflow.com/2014/05/gitinfo2-latex-and-git-join-forces/
%%%%%%%
% \usepackage{eso-pic}
% \makeatletter
% \AddToShipoutPicture{%
% \setlength{\@tempdimb}{.1\paperwidth}%
% \setlength{\@tempdimc}{.04\paperheight}%
% \setlength{\unitlength}{1pt}%
% \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){%
% \makebox(0,0){ \textcolor{gray}{Rev: \svnrev{} (\svnfilerev)} }%
% }%
% }
% \makeatother

0 comments on commit 6df4313

Please sign in to comment.