Difference between revisions of "Command/doifdocumentargument"
< Command
Jump to navigation
Jump to search
(Created page with "{{Reference |name={{subst:SUBPAGENAME}} |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
|attributes= | |attributes= | ||
}} | }} | ||
+ | |||
+ | |||
+ | == [[Help:Reference|Syntax]] (autogenerated) == | ||
+ | <syntax>doifdocumentargument</syntax> | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
Line 37: | Line 41: | ||
== See also == | == See also == | ||
* {{cmd|doif...}} | * {{cmd|doif...}} | ||
− | * {{cmd| | + | * {{cmd|getdocumentargument}} |
* {{cmd|env}} | * {{cmd|env}} | ||
Revision as of 16:22, 11 November 2019
\doifdocumentargument
Syntax (autogenerated)
\doifdocumentargument{...}{...} | |
{...} | name |
{...} | true |
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: