mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 11:18:39 +00:00
Alternate approach to capital Greek letters (#1285)
Alternative to #1283 and #1284 implementing Latin-looking capital Greek letters via symbols instead of macros, which interacts with fonts more correctly.
This commit is contained in:
committed by
Ryan Randall
parent
2554f68297
commit
98b85097eb
@@ -126,21 +126,6 @@ defineMacro("\u211A", "\\mathbb{Q}");
|
||||
defineMacro("\u211D", "\\mathbb{R}");
|
||||
defineMacro("\u2124", "\\mathbb{Z}");
|
||||
|
||||
// Unicode Greek capital letters
|
||||
defineMacro("\u0391", "A");
|
||||
defineMacro("\u0392", "B");
|
||||
defineMacro("\u0395", "E");
|
||||
defineMacro("\u0396", "Z");
|
||||
defineMacro("\u0397", "H");
|
||||
defineMacro("\u0399", "I");
|
||||
defineMacro("\u039A", "K");
|
||||
defineMacro("\u039C", "M");
|
||||
defineMacro("\u039D", "N");
|
||||
defineMacro("\u039F", "O");
|
||||
defineMacro("\u03A1", "P");
|
||||
defineMacro("\u03A4", "T");
|
||||
defineMacro("\u03A7", "X");
|
||||
|
||||
defineMacro("\u210E", "\\mathit{h}"); // Planck constant
|
||||
|
||||
// Characters omitted from Unicode range 1D400–1D7FF
|
||||
|
@@ -460,6 +460,19 @@ defineSymbol(math, main, textord, "\u03a5", "\\Upsilon", true);
|
||||
defineSymbol(math, main, textord, "\u03a6", "\\Phi", true);
|
||||
defineSymbol(math, main, textord, "\u03a8", "\\Psi", true);
|
||||
defineSymbol(math, main, textord, "\u03a9", "\\Omega", true);
|
||||
defineSymbol(math, main, textord, "A", "\u0391");
|
||||
defineSymbol(math, main, textord, "B", "\u0392");
|
||||
defineSymbol(math, main, textord, "E", "\u0395");
|
||||
defineSymbol(math, main, textord, "Z", "\u0396");
|
||||
defineSymbol(math, main, textord, "H", "\u0397");
|
||||
defineSymbol(math, main, textord, "I", "\u0399");
|
||||
defineSymbol(math, main, textord, "K", "\u039A");
|
||||
defineSymbol(math, main, textord, "M", "\u039C");
|
||||
defineSymbol(math, main, textord, "N", "\u039D");
|
||||
defineSymbol(math, main, textord, "O", "\u039F");
|
||||
defineSymbol(math, main, textord, "P", "\u03A1");
|
||||
defineSymbol(math, main, textord, "T", "\u03A4");
|
||||
defineSymbol(math, main, textord, "X", "\u03A7");
|
||||
defineSymbol(math, main, textord, "\u00ac", "\\neg");
|
||||
defineSymbol(math, main, textord, "\u00ac", "\\lnot");
|
||||
defineSymbol(math, main, textord, "\u22a4", "\\top");
|
||||
|
Reference in New Issue
Block a user