Changes

Jump to navigation Jump to search
2,104 bytes added ,  14:14, 3 December 2021
Created page with "Documentation for \type"
<cd:commandgroup name="type" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>The command <tt>\type</tt> typesets verbatim TeX code
</cd:shortdesc>
<cd:variants>
<cd:command category="verbatim" file="buff-ver.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-verbatim.xml" level="document" name="type" variantnumber="1">
<cd:arguments>
<cd:assignments list="yes" optional="yes" ordinal="1">
<cd:assignmentsdoc></cd:assignmentsdoc>
<cd:inherit name="setuptype"></cd:inherit>
</cd:assignments>
<cd:content ordinal="2"></cd:content>
</cd:arguments>
</cd:command>
<cd:command category="verbatim" file="buff-ver.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-verbatim.xml" level="document" name="type" variant="angles" variantnumber="2">
<cd:arguments>
<cd:assignments list="yes" optional="yes" ordinal="1">
<cd:assignmentsdoc></cd:assignmentsdoc>
<cd:inherit name="setuptype"></cd:inherit>
</cd:assignments>
<cd:angles ordinal="2"></cd:angles>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>Verbatim text, typeset in typewriter font.

In a caption (and probably other places), {{cmd|type}} can cause errors if it
contains active characters (<tt>|</tt> for example). You can use
<texcode>\type{...}\type{|}\type{...}</texcode> as a workaround, since the first character is not expanded.


</cd:description>
<cd:examples><cd:example title=""><context source="yes">
Plain example: \type{\bf You can type any %ld thing you |ike, even command$.}

Alternate delimiters: \type-You can choose your own delimiters-

With options \type[option=TEX]{\ConTeXt\ colouring}
</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:commandref name="definetype" originator="system"></cd:commandref>
<cd:commandref name="setuptype" originator="system"></cd:commandref>
<cd:source file="buff-ver.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Verbatim"></cd:wikipage>
<cd:commandref name="starttyping"></cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu