summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-04-22 23:30:48 +0000
committerKarl Berry <karl@freefriends.org>2012-04-22 23:30:48 +0000
commit5dca90feac7d290bffebe030529965234ae8b85c (patch)
tree0303a7e05699cbf909ae80ae006c345cb5f61d4e /Master/texmf-dist/doc/latex
parent8674ba11ca5132b2588bcbe52f59bb5077eff2d6 (diff)
new pgf package pgfkeyx 0.0.1 (21apr12)
git-svn-id: svn://tug.org/texlive/trunk@26093 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex')
-rw-r--r--Master/texmf-dist/doc/latex/pgfkeyx/README41
-rw-r--r--Master/texmf-dist/doc/latex/pgfkeyx/pgfkeyx-test1.tex52
2 files changed, 93 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pgfkeyx/README b/Master/texmf-dist/doc/latex/pgfkeyx/README
new file mode 100644
index 00000000000..db3cf4ed764
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pgfkeyx/README
@@ -0,0 +1,41 @@
+This is the README file for the pgfkeyx package.
+
+VERSION
+
+Version 0.0.1, April 2012.
+
+SUMMARY
+
+The pgfkeyx package provides extensions and robustness to the
+pgfkeys package. In particular, it can deal with active comma,
+equality sign, and slash in key parsing. It also introduces new
+handlers.
+
+It requires pgfkeys package to be loaded first. This restriction
+may be lifted in the future, if pgfkeyx became independent of
+pgfkeys package.
+
+This is currently a package for LaTeX users only. However, we've
+started generating platform-independent code in this package, as
+required by pgf/tikz team.
+
+
+LICENSE
+
+Copyright (c) 2012 Ahmed Musa.
+
+This software is author-maintained. Permission is granted to copy,
+distribute and/or modify this software under the terms of the
+LaTeX Project Public License, version 1.3 or higher. This software
+is provided 'as it is', without warranty of any kind, either
+expressed or implied, including, but not limited to, the implied
+warranties of merchantability and fitness for any particular purpose.
+
+
+RELATED PACKAGES
+
+pgfkeys
+
+AUTHOR
+
+Ahmed Musa (amusa22@gmail.com) \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/pgfkeyx/pgfkeyx-test1.tex b/Master/texmf-dist/doc/latex/pgfkeyx/pgfkeyx-test1.tex
new file mode 100644
index 00000000000..70915744aae
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pgfkeyx/pgfkeyx-test1.tex
@@ -0,0 +1,52 @@
+\documentclass{article}
+\usepackage{pgfkeys}
+\usepackage{pgfkeyx}
+\makeatletter
+
+\begingroup
+\def\iden#1{#1}
+\catcode`\/=13
+\catcode`\,=13
+\catcode`\==13
+\iden{\endgroup
+ \pgfkeys{%
+ / my family / .is family,
+ /my family/my keys/.cd,
+ keya / .code = \def\keyavalue{#1},
+ keya/.default = {keya-default},
+ keyb / .code = \def\myvalueb{#1},
+ keyb /.default=keyb-default,
+ .normal code=\def\x#1{#1},
+ keyc/.code=\pgfqkeysalso\pgfkeyscurrentpath{#1},
+ keyc/.value required,
+ keyd/.is if with no callback = true,
+ keye/.is if with 1 callback = {true}{\def\x##1{##1-True-#1}},
+ keyf/.is if with 2 callbacks =
+ {true}{\def\x##1{##1-True-#1}}{\def\x##1{##1-False-#1}},
+ }%
+}
+
+\pgfkeys{%
+ /my family/my keys/.cd,
+ keya={x},
+ keyb=aa,
+ keyc = {keya=aa, keyb=bb},
+}
+
+\pgfkeys{%
+ /my family/my keys/.cd,
+ keya/.restore default,
+ .restore key defaults={keya,keyb}
+}
+
+\makeatother
+
+\begin{document}
+\pgfkeys{%
+ /my family/my keys/keyf=true,
+}
+\ifkeyf
+ \texttt{`keyf'} is \textsf{true}.
+\fi
+%\show\x
+\end{document}