Difference between revisions of "Command/setuptyping"
< Command
Jump to navigation
Jump to search
(Create reference page) |
(cleanup) |
||
Line 115: | Line 115: | ||
== Description == | == Description == | ||
− | Changes options for displaying verbatim text. When called with a single argument, this command changes the options for the default typing environment as created with [[cmd:starttyping]]. When the optional argument is given, it identifies a specific typing environment (as created with [[cmd:definetyping]]). | + | Changes options for displaying verbatim text. When called with a single argument, this command changes the options for the default typing environment as created with [[cmd:starttyping|\starttyping]]. When the optional argument is given, it identifies a specific typing environment (as created with [[cmd:definetyping|\definetyping]]). |
− | [[cmd:setuptyping]] can be used multiple times to change options and options will stay in effect until the end of file. | + | [[cmd:setuptyping|\setuptyping]] can be used multiple times to change options and options will stay in effect until the end of file. |
− | Note that [[cmd:setuptyping]] also affects the display of the [[cmd:typefile]] command. | + | Note that [[cmd:setuptyping|\setuptyping]] also affects the display of the [[cmd:typefile|\typefile]] command. |
Line 126: | Line 126: | ||
== Example == | == Example == | ||
− | < | + | <texcode> |
\setuptyping | \setuptyping | ||
[before={\startframedtext[width=\makeupwidth, | [before={\startframedtext[width=\makeupwidth, | ||
Line 138: | Line 138: | ||
\stoptyping | \stoptyping | ||
\stoptext | \stoptext | ||
− | </ | + | </texcode> |
== See also == | == See also == | ||
− | + | [[cmd:typefile|\typefile]], [[cmd:starttyping|\starttyping]], [[cmd:definetyping|\definetyping]] | |
+ | |||
[[Category:Reference/en|setuptyping]] | [[Category:Reference/en|setuptyping]] |
Revision as of 15:40, 11 April 2010
\setuptyping
Syntax
\setuptyping[...][...,...=...,...] | |
[...] | file typing name |
space | on off |
page | yes no |
option | slanted normal commands color none |
text | yes no |
icommand | command |
vcommand | command |
ccommand | command |
before | command |
after | command |
margin | dimension standard yes no |
evenmargin | dimension |
oddmargin | dimension |
blank | dimension small medium big standard halfline line |
escape | character |
space | on off |
tab | number yes no |
page | yes no |
indentnext | yes no |
style | normal bold slanted boldslanted type cap small... command |
color | name |
palet | name |
lines | yes no hyphenated |
empty | yes all no |
numbering | line file no |
Description
Changes options for displaying verbatim text. When called with a single argument, this command changes the options for the default typing environment as created with \starttyping. When the optional argument is given, it identifies a specific typing environment (as created with \definetyping).
\setuptyping can be used multiple times to change options and options will stay in effect until the end of file.
Note that \setuptyping also affects the display of the \typefile command.
Example
\setuptyping [before={\startframedtext[width=\makeupwidth, background=screen, backgroundscreen=.8]}, after={\stopframedtext}] \starttext \starttyping test \stoptyping \stoptext