Skip to content

Commit a9720a0

Browse files
committed
extend Roman numeral example
1 parent 6dc87c9 commit a9720a0

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

intent-examples/addmathcat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ def ApplyMathCAT (i,mml,firstln):
9292
i=i+1
9393
if(i % 3 == 2):
9494
print("<tr>")
95-
print("<td n=2>")
95+
print("<td>")
9696
print(mmltd)
9797
print("</td>")
9898
if(i % 3 == 2 or i % 3 == 0):
99-
print("<td n=30>")
99+
print("<td>")
100100
mmls=re.split(r'(<math\b.*?</math>)',str(mmltd), flags=re.DOTALL)
101101
j=0
102102
for mml in mmls:

intent-examples/index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -256,37 +256,37 @@ <h1>Intent Examples</h1><h2>MathCAT Version: 0.6.6</h2>
256256
<td>
257257

258258
<math display='block'>
259-
<mi>X</mi><mo>,</mo><mi>XVI</mi>
259+
<mn>X</mn><mo>,</mo><mn>XVI</mn>
260260
</math>
261261

262262
</td>
263263
<td>
264-
<pre id='id-1-7413a88abe565cf2535dfc7d5a5bc59e'><a class='self' href='#id-1-7413a88abe565cf2535dfc7d5a5bc59e'>&#xa7;</a>
264+
<pre id='id-1-639b0692de31aae1e316b0bec089777a'><a class='self' href='#id-1-639b0692de31aae1e316b0bec089777a'>&#xa7;</a>
265265
&lt;math display='block'>
266-
&lt;mi>X&lt;/mi>&lt;mo>,&lt;/mo>&lt;mi>XVI&lt;/mi>
266+
&lt;mn>X&lt;/mn>&lt;mo>,&lt;/mo>&lt;mn>XVI&lt;/mn>
267267
&lt;/math>
268268
</pre>
269269

270-
<div class="mathcat">x comma 16</div>
271-
<pre id='id-2-3c05d89bf748434cb3263c1b3826d177'><a class='self' href='#id-2-3c05d89bf748434cb3263c1b3826d177'>&#xa7;</a>
270+
<div class="mathcat">10 comma 16</div>
271+
<pre id='id-2-b9b9abd4310e8587811ae535fe17494a'><a class='self' href='#id-2-b9b9abd4310e8587811ae535fe17494a'>&#xa7;</a>
272272
&lt;math <b>intent=':common'</b> display='block'>
273273
</pre>
274274

275-
<div class="mathcat">x comma 16</div>
276-
<pre id='id-2-2e325c736f5a50831e770dd3a7b661f2'><a class='self' href='#id-2-2e325c736f5a50831e770dd3a7b661f2'>&#xa7;</a>
275+
<div class="mathcat">10 comma 16</div>
276+
<pre id='id-2-f57dc81e48f141e80e2a0fa34276e218'><a class='self' href='#id-2-f57dc81e48f141e80e2a0fa34276e218'>&#xa7;</a>
277277
&lt;math <b>intent=':literal'</b> display='block'>
278278
</pre>
279279

280280
<div class="mathcat">x comma XVI</div>
281281
</td>
282282
<td>
283-
<pre id='id-0-65a233adb9157279924973244c3f2f15'><a class='self' href='#id-0-65a233adb9157279924973244c3f2f15'>&#xa7;</a>
283+
<pre id='id-0-9eeede7a51439026c3a2b620d1e6e724'><a class='self' href='#id-0-9eeede7a51439026c3a2b620d1e6e724'>&#xa7;</a>
284284
&lt;math display='block'>
285-
&lt;mi <b>intent=':roman-numeral'</b>>X&lt;/mi>&lt;mo>,&lt;/mo>&lt;mi <b>intent=':roman-numeral'</b>>XVI&lt;/mi>
285+
&lt;mn <b>intent=':roman-numeral'</b>>X&lt;/mn>&lt;mo>,&lt;/mo>&lt;mn <b>intent=':roman-numeral'</b>>XVI&lt;/mn>
286286
&lt;/math>
287287
</pre>
288288

289-
<div class="mathcat">x comma 16</div>
289+
<div class="mathcat">10 comma 16</div>
290290
</td>
291291

292292
<td>\text{XVI}</td>

0 commit comments

Comments
 (0)