Skip to content

Commit

Permalink
add watermark option
Browse files Browse the repository at this point in the history
  • Loading branch information
ulyngs committed Jan 25, 2019
1 parent 445dce0 commit 69219b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@

\def\tightlist{} % UL 16 Dec 2018 stop pandoc from messing things up by putting lists in 'tightlist' command when no space between bullet points in Rmd file

% UL 25 Jan 2019: allow a watermark on the first page to be set from YAML - e.g. to make a version that says 'pre-print'
$if(watermark)$
\usepackage[$if(watermark-on-first-page-only)$firstpage$endif$]{draftwatermark}
\SetWatermarkText{$watermark$}
\SetWatermarkLightness{0.9}
$endif$

% UL 19 Dec 2018, enable code inclusion in shaded environments
$if(highlighting-macros)$
$highlighting-macros$
$endif$


% Copyright
\setcopyright{$copyright$}
%\setcopyright{none}
Expand Down
2 changes: 2 additions & 0 deletions inst/rmarkdown/templates/chi_ea/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ conference-date: July 1997
conference-location: El Paso, Texas USA
acm-year: 1997
acm-price: 15.00
watermark: false #e.g. 'pre-print'
watermark-on-first-page-only: true

#paper metadata
title: Writing CHI Extended Abstracts With R Markdown
Expand Down

0 comments on commit 69219b5

Please sign in to comment.