Skip to content

Commit

Permalink
feat(debug): enable toggling debug numbers
Browse files Browse the repository at this point in the history
Disable them by default, since thay can be distracting.

Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
  • Loading branch information
jdujava committed Oct 8, 2024
1 parent a72ba4f commit 2f7d6e7
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions preamble/debug/watermarks.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
%% Add debug watermarks (inspired by https://github.com/valentjn/thesis-arxiv)

\newif\ifDebugNumbers
\DebugNumbersfalse % do not show debug numbers (the default)
% \DebugNumberstrue % show debug numbers

\ifWIP % set up watermarks in WIP mode
\newcounter{currentpagenumber} % counter for current page number

Expand All @@ -13,22 +18,24 @@
color=black!15,
]
\node[anchor=south, xshift=0mm, yshift=7mm] at (current page.south) {Draft - \today};
\node[anchor=north east, xshift=-15mm, yshift=-21.0mm, align=right]%
at (current page.north east) {%
1\\2\\3\\4\\5\\6\\7\\8\\9\\10\\%
11\\12\\13\\14\\15\\16\\17\\18\\19\\20\\%
21\\22\\23\\24\\25\\26\\27\\28\\29\\30\\%
31\\32\\33\\34\\35\\36\\37\\38\\39\\40\\%
41\\42\\43\\44\\45\\46\\47\\48\\49\\50\\%
};
\node[anchor=north west, xshift=15mm, yshift=-21.0mm, align=right]%
at (current page.north west) {%
1\\2\\3\\4\\5\\6\\7\\8\\9\\10\\%
11\\12\\13\\14\\15\\16\\17\\18\\19\\20\\%
21\\22\\23\\24\\25\\26\\27\\28\\29\\30\\%
31\\32\\33\\34\\35\\36\\37\\38\\39\\40\\%
41\\42\\43\\44\\45\\46\\47\\48\\49\\50\\%
};
\ifDebugNumbers
\node[anchor=north east, xshift=-15mm, yshift=-21.0mm, align=right]%
at (current page.north east) {%
1\\2\\3\\4\\5\\6\\7\\8\\9\\10\\%
11\\12\\13\\14\\15\\16\\17\\18\\19\\20\\%
21\\22\\23\\24\\25\\26\\27\\28\\29\\30\\%
31\\32\\33\\34\\35\\36\\37\\38\\39\\40\\%
41\\42\\43\\44\\45\\46\\47\\48\\49\\50\\%
};
\node[anchor=north west, xshift=15mm, yshift=-21.0mm, align=right]%
at (current page.north west) {%
1\\2\\3\\4\\5\\6\\7\\8\\9\\10\\%
11\\12\\13\\14\\15\\16\\17\\18\\19\\20\\%
21\\22\\23\\24\\25\\26\\27\\28\\29\\30\\%
31\\32\\33\\34\\35\\36\\37\\38\\39\\40\\%
41\\42\\43\\44\\45\\46\\47\\48\\49\\50\\%
};
\fi
\end{tikzpicture}%
\fi%
}
Expand Down

0 comments on commit 2f7d6e7

Please sign in to comment.