Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse

Direc­tory tex-archive/macros/latex/contrib/keycommand

% keycommand is a package providing an easy way to define commands
% with keys in LaTeX. The code is based on kvsetkeys by Heiko
% Oberdiek. It does not rely on keyval.
%
% This work consists of the main source file keycommand.dtx
% and the derived files
%    keycommand.sty, keycommand.pdf, keycommand.ins,
%    keycommand-example.tex
%
% Unpacking:
%    (a) If keycommand.ins is present:
%           etex keycommand.ins
%    (b) Without keycommand.ins:
%           etex keycommand.dtx
%    (c) If you insist on using LaTeX
%           latex \let\install=y\input{keycommand.dtx}
%        (quote the arguments according to the demands of your shell)
%
% Documentation:
%           (pdf)latex keycommand.dtx
%
% -----------------------------------------------------------------
% Typical example:
%
% \newkeycommand+[\|]\myFigure[
%            caption={\textcolor{red}{<no caption given>},
%            placement=h}][OtherKeys][1]{%
%     |\begin{figure}|[\commandkey{placement}]
%         |\includegraphics|[\commandkey{OtherKeys}]{#1}
%         |\caption|{\commandkey{caption}}}
% Usage :
%
% \myFigure[caption=small image,page=12,viewport=20 50 136 95,clip]{image.pdf}
% -----------------------------------------------------------------



Files

Name Size Date Notes
README 1242 2009-08-31 07:46
keycommand-example.pdf 166465 2010-04-27 02:42
keycommand-example.tex 3962 2010-04-27 03:31
keycommand.dtx 56819 2010-04-27 03:30
keycommand.ins 2775 2010-04-27 03:31
keycommand.pdf 335420 2010-04-27 03:31

Down­load the con­tents of this pack­age in one zip archive (365.8k).

key­command – Sim­ple cre­ation of com­mands with key-value ar­gu­ments

The pack­age (which re­quires e-TeX) pro­vides a nat­u­ral way to de­fine com­mands with op­tional keys.

The pack­age pro­vides \newk­ey­command, \re­newk­ey­command, \providek­ey­command, \newkeyen­vi­ron­ment and \re­newkeyen­vi­ron­ment, to­gether with \key­cmd for a more ad­vanced in­ter­face.

The pack­age is based on kvsetkeys by Heiko Oberdiek.

Pack­age De­tailskey­command
Ver­sion3.1415
Li­censeThe LaTeX Project Public Li­cense
Copy­right2009-2010 Florent Chervet
Main­tainerFlorent Chervet
Con­tained inTeXlive as key­command
MikTeX as key­command
Topics key-value ar­gu­ment sys­tems
Guest Book Sitemap Contact