1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
|
<?xml version="1.0" encoding="UTF-8"?>
<?latexml class="article"?>
<?latexml RelaxNGSchema="LaTeXML"?>
<document xmlns="http://dlmf.nist.gov/LaTeXML">
<resource src="LaTeXML.css" type="text/css"/>
<resource src="ltx-article.css" type="text/css"/>
<title>Testing equality vs. catcodes</title>
<section inlist="toc" xml:id="S1">
<tags>
<tag>1</tag>
<tag role="refnum">1</tag>
<tag role="typerefnum">§1</tag>
</tags>
<title><tag close=" ">1</tag>Begin 1</title>
<para xml:id="S1.p1">
<p>Pretest (not): not</p>
</para>
<para xml:id="S1.p2">
<p>Mangle…
BRACE: 1; begin-group character –.</p>
</para>
<para xml:id="S1.p3">
<p>AMP: 1; begin-group character &.</p>
</para>
<para xml:id="S1.p4">
<p>Test (not): not</p>
</para>
</section>
<section inlist="toc" xml:id="S2">
<tags>
<tag>2</tag>
<tag role="refnum">2</tag>
<tag role="typerefnum">§2</tag>
</tags>
<title><tag close=" ">2</tag>Math 3</title>
<para xml:id="S2.p1">
<p>Pretest (not): not</p>
</para>
<para xml:id="S2.p2">
<p>Mangle…
DOLLAR: 3; math shift character $.</p>
</para>
<para xml:id="S2.p3">
<p>AMP: 3; math shift character &.
Test (not): not</p>
</para>
<para xml:id="S2.p4">
<p>Test (equals): equals</p>
</para>
<para xml:id="S2.p5">
<p>Test (not): not</p>
</para>
<para xml:id="S2.p6">
<p>Test (equals): equals</p>
</para>
<para xml:id="S2.p7">
<p>But still acts like math:<Math mode="inline" tex="a" text="a" xml:id="S2.p7.m1">
<XMath>
<XMTok font="italic" role="UNKNOWN">a</XMTok>
</XMath>
</Math>.</p>
</para>
</section>
<section inlist="toc" xml:id="S3">
<tags>
<tag>3</tag>
<tag role="refnum">3</tag>
<tag role="typerefnum">§3</tag>
</tags>
<title><tag close=" ">3</tag>Math 3 w/let</title>
<para xml:id="S3.p1">
<p>Pretest (not): not</p>
</para>
<para xml:id="S3.p2">
<p>Mangle…
DOLLAR: 3; math shift character $.</p>
</para>
<para xml:id="S3.p3">
<p>AMP: 13; math shift character $.</p>
</para>
<para xml:id="S3.p4">
<p>Test (equals): equals</p>
</para>
<para xml:id="S3.p5">
<p>But still acts like math:<Math mode="inline" tex="a" text="a" xml:id="S3.p5.m1">
<XMath>
<XMTok font="italic" role="UNKNOWN">a</XMTok>
</XMath>
</Math>.</p>
</para>
</section>
<section inlist="toc" xml:id="S4">
<tags>
<tag>4</tag>
<tag role="refnum">4</tag>
<tag role="typerefnum">§4</tag>
</tags>
<title><tag close=" ">4</tag>Math 3 w/let, uncatcode</title>
<para xml:id="S4.p1">
<p>Pretest (not): not</p>
</para>
<para xml:id="S4.p2">
<p>Mangle…
DOLLAR: 3; math shift character $.</p>
</para>
<para xml:id="S4.p3">
<p>AMP: 4; alignment tab character &.
Test (not): not</p>
</para>
<para xml:id="S4.p4">
<p>But does NOT act like math.</p>
</para>
</section>
<section inlist="toc" xml:id="S5">
<tags>
<tag>5</tag>
<tag role="refnum">5</tag>
<tag role="typerefnum">§5</tag>
</tags>
<title><tag close=" ">5</tag>Param 6</title>
<para xml:id="S5.p1">
<p>Pretest (not): not</p>
</para>
<para xml:id="S5.p2">
<p>Mangle…
HASH: 6; macro parameter character #.</p>
</para>
<para xml:id="S5.p3">
<p>AMP: 6; macro parameter character &.
Test (not): not</p>
</para>
</section>
<section inlist="toc" xml:id="S6">
<tags>
<tag>6</tag>
<tag role="refnum">6</tag>
<tag role="typerefnum">§6</tag>
</tags>
<title><tag close=" ">6</tag>MathActive</title>
<para xml:id="S6.p1">
<p>Pretest (not): not</p>
</para>
<para xml:id="S6.p2">
<p>Mangle…</p>
</para>
<para xml:id="S6.p3">
<p>PRIME: 12; the character ’.</p>
</para>
<para xml:id="S6.p4">
<p>AMP: 4; alignment tab character &.
Test (not): not</p>
</para>
<para xml:id="S6.p5">
<p>But works as prime?
NO</p>
</para>
</section>
<section inlist="toc" xml:id="S7">
<tags>
<tag>7</tag>
<tag role="refnum">7</tag>
<tag role="typerefnum">§7</tag>
</tags>
<title><tag close=" ">7</tag>Control Sequences</title>
<para xml:id="S7.p1">
<p>Compare 2 undefined control sequences:
equals</p>
</para>
<para xml:id="S7.p2">
<p>Let one to relax:
not</p>
</para>
<para xml:id="S7.p3">
<p>Let both to relax:
equals</p>
</para>
<para xml:id="S7.p4">
<p>Test (equals): equals</p>
</para>
<para xml:id="S7.p5">
<p>Test (not): not</p>
</para>
<para xml:id="S7.p6">
<p>Test (not in math): <Math mode="inline" tex="not" text="n * o * t" xml:id="S7.p6.m1">
<XMath>
<XMApp>
<XMTok meaning="times" role="MULOP"></XMTok>
<XMTok font="italic" role="UNKNOWN">n</XMTok>
<XMTok font="italic" role="UNKNOWN">o</XMTok>
<XMTok font="italic" role="UNKNOWN">t</XMTok>
</XMApp>
</XMath>
</Math></p>
</para>
</section>
</document>
|