X-Git-Url: https://git.distorted.org.uk/~mdw/mdwtools/blobdiff_plain/baa9f3563a25ec9040d59b44a86d62f4d9786258..aecccf6c3d3688b8a30953b7fddc6e72d73b9465:/mdwkey.dtx diff --git a/mdwkey.dtx b/mdwkey.dtx index a3a7bf3..2cfd9b3 100644 --- a/mdwkey.dtx +++ b/mdwkey.dtx @@ -1,13 +1,3 @@ -% \begin{meta-comment} -% -% $Id: mdwkey.dtx,v 1.1 2003/09/05 16:09:56 mdw Exp $ -% -% Parsing key/value pairs -% -% (c) 2003 Mark Wooding -% -% \end{meta-comment} -% % \begin{meta-comment} %% %% mdwkey package -- yet another key/value parser @@ -34,7 +24,7 @@ % \begin{meta-comment} %<+package&!plain>\NeedsTeXFormat{LaTeX2e} %<+package&!plain>\ProvidesPackage{mdwkey} -%<+package&!plain> [2003/08/21 1.0 key/value parser] +%<+package&!plain> [2003/08/21 1.0 Key/value parser] % \end{meta-comment} % % \CheckSum{316} @@ -89,7 +79,7 @@ % Examples: % \begin{itemize} \synshorts % \item "foo = bar" is a key-value pair. The key is `foo' and the value is -% `bar'. +% `bar'. % \item `{foo = bar}' is a tag. The key is `foo = bar'. % \item `foo = { bar }' is a key-value pair. The key is `foo' and % the value is ` bar ' (with the leading and trailing spaces). @@ -115,15 +105,15 @@ % is given a value: the value is available as "#1" in . % \item "\\mkdef{""}{""}[""]{""}" is the same, % but additionally if is found as a tag, then treat it as if we found -% "={""}" instead. +% "={""}" instead. % \item "\\mkdef{""}{""}*{""}" will perform when -% is found as a tag. +% is found as a tag. % \item "\\mkdef*{""}{""}" will perform when an unknown % key (one for which there is no specific definition in this group) is % given a value: the key is available as "#1" and the value as "#2" in -% . +% . % \item "\\mkdef*{""}[""]{""}" is the same, but -% additionally if an unknown key is found as a tag then treat it as if +% additionally if an unknown key is found as a tag then treat it as if % it had been assigned the value instead. % \item "\\mkdef*{""}*{""}" will perform when an % unknown key is found as a tag: the key is available as "#1" in .