Skip to content

Commit

Permalink
Release 0.6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
ronkok committed Jun 11, 2022
1 parent 26e0509 commit e5cab7e
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 46 deletions.
2 changes: 1 addition & 1 deletion site/assets/temml.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions site/tests/katex-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h4 id='boldsymbol'>BoldSymbol</h4>
<table><tr><td><code>\sum_{\boldsymbol{\alpha}}^{\boldsymbol{\beta}}</code> <br>\boldsymbol{\omega}+ <br><code>\boldsymbol{\int_\alpha^\beta}</code> <br>\boldsymbol{\Omega + {}} \\ <br>\boldsymbol{\lim_{x \to \infty} <br>\log Ax2k\omega\Omega\imath+} \\ <br>x \boldsymbol{+} y \boldsymbol{=} z</td><td><math><mtable columnalign="left" rowspacing="0em"><mtr><mtd><mrow><msubsup><mo movablelimits="false"></mo><mi>𝜶</mi><mi>𝜷</mi></msubsup><mi>𝝎</mi><mo>+</mo></mrow><mrow><msubsup><mo movablelimits="false"></mo><mi>𝜶</mi><mi>𝜷</mi></msubsup><mrow><mi>𝛀</mi><mo style="font-weight:bold;">+</mo><mrow></mrow></mrow></mrow><mo linebreak="newline"></mo></mtd></mtr><mtr><mtd><mrow><mrow><msub><mi>lim</mi><mrow><mi>𝒙</mi><mo></mo><mi></mi></mrow></msub><mo></mo><mpadded width="+0.1666em"><mi>log</mi><mo></mo></mpadded><mi>𝑨</mi><mi>𝒙</mi><mstyle style="font-style:italic;font-family:Cambria, 'Times New Roman', serif;font-weight:bold;"><mn>2</mn></mstyle><mi>𝒌</mi><mi>𝝎</mi><mi>𝛀</mi><mi>ı</mi><mo style="font-weight:bold;">+</mo></mrow></mrow><mo linebreak="newline"></mo></mtd></mtr><mtr><mtd><mrow><mi>x</mi><mo style="font-weight:bold;">+</mo></mrow><mrow><mi>y</mi><mo style="font-weight:bold;">=</mo></mrow><mrow><mi>z</mi></mrow></mtd></mtr></mtable></math></td><td><img src="images/BoldSymbol.svg" alt="BoldSymbol"> </td></tr>
</table>
<h4 id='boxed'>Boxed</h4>
<table><tr><td>\boxed{F=ma} \quad \boxed{ac}<br>\color{magenta}{\boxed{F}}\boxed{F=mg}</td><td><math><mrow><menclose notation="box"><mstyle scriptlevel="0" displaystyle="false"><mstyle scriptlevel="0" displaystyle="true"><mi>F</mi><mo>=</mo><mi>m</mi><mi>a</mi></mstyle></mstyle></menclose><mspace width="1em"></mspace><menclose notation="box"><mstyle scriptlevel="0" displaystyle="false"><mstyle scriptlevel="0" displaystyle="true"><mi>a</mi><mi>c</mi></mstyle></mstyle></menclose><mrow><mstyle mathcolor="#FF00F"><menclose notation="box"><mstyle scriptlevel="0" displaystyle="false"><mstyle scriptlevel="0" displaystyle="true"><mi>F</mi></mstyle></mstyle></menclose><menclose notation="box"><mstyle scriptlevel="0" displaystyle="false"><mstyle scriptlevel="0" displaystyle="true"><mi>F</mi><mo>=</mo><mi>m</mi><mi>g</mi></mstyle></mstyle></menclose></mstyle></mrow></mrow></math></td><td><img src="images/boxed.svg" alt="boxed"> </td></tr>
<table><tr><td>\boxed{F=ma} \quad \boxed{ac}<br>\color{magenta}{\boxed{F}}\boxed{F=mg}</td><td><math><mrow><menclose notation="box"><mstyle scriptlevel="0" displaystyle="false"><mstyle scriptlevel="0" displaystyle="true"><mi>F</mi><mo>=</mo><mi>m</mi><mi>a</mi></mstyle></mstyle></menclose><mspace width="1em"></mspace><menclose notation="box"><mstyle scriptlevel="0" displaystyle="false"><mstyle scriptlevel="0" displaystyle="true"><mi>a</mi><mi>c</mi></mstyle></mstyle></menclose><mrow><mstyle mathcolor="#FF00FF"><menclose notation="box"><mstyle scriptlevel="0" displaystyle="false"><mstyle scriptlevel="0" displaystyle="true"><mi>F</mi></mstyle></mstyle></menclose><menclose notation="box"><mstyle scriptlevel="0" displaystyle="false"><mstyle scriptlevel="0" displaystyle="true"><mi>F</mi><mo>=</mo><mi>m</mi><mi>g</mi></mstyle></mstyle></menclose></mstyle></mrow></mrow></math></td><td><img src="images/boxed.svg" alt="boxed"> </td></tr>
</table>
<h4 id='cases'>Cases</h4>
<table><tr><td>f(a,b)= <br>\begin{cases} <br> a+1&amp;\text{if }b\text{ is odd} \\ <br> a&amp;\text{if }b=0 \\ <br> a-1&amp;\text{otherwise} <br>\end{cases}</td><td><math><mrow><mi>f</mi><mo form="prefix" stretchy="false">(</mo><mi>a</mi><mo separator="true">,</mo></mrow><mrow><mi>b</mi><mo form="postfix" stretchy="false">)</mo><mo>=</mo></mrow><mrow><mrow><mo fence="true" form="prefix">{</mo><mtable rowspacing="0.16em" columnalign="left left" columnspacing="1em"><mtr><mtd><mrow><mi>a</mi><mo>+</mo><mn>1</mn></mrow></mtd><mtd><mrow><mtext>if </mtext><mi>b</mi><mtext> is odd</mtext></mrow></mtd></mtr><mtr><mtd><mi>a</mi></mtd><mtd><mrow><mtext>if </mtext><mi>b</mi><mo>=</mo><mn>0</mn></mrow></mtd></mtr><mtr><mtd><mrow><mi>a</mi><mo></mo><mn>1</mn></mrow></mtd><mtd><mtext>otherwise</mtext></mtd></mtr></mtable><mo fence="true" form="postfix"></mo></mrow></mrow></math></td><td><img src="images/cases.svg" alt="cases"> </td></tr>
Expand All @@ -87,10 +87,10 @@ <h4 id='colors'>Colors</h4>
<table><tr><td>\textcolor{#0f0}{b} <br>\textcolor{red}{c}</td><td><math><mrow><mrow><mstyle mathcolor="#0f0"><mi>b</mi></mstyle></mrow><mrow><mstyle mathcolor="#ff0000"><mi>c</mi></mstyle></mrow></mrow></math></td><td><img src="images/colors.svg" alt="colors"> </td></tr>
</table>
<h4 id='colorimplicit'>ColorImplicit</h4>
<table><tr><td>bl{ack\color{red}red <br>\textcolor{green}{green} <br>red\color{blue}blue}black \\ <br>black\left(black <br>\color{red}red\right)black</td><td><math><mtable columnalign="left" rowspacing="0em"><mtr><mtd><mrow><mi>b</mi><mi>l</mi><mrow><mi>a</mi><mi>c</mi><mi>k</mi><mrow><mstyle mathcolor="#ff0000"><mi>r</mi><mi>e</mi><mi>d</mi><mrow><mstyle mathcolor="#00FF0"><mi>g</mi><mi>r</mi><mi>e</mi><mi>e</mi><mi>n</mi></mstyle></mrow><mi>r</mi><mi>e</mi><mi>d</mi></mstyle></mrow><mrow><mstyle mathcolor="#0000FF"><mi>b</mi><mi>l</mi><mi>u</mi><mi>e</mi></mstyle></mrow></mrow><mi>b</mi><mi>l</mi><mi>a</mi><mi>c</mi><mi>k</mi></mrow><mo linebreak="newline"></mo></mtd></mtr><mtr><mtd><mrow><mi>b</mi><mi>l</mi><mi>a</mi><mi>c</mi><mi>k</mi><mrow><mo fence="true" form="prefix">(</mo><mi>b</mi><mi>l</mi><mi>a</mi><mi>c</mi><mi>k</mi><mrow><mstyle mathcolor="#ff0000"><mi>r</mi><mi>e</mi><mi>d</mi></mstyle></mrow><mo fence="true" form="postfix" mathcolor="#ff0000">)</mo></mrow><mi>b</mi><mi>l</mi><mi>a</mi><mi>c</mi><mi>k</mi></mrow></mtd></mtr></mtable></math></td><td><img src="images/ColorImplicit.svg" alt="ColorImplicit"> </td></tr>
<table><tr><td>bl{ack\color{red}red <br>\textcolor{green}{green} <br>red\color{blue}blue}black \\ <br>black\left(black <br>\color{red}red\right)black</td><td><math><mtable columnalign="left" rowspacing="0em"><mtr><mtd><mrow><mi>b</mi><mi>l</mi><mrow><mi>a</mi><mi>c</mi><mi>k</mi><mrow><mstyle mathcolor="#ff0000"><mi>r</mi><mi>e</mi><mi>d</mi><mrow><mstyle mathcolor="#00FF00"><mi>g</mi><mi>r</mi><mi>e</mi><mi>e</mi><mi>n</mi></mstyle></mrow><mi>r</mi><mi>e</mi><mi>d</mi></mstyle></mrow><mrow><mstyle mathcolor="#0000FF"><mi>b</mi><mi>l</mi><mi>u</mi><mi>e</mi></mstyle></mrow></mrow><mi>b</mi><mi>l</mi><mi>a</mi><mi>c</mi><mi>k</mi></mrow><mo linebreak="newline"></mo></mtd></mtr><mtr><mtd><mrow><mi>b</mi><mi>l</mi><mi>a</mi><mi>c</mi><mi>k</mi><mrow><mo fence="true" form="prefix">(</mo><mi>b</mi><mi>l</mi><mi>a</mi><mi>c</mi><mi>k</mi><mrow><mstyle mathcolor="#ff0000"><mi>r</mi><mi>e</mi><mi>d</mi></mstyle></mrow><mo fence="true" form="postfix" mathcolor="#ff0000">)</mo></mrow><mi>b</mi><mi>l</mi><mi>a</mi><mi>c</mi><mi>k</mi></mrow></mtd></mtr></mtable></math></td><td><img src="images/ColorImplicit.svg" alt="ColorImplicit"> </td></tr>
</table>
<h4 id='colorspacing'>ColorSpacing</h4>
<table><tr><td>\textcolor{red}{x} + 1 <br>{\color{green}+ 2 +} 3 + 4</td><td><math><mrow><mrow><mstyle mathcolor="#ff0000"><mi>x</mi></mstyle></mrow><mo>+</mo></mrow><mrow><mn>1</mn><mrow><mstyle mathcolor="#00FF0"><mo>+</mo><mn>2</mn><mo>+</mo></mstyle></mrow><mn>3</mn><mo>+</mo></mrow><mrow><mn>4</mn></mrow></math></td><td><img src="images/ColorSpacing.svg" alt="ColorSpacing"> </td></tr>
<table><tr><td>\textcolor{red}{x} + 1 <br>{\color{green}+ 2 +} 3 + 4</td><td><math><mrow><mrow><mstyle mathcolor="#ff0000"><mi>x</mi></mstyle></mrow><mo>+</mo></mrow><mrow><mn>1</mn><mrow><mstyle mathcolor="#00FF00"><mo>+</mo><mn>2</mn><mo>+</mo></mstyle></mrow><mn>3</mn><mo>+</mo></mrow><mrow><mn>4</mn></mrow></math></td><td><img src="images/ColorSpacing.svg" alt="ColorSpacing"> </td></tr>
</table>
<h4 id='colorbox'>Colorbox</h4>
<table><tr><td>a \colorbox{teal} B <br>\fcolorbox{blue}{red}{C} <br>e+\colorbox{teal}x</td><td><math><mrow><mi>a</mi><mpadded width="+6pt" height="+6pt" lspace="3pt" voffset="3pt" mathbackground="#007F7F"><mtext>B</mtext></mpadded><mpadded width="+6pt" height="+6pt" lspace="3pt" voffset="3pt" style="border: 0.06em solid #0000FF" mathbackground="#ff0000"><mtext>C</mtext></mpadded><mi>e</mi><mo>+</mo></mrow><mrow><mpadded width="+6pt" height="+6pt" lspace="3pt" voffset="3pt" mathbackground="#007F7F"><mtext>x</mtext></mpadded></mrow></math></td><td><img src="images/Colorbox.svg" alt="Colorbox"> </td></tr>
Expand Down Expand Up @@ -312,7 +312,7 @@ <h4 id='strikethrough'>StrikeThrough</h4>
<table><tr><td>\begin{array}{l} <br>\cancel x \quad \cancel{2B} + <br>\bcancel 5 +\bcancel{5ay} \\ <br>\sout{5ab} + \sout{5ABC} + <br>\xcancel{\oint_S{\vec E\cdot\hat n <br>\,\mathrm d a}} \\[0.3em] <br>\frac{x+\cancel B}{x+\cancel x} + <br>\frac{x+\cancel y}{x} + \cancel{B}_1^2 <br> + \cancel{B^2} \\[0.2em] <br>\left\lvert\cancel{ac}\right\rvert <br>\end{array}</td><td><math><mtable rowspacing="0.16em" columnalign="left" columnspacing="1em"><mtr><mtd><mrow><menclose notation="updiagonalstrike"><mi>x</mi></menclose><mspace width="1em"></mspace><menclose notation="updiagonalstrike"><mrow><mn>2</mn><mi>B</mi></mrow></menclose><mo>+</mo><menclose notation="downdiagonalstrike"><mn>5</mn></menclose><mo>+</mo><menclose notation="downdiagonalstrike"><mrow><mn>5</mn><mi>a</mi><mi>y</mi></mrow></menclose></mrow></mtd></mtr><mtr><mtd><mrow><menclose notation="horizontalstrike"><mrow><mn>5</mn><mi>a</mi><mi>b</mi></mrow></menclose><mo>+</mo><menclose notation="horizontalstrike"><mrow><mn>5</mn><mi>A</mi><mi>B</mi><mi>C</mi></mrow></menclose><mo>+</mo><menclose notation="updiagonalstrike downdiagonalstrike"><mrow><msub><mo movablelimits="false"></mo><mi>S</mi></msub><mrow><mover accent="true"><mi>E</mi><mo stretchy="false"></mo></mover><mo></mo><mover accent="true"><mi>n</mi><mo stretchy="false">^</mo></mover><mspace width="0.1667em"></mspace><mpadded lspace="0" width="+0em"><mi mathvariant="normal">d</mi></mpadded><mi>a</mi></mrow></mrow></menclose></mrow></mtd></mtr><mtr><mtd><mrow><mfrac><mrow><mi>x</mi><mo>+</mo><menclose notation="updiagonalstrike"><mi>B</mi></menclose></mrow><mrow><mi>x</mi><mo>+</mo><menclose notation="updiagonalstrike"><mi>x</mi></menclose></mrow></mfrac><mo>+</mo><mfrac><mrow><mi>x</mi><mo>+</mo><menclose notation="updiagonalstrike"><mi>y</mi></menclose></mrow><mi>x</mi></mfrac><mo>+</mo><msubsup><menclose notation="updiagonalstrike"><mi>B</mi></menclose><mn>1</mn><mn>2</mn></msubsup><mo>+</mo><menclose notation="updiagonalstrike"><msup><mi>B</mi><mn>2</mn></msup></menclose></mrow></mtd></mtr><mtr><mtd><mrow><mo fence="true" form="prefix">|</mo><menclose notation="updiagonalstrike"><mrow><mi>a</mi><mi>c</mi></mrow></menclose><mo fence="true" form="postfix">|</mo></mrow></mtd></mtr></mtable></math></td><td><img src="images/StrikeThrough.svg" alt="StrikeThrough"> </td></tr>
</table>
<h4 id='strikethroughcolor'>StrikeThroughColor</h4>
<table><tr><td>\begin{array}{l} \textcolor{red}{\cancel x \quad \cancel{2B}} \\ <br>\textcolor{red}{\bcancel{\textcolor{black}{5}}} + <br>\textcolor{red}{\bcancel{\textcolor{black}{5ay}}} \\ <br>\color{green}{\sout{5ABC}} <br>\end{array}</td><td><math><mtable rowspacing="0.16em" columnalign="left" columnspacing="1em"><mtr><mtd><mrow><mstyle mathcolor="#ff0000"><menclose notation="updiagonalstrike"><mi>x</mi></menclose><mspace width="1em"></mspace><menclose notation="updiagonalstrike"><mrow><mn>2</mn><mi>B</mi></mrow></menclose></mstyle></mrow></mtd></mtr><mtr><mtd><mrow><mrow><mstyle mathcolor="#ff0000"><menclose notation="downdiagonalstrike"><mrow><mstyle mathcolor="black"><mn>5</mn></mstyle></mrow></menclose></mstyle></mrow><mo>+</mo><mrow><mstyle mathcolor="#ff0000"><menclose notation="downdiagonalstrike"><mrow><mstyle mathcolor="black"><mn>5</mn><mi>a</mi><mi>y</mi></mstyle></mrow></menclose></mstyle></mrow></mrow></mtd></mtr><mtr><mtd><mrow><mstyle mathcolor="#00FF0"><menclose notation="horizontalstrike"><mrow><mn>5</mn><mi>A</mi><mi>B</mi><mi>C</mi></mrow></menclose></mstyle></mrow></mtd></mtr></mtable></math></td><td><img src="images/StrikeThroughColor.svg" alt="StrikeThroughColor"> </td></tr>
<table><tr><td>\begin{array}{l} \textcolor{red}{\cancel x \quad \cancel{2B}} \\ <br>\textcolor{red}{\bcancel{\textcolor{black}{5}}} + <br>\textcolor{red}{\bcancel{\textcolor{black}{5ay}}} \\ <br>\color{green}{\sout{5ABC}} <br>\end{array}</td><td><math><mtable rowspacing="0.16em" columnalign="left" columnspacing="1em"><mtr><mtd><mrow><mstyle mathcolor="#ff0000"><menclose notation="updiagonalstrike"><mi>x</mi></menclose><mspace width="1em"></mspace><menclose notation="updiagonalstrike"><mrow><mn>2</mn><mi>B</mi></mrow></menclose></mstyle></mrow></mtd></mtr><mtr><mtd><mrow><mrow><mstyle mathcolor="#ff0000"><menclose notation="downdiagonalstrike"><mrow><mstyle mathcolor="black"><mn>5</mn></mstyle></mrow></menclose></mstyle></mrow><mo>+</mo><mrow><mstyle mathcolor="#ff0000"><menclose notation="downdiagonalstrike"><mrow><mstyle mathcolor="black"><mn>5</mn><mi>a</mi><mi>y</mi></mstyle></mrow></menclose></mstyle></mrow></mrow></mtd></mtr><mtr><mtd><mrow><mstyle mathcolor="#00FF00"><menclose notation="horizontalstrike"><mrow><mn>5</mn><mi>A</mi><mi>B</mi><mi>C</mi></mrow></menclose></mstyle></mrow></mtd></mtr></mtable></math></td><td><img src="images/StrikeThroughColor.svg" alt="StrikeThroughColor"> </td></tr>
</table>
<h4 id='stylespacing'>StyleSpacing</h4>
<table><tr><td>\scriptstyle ab\;cd</td><td><math><mstyle scriptlevel="1" displaystyle="false"><mi>a</mi><mi>b</mi><mspace width="0.2778em"></mspace><mi>c</mi><mi>d</mi></mstyle></math></td><td><img src="images/StyleSpacing.svg" alt="StyleSpacing"></td></tr>
Expand Down
7 changes: 2 additions & 5 deletions site/tests/wiki-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,8 @@ <h1 id='wiki-test'>Wiki Test</h1>
<tr><td>29</td><td>\gcd(m, n), \operatorname{lcm}(m, n)</td><td><math><mrow><mpadded><mi>gcd</mi><mo></mo></mpadded><mo form="prefix" stretchy="false">(</mo><mi>m</mi><mo separator="true">,</mo></mrow><mrow><mi>n</mi><mo form="postfix" stretchy="false">)</mo><mo separator="true">,</mo></mrow><mrow><mrow><mpadded lspace="0" width="+0em"><mi mathvariant="normal">l</mi></mpadded><mpadded lspace="0" width="+0em"><mi mathvariant="normal">c</mi></mpadded><mpadded lspace="0" width="+0em"><mi mathvariant="normal">m</mi></mpadded></mrow><mo></mo><mo form="prefix" stretchy="false">(</mo><mi>m</mi><mo separator="true">,</mo></mrow><mrow><mi>n</mi><mo form="postfix" stretchy="false">)</mo></mrow></math></td></tr>
<tr><td>30</td><td>\mid, \nmid, \shortmid, \nshortmid</td><td><math><mrow><mo lspace="0.22em" rspace="0.22em" stretchy="false">|</mo><mo separator="true">,</mo></mrow><mrow><mo></mo><mo separator="true">,</mo></mrow><mrow><mo mathsize="70%"></mo><mo separator="true">,</mo></mrow><mrow><mo mathsize="70%"></mo></mrow></math></td></tr>
<tr><td colspan="3"> <strong>Radicals</strong></td></tr>
<tr><td>31 </td><td>\surd, \sqrt{2}, \sqrt[n]{2}, <br>\sqrt[3]{\frac{x^3+y^3}{2}}</td><td><math><mrow><mi></mi><mo separator="true">,</mo></mrow><mrow><msqrt><mn>2</mn></msqrt><mo separator="true">,</mo></mrow><mrow><mroot><mn>2</mn><mi>n</mi></mroot><mo separator="true">,</mo></mrow><mrow><mroot><mfrac><mrow><msup><mi>x</mi><mn>3</mn></msup><mo>+</mo><msup><mi>y</mi><mn>3</mn></msup></mrow><mn>2</mn></mfrac><mn>3</mn></mroot></mrow></math></td></tr>
</table>
<p>Note: The misplacement of <code>\surd</code>, above, occurs only in the Latin Modern font.<br>The other math fonts render it fine. Not much I can do about it.</p>
<br>
<table><tr><td colspan="3"> <strong>Operators</strong></td></tr>
<tr><td>31 </td><td>\surd, \sqrt{2}, \sqrt[n]{2}, <br>\sqrt[3]{\frac{x^3+y^3}{2}}</td><td><math><mrow><msqrt><mrow></mrow></msqrt><mo separator="true">,</mo></mrow><mrow><msqrt><mn>2</mn></msqrt><mo separator="true">,</mo></mrow><mrow><mroot><mn>2</mn><mi>n</mi></mroot><mo separator="true">,</mo></mrow><mrow><mroot><mfrac><mrow><msup><mi>x</mi><mn>3</mn></msup><mo>+</mo><msup><mi>y</mi><mn>3</mn></msup></mrow><mn>2</mn></mfrac><mn>3</mn></mroot></mrow></math></td></tr>
<tr><td colspan="3"> <strong>Operators</strong></td></tr>
<tr><td>32</td><td>+, -, \pm, \mp, \dotplus</td><td><math><mrow><mo>+</mo><mo separator="true">,</mo></mrow><mrow><mo></mo><mo separator="true">,</mo></mrow><mrow><mo>±</mo><mo separator="true">,</mo></mrow><mrow><mo></mo><mo separator="true">,</mo></mrow><mrow><mo></mo></mrow></math></td></tr>
<tr><td>33</td><td>\times, \div, \divideontimes, /,\backslash</td><td><math><mrow><mo>×</mo><mo separator="true">,</mo></mrow><mrow><mo>÷</mo><mo separator="true">,</mo></mrow><mrow><mo></mo><mo separator="true">,</mo></mrow><mrow><mo lspace="0em" rspace="0em"></mo><mo separator="true">,</mo></mrow><mrow><mi>\</mi></mrow></math></td></tr>
<tr><td>34</td><td>\cdot, * \ast, \star, \circ, \bullet</td><td><math><mrow><mo></mo><mo separator="true">,</mo></mrow><mrow><mo>*</mo><mo></mo></mrow><mrow><mo separator="true">,</mo></mrow><mrow><mo></mo><mo separator="true">,</mo></mrow><mrow><mo></mo><mo separator="true">,</mo></mrow><mrow><mo></mo></mrow></math></td></tr>
Expand Down
2 changes: 1 addition & 1 deletion temml.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,4 @@ export default {
* adds a new macro to builtin macro list
*/
__defineMacro: defineMacro
};
}
18 changes: 17 additions & 1 deletion test/Investigate.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,29 @@
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1">
<title>Investigate</title>
<link rel="stylesheet" type="text/css" href="../site/assets/Temml-Local.css">
<link rel="stylesheet" type="text/css" href="../site/assets/Temml-Latin-Modern.css">
<link rel="stylesheet" type="text/css" href="main.css">
<script src="./temml.js"></script>
</head>

<body>

<p>
<math>
<mrow>
<mi>a</mi>
<mo stretchy="false"></mo>
<mi>b</mi>
</mrow>
</math>
<math>
<mrow>
<mi>a</mi>
<mi mathvariant="normal">Γ</mi>
<mi>b</mi>
</mrow>
</math></p>

<!-- I use this file to hand-write MathML. I examine the rendered result before I write JavaScript to produce it. -->
<p>
<math>
Expand Down
21 changes: 12 additions & 9 deletions test/temml.js
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,6 @@ var temml = (function () {
defineSymbol(math, bin, "\u2228", "\\lor");
defineSymbol(math, bin, "\u2227", "\\wedge", true);
defineSymbol(math, bin, "\u2228", "\\vee", true);
defineSymbol(math, textord, "\u221a", "\\surd");
defineSymbol(math, open, "\u27e6", "\\llbracket", true); // stmaryrd/semantic packages
defineSymbol(math, close, "\u27e7", "\\rrbracket", true);
defineSymbol(math, open, "\u27e8", "\\langle", true);
Expand Down Expand Up @@ -2939,14 +2938,14 @@ var temml = (function () {
"BlueGreen": "#08b4bc",
"BlueViolet": "#503c94",
"BrickRed": "#b8341c",
"brown": "#BF804",
"brown": "#BF8040",
"Brown": "#802404",
"BurntOrange": "#f8941c",
"CadetBlue": "#78749c",
"CarnationPink": "#f884b4",
"Cerulean": "#08a4e4",
"CornflowerBlue": "#40ace4",
"cyan": "#00FFF",
"cyan": "#00FFFF",
"Cyan": "#08acec",
"Dandelion": "#ffbc44",
"darkgray": "#404040",
Expand All @@ -2955,17 +2954,17 @@ var temml = (function () {
"ForestGreen": "#089c54",
"Fuchsia": "#90348c",
"Goldenrod": "#ffdc44",
"gray": "#80808",
"gray": "#808080",
"Gray": "#98949c",
"green": "#00FF0",
"green": "#00FF00",
"Green": "#08a44c",
"GreenYellow": "#e0e474",
"JungleGreen": "#08ac9c",
"Lavender": "#f89cc4",
"lightgray": "#BFBFB",
"lightgray": "#c0c0c0",
"lime": "#BFFF00",
"LimeGreen": "#90c43c",
"magenta": "#FF00F",
"magenta": "#FF00FF",
"Magenta": "#f0048c",
"Mahogany": "#b0341c",
"Maroon": "#b03434",
Expand All @@ -2975,7 +2974,7 @@ var temml = (function () {
"NavyBlue": "#086cbc",
"olive": "#7F7F00",
"OliveGreen": "#407c34",
"orange": "#FF800",
"orange": "#FF8000",
"Orange": "#f8843c",
"OrangeRed": "#f0145c",
"Orchid": "#b074ac",
Expand Down Expand Up @@ -8368,6 +8367,10 @@ var temml = (function () {
return `\\@char{${number}}`;
});

// The Latin Modern font renders <mi>√</mi> at the wrong vertical alignment.
// This macro provides a better rendering.
defineMacro("\\surd", "\\sqrt{}");

defineMacro("\\hbox", "\\text{#1}");

// Per TeXbook p.122, "/" gets zero operator spacing.
Expand Down Expand Up @@ -10991,7 +10994,7 @@ var temml = (function () {
* https://mit-license.org/
*/

const version = "0.6.8";
const version = "0.6.9";

function postProcess(block) {
const labelMap = {};
Expand Down
Loading

0 comments on commit e5cab7e

Please sign in to comment.