Command/type

From Wiki
Jump to navigation Jump to search

\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: