Support absolute TeX units (#732)

* Support absolute TeX units

* Implement @kohler's comments

* Rewrite unit documentation according to @kohler's comments
This commit is contained in:
Erik Demaine
2017-08-12 07:30:06 +09:00
committed by Kevin Barabash
parent dcdca732a3
commit a0bedcce8e
9 changed files with 149 additions and 47 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -223,6 +223,21 @@ Symbols1: |
Text: \frac{a}{b}\text{c~ {ab} \ e}+fg
TextWithMath: \text{for $a < b$ and $ c < d $}.
Unicode: \begin{matrix}\text{ÀàÇçÉéÏïÖöÛû} \\ \text{БГДЖЗЙЛФЦШЫЮЯ} \\ \text{여보세요} \\ \text{私はバナナです} \end{matrix}
Units: |
\begin{array}{ll}
\mathrm H\kern 1em\mathrm H \text{\tiny (1em)}
& \mathrm H\kern 1ex\mathrm H \text{\tiny (1ex)} \\
\mathrm H{\scriptstyle \kern 1em}\mathrm H \text{\tiny (ss 1em)}
& \mathrm H{\scriptstyle \kern 1ex}\mathrm H \text{\tiny (ss 1ex)} \\
\mathrm H{\small \kern 1em}\mathrm H \text{\tiny (sm 1em)}
& \mathrm H{\small \kern 1ex}\mathrm H \text{\tiny (sm 1ex)} \\
\mathrm H\mkern 18mu\mathrm H \text{\tiny (18mu)}
& \mathrm H\kern 1cm\mathrm H \text{\tiny (1cm)} \\
\mathrm H{\scriptstyle \mkern 18mu}\mathrm H \text{\tiny (ss 18mu)}
& \mathrm H{\scriptstyle \kern 1cm}\mathrm H \text{\tiny (ss 1cm)} \\
\mathrm H{\small \mkern 18mu}\mathrm H \text{\tiny (sm 18mu)}
& \mathrm H{\small \kern 1cm}\mathrm H \text{\tiny (sm 1cm)}
\end{array}
UnsupportedCmds:
tex: \err\,\frac\fracerr3\,2^\superr_\suberr\,\sqrt\sqrterr
noThrow: 1