Skip to content

Commit

Permalink
Add a draft water mark, fixes #21.
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Jan 19, 2018
1 parent b85e9d1 commit 461d0ac
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
3 changes: 2 additions & 1 deletion civl.sty
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
\RequirePackage{pgfplots}
\usepgfplotslibrary{units}
\usetkzobj{all}
\RequirePackage[printwatermark]{xwatermark}

% SEE: http://stackoverflow.com/questions/3244803/latex-add-clickable-links-to-a-section-subsection-with-a-pdf-document
\hypersetup{
Expand All @@ -41,7 +42,7 @@
% SEE: http://texblog.org/2007/11/07/headerfooter-in-latex-with-fancyhdr/
\fancypagestyle{gen}{
\chead{CIVL GAP – Centralised Cross-Country Competition Scoring for Hang-Gliding and Paragliding - 1\textsuperscript{st} May 2017}
\lfoot{2017 Edition, Revision 1.2}
\lfoot{2018 Edition, Revision 1.3, Draft}
\cfoot{\date{\texttt{{\ddmmyyyydate\today} \currenttime}}}
}

Expand Down
15 changes: 13 additions & 2 deletions gap.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
\documentclass{article}
\usepackage{civl}

% SEE: https://tex.stackexchange.com/questions/132582/transparent-foreground-watermark
\newsavebox\draftbox
\savebox\draftbox{\tikz[color=red,opacity=0.1]\node{DRAFT};}
\newwatermark*[
allpages,
angle=45,
scale=6,
xpos=-20,
ypos=15
]{\usebox\draftbox}

% SEE: https://ctan.org/pkg/titlepages
\newcommand*{\titleGap}{\begingroup
\raggedleft
Expand All @@ -21,8 +32,8 @@
{\Large Hang-Gliding and Paragliding}\\
{\Large Classes 1 to 5}\\
\vspace*{2\baselineskip}
2017 Edition\\
Effective 1st May, 2017\\
2018 Edition\\
Work in Progress, Draft\\
\vspace*{10\baselineskip}

\begin{tabularx}{\textwidth}{@{}rXr@{}}
Expand Down
2 changes: 2 additions & 0 deletions gap.xwm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
\relax
\xwmnewlabel{xwmlastpage}{{A.1}{47}{Line-Circle Intersections on a Projected Plane\relax }{Item.59}{}}

0 comments on commit 461d0ac

Please sign in to comment.