callegar / LaTeX-draftwatermark

The "draftwatermark" package extends LaTeX providing a means to add a textual, light gray watermark on every page or on the first page of a document. Typical usage may consist in writing words such as "DRAFT" or "CONFIDENTIAL" across document pages. The package may remind in some sense "draftcopy" by Dr. Juergen Vollmer, but its implementation is much lighter (as the reduced code footprint shows) and does not rely on postscript specials, making the package fully compatible with pdfLaTeX. The package depends on package "everypage" by the same author.
15 stars 6 forks source link

color key errors #31

Closed u-fischer closed 8 months ago

u-fischer commented 10 months ago
\documentclass[11pt]{article}
\usepackage{draftwatermark}
\DraftwatermarkOptions{color={[rgb]{1, 0, 1}}}
\SetWatermarkText{foo}

\begin{document}
Hello, world!
\end{document}

errors with

! Argument of \c@lor@@rgb has an extra }.

The problem is that draftwatermark calls \color[\draftwatermark@colormodel]{\draftwatermark@colorspec}, but this doesn't work with the color package as \color doesn't expand the mandatory argument. With the xcolor package it would work.

ascherer commented 10 months ago

See https://github.com/callegar/LaTeX-draftwatermark/blob/master/draftwatermark.dtx#L787

callegar commented 10 months ago

Will update to requiring xcolor, thanks!

callegar commented 8 months ago

Fixed with version 3.1 of the package