Difference between revisions of "Command/setuptype"

From ConTeXt wiki
Jump to navigationJump to search
m (add "lines" parameter)
Line 7: Line 7:
 
<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">[[Command/keyword:space|space]]</td>
+
    <td class="cmd">[...,...]</td>
     <td>[[Command/value:on|on]] [[Command/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>
<tr valign="top" class="first">
+
  <tr valign="top" class="second">
     <td class="cmd">[[Command/keyword:lines|lines]]</td>
+
     <td class="cmd">[[Command/keyword:compact|compact]]</td>
     <td>[[Command/value:normal|normal]] [[Command/value:hyphenated|hyphenated]] </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">[[Command/keyword:option|option]]</td>
+
     <td class="cmd">[[Command/keyword:escape|escape]]</td>
     <td>[[Command/value:slanted|slanted]] [[Command/value:normal|normal]] [[Command/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>
   <tr valign="top" class="first">
+
   <tr valign="top" class="second">
 
     <td class="cmd">[[Command/keyword:style|style]]</td>
 
     <td class="cmd">[[Command/keyword:style|style]]</td>
     <td>[[Command/value:normal|normal]] [[Command/value:bold|bold]] [[Command/value:slanted|slanted]] [[Command/value:boldslanted|boldslanted]] [[Command/value:type|type]] [[Command/value:cap|cap]] [[Command/value:small|small]] ... [[Command/value:command|command]] </td>
+
     <td>[[Command/value:STYLE COMMAND|STYLE COMMAND]] </td>
 
   </tr>
 
   </tr>
   <tr valign="top" class="first">
+
   <tr valign="top" class="second">
 
     <td class="cmd">[[Command/keyword:color|color]]</td>
 
     <td class="cmd">[[Command/keyword:color|color]]</td>
     <td>[[Command/value:name|name]] </td>
+
     <td>[[Command/value:COLOR|COLOR]] </td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Command/keyword:lines|lines]]</td>
 +
    <td>[[Command/value:yes|yes]] [[Command/value:no|no]] [[Command/value:normal|normal]] [[Command/value:hyphenated|hyphenated]]</td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Command/keyword:space|space]]</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 33: Line 61:
  
 
== 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}} -->
+
* {{cmd|type}}
 +
* {{cmd|starttyping}}
 +
* [[Verbatim]]
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 22:06, 11 July 2017

\setuptype

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: