summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/skeyval/skeyval-testclass.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/skeyval/skeyval-testclass.cls')
-rw-r--r--Master/texmf-dist/doc/latex/skeyval/skeyval-testclass.cls51
1 files changed, 27 insertions, 24 deletions
diff --git a/Master/texmf-dist/doc/latex/skeyval/skeyval-testclass.cls b/Master/texmf-dist/doc/latex/skeyval/skeyval-testclass.cls
index c81c535c0ef..ecb846dc99b 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.1a, 2012/10/16. %
+% This is file 'skeyval-testclass.cls', version 1.2, 2013/02/10. %
% %
% This package and accompanying files may be distributed and/or %
% modified under the conditions of the LaTeX Project Public License, %
@@ -23,11 +23,10 @@
% skeyval-pstkey.sty, skeyval-pstkey.tex, skeyval-testclass.cls, %
% and skeyval-testpkg.sty. %
% %
-% Copyright (c) 2010-2012 Ahmed Musa (amusa22@gmail.com). %
+% Copyright (c) 2010-2013 Ahmed Musa (amusa22@gmail.com). %
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%
-\ProvidesClass{skeyval-testclass}
- [2012/10/16 v1.1a skeyval test class (AM)]
+\ProvidesClass{skeyval-testclass}[2013/02/10 v1.2 skeyval test class (AM)]
\NeedsTeXFormat{LaTeX2e}[2011/06/27]
\@ifpackageloaded{skeyval}{}{\RequirePackage{skeyval}}
\@ifpackageloaded{xcolor}{}{\RequirePackage{xcolor}}
@@ -80,9 +79,7 @@
\skvnewlet\skv@sav@footnote\footnote
\skvnewlet\skv@sav@thanks\thanks
\AtEndOfPackage{%
- \skvdisablekeys[SKVC]{title}{%
- insertwatermark
- }%
+ \skvdisablekeys[SKVC]{title}{insertwatermark}%
}
\AtBeginDocument{%
\def\footnote{\unskip\skv@sav@footnote}%
@@ -94,6 +91,11 @@
}
\let\skvcl@settitlepageno\@gobble
+% Example of option and nonoption keys:
+\skvordkeys[KV]{fam}{testkey1,testkey2}[value]{}
+\skvoptionkeys[KV]{fam}{testkey1}
+\skvnonoptionkeys[KV]{fam}{testkey2}
+
% LaTeX will zap spaces in key name, anyway. So our options don't have
% spaces within themselves.
@@ -107,6 +109,8 @@
.family=textemphasis,
.hp=xem@,
.new options={
+ .initialize keys after define,
+ .ord/{testkey1,testkey2,testkey3}/default,
.bool/useitalic/true,
.bool/usebold/true,
.bool/usecolor/true,
@@ -127,6 +131,8 @@
usecolour/usecolor,
colour/color,
},
+ .option keys = {testkey1},
+ .nonoption keys = {testkey2,testkey3},
% Modifying the article title:
.change family=title,
.hp=skvcl@,
@@ -183,32 +189,29 @@
.cmd/watermarkscale/5,
.cmd/watermarkcolor/gray!55,
},
- .styles={
+ .slots={
showdate/putdate=#1,
first-page-number/firstpagenumber=#1,
titlepage/maketitlepage=#1,
},
- % 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,
+ % Ececute the options in the current family. If any of the options
+ % isn't found, report error (ie, don't save the key to the list of
+ % 'remaining keys'). Unknown options should be flagged immediately.
+ % Use '.execute options+' or '.execute options in all families' to
+ % execute options in multiple families.
+ .execute options={
+ putdate,datefont,clearpage=false,pretitleskip,posttitleskip,
authorfont,titlefont,watermarkscale,firstpagenumber,
insertwatermark=false,watermarkxshift,watermarkyshift,
watermarktext,watermarkcolor,fontsize
},
- % Use '.mega process options*' or '.copy class options and process...':
-% .mega process options*={
-% prefix=SKVC,
-% families={textemphasis,title},
-% },
- .copy class options and process options in all families,
+ .families={textemphasis,title},
+ .process options in all families,
}
+%\show\skvcurrentpoxkeys
+
+% testkey1 is an option key: don't set it outside option list:
+% \skvsetkeys[SKVC]{textemphasis}{testkey1}
\skvrobustdef*\setupskvtestclass{%
\skvsetkeys*+[SKVC]{textemphasis,title}%