Command/doifdocumentargument

From Wiki
< Command
Revision as of 12:33, 10 September 2012 by Esteis (talk | contribs) (Created page with "{{Reference |name={{subst:SUBPAGENAME}} |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

\doifdocumentargument

Syntax

\doifdocumentargument{...}{...}
{...} argument name
{...} code if the argument is defined

Description

Process certain content only if a certain command-line argument was present.

Example

% test.tex
\starttext
\doifdocumentargument{Number}{\getdocumentargument{Number Yes}
\stoptext
context --Number test.tex

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: