mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 22:18:41 +00:00
Support \underline in text mode (#1159)
* Support \underline in text mode Fix #1158 * Add to LowerAccent test
This commit is contained in:
committed by
Ryan Randall
parent
439cea3e6e
commit
627fc11f1b
@@ -11,6 +11,7 @@ defineFunction({
|
|||||||
names: ["\\underline"],
|
names: ["\\underline"],
|
||||||
props: {
|
props: {
|
||||||
numArgs: 1,
|
numArgs: 1,
|
||||||
|
allowedInText: true,
|
||||||
},
|
},
|
||||||
handler(context, args) {
|
handler(context, args) {
|
||||||
const body = args[0];
|
const body = args[0];
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 52 KiB |
Binary file not shown.
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 43 KiB |
@@ -149,7 +149,8 @@ LowerAccent: |
|
|||||||
\underleftarrow{AB} \quad \underrightarrow{AB} \quad \underleftrightarrow{AB} \quad \undergroup{AB} \\
|
\underleftarrow{AB} \quad \underrightarrow{AB} \quad \underleftrightarrow{AB} \quad \undergroup{AB} \\
|
||||||
\underlinesegment{AB} \quad \utilde{AB} \quad \color{green}{\underrightarrow{AB}} \\
|
\underlinesegment{AB} \quad \utilde{AB} \quad \color{green}{\underrightarrow{AB}} \\
|
||||||
\underrightarrow{F} + \underrightarrow{AB} + \underrightarrow{AB}^2 + \underrightarrow{AB}_2 \\
|
\underrightarrow{F} + \underrightarrow{AB} + \underrightarrow{AB}^2 + \underrightarrow{AB}_2 \\
|
||||||
\frac{\underrightarrow{AB}}{\underrightarrow{AB}} + \sqrt{\underrightarrow{AB}} + \left\lvert\underrightarrow{AB}\right\rvert
|
\frac{\underrightarrow{AB}}{\underrightarrow{AB}} + \sqrt{\underrightarrow{AB}} + \left\lvert\underrightarrow{AB}\right\rvert \\
|
||||||
|
\text{\underline{text}}
|
||||||
\end{matrix}
|
\end{matrix}
|
||||||
MathAtom: a\mathrel{\mathop{=}\limits^{\blue ?}}b
|
MathAtom: a\mathrel{\mathop{=}\limits^{\blue ?}}b
|
||||||
MathAtom2: \mathop{\overline{\mathrm{lim}}}\limits_{x\to\infty}f(x)
|
MathAtom2: \mathop{\overline{\mathrm{lim}}}\limits_{x\to\infty}f(x)
|
||||||
|
Reference in New Issue
Block a user