Skip to content

Commit

Permalink
extend Roman numeral example
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarlisle committed Nov 10, 2024
1 parent ff91b51 commit 6dc87c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions intent-examples/addmathcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ def ApplyMathCAT (i,mml,firstln):
i=i+1
if(i % 3 == 2):
print("<tr>")
print("<td>")
print("<td n=2>")
print(mmltd)
print("</td>")
if(i % 3 == 2 or i % 3 == 0):
print("<td>")
print("<td n=30>")
mmls=re.split(r'(<math\b.*?</math>)',str(mmltd), flags=re.DOTALL)
j=0
for mml in mmls:
Expand Down
4 changes: 2 additions & 2 deletions intent-examples/examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ <h1>Intent Examples</h1>
<tr>
<td>
<math display='block'>
<mi>X</mi><mo>,</mo><mi>XVI</mi>
<mn>X</mn><mo>,</mo><mn>XVI</mn>
</math>
</td>
<td>
<math display='block'>
<mi intent=':roman-numeral'>X</mi><mo>,</mo><mi intent=':roman-numeral'>XVI</mi>
<mn intent=':roman-numeral'>X</mn><mo>,</mo><mn intent=':roman-numeral'>XVI</mn>
</math>
</td>
<td>\text{XVI}</td>
Expand Down

0 comments on commit 6dc87c9

Please sign in to comment.