Difference between revisions of "Command/verbatim"
< Command
Jump to navigation
Jump to search
(new) |
m (add relatives) |
||
Line 11: | Line 11: | ||
</cd:variants> | </cd:variants> | ||
<cd:description><!-- the long description of the command goes here --> | <cd:description><!-- the long description of the command goes here --> | ||
− | In case you need to type special characters without interpretion – all characters have their catcode set to “letter”.</cd:description> | + | In case you need to type special characters without interpretion – all characters have their catcode set to “letter”. Internally, it uses {{cmd|detokenize}}.</cd:description> |
<cd:examples><cd:example title=""><context source="yes"> | <cd:examples><cd:example title=""><context source="yes"> | ||
\verbatim{\tex{type}\arg{...}} | \verbatim{\tex{type}\arg{...}} | ||
Line 19: | Line 19: | ||
<cd:source file="buff-ver.mkiv" originator="system"></cd:source> | <cd:source file="buff-ver.mkiv" originator="system"></cd:source> | ||
<cd:wikipage originator="system" page="Category:Verbatim"></cd:wikipage> | <cd:wikipage originator="system" page="Category:Verbatim"></cd:wikipage> | ||
− | <cd:commandref name="type"></cd:commandref> | + | <cd:commandref name="type">typeset something verbatim in tt font</cd:commandref> |
− | <cd:commandref name="tex"></cd:commandref> | + | <cd:commandref name="tex">typeset a TeX command, preceded by \, in tt font</cd:commandref> |
− | <cd:commandref name="filename"></cd:commandref></cd:seealso> | + | <cd:commandref name="filename">typeset a file name/path in tt font</cd:commandref> |
+ | <cd:commandref name="arg">typeset a command argument in braces, in tt font</cd:commandref></cd:seealso> | ||
</cd:commandgroup> | </cd:commandgroup> |
Latest revision as of 09:20, 29 July 2022
Contents
\verbatim
Summary
The command \verbatim is used to typeset its argument verbatim, i.e. like \type, but in the default font.
Settings
Description
In case you need to type special characters without interpretion – all characters have their catcode set to “letter”. Internally, it uses \detokenize.
Examples
Example 1
\verbatim{\tex{type}\arg{...}}
Notes
See also
- buff-ver.mkiv
- \type typeset something verbatim in tt font
- \tex typeset a TeX command, preceded by \, in tt font
- \filename typeset a file name/path in tt font
- \arg typeset a command argument in braces, in tt font