Skip to content

Commit

Permalink
squelch the draft text
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfenner committed Dec 10, 2023
1 parent ec04561 commit 8469274
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ RUN tlmgr update --self && \
newunicodechar \
tocloft \
tools \
changepage
changepage \
accsup

RUN apk upgrade && apk add --no-cache \
bash \
Expand Down
9 changes: 7 additions & 2 deletions template/eisvogel.latex
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ $endif$
toc=sectionentrywithdots
]{scrartcl}

% Define a command called \squelch that makes text unselectable.
\usepackage{accsupp}
\DeclareRobustCommand\squelch[1]{
\BeginAccSupp{method=plain,ActualText={}}#1\EndAccSupp{}}

% Clean up the TOC a bit by ensuring that long section numbers don't overlap.
% https://tex.stackexchange.com/questions/64115/table-of-contents-chapter-number-width
\usepackage{tocloft}
Expand Down Expand Up @@ -586,10 +591,10 @@ $else$
{
\ifthenelse{\equal{\detokenize{$status$}}{\detokenize{DRAFT}}}
{
\begin{textblock*}{8.5in}(-0.3in,-0.4in)
\begin{textblock*}{8.5in}(0in,-0.5in)
\fontsize{300}{360}{
\begin{turn}{50}
\textsf{\textcolor{gray}{\transparent{0.1}{DRAFT}}}
\textsf{\textcolor{gray}{\transparent{0.1}{\squelch{DRAFT}}}}
\end{turn}
}
\end{textblock*}
Expand Down

0 comments on commit 8469274

Please sign in to comment.