Difference between revisions of "Command/type"

From Wiki
Jump to navigation Jump to search
(add description, example, category)
 
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>type</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==

Latest revision as of 20:46, 13 January 2020

\type

Syntax (autogenerated)

\type[...=...,...]{...}
...=...,...inherits from \setuptype
{...}content


\type[...=...,...]<<...>>
...=...,...inherits from \setuptype
<<...>>angles


Syntax

\type{...}
{...} text


Description

Verbatim text, typeset in typewriter font.

In a caption (and probably other places), \type can cause errors if it contains active characters (| for example). You can use

\type{...}\type{|}\type{...}

as a workaround, since the first character is not expanded.


Example

\type{\bf You can type any %ld thing you |ike, even command$.}\crlf
\type-You can choose your own delimiters-\crlf
\setuptype[option=slanted]
\type{house <>}

See also

  • \setuptype — set options
  • \starttyping — displayed typing
  • \typ — verbatim text with hyphenation, in MkIV
  • \tex — print verbatim with a backslash in front. Used for TeX commands
  • \arg — print verbatim, surrounded by {...}. Used for arguments.

Help from ConTeXt-Mailinglist/Forum

All issues with: