I am starting to play with the texMemo document class (which can be found here). The class uses the ifthen
package and the draft watermark package. I'm used the latter before but not the former. I am compiling in macOS using pdflatex (at the terminal, pdflatex --version
returns 'pdfTeX 3.14159265-2.6-1.40.21 (TeX Live 2020)').
The texMemo document class includes the ability to put a 'draft' watermark on the output if you uncomment a line in the 'header.tex' include file. I don't want the watermark, but I can't get it to go away.
The header.tex file has the lines
% Uncomment if you would like a DRAFT watermark:
% \memodraft{true}
The implication is that there will NOT be a watermark if you do not uncomment the second of these lines.
However, the watermark appears regardless of whether or not these lines are commented or uncommented.
The main.tex file has this command block
\ifthenelse{\equal{\@memodraft}{\relax}}{}{%
\RequirePackage{palatino}
\usepackage{draftwatermark}
\SetWatermarkText{DRAFT}
\SetWatermarkLightness{1}
\SetWatermarkLightness{0.95}
}
which, if I comment them out, sometimes throws an error and sometimes doesn't. I'd like to have the ability to toggle a 'draft' watermark as the authors intended.
Can anyone let me know what's going wrong here and how it might be fixed?
Thanks in advance.
-- Jason
EDIT: When I compile the LaTeX source that is included with the distribution (and which is not supposed to produce the watermark), I get this:
\memodraft{\relax}
. But this should actually be the default and I don't know why it holds some other value in your case. In any case, the macro\memodraft
should be set before the\ifthenelse
clause that you cited above.\memodraft{\relax}
in themain.tex
file before it inputsheader.tex
(thinking this would set the correct value), but I still get the same result. Something somewhere else must be setting it to a different value? - a watermark.