mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 11:18:39 +00:00
Introduce an aligned environment
This is almost like the align* environment, but it starts out in math mode, so we don't have to worry about the fact that we have no real surrounding text mode in KaTeX. This is the first step towards align* and align.
This commit is contained in:
@@ -1672,6 +1672,15 @@ describe("A cases environment", function() {
|
||||
|
||||
});
|
||||
|
||||
describe("An aligned environment", function() {
|
||||
|
||||
it("should parse its input", function() {
|
||||
expect("\\begin{aligned}a&=b&c&=d\\\\e&=f\\end{aligned}")
|
||||
.toParse();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
var getMathML = function(expr, settings) {
|
||||
var usedSettings = settings ? settings : defaultSettings;
|
||||
|
||||
|
BIN
test/screenshotter/images/Aligned-chrome.png
Normal file
BIN
test/screenshotter/images/Aligned-chrome.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.4 KiB |
BIN
test/screenshotter/images/Aligned-firefox.png
Normal file
BIN
test/screenshotter/images/Aligned-firefox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.8 KiB |
@@ -12,6 +12,11 @@
|
||||
# on the next line. See http://www.yaml.org/ for syntax details.
|
||||
|
||||
Accents: \vec{A}\vec{x}\vec x^2\vec{x}_2^2\vec{A}^2\vec{xA}^2
|
||||
Aligned: |
|
||||
\begin{aligned}
|
||||
a &= 1 & b &= 2 \\
|
||||
3a &= 3 & 17b &= 34
|
||||
\end{aligned}
|
||||
Arrays: |
|
||||
\left(\begin{array}{|rl|c||}
|
||||
1&2&3\\
|
||||
|
Reference in New Issue
Block a user