| 1 |
% keycommand is a package providing an easy way to define commands |
| 2 |
% with keys in LaTeX. The code is based on kvsetkeys by Heiko |
| 3 |
% Oberdiek. It does not rely on keyval. |
| 4 |
% |
| 5 |
% This work consists of the main source file keycommand.dtx |
| 6 |
% and the derived files |
| 7 |
% keycommand.sty, keycommand.pdf, keycommand.ins, |
| 8 |
% keycommand-example.tex |
| 9 |
% |
| 10 |
% Unpacking: |
| 11 |
% (a) If keycommand.ins is present: |
| 12 |
% etex keycommand.ins |
| 13 |
% (b) Without keycommand.ins: |
| 14 |
% etex keycommand.dtx |
| 15 |
% (c) If you insist on using LaTeX |
| 16 |
% latex \let\install=y\input{keycommand.dtx} |
| 17 |
% (quote the arguments according to the demands of your shell) |
| 18 |
% |
| 19 |
% Documentation: |
| 20 |
% (pdf)latex keycommand.dtx |
| 21 |
% |
| 22 |
% ----------------------------------------------------------------- |
| 23 |
% Typical example: |
| 24 |
% |
| 25 |
% \newkeycommand+[\|]\myFigure[ |
| 26 |
% caption={\textcolor{red}{<no caption given>}, |
| 27 |
% placement=h}][OtherKeys][1]{% |
| 28 |
% |\begin{figure}|[\commandkey{placement}] |
| 29 |
% |\includegraphics|[\commandkey{OtherKeys}]{#1} |
| 30 |
% |\caption|{\commandkey{caption}}} |
| 31 |
% Usage : |
| 32 |
% |
| 33 |
% \myFigure[caption=small image,page=12,viewport=20 50 136 95,clip]{image.pdf} |
| 34 |
% ----------------------------------------------------------------- |
| 35 |
|
| 36 |
|
| 37 |
|