From 3cce293a02674964e07ec09d1c5301cd0462aaa7 Mon Sep 17 00:00:00 2001 From: Ron Kok Date: Sat, 28 Jul 2018 10:43:15 -0700 Subject: [PATCH] Add size graphic to function support page, fix vertical alignment (#1517) * Add size graphic to supported * Add indents * Fix environment vertical alignment --- docs/supported.md | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/docs/supported.md b/docs/supported.md index 302ab8b5..63c022a7 100644 --- a/docs/supported.md +++ b/docs/supported.md @@ -2,6 +2,12 @@ id: supported title: Supported Functions --- + This is a list of TeX functions supported by KaTeX. It is sorted into logical groups. For a list of things that are not (yet) in KaTeX, there is a [wiki page](https://github.com/Khan/KaTeX/wiki/Things-that-KaTeX-does-not-%28yet%29-support). @@ -37,13 +43,13 @@ See also [letters](#letters) |||||| |:-----------------------------------|:---------------------------------------|:----------|:-------------------------------------------------------|:----- -|$( )$ `( )` |$\lt~\gt$ `\lt \gt` |$⌈~⌉$ `⌈ ⌉`|$\lceil~\rceil$ `\lceil`
`\rceil` |$\uparrow$ `\uparrow` -|$[ ]$ `[ ]` |$\lbrack~\rbrack$ `\lbrack`
$~~~~$`\rbrack`|$⌊~⌋$ `⌊ ⌋`|$\lfloor~\rfloor$ `\lfloor`
$~~~~$`\rfloor` |$\downarrow$ `\downarrow` +|$( )$ `( )` |$\lt~\gt$ `\lt \gt` |$⌈~⌉$ `⌈ ⌉`|$\lceil~\rceil$ `\lceil`
$~~~~~$`\rceil` |$\uparrow$ `\uparrow` +|$[ ]$ `[ ]` |$\lbrack~\rbrack$ `\lbrack`
$~~~~$`\rbrack`|$⌊~⌋$ `⌊ ⌋`|$\lfloor~\rfloor$ `\lfloor`
$~~~~~$`\rfloor` |$\downarrow$ `\downarrow` |$\{ \}$ `\{ \}`|$\lbrace \rbrace$ `\lbrace`
$~~~~$`\rbrace`|$⎰⎱$ `⎰⎱` |$\lmoustache \rmoustache$ `\lmoustache`
$~~~~$`\rmoustache`|$\updownarrow$ `\updownarrow` -|$⟨~⟩$ `⟨ ⟩` |$\langle~\rangle$ `\langle`
$~~~~$`\rangle`|$⟮~⟯$ `⟮ ⟯`|$\lgroup~\rgroup$ `\lgroup`
`\rgroup` |$\Uparrow$ `\Uparrow` +|$⟨~⟩$ `⟨ ⟩` |$\langle~\rangle$ `\langle`
$~~~~$`\rangle`|$⟮~⟯$ `⟮ ⟯`|$\lgroup~\rgroup$ `\lgroup`
$~~~~~$`\rgroup` |$\Uparrow$ `\Uparrow` |$\vert$ | |$\vert$ `\vert` |$┌ ┐$ `┌ ┐`|$\ulcorner \urcorner$ `\ulcorner`
$~~~~$`\urcorner` |$\Downarrow$ `\Downarrow` |$\Vert$ \| |$\Vert$ `\Vert` |$└ ┘$ `└ ┘`|$\llcorner \lrcorner$ `\llcorner`
$~~~~$`\lrcorner` |$\Updownarrow$ `\Updownarrow` -|$\lvert~\rvert$ `\lvert`
$~~~~$`\rvert`|$\lVert~\rVert$ `\lVert`
$~~~~$`\rVert` |`\left.`| `\right.` |$\backslash$ `\backslash` +|$\lvert~\rvert$ `\lvert`
$~~~~$`\rvert`|$\lVert~\rVert$ `\lVert`
$~~~~~$`\rVert` |`\left.`| `\right.` |$\backslash$ `\backslash` **Delimiter Sizing** @@ -62,7 +68,7 @@ $( \big( \Big( \bigg( \Bigg($ `( \big( \Big( \bigg( \Bigg(` ## Environments ||||| -|:---------------------|:---------------------|:---------------------|:----- +|:--------------------:|:---------------------|:--------------------:|:----- |$\begin{matrix} a & b \\ c & d \end{matrix}$ | `\begin{matrix}`
   `a & b \\`
   `c & d`
`\end{matrix}` |$\begin{array}{cc}a & b\\c & d\end{array}$ | `\begin{array}{cc}`
   `a & b \\`
   `c & d`
`\end{array}` |$\begin{pmatrix} a & b \\ c & d \end{pmatrix}$ |`\begin{pmatrix}`
   `a & b \\`
   `c & d`
`\end{pmatrix}` |$\begin{bmatrix} a & b \\ c & d \end{bmatrix}$ | `\begin{bmatrix}`
   `a & b \\`
   `c & d`
`\end{bmatrix}` |$\begin{vmatrix} a & b \\ c & d \end{vmatrix}$ |`\begin{vmatrix}`
   `a & b \\`
   `c & d`
`\end{vmatrix}` |$\begin{Vmatrix} a & b \\ c & d \end{Vmatrix}$ |`\begin{Vmatrix}`
   `a & b \\`
   `c & d`
`\end{Vmatrix}` @@ -562,6 +568,16 @@ KaTeX units are different than CSS units. where: +
F = (font size of surrounding HTML text)/(10 pt) G = 1.21 by default, because KaTeX font-size is normally 1.21 × the surrounding font size. This value [can be over-ridden](font.md#font-size-and-lengths) by the CSS of an HTML page. +
+ +The effect of style and size: + +| Unit | textstyle | scriptscript | huge | +|:-------|:-----------------:|:------------:|:------:| +|em or ex|$\rule{1em}{1em}$ |$\scriptscriptstyle\rule{1em}{1em}$ |$\huge\rule{1em}{1em}$ +| mu |$\rule{18mu}{18mu}$|$\scriptscriptstyle\rule{18mu}{18mu}$|$\huge\rule{18mu}{18mu}$ +| others |$\rule{10pt}{10pt}$|$\scriptscriptstyle\rule{10pt}{10pt}$|$\huge\rule{10pt}{10pt}$