diff options
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/latex/pgfkeyx/README | 41 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/pgfkeyx/pgfkeyx-test1.tex | 52 |
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} |