Difference between revisions of "Command/getdocumentargument"

From Wiki
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...")
 
 
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>getdocumentargument</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==

Latest revision as of 16:26, 11 November 2019

\getdocumentargument

Syntax (autogenerated)

\getdocumentargument{...}
{...}name


Syntax

\getdocumentargument{...}
{...} argument name

Description

Expands to the value of a command-line argument.

Example

% test.tex
\starttext
Number: \doifdocumentargument{Number}{\getdocumentargument{Number}}
Time: \doifdocumentargument{Time}{\getdocumentargument{Time}}
\stoptext
context --Number=10 --Time="half minutes" test.tex
# or
context test.tex --Number=4 --Time=now


See also

Help from ConTeXt-Mailinglist/Forum

All issues with: