Skip to content

Commit b0fc8f7

Browse files
authored
make draft text not selectable (#72)
Use a pdf "draft" image so it doesn't interfere as much with selecting text on the page.
1 parent 0669aa1 commit b0fc8f7

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
input-md: guide.md
105105
output-pdf: guide.pdf
106106
output-tex: guide.tex
107+
output-docx: guide.docx
107108

108109
- name: Upload Artifact
109110
uses: actions/upload-artifact@master
@@ -112,6 +113,7 @@ jobs:
112113
path: |
113114
guide.pdf
114115
guide.tex
116+
guide.docx
115117
mermaid-filter.err
116118
if: always() # Even if the render failed, upload whatever we had for debugging.
117119

img/draft.pdf

2.25 KB
Binary file not shown.

template/eisvogel.latex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,9 @@ $endif$
643643

644644
\ifthenelse{\equal{\detokenize{$status$}}{\detokenize{DRAFT}}}
645645
{
646-
\usepackage[scale=2, colorspec=0.95]{draftwatermark}
646+
\usepackage[angle=0]{draftwatermark}
647+
% use an image for the watermark so it doesn't interfere with selection
648+
\SetWatermarkText{\includegraphics{/resources/img/draft.pdf}}
647649
}
648650
{}
649651

0 commit comments

Comments
 (0)