diff --git a/src/macros.js b/src/macros.js index e89b3f85..d79b9b1e 100644 --- a/src/macros.js +++ b/src/macros.js @@ -238,6 +238,16 @@ defineMacro("\u27C2", "\\perp"); defineMacro("\u203C", "\\mathclose{!\\mkern-0.8mu!}"); defineMacro("\u220C", "\\notni"); +////////////////////////////////////////////////////////////////////// +// LaTeX_2ε + +// \vdots{\vbox{\baselineskip4\p@ \lineskiplimit\z@ +// \kern6\p@\hbox{.}\hbox{.}\hbox{.}}} +// We'll call \varvdots, which gets a glyph from symbols.js. +// The zero-width rule gets us an equivalent to the vertical 6pt kern. +defineMacro("\\vdots", "\\mathord{\\varvdots\\rule{0pt}{15pt}}"); +defineMacro("\u22ee", "\\vdots"); + ////////////////////////////////////////////////////////////////////// // amsmath.sty // http://mirrors.concertpass.com/tex-archive/macros/latex/required/amsmath/amsmath.pdf diff --git a/src/symbols.js b/src/symbols.js index 754ddb63..cac8db0a 100644 --- a/src/symbols.js +++ b/src/symbols.js @@ -655,7 +655,7 @@ defineSymbol(text, main, inner, "\u2026", "\\ldots", true); defineSymbol(math, main, inner, "\u2026", "\\ldots", true); defineSymbol(math, main, inner, "\u22ef", "\\@cdots", true); defineSymbol(math, main, inner, "\u22f1", "\\ddots", true); -defineSymbol(math, main, textord, "\u22ee", "\\vdots", true); +defineSymbol(math, main, textord, "\u22ee", "\\varvdots"); // \vdots is a macro defineSymbol(math, main, accent, "\u02ca", "\\acute"); defineSymbol(math, main, accent, "\u02cb", "\\grave"); defineSymbol(math, main, accent, "\u00a8", "\\ddot"); diff --git a/test/katex-spec.js b/test/katex-spec.js index b1ca1c41..07c9acb9 100644 --- a/test/katex-spec.js +++ b/test/katex-spec.js @@ -2893,7 +2893,7 @@ describe("Unicode", function() { }); it("should parse symbols", function() { - expect("£¥ðℂℍℑℓℕ℘ℙℚℜℝℤℲℵℶℷℸ⅁∀∁∂∃∇∞∠∡∢♠♡♢♣♭♮♯✓°¬‼\u00b7").toParse(strictSettings); + expect("£¥ðℂℍℑℓℕ℘ℙℚℜℝℤℲℵℶℷℸ⅁∀∁∂∃∇∞∠∡∢♠♡♢♣♭♮♯✓°¬‼⋮\u00b7").toParse(strictSettings); }); it("should build Greek capital letters", function() { diff --git a/test/screenshotter/images/ArrayMode-chrome.png b/test/screenshotter/images/ArrayMode-chrome.png index 0f96c706..d99118b0 100644 Binary files a/test/screenshotter/images/ArrayMode-chrome.png and b/test/screenshotter/images/ArrayMode-chrome.png differ diff --git a/test/screenshotter/images/ArrayMode-firefox.png b/test/screenshotter/images/ArrayMode-firefox.png index afcad4a7..98be13ce 100644 Binary files a/test/screenshotter/images/ArrayMode-firefox.png and b/test/screenshotter/images/ArrayMode-firefox.png differ