Command/definetyping

From Wiki
< Command
Revision as of 12:37, 11 April 2010 by Maintenance script (talk) (Create reference page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Reference Cleanup

\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 cmd:setuptyping: cmd:definetyping defines a new typing environment, while cmd:setuptyping changes the options of an existing typing environment (including the default environment that you get when using cmd:starttyping).



Example

 \definetyping
   [TTinput]
   [before={\startframedtext[width=\makeupwidth,
                             background=screen,
                             backgroundscreen=.8]},
    after={\stopframedtext}]
 \starttext
 \startTTinput
 test
 \stopTTinput
 \stoptext

See also