Skip to content

Commit 60c6e47

Browse files
committed
Roman numeral example
1 parent 00f0616 commit 60c6e47

File tree

3 files changed

+243
-186
lines changed

3 files changed

+243
-186
lines changed

intent-examples/addmathcat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def ApplyMathCAT (i,mml,firstln):
110110
ApplyMathCAT(1,mml,True)
111111
mml=re.sub(r"<math intent=':common'",r"<math intent=':literal'",mml)
112112
ApplyMathCAT(1,mml,True)
113-
mml=re.sub(r"<math intent=':literal'",r"<math intent=':chemistry'",mml)
113+
mml=re.sub(r"<math intent=':literal'",r"<math intent=':chemical-formula'",mml)
114114
ApplyMathCAT(1,mml,True)
115115
# print("</td>")
116116
print("</td>")

intent-examples/examples.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,20 @@ <h1>Intent Examples</h1>
131131
<td>-3</td>
132132
<td>mrow mo -3</td>
133133
</tr>
134-
134+
<tr>
135+
<td>
136+
<math display='block'>
137+
<mi>XVI</mi>
138+
</math>
139+
</td>
140+
<td>
141+
<math display='block'>
142+
<mi intent=':roman-numeral'>XVI</mi>
143+
</math>
144+
</td>
145+
<td>\text{XVI}</td>
146+
<td>Roman Numerals</td>
147+
</tr>
135148
<tr>
136149
<th colspan='6'>Super and Sub Scripts</th>
137150
</tr>

0 commit comments

Comments
 (0)