mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 20:28:38 +00:00
Change \undertilde to \utilde (#948)
* Change \undeertilde to \utilde In PR #670, I made an error. The function that should have been `\utilde` I named instead `\undertilde`. There is an `\undertilde` from the `wsuipa` package, but it is a text-mode non-stretchy function. The proper command name is `\utilde`, a math-mode, stretchy function from packge `undertilde`. This PR fixes my error. * Fix screenshotter test
This commit is contained in:
@@ -445,7 +445,7 @@ defineFunction([
|
|||||||
// Stretchy accents under the body
|
// Stretchy accents under the body
|
||||||
defineFunction([
|
defineFunction([
|
||||||
"\\underleftarrow", "\\underrightarrow", "\\underleftrightarrow",
|
"\\underleftarrow", "\\underrightarrow", "\\underleftrightarrow",
|
||||||
"\\undergroup", "\\underlinesegment", "\\undertilde",
|
"\\undergroup", "\\underlinesegment", "\\utilde",
|
||||||
], {
|
], {
|
||||||
numArgs: 1,
|
numArgs: 1,
|
||||||
}, function(context, args) {
|
}, function(context, args) {
|
||||||
|
@@ -17,7 +17,7 @@ import type {span} from "./domTree";
|
|||||||
const stretchyCodePoint: {[string]: string} = {
|
const stretchyCodePoint: {[string]: string} = {
|
||||||
widehat: "^",
|
widehat: "^",
|
||||||
widetilde: "~",
|
widetilde: "~",
|
||||||
undertilde: "~",
|
utilde: "~",
|
||||||
overleftarrow: "\u2190",
|
overleftarrow: "\u2190",
|
||||||
underleftarrow: "\u2190",
|
underleftarrow: "\u2190",
|
||||||
xleftarrow: "\u2190",
|
xleftarrow: "\u2190",
|
||||||
@@ -168,7 +168,7 @@ const svgSpan = function(group: ParseNode, options: Options): span {
|
|||||||
let svgNode;
|
let svgNode;
|
||||||
let span;
|
let span;
|
||||||
|
|
||||||
if (utils.contains(["widehat", "widetilde", "undertilde"], label)) {
|
if (utils.contains(["widehat", "widetilde", "utilde"], label)) {
|
||||||
// There are four SVG images available for each function.
|
// There are four SVG images available for each function.
|
||||||
// Choose a taller image when there are more characters.
|
// Choose a taller image when there are more characters.
|
||||||
const numChars = groupLength(group.value.base);
|
const numChars = groupLength(group.value.base);
|
||||||
|
@@ -138,7 +138,7 @@ LimitControls: |
|
|||||||
LowerAccent: |
|
LowerAccent: |
|
||||||
\begin{matrix}
|
\begin{matrix}
|
||||||
\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 \undertilde{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
|
||||||
\end{matrix}
|
\end{matrix}
|
||||||
|
Reference in New Issue
Block a user