Support {rcases} and {drcases} (#2149)

* Support {rcases} and {drcases}

* Fix lint error

* Update screenshots
This commit is contained in:
Ron Kok
2019-11-10 01:36:02 -08:00
committed by ylemkimon
parent 0772ac0e45
commit d1cee3cf3d
7 changed files with 23 additions and 5 deletions

View File

@@ -2646,6 +2646,15 @@ describe("A cases environment", function() {
});
describe("An rcases environment", function() {
it("should build", function() {
expect`\begin{rcases} a &\text{if } b \\ c &\text{if } d \end{rcases}⇒…`
.toBuild();
});
});
describe("An aligned environment", function() {
it("should parse its input", function() {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -74,7 +74,11 @@ Cases: |
a+1&\text{if }b\text{ is odd} \\
a&\text{if }b=0 \\
a-1&\text{otherwise}
\end{cases}
\end{cases} \\
\begin{rcases}
a &\text{if } b \\
c &\text{if } d
\end{rcases}⇒…
Colors:
tex: \blue{a}\textcolor{#0f0}{b}\textcolor{red}{c}
nolatex: different syntax and different scope