Difference between revisions of "Command/env"

From Wiki
Jump to navigation Jump to search
(documentargument --> getdocumentargument)
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>env</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 14: Line 17:
 
     <td class="cmd">{...}</td>
 
     <td class="cmd">{...}</td>
 
     <td>''argument name''</td>
 
     <td>''argument name''</td>
  </tr>
 
 
   </tr>
 
   </tr>
 
</table>
 
</table>
  
== Description ==  
+
== Description ==
 +
A shortcut for {{code|\getvariable{environment}{...}}}.
 
Access arguments were passed from the command line via {{code|--arguments}}:
 
Access arguments were passed from the command line via {{code|--arguments}}:
  
Line 34: Line 37:
  
 
== See also ==
 
== See also ==
 +
* {{cmd|getvariable}}
 
* {{cmd|doifdocumentargument}}
 
* {{cmd|doifdocumentargument}}
 
* {{cmd|getdocumentargument}}
 
* {{cmd|getdocumentargument}}

Revision as of 16:23, 11 November 2019

\env

Syntax (autogenerated)

\env{...}
{...}key


Syntax

\env{...}
{...} argument name

Description

A shortcut for \getvariable{environment}{...}. Access arguments were passed from the command line via --arguments:

 context --arguments=arg1=value1,arg2="value 2"

Example

% official-response.tex
\starttext
The request is \env{permission}.
\stoptext
 context --arguments=permission=granted official-response.tex

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: