mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
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:
committed by
Kevin Barabash
parent
dcdca732a3
commit
a0bedcce8e
BIN
test/screenshotter/images/Units-chrome.png
Normal file
BIN
test/screenshotter/images/Units-chrome.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
BIN
test/screenshotter/images/Units-firefox.png
Normal file
BIN
test/screenshotter/images/Units-firefox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
@@ -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
|
||||
|
Reference in New Issue
Block a user