Command/literalmode

From Wiki
< Command
Revision as of 14:47, 4 September 2020 by Taco (talk | contribs) (Created page with "Documentation for \literalmode")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


\literalmode

Summary

The command \literalmode adjusts the list of special characters in your text.

Description

When you use \asciimode in a document comments have to be added with two percent signs %% but this leads to problems with inline verbatim code because you can't write \type{%%} anymore. The \literalmode works like \asciimode with the exception that %% isn't used for comments.


Examples

Example 1

The following example shows the different results of \asciimode and \literalmode with %%.

\asciimode

This is normal text

%% This is a comment.

Verbatim: \type{%%}
\literalmode

This is normal text

%% This is a comment.

Verbatim: \type{%%}

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: