Difference between revisions of "Command/definetyping"
< Command
Jump to navigation
Jump to search
m (moved Reference/en/definetyping to Command/definetyping: Text replace - "Reference/en/" to "Command/") |
m (Text replace - "[[Category:Commands|" to "== ConTeXt-Forum == {{Forum|{{SUBPAGENAME}}}} [[Category:Commands|") |
||
Line 46: | Line 46: | ||
== See also == | == See also == | ||
[[cmd:setuptyping|\setuptyping]] | [[cmd:setuptyping|\setuptyping]] | ||
+ | |||
+ | == ConTeXt-Forum == | ||
+ | {{Forum|{{SUBPAGENAME}}}} | ||
[[Category:Commands|definetyping]] | [[Category:Commands|definetyping]] |
Revision as of 23:52, 14 March 2012
\definetyping
Syntax
\definetyping[...][...,...=...,...] | |
[...] | file typing name |
[...,...=...,...] | see \setuptyping |
Description
Defines a new typing environment and the corresponding \start and \stop commands. The first argument is the name of the typing environment, the second argument are the options to apply for this environment.
Note that difference with \setuptyping: \definetyping defines a new typing environment, while \setuptyping changes the options of an existing typing environment (including the default environment that you get when using \starttyping).
Example
\definetyping [TTinput] [before={\startframedtext[width=\makeupwidth, background=screen, backgroundscreen=.8]}, after={\stopframedtext}] \starttext \startTTinput test \stopTTinput \stoptext