Browse Source

Re-add the draft watermark and make it un-copyable (in some readers)

I also made the page number similarly uncopyable. This should allow
selecting text across multiple pages without copying the page
numbers (or the word DRAFT).
Ryan C. Thompson 5 years ago
parent
commit
41c97fef9d
1 changed files with 9 additions and 5 deletions
  1. 9 5
      thesis.lyx

+ 9 - 5
thesis.lyx

@@ -10,9 +10,12 @@
 \listfiles
 
 % Add a DRAFT watermark
-%\usepackage{draftwatermark}
-%\SetWatermarkLightness{0.97}
-%\SetWatermarkScale{1}
+\usepackage{draftwatermark}
+\usepackage{accsupp}
+\SetWatermarkLightness{0.97}
+\SetWatermarkScale{1}
+% Make watermark not copyable (in Adobe Reader)
+\SetWatermarkText{\BeginAccSupp{method=escape,ActualText={}}DRAFT\EndAccSupp{}}
 
 % Set up required header format
 \usepackage{fancyhdr}
@@ -20,10 +23,11 @@
 \renewcommand{\headrulewidth}{0pt}
 \rhead{}
 \lhead{}
-\chead{DRAFT}
+\chead{}
 \rfoot{}
 \lfoot{}
-\cfoot{\thepage} % Page number bottom center
+% Make page number not copyable (in Adobe Reader)
+\cfoot{\BeginAccSupp{method=escape,ActualText={}}\thepage\EndAccSupp{}} % Page number bottom center
 
 % Allow FloatBarrier command
 \usepackage{placeins}