Support \widecheck (#1406)

Fixes #1221.

Implemented as an upside-down version of `\widehat`.
This commit is contained in:
Ron Kok
2018-06-04 18:05:07 -07:00
committed by Kevin Barabash
parent 1e645198f7
commit 89e180c5a6
7 changed files with 35 additions and 11 deletions

View File

@@ -1865,6 +1865,7 @@ describe("An accent parser", function() {
it("should parse stretchy, shifty accents", function() {
expect("\\widehat{x}").toParse();
expect("\\widecheck{x}").toParse();
});
it("should parse stretchy, non-shifty accents", function() {
@@ -1892,6 +1893,7 @@ describe("An accent builder", function() {
describe("A stretchy and shifty accent builder", function() {
it("should not fail", function() {
expect("\\widehat{AB}").toBuild();
expect("\\widecheck{AB}").toBuild();
expect("\\widehat{AB}^2").toBuild();
expect("\\widehat{AB}_2").toBuild();
expect("\\widehat{AB}_2^2").toBuild();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

@@ -301,7 +301,7 @@ StretchyAccent: |
\begin{array}{l}
\overrightarrow{AB} \quad \overleftarrow{AB} \quad \Overrightarrow{AB} \quad \overleftrightarrow{AB} \quad \overgroup{AB} \\
\overlinesegment{AB} \quad \overleftharpoon{AB} \quad \overrightharpoon{AB} \quad \color{red}{\overrightarrow{AB}} \quad \widehat{\theta} \widetilde{A} \\
\widehat{AB} \quad \widehat{ABC} \quad \widetilde{AB} \quad \widetilde{ABC} \\
\widecheck{AB} \quad \widehat{ABC} \quad \widetilde{AB} \quad \widetilde{ABC} \\
\overrightarrow{F} + \overrightarrow{AB} + \overrightarrow{F}^2 + \overrightarrow{F}_2 + \overrightarrow{F}_1^2 \\
\overrightarrow{AB}^2+\frac{\overrightarrow{AB}}{\overrightarrow{AB}} + \sqrt{\overrightarrow{AB}} + \left\lvert\overrightarrow{AB}\right\rvert
\end{array}