Difference between revisions of "Command/setuptype"

From Wiki
Jump to navigation Jump to search
m (Text replace - "Reference/en|" to "Commands|")
m
(13 intermediate revisions by 6 users not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>setuptype</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
   <tr>
 
   <tr>
     <td colspan="2" class="cmd">\setuptype<span class="first" >[...,...=...,...]</span></td>
+
     <td colspan="2" class="cmd">\setuptype<span class="first" >[...,...]</span><span class="second" >[...,...=...,...]</span></td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:space|space]]</td>
+
     <td class="cmd">[...,...]</td>
     <td>[[Reference/en/value:on|on]] [[Reference/en/value:off|off]] </td>
+
    <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Command/keyword:option|option]]</td>
 +
     <td>[[Command/value:mp|mp]] [[Command/value:lua|lua]] [[Command/value:xml|xml]] [[Command/value:parsed-xml|parsed-xml]] [[Command/value:nested|nested]] [[Command/value:tex|tex]] [[Command/value:context|context]] [[Command/value:none|none]] [[Command/value:NAME|NAME]]</td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Command/keyword:command|command]]</td>
 +
    <td>[[Command/value:CSNAME|CSNAME]]</td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Command/keyword:left|left]]</td>
 +
    <td>[[Command/value:COMMAND|COMMAND]]</td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Command/keyword:right|right]]</td>
 +
    <td>[[Command/value:COMMAND|COMMAND]]</td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Command/keyword:tab|tab]]</td>
 +
    <td>[[Command/value:yes|yes]] [[Command/value:no|no]] [[Command/value:NUMBER|NUMBER]]</td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Command/keyword:compact|compact]]</td>
 +
    <td>[[Command/value:absolute|absolute]] [[Command/value:last|last]] [[Command/value:all|all]]</td>
 
   </tr>
 
   </tr>
   <tr valign="top" class="first">
+
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:option|option]]</td>
+
     <td class="cmd">[[Command/keyword:escape|escape]]</td>
     <td>[[Reference/en/value:slanted|slanted]] [[Reference/en/value:normal|normal]] [[Reference/en/value:none|none]] </td>
+
     <td>[[Command/value:yes|yes]] [[Command/value:no|no]] [[Command/value:TEXT|TEXT]] [[Command/value:TEXT|PROCESSOR->TEXT]]</td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Command/keyword:style|style]]</td>
 +
    <td>[[Command/value:STYLE COMMAND|STYLE COMMAND]] </td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Command/keyword:color|color]]</td>
 +
    <td>[[Command/value:COLOR|COLOR]] </td>
 
   </tr>
 
   </tr>
   <tr valign="top" class="first">
+
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:style|style]]</td>
+
     <td class="cmd">[[Command/keyword:lines|lines]]</td>
     <td>[[Reference/en/value:normal|normal]] [[Reference/en/value:bold|bold]] [[Reference/en/value:slanted|slanted]] [[Reference/en/value:boldslanted|boldslanted]] [[Reference/en/value:type|type]] [[Reference/en/value:cap|cap]] [[Reference/en/value:small|small]] ... [[Reference/en/value:command|command]] </td>
+
     <td>[[Command/value:yes|yes]] [[Command/value:no|no]] [[Command/value:normal|normal]] [[Command/value:hyphenated|hyphenated]]</td>
 
   </tr>
 
   </tr>
   <tr valign="top" class="first">
+
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:color|color]]</td>
+
     <td class="cmd">[[Command/keyword:space|space]]</td>
     <td>[[Reference/en/value:name|name]] </td>
+
     <td>[[Command/value:on|on]] [[Command/value:off|off]]  [[Command/value:normal|normal]]  [[Command/value:fixed|fixed]]  [[Command/value:stretch|stretch]] </td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>
Line 29: Line 64:
  
 
== Description ==  
 
== Description ==  
 
+
Text can be displayed in verbatim (typed) form.  For inline typed text the command {{cmd|type}} is available.
 
 
  
 
== Example ==
 
== Example ==
 
<!-- Please fill in an example if you can -->
 
<!-- Please fill in an example if you can -->
 +
<context source="yes">
 +
For reasons of readability you can also use other characters than
 +
\type!{! and \type!}! as outer parenthesis. You can choose your own
 +
non||active (a non||special) character, for example: \type+like this+
 +
or \type-like that-.
 +
</context>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
* {{cmd|type}}
 +
* {{cmd|starttyping}}
 +
* [[Verbatim text]]
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|setuptype]]
+
[[Category:Command/Verbatim|setuptype]]
 +
[[Category:Command/Verbatim Text|setuptype]]

Revision as of 20:56, 8 June 2020

\setuptype

Syntax (autogenerated)

\setuptype[...,...][...=...,...]
[...,...]name
optionmp lua xml parsed-xml nested tex context none name
commandcsname
leftcommand
rightcommand
tabyes no number
compactabsolute last all
escapeyes no text processor->text
stylestyle command
colorcolor
linesyes no normal hyphenated
spaceon off normal fixed stretch


Syntax

\setuptype[...,...][...,...=...,...]
[...,...] IDENTIFIER
option mp lua xml parsed-xml nested tex context none NAME
command CSNAME
left COMMAND
right COMMAND
tab yes no NUMBER
compact absolute last all
escape yes no TEXT PROCESSOR->TEXT
style STYLE COMMAND
color COLOR
lines yes no normal hyphenated
space on off normal fixed stretch


Description

Text can be displayed in verbatim (typed) form. For inline typed text the command \type is available.

Example

For reasons of readability you can also use other characters than
\type!{! and \type!}! as outer parenthesis. You can choose your own
non||active (a non||special) character, for example: \type+like this+
or \type-like that-.

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: