ma-cb-en-specialcharacters.tex /size: 3151 b    last modification: 2020-07-01 14:35
1\startcomponent ma-cb-en-specialcharacters
2
3\enablemode[**en-us]
4
5\project ma-cb
6
7\startchapter[reference=special chars,title=Special characters]
8
9\index{special characters}
10
11You have seen that \CONTEXT\ commands are preceded by a \tex{} (backslash). This
12means that \tex{} has a special meaning to \CONTEXT. Aside from \tex{} there are
13other characters that need special attention when you want them to appear in
14verbatim mode or in text mode. \in{Table}[tab:specchars] gives an overview of
15these special characters and what you have to type to produce them.
16
17\placetable[here,force][tab:specchars]
18  {Special characters (1).}
19  {\starttable[|c|l|c|c|c|c|]
20  \HL
21  \NC \use2 \JustCenter{\bf Special character}           \NC \use2 \bf Verbatim  \NC \use2 \bf Text \NC\FR
22  \NC \bf Character \NC \bf Name          \NC \bf Type \NC \bf Generates \NC \bf Type\NC \bf Generates \NC\LR
23  \HL
24  \NC \type{#}      \NC hashtag           \NC \type{\type{#}} \NC \type{#} \VL \type{\#}           \NC \#           \NC\FR
25  \NC \type{$}      \NC dollar            \NC \type{\type{$}} \NC \type{$} \VL \type{\$}           \NC \$           \NC\MR
26  \NC \type{&}      \NC ampersand         \NC \type{\type{&}} \NC \type{&} \VL \type{\&}           \NC \&           \NC\MR
27  \NC \type{%}      \NC percent           \NC \type{\type{%}} \NC \type{%} \VL \type{\%}           \NC \%           \NC\MR
28  \NC \type{\}      \NC backslash         \NC \type{\type{\}} \NC \type{\} \VL \type{\backslash}   \NC \backslash   \NC\MR
29  \NC \type+{+      \NC right curly brace \NC \type-\type+{+- \NC \type+{+ \VL \type+\{+           \NC \{           \NC\MR
30  \NC \type+}+      \NC left curly brace  \NC \type-\type+}+- \NC \type+}+ \VL \type+\}+           \NC \}           \NC\MR
31  \NC \type{|}      \NC vertical bar      \NC \type{\type{|}} \NC \type{|} \VL \type{\|}           \NC \|           \NC\MR
32  \NC \type{_}      \NC underscore        \NC \type{\type{_}} \NC \type{_} \VL \type{\_}           \NC \_           \NC\MR
33  \NC \type{~}      \NC tilde             \NC \type{\type{~}} \NC \type{~} \VL \type{\lettertilde} \NC \lettertilde \NC\MR
34  \NC \type{^}      \NC caret             \NC \type{\type{^}} \NC \type{^} \VL \type{\letterhat}   \NC \letterhat   \NC\LR
35  \HL
36  \stoptable}
37
38Other special characters have a meaning in typesetting mathematical expressions
39and some can be used in math mode only (see \in{chapter}[formulas]).
40
41\placetable
42  [here,force]
43  [tab:special chars]
44  {Special characters (2).}
45  {\starttable[|c|c|c|c|c|]
46  \HL
47  \NC \bf \LOW{Special character} \NC \use2 \bf Verbatim  \NC \use2 \bf Text \NC\FR
48  \NC                         \NC \bf Type \NC \bf Generates \NC \bf Type \NC \bf Generates \NC\LR
49  \HL
50  \NC \type{+} \NC \type{\type{+}} \NC \type{+} \VL \type{$+$} \NC $+$ \NC\FR
51  \NC \type{-} \NC \type{\type{-}} \NC \type{-} \VL \type{$-$} \NC $-$ \NC\MR
52  \NC \type{=} \NC \type{\type{=}} \NC \type{=} \VL \type{$=$} \NC $=$ \NC\MR
53  \NC \type{<} \NC \type{\type{<}} \NC \type{<} \VL \type{$<$} \NC $<$ \NC\MR
54  \NC \type{>} \NC \type{\type{>}} \NC \type{>} \VL \type{$>$} \NC $>$ \NC\LR
55  \HL
56  \stoptable}
57
58\stopchapter
59
60\stopcomponent
61