summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/xwatermark/xwatermark.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/xwatermark/xwatermark.sty')
-rw-r--r--Master/texmf-dist/tex/latex/xwatermark/xwatermark.sty10
1 files changed, 3 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/xwatermark/xwatermark.sty b/Master/texmf-dist/tex/latex/xwatermark/xwatermark.sty
index b7973759d62..61b875faeb7 100644
--- a/Master/texmf-dist/tex/latex/xwatermark/xwatermark.sty
+++ b/Master/texmf-dist/tex/latex/xwatermark/xwatermark.sty
@@ -366,15 +366,11 @@ $Id: xwatermark.sty,v 1.4 2010/01/10 09:00:00 Ahmed Musa Exp $
\endgroup
}%
\krsetup{keyfamily=colorbox,macroprefix=cb@}
+\CKVS{align}{center,right,left,justified}
\define@keylist{2,width,\textwidth,;2,textcolor,black,;
2,fillcolor,yellow!55,;2,framecolor,white,;
- 2,text,No text passed.,;2,framesep,3\p@,;2,framerule,0.4\p@,}
-\define@choicekey*+[XWM]{colorbox}{align}[\val\nr]%
-{center,right,left,justified}[center]{%
- \protected@edef\cb@align{\val}%
-}{%
- \xwm@err{Inadmissible value '\string#1' for colorbox's align}%
-}%
+ 2,text,No text passed.,;2,framesep,3\p@,;2,framerule,0.4\p@,;
+ 4,align,center,\protected@edef\cb@align{\val}}
\presetkeys[XWM]{colorbox}{align=center,width,fillcolor,textcolor,text,
framesep,framerule,framecolor}{}
\newcommand\xwcolorbox[1]{%