diff options
author | Karl Berry <karl@freefriends.org> | 2012-11-06 22:35:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-11-06 22:35:59 +0000 |
commit | 6cab410e49d491c2884a037e0a134eeb2c2acda9 (patch) | |
tree | 5b7b72852382a70ac7f27f43b913d1da8f66ed12 /Master/texmf-dist/doc/latex/skeyval/skeyval-testclass.cls | |
parent | 705b4d8f092a56d9ae900940d265fb6f55b3033d (diff) |
skeyval (6nov12)
git-svn-id: svn://tug.org/texlive/trunk@28197 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/skeyval/skeyval-testclass.cls')
-rw-r--r-- | Master/texmf-dist/doc/latex/skeyval/skeyval-testclass.cls | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/Master/texmf-dist/doc/latex/skeyval/skeyval-testclass.cls b/Master/texmf-dist/doc/latex/skeyval/skeyval-testclass.cls index 02de214caa0..c81c535c0ef 100644 --- a/Master/texmf-dist/doc/latex/skeyval/skeyval-testclass.cls +++ b/Master/texmf-dist/doc/latex/skeyval/skeyval-testclass.cls @@ -1,5 +1,5 @@ %++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% -% This is file 'skeyval-testclass.cls', version 1.1, 2012/10/15. % +% This is file 'skeyval-testclass.cls', version 1.1a, 2012/10/16. % % % % This package and accompanying files may be distributed and/or % % modified under the conditions of the LaTeX Project Public License, % @@ -27,14 +27,15 @@ %++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% \ProvidesClass{skeyval-testclass} - [2012/10/15 v1.1 skeyval test class (AM)] + [2012/10/16 v1.1a skeyval test class (AM)] \NeedsTeXFormat{LaTeX2e}[2011/06/27] \@ifpackageloaded{skeyval}{}{\RequirePackage{skeyval}} \@ifpackageloaded{xcolor}{}{\RequirePackage{xcolor}} \@ifpackageloaded{pifont}{}{\RequirePackage{pifont}} \@ifpackageloaded{tikz}{}{\RequirePackage{tikz}} -\skvAtBeginEveryPage{\skvcl@maybewm} +\ifdefined\skvtestcnt\else\newcount\skvtestcnt\fi +\skvatbegineverypage{\skvcl@maybewm} \let\skvcl@maybewm\relax \def\skvcl@watermark{% \tikz[overlay,remember picture]{% @@ -112,7 +113,7 @@ .cmd/color/red, .bool/make-textemphasis-inactive/true/ \ifskvindef\else - \skvifbooltrue xem@make-textemphasis-inactive\then + \skvifbool xem@make-textemphasis-inactive\then \PackageInfo{skeyval-testclass} {Extended text emphasis has been made inactive} \let\xem\emph @@ -134,7 +135,7 @@ .cmd/datefont/\large, .bool/clearpage/true, .bool/maketitlepage/true/ - \skvifbooltrue skvcl@maketitlepage\then + \skvifbool skvcl@maketitlepage\then \ifskvindef\else \PassOptionsToClass{titlepage}{article} \fi @@ -156,7 +157,7 @@ , .cmd/pagenumberstyle/\@nil/ \ifx\skvcl@pagenumberstyle\@nnil\else - \skvAfterBeginDocument{\pagenumbering{#1}}% + \skvafterbegindocument{\pagenumbering{#1}}% \fi , .cmd/pretitleskip/10pt, @@ -164,7 +165,7 @@ .cmd/authorfont/\large, .cmd/titlefont/\huge, .bool/insertwatermark/true/ - \skvifbooltrue skvcl@insertwatermark\then + \skvifbool skvcl@insertwatermark\then \ifskvindef\else \let\skvcl@maybewm\skvcl@watermark \fi @@ -178,7 +179,7 @@ .cmd/fontsize/{14.4,17}/ \def\skvcl@fontsize@a{#1}\def\skvcl@fontsize@b{#2} , - .args/fontsize/{#1,#2}, + .arg/fontsize/{#1,#2}, .cmd/watermarkscale/5, .cmd/watermarkcolor/gray!55, }, @@ -187,16 +188,21 @@ first-page-number/firstpagenumber=#1, titlepage/maketitlepage=#1, }, - % Options execution & processing: + % Options execution and processing: .families = {textemphasis,title}, + % Ececute the options in all the prevailing families. If any of + % the options isn't found in at least one family, report error (ie, + % don't save the key to the list of 'remaining keys'). Unknown options + % should be flagged immediately. .execute options+={ useitalic,usebold,usecolor,color, make-textemphasis-inactive=false,putdate,datefont, clearpage=false,pretitleskip,posttitleskip, authorfont,titlefont,watermarkscale,firstpagenumber, insertwatermark=false,watermarkxshift,watermarkyshift, - watermarktext,fontsize + watermarktext,watermarkcolor,fontsize }, + % Use '.mega process options*' or '.copy class options and process...': % .mega process options*={ % prefix=SKVC, % families={textemphasis,title}, @@ -204,7 +210,7 @@ .copy class options and process options in all families, } -\skvrobustdef*\setskeyvaltestclass{% +\skvrobustdef*\setupskvtestclass{% \skvsetkeys*+[SKVC]{textemphasis,title}% } @@ -212,21 +218,21 @@ \skvrobustdef*\setuptextemphasis#1{\skvsetkeys[SKVC]{textemphasis}{#1}} \newcommand*\xem[1]{\xem@emph{\xem@bold{\xem@colortext{\xem@color}{#1}}}} \newcommand*\xem@emph{% - \skvifbooltrue xem@useitalic\then + \skvifbool xem@useitalic\then \expandafter\emph \else \expandafter\@firstofone \fi } \newcommand*\xem@bold{% - \skvifbooltrue xem@usebold\then + \skvifbool xem@usebold\then \expandafter\textbf \else \expandafter\@firstofone \fi } \newcommand*\xem@colortext{% - \skvifbooltrue xem@usecolor\then + \skvifbool xem@usecolor\then \expandafter\textcolor \else \expandafter\@secondoftwo @@ -258,7 +264,7 @@ \end{tabular}\par }% \vskip1.5em\relax - \skvifbooltrue skvcl@putdate\then{{\skvcl@datefont\@date}}\fi + \skvifbool skvcl@putdate\then{{\skvcl@datefont\@date}}\fi \end{center}\par \@thanks \vfil\null @@ -301,7 +307,7 @@ \end{tabular}\par }% \vskip1em\relax - \skvifbooltrue skvcl@putdate\then{\skvcl@datefont\@date}\fi + \skvifbool skvcl@putdate\then{\skvcl@datefont\@date}\fi \end{center}% \par \vskip1.5em\relax |