error with specifying color of watermark in draftwatermark package

Sridhar M A alaymari at gmail.com
Wed Jan 10 01:55:38 CET 2024


Adding \usepackage{xcolor} before the draftwatermark package solved the problem.

On Tue, Jan 9, 2024 at 11:10 PM Christopher Ryan via texhax
<texhax at tug.org> wrote:
>
> Hello. Using LaTeX in Windows 10.  I tried to explicitly set the color of the watermark text. I copied a specification from the package documentation, page 4.  But it gives me an error:   Argument of \c at lor@@rgb has an extra }.  If I remove that attempted color specification, document compiles fine. Grateful for any suggestions. Thanks.
>
> MWE
> ===
> \documentclass[11pt]{article}
> \usepackage{outlines}
> \usepackage{hyperref}
> \hypersetup{
>      colorlinks=true,
>      linkcolor=blue,
>      urlcolor=blue}
> \usepackage{savetrees}
> \usepackage{url}
> \usepackage[scale = 3, color={[rgb]{1, 0, 1}}]{draftwatermark}
> \SetWatermarkText{foo \\ bar}
>
> \begin{document}
>
> \section{Hello}
>
> Hello, world!
>
> \end{document}



-- 
Sridhar M. A.



More information about the texhax mailing list.