@syncfusion/ej2-office-common 35.1.37 → 35.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-office-common.umd.min.js +2 -2
- package/dist/ej2-office-common.umd.min.js.map +1 -1
- package/dist/es6/ej2-office-common.es2015.js +5421 -6017
- package/dist/es6/ej2-office-common.es2015.js.map +1 -1
- package/dist/es6/ej2-office-common.es5.js +6270 -7203
- package/dist/es6/ej2-office-common.es5.js.map +1 -1
- package/dist/global/ej2-office-common.min.js +2 -2
- package/dist/global/ej2-office-common.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/office-common.js +4 -0
- package/package.json +11 -7
- package/src/index.d.ts +3 -17
- package/src/index.js +3 -18
- package/src/office-common/features/index.d.ts +6 -0
- package/src/office-common/features/index.js +6 -0
- package/src/office-common/features/mathml/index.d.ts +25 -0
- package/src/office-common/features/mathml/index.js +22 -0
- package/src/office-common/features/mathml/latex/latex-generator.d.ts +8 -0
- package/src/office-common/features/mathml/latex/latex-generator.js +357 -0
- package/src/office-common/features/mathml/latex/latex-parser.d.ts +87 -0
- package/src/office-common/features/mathml/latex/latex-parser.js +1206 -0
- package/src/office-common/features/mathml/latex/latex-symbols.d.ts +13 -0
- package/src/office-common/features/mathml/latex/latex-symbols.js +681 -0
- package/src/office-common/features/mathml/math-settings.d.ts +54 -0
- package/src/office-common/features/mathml/math-settings.js +174 -0
- package/src/office-common/features/mathml/office-math/adapter.d.ts +59 -0
- package/src/office-common/features/mathml/office-math/adapter.js +6 -0
- package/src/office-common/features/mathml/office-math/basic.d.ts +91 -0
- package/src/office-common/features/mathml/office-math/basic.js +93 -0
- package/src/office-common/features/mathml/office-math/break.d.ts +30 -0
- package/src/office-common/features/mathml/office-math/break.js +75 -0
- package/src/office-common/features/mathml/office-math/collection.d.ts +104 -0
- package/src/office-common/features/mathml/office-math/collection.js +170 -0
- package/src/office-common/features/mathml/office-math/entity.d.ts +12 -0
- package/src/office-common/features/mathml/office-math/entity.js +3 -0
- package/src/office-common/features/mathml/office-math/enums.d.ts +97 -0
- package/src/office-common/features/mathml/office-math/enums.js +108 -0
- package/src/office-common/features/mathml/office-math/format.d.ts +28 -0
- package/src/office-common/features/mathml/office-math/format.js +90 -0
- package/src/office-common/features/mathml/office-math/function-base.d.ts +27 -0
- package/src/office-common/features/mathml/office-math/function-base.js +69 -0
- package/src/office-common/features/mathml/office-math/function-collection.d.ts +29 -0
- package/src/office-common/features/mathml/office-math/function-collection.js +76 -0
- package/src/office-common/features/mathml/office-math/functions-basic.d.ts +118 -0
- package/src/office-common/features/mathml/office-math/functions-basic.js +331 -0
- package/src/office-common/features/mathml/office-math/functions-multi.d.ts +156 -0
- package/src/office-common/features/mathml/office-math/functions-multi.js +407 -0
- package/src/office-common/features/mathml/office-math/index.d.ts +27 -0
- package/src/office-common/features/mathml/office-math/index.js +25 -0
- package/src/office-common/features/mathml/office-math/keys.d.ts +6 -0
- package/src/office-common/features/mathml/office-math/keys.js +20 -0
- package/src/office-common/features/mathml/office-math/math-clone.d.ts +20 -0
- package/src/office-common/features/mathml/office-math/math-clone.js +203 -0
- package/src/office-common/features/mathml/office-math/math-collection.d.ts +19 -0
- package/src/office-common/features/mathml/office-math/math-collection.js +41 -0
- package/src/office-common/features/mathml/office-math/math-equality.d.ts +21 -0
- package/src/office-common/features/mathml/office-math/math-equality.js +115 -0
- package/src/office-common/features/mathml/office-math/math-paragraph.d.ts +58 -0
- package/src/office-common/features/mathml/office-math/math-paragraph.js +126 -0
- package/src/office-common/features/mathml/office-math/math-traversal.d.ts +23 -0
- package/src/office-common/features/mathml/office-math/math-traversal.js +95 -0
- package/src/office-common/features/mathml/office-math/matrix-collections.d.ts +54 -0
- package/src/office-common/features/mathml/office-math/matrix-collections.js +113 -0
- package/src/office-common/features/mathml/office-math/matrix-column.d.ts +43 -0
- package/src/office-common/features/mathml/office-math/matrix-column.js +96 -0
- package/src/office-common/features/mathml/office-math/matrix-row.d.ts +38 -0
- package/src/office-common/features/mathml/office-math/matrix-row.js +71 -0
- package/src/office-common/features/mathml/office-math/matrix.d.ts +62 -0
- package/src/office-common/features/mathml/office-math/matrix.js +158 -0
- package/src/office-common/features/mathml/office-math/office-math.d.ts +55 -0
- package/src/office-common/features/mathml/office-math/office-math.js +116 -0
- package/src/office-common/features/mathml/office-math/owner-holder.d.ts +42 -0
- package/src/office-common/features/mathml/office-math/owner-holder.js +87 -0
- package/src/office-common/features/mathml/office-math/property-store.d.ts +66 -0
- package/src/office-common/features/mathml/office-math/property-store.js +99 -0
- package/src/office-common/features/mathml/office-math/run-element.d.ts +31 -0
- package/src/office-common/features/mathml/office-math/run-element.js +97 -0
- package/src/office-common/features/mathml/office-math/unknown-element.d.ts +37 -0
- package/src/office-common/features/mathml/office-math/unknown-element.js +62 -0
- package/src/office-common/features/mathml/office-math/xml-equal.d.ts +13 -0
- package/src/office-common/features/mathml/office-math/xml-equal.js +24 -0
- package/src/office-common/features/mathml/parse/office-math-parser.d.ts +24 -0
- package/src/office-common/features/mathml/parse/office-math-parser.js +396 -0
- package/src/office-common/features/mathml/parse/office-math-properties.d.ts +165 -0
- package/src/office-common/features/mathml/parse/office-math-properties.js +432 -0
- package/src/office-common/features/mathml/parse/parse-options.d.ts +22 -0
- package/src/office-common/features/mathml/parse/parse-options.js +3 -0
- package/src/office-common/features/mathml/serialize/office-math-properties-writer.d.ts +38 -0
- package/src/office-common/features/mathml/serialize/office-math-properties-writer.js +267 -0
- package/src/office-common/features/mathml/serialize/office-math-serializer.d.ts +23 -0
- package/src/office-common/features/mathml/serialize/office-math-serializer.js +306 -0
- package/src/office-common/features/mathml/serialize/omml-writer.d.ts +123 -0
- package/src/office-common/features/mathml/serialize/omml-writer.js +135 -0
- package/src/office-common/index.d.ts +10 -0
- package/src/office-common/index.js +10 -0
- package/.eslintrc.json +0 -263
- package/.prettierrc.json +0 -5
- package/api-extractor.json +0 -35
- package/core.js +0 -4
- package/encryption.js +0 -4
- package/features.js +0 -4
- package/global.json +0 -6
- package/nuget.config +0 -7
- package/src/all.d.ts +0 -41
- package/src/all.js +0 -38
- package/src/features/index.d.ts +0 -11
- package/src/features/index.js +0 -11
- package/src/features/mathml/index.d.ts +0 -30
- package/src/features/mathml/index.js +0 -22
- package/src/features/mathml/math-factory.d.ts +0 -26
- package/src/features/mathml/math-factory.js +0 -568
- package/src/features/mathml/model/controls.d.ts +0 -896
- package/src/features/mathml/model/controls.js +0 -1541
- package/src/features/mathml/model/math-element.d.ts +0 -173
- package/src/features/mathml/model/math-element.js +0 -315
- package/src/features/mathml/model/roots.d.ts +0 -82
- package/src/features/mathml/model/roots.js +0 -177
- package/src/features/mathml/parse/math-parser.d.ts +0 -43
- package/src/features/mathml/parse/math-parser.js +0 -636
- package/src/features/mathml/serialize/math-serializer.d.ts +0 -34
- package/src/features/mathml/serialize/math-serializer.js +0 -749
- package/tsconfig.build.json +0 -13
- package/tsconfig.harness.json +0 -32
- package/tslint.json +0 -111
- /package/src/{core → office-common/core}/index.d.ts +0 -0
- /package/src/{core → office-common/core}/index.js +0 -0
- /package/src/{core → office-common/core}/xml/index.d.ts +0 -0
- /package/src/{core → office-common/core}/xml/index.js +0 -0
- /package/src/{core → office-common/core}/xml/model.d.ts +0 -0
- /package/src/{core → office-common/core}/xml/model.js +0 -0
- /package/src/{encryption → office-common/encryption}/agile-constants.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/agile-constants.js +0 -0
- /package/src/{encryption → office-common/encryption}/agile-encryption-info.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/agile-encryption-info.js +0 -0
- /package/src/{encryption → office-common/encryption}/agile-password.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/agile-password.js +0 -0
- /package/src/{encryption → office-common/encryption}/cfb-reader.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/cfb-reader.js +0 -0
- /package/src/{encryption → office-common/encryption}/crypto-primitives.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/crypto-primitives.js +0 -0
- /package/src/{encryption → office-common/encryption}/decrypt-encrypted-package.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/decrypt-encrypted-package.js +0 -0
- /package/src/{encryption → office-common/encryption}/encryption-info-xml.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/encryption-info-xml.js +0 -0
- /package/src/{encryption → office-common/encryption}/errors.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/errors.js +0 -0
- /package/src/{encryption → office-common/encryption}/index.d.ts +0 -0
- /package/src/{encryption → office-common/encryption}/index.js +0 -0
- /package/src/{features → office-common/features}/diagrams/constants.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/constants.js +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-data-model.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-data-model.js +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-parsers.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-parsers.js +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-serializers.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-serializers.js +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-views.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/diagram-views.js +0 -0
- /package/src/{features → office-common/features}/diagrams/element-tree.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/element-tree.js +0 -0
- /package/src/{features → office-common/features}/diagrams/errors.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/errors.js +0 -0
- /package/src/{features → office-common/features}/diagrams/index.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/index.js +0 -0
- /package/src/{features → office-common/features}/diagrams/smart-art-catalog.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/smart-art-catalog.js +0 -0
- /package/src/{features → office-common/features}/diagrams/smart-art-diagram.d.ts +0 -0
- /package/src/{features → office-common/features}/diagrams/smart-art-diagram.js +0 -0
- /package/src/{features → office-common/features}/ink/constants.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/constants.js +0 -0
- /package/src/{features → office-common/features}/ink/index.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/index.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-effects.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-effects.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-model.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-model.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-parser.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-parser.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-serializer.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-serializer.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-units.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-units.js +0 -0
- /package/src/{features → office-common/features}/ink/ink-xml.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/ink-xml.js +0 -0
- /package/src/{features → office-common/features}/ink/trace-codec.d.ts +0 -0
- /package/src/{features → office-common/features}/ink/trace-codec.js +0 -0
- /package/src/{features → office-common/features}/mathml/constants.d.ts +0 -0
- /package/src/{features → office-common/features}/mathml/constants.js +0 -0
- /package/src/{features → office-common/features}/mathml/errors.d.ts +0 -0
- /package/src/{features → office-common/features}/mathml/errors.js +0 -0
- /package/src/{features → office-common/features}/mathml/model/enums.d.ts +0 -0
- /package/src/{features → office-common/features}/mathml/model/enums.js +0 -0
- /package/src/{features → office-common/features}/mathml/openxml.d.ts +0 -0
- /package/src/{features → office-common/features}/mathml/openxml.js +0 -0
- /package/src/{features → office-common/features}/smart-art/diagram-xml.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/diagram-xml.js +0 -0
- /package/src/{features → office-common/features}/smart-art/errors.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/errors.js +0 -0
- /package/src/{features → office-common/features}/smart-art/index.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/index.js +0 -0
- /package/src/{features → office-common/features}/smart-art/minimal-samples.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/minimal-samples.js +0 -0
- /package/src/{features → office-common/features}/smart-art/mutators.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/mutators.js +0 -0
- /package/src/{features → office-common/features}/smart-art/namespaces.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/namespaces.js +0 -0
- /package/src/{features → office-common/features}/smart-art/package-graph.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/package-graph.js +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-colors.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-colors.js +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-data.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-data.js +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-layout.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-layout.js +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-rel-ids.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-rel-ids.js +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-style.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/parse-style.js +0 -0
- /package/src/{features → office-common/features}/smart-art/point-text.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/point-text.js +0 -0
- /package/src/{features → office-common/features}/smart-art/register.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/register.js +0 -0
- /package/src/{features → office-common/features}/smart-art/serialize.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/serialize.js +0 -0
- /package/src/{features → office-common/features}/smart-art/types.d.ts +0 -0
- /package/src/{features → office-common/features}/smart-art/types.js +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the Unicode symbol for a LaTeX command, or the input unchanged when unknown.
|
|
3
|
+
*
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
export declare function getLatexSymbol(latex: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Returns the LaTeX command for a Unicode symbol (compression `GetSymbolLaTeX`), or undefined.
|
|
9
|
+
* `l` maps to `\\ell` only for the script font.
|
|
10
|
+
*
|
|
11
|
+
* @private
|
|
12
|
+
*/
|
|
13
|
+
export declare function getSymbolLatex(char: string, isScriptFont: boolean): string | undefined;
|
|
@@ -0,0 +1,681 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LaTeX command to Unicode symbol table (parity with compression `LaTeXConverter.GetSymbol`:
|
|
3
|
+
* basic math, Greek, letter-like, operators, arrows, negated, geometry, non-renderable).
|
|
4
|
+
* N-ary operators are intentionally absent; they are handled by the N-ary parser.
|
|
5
|
+
*
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
var LATEX_SYMBOLS = {
|
|
9
|
+
'\\pm': '\u00B1',
|
|
10
|
+
'\\infty': '\u221E',
|
|
11
|
+
'\\neq': '\u2260',
|
|
12
|
+
'\\times': '\u00D7',
|
|
13
|
+
'\\div': '\u00F7',
|
|
14
|
+
'\\propto': '\u221D',
|
|
15
|
+
'\\ll': '\u226A',
|
|
16
|
+
'\\gg': '\u226B',
|
|
17
|
+
'\\le': '\u2264',
|
|
18
|
+
'\\geq': '\u2265',
|
|
19
|
+
'\\mp': '\u2213',
|
|
20
|
+
'\\cong': '\u2245',
|
|
21
|
+
'\\approx': '\u2248',
|
|
22
|
+
'\\equiv': '\u2261',
|
|
23
|
+
'\\forall': '\u2200',
|
|
24
|
+
'\\complement': '\u2201',
|
|
25
|
+
'\\partial': '\u2202',
|
|
26
|
+
'\\cup': '\u222A',
|
|
27
|
+
'\\cap': '\u2229',
|
|
28
|
+
'\\emptyset': '\u2205',
|
|
29
|
+
'\\degf': '\u2109',
|
|
30
|
+
'\\degc': '\u2103',
|
|
31
|
+
'\\nabla': '\u2207',
|
|
32
|
+
'\\exists': '\u2203',
|
|
33
|
+
'\\nexists': '\u2204',
|
|
34
|
+
'\\in': '\u2208',
|
|
35
|
+
'\\ni': '\u220B',
|
|
36
|
+
'\\gets': '\u2190',
|
|
37
|
+
'\\uparrow': '\u2191',
|
|
38
|
+
'\\rightarrow': '\u2192',
|
|
39
|
+
'\\downarrow': '\u2193',
|
|
40
|
+
'\\leftrightarrow': '\u2194',
|
|
41
|
+
'\\therefore': '\u2234',
|
|
42
|
+
'\\lnot': '\u00AC',
|
|
43
|
+
'\\alpha': '\u03B1',
|
|
44
|
+
'\\beta': '\u03B2',
|
|
45
|
+
'\\gamma': '\u03B3',
|
|
46
|
+
'\\delta': '\u03B4',
|
|
47
|
+
'\\varepsilon': '\u03B5',
|
|
48
|
+
'\\epsilon': '\u03F5',
|
|
49
|
+
'\\theta': '\u03B8',
|
|
50
|
+
'\\vartheta': '\u03D1',
|
|
51
|
+
'\\mu': '\u03BC',
|
|
52
|
+
'\\pi': '\u03C0',
|
|
53
|
+
'\\rho': '\u03C1',
|
|
54
|
+
'\\sigma': '\u03C3',
|
|
55
|
+
'\\tau': '\u03C4',
|
|
56
|
+
'\\varphi': '\u03C6',
|
|
57
|
+
'\\omega': '\u03C9',
|
|
58
|
+
'\\ast': '\u002A',
|
|
59
|
+
'\\bullet': '\u2219',
|
|
60
|
+
'\\vdots': '\u22EE',
|
|
61
|
+
'\\cdots': '\u22EF',
|
|
62
|
+
'\\ddots': '\u22F1',
|
|
63
|
+
'\\aleph': '\u2135',
|
|
64
|
+
'\\beth': '\u2136',
|
|
65
|
+
'\\qed': '\u220E',
|
|
66
|
+
'\\zeta': '\u03B6',
|
|
67
|
+
'\\eta': '\u03B7',
|
|
68
|
+
'\\iota': '\u03B9',
|
|
69
|
+
'\\kappa': '\u03BA',
|
|
70
|
+
'\\lambda': '\u03BB',
|
|
71
|
+
'\\nu': '\u03BD',
|
|
72
|
+
'\\xi': '\u03BE',
|
|
73
|
+
'\\varpi': '\u03D6',
|
|
74
|
+
'\\varrho': '\u03F1',
|
|
75
|
+
'\\varsigma': '\u03C2',
|
|
76
|
+
'\\upsilon': '\u03C5',
|
|
77
|
+
'\\phi': '\u03D5',
|
|
78
|
+
'\\chi': '\u03C7',
|
|
79
|
+
'\\psi': '\u03C8',
|
|
80
|
+
'\\Gamma': '\u0393',
|
|
81
|
+
'\\Delta': '\u0394',
|
|
82
|
+
'\\Theta': '\u0398',
|
|
83
|
+
'\\Lambda': '\u039B',
|
|
84
|
+
'\\Xi': '\u039E',
|
|
85
|
+
'\\Pi': '\u03A0',
|
|
86
|
+
'\\Sigma': '\u03A3',
|
|
87
|
+
'\\Upsilon': '\u03A5',
|
|
88
|
+
'\\Phi': '\u03A6',
|
|
89
|
+
'\\Psi': '\u03A8',
|
|
90
|
+
'\\Omega': '\u03A9',
|
|
91
|
+
'\\mathbb{C}': '\u0043',
|
|
92
|
+
'\\mathcal{g}': '\u0067',
|
|
93
|
+
'\\mathcal{H}': '\u0048',
|
|
94
|
+
'\\mathfrak{H}': '\u0048',
|
|
95
|
+
'\\hbar': '\u210F',
|
|
96
|
+
'\\imath': '\u0131',
|
|
97
|
+
'\\mathfrak{I}': '\u0049',
|
|
98
|
+
'\\varkappa': '\u03F0',
|
|
99
|
+
'\\mathcal{L}': '\u004C',
|
|
100
|
+
'\\ell': '\u006C',
|
|
101
|
+
'\\mathbb{N}': '\u004E',
|
|
102
|
+
'\\wp': '\u2118',
|
|
103
|
+
'\\mathbb{Q}': '\u0051',
|
|
104
|
+
'\\mathcal{R}': '\u0052',
|
|
105
|
+
'\\mathfrak{R}': '\u0052',
|
|
106
|
+
'\\mathbb{R}': '\u0052',
|
|
107
|
+
'\\mathbb{Z}': '\u005A',
|
|
108
|
+
'\\mathcal{B}': '\u0042',
|
|
109
|
+
'\\mathcal{E}': '\u0045',
|
|
110
|
+
'\\mathcal{F}': '\u0046',
|
|
111
|
+
'\\mathcal{M}': '\u004D',
|
|
112
|
+
'\\mathcal{o}': '\u006F',
|
|
113
|
+
'\\gimel': '\u2137',
|
|
114
|
+
'\\daleth': '\u2138',
|
|
115
|
+
'\\circ': '\u2218',
|
|
116
|
+
'\\cdot': '\u22C5',
|
|
117
|
+
'\\uplus': '\u228E',
|
|
118
|
+
'\\sqcap': '\u2293',
|
|
119
|
+
'\\sqcup': '\u2294',
|
|
120
|
+
'\\land': '\u2227',
|
|
121
|
+
'\\vee': '\u2228',
|
|
122
|
+
'\\nless': '\u226E',
|
|
123
|
+
'\\nleq': '\u2270',
|
|
124
|
+
'\\ngt': '\u226F',
|
|
125
|
+
'\\ngeq': '\u2271',
|
|
126
|
+
'\\sim': '\u223C',
|
|
127
|
+
'\\simeq': '\u2243',
|
|
128
|
+
'\\nequiv': '\u2262',
|
|
129
|
+
'\\nsimeq': '\u2244',
|
|
130
|
+
'\\napprox': '\u2249',
|
|
131
|
+
'\\ncong': '\u2247',
|
|
132
|
+
'\\notin': '\u2209',
|
|
133
|
+
'\\subset': '\u2282',
|
|
134
|
+
'\\supset': '\u2283',
|
|
135
|
+
'\\subseteq': '\u2286',
|
|
136
|
+
'\\supseteq': '\u2287',
|
|
137
|
+
'\\prcue': '\u227A',
|
|
138
|
+
'\\succ': '\u227B',
|
|
139
|
+
'\\preccurlyeq': '\u227C',
|
|
140
|
+
'\\succcurlyeq': '\u227D',
|
|
141
|
+
'\\sqsubset': '\u228F',
|
|
142
|
+
'\\sqsupset': '\u2290',
|
|
143
|
+
'\\sqsubseteq': '\u2291',
|
|
144
|
+
'\\sqsupseteq': '\u2292',
|
|
145
|
+
'\\parallel': '\u2225',
|
|
146
|
+
'\\bot': '\u22A5',
|
|
147
|
+
'\\vdash': '\u22A2',
|
|
148
|
+
'\\dashv': '\u22A3',
|
|
149
|
+
'\\bowtie': '\u22C8',
|
|
150
|
+
'\\asymp': '\u224D',
|
|
151
|
+
'\\dotplus': '\u2214',
|
|
152
|
+
'\\dotminus': '\u2238',
|
|
153
|
+
'\\setminus': '\u2216',
|
|
154
|
+
'\\Cap': '\u22D2',
|
|
155
|
+
'\\Cup': '\u22D3',
|
|
156
|
+
'\\boxminus': '\u229F',
|
|
157
|
+
'\\boxtimes': '\u22A0',
|
|
158
|
+
'\\boxdot': '\u22A1',
|
|
159
|
+
'\\boxplus': '\u229E',
|
|
160
|
+
'\\divideontimes': '\u22C7',
|
|
161
|
+
'\\ltimes': '\u22C9',
|
|
162
|
+
'\\rtimes': '\u22CA',
|
|
163
|
+
'\\leftthreetimes': '\u22CB',
|
|
164
|
+
'\\rightthreetimes': '\u22CC',
|
|
165
|
+
'\\curlywedge': '\u22CF',
|
|
166
|
+
'\\curlyvee': '\u22CE',
|
|
167
|
+
'\\odash': '\u229D',
|
|
168
|
+
'\\intercal': '\u22BA',
|
|
169
|
+
'\\oplus': '\u2295',
|
|
170
|
+
'\\ominus': '\u2296',
|
|
171
|
+
'\\otimes': '\u2297',
|
|
172
|
+
'\\oslash': '\u2298',
|
|
173
|
+
'\\odot': '\u2299',
|
|
174
|
+
'\\oast': '\u229B',
|
|
175
|
+
'\\ocirc': '\u229A',
|
|
176
|
+
'\\dag': '\u2020',
|
|
177
|
+
'\\ddag': '\u2021',
|
|
178
|
+
'\\star': '\u22C6',
|
|
179
|
+
'\\diamond': '\u22C4',
|
|
180
|
+
'\\wr': '\u2240',
|
|
181
|
+
'\\triangle': '\u25B3',
|
|
182
|
+
'\\bigwedge': '\u22C0',
|
|
183
|
+
'\\bigvee': '\u22C1',
|
|
184
|
+
'\\bigodot': '\u2A00',
|
|
185
|
+
'\\bigotimes': '\u2A02',
|
|
186
|
+
'\\bigoplus': '\u2A01',
|
|
187
|
+
'\\bigsqcap': '\u2A05',
|
|
188
|
+
'\\bigsqcup': '\u2A06',
|
|
189
|
+
'\\biguplus': '\u2A04',
|
|
190
|
+
'\\bigudot': '\u2A03',
|
|
191
|
+
'\\because': '\u2235',
|
|
192
|
+
'\\lll': '\u22D8',
|
|
193
|
+
'\\ggg': '\u22D9',
|
|
194
|
+
'\\leqq': '\u2266',
|
|
195
|
+
'\\geqq': '\u2267',
|
|
196
|
+
'\\lesssim': '\u2272',
|
|
197
|
+
'\\gtrsim': '\u2273',
|
|
198
|
+
'\\lessdot': '\u22D6',
|
|
199
|
+
'\\gtrdot': '\u22D7',
|
|
200
|
+
'\\lessgtr': '\u2276',
|
|
201
|
+
'\\lesseqgtr': '\u22DA',
|
|
202
|
+
'\\gtrless': '\u2277',
|
|
203
|
+
'\\gtreqless': '\u22DB',
|
|
204
|
+
'\\Doteq': '\u2251',
|
|
205
|
+
'\\fallingdotseq': '\u2252',
|
|
206
|
+
'\\risingdotseq': '\u2253',
|
|
207
|
+
'\\backsim': '\u223D',
|
|
208
|
+
'\\approxeq': '\u224A',
|
|
209
|
+
'\\backsimeq': '\u22CD',
|
|
210
|
+
'\\curlyeqprec': '\u22DE',
|
|
211
|
+
'\\curlyeqsucc': '\u22DF',
|
|
212
|
+
'\\precsim': '\u227E',
|
|
213
|
+
'\\succsim': '\u227F',
|
|
214
|
+
'\\eqless': '\u22DC',
|
|
215
|
+
'\\eqgtr': '\u22DD',
|
|
216
|
+
'\\vartriangleleft': '\u22B2',
|
|
217
|
+
'\\vartriangleright': '\u22B3',
|
|
218
|
+
'\\trianglelefteq': '\u22B4',
|
|
219
|
+
'\\trianglerighteq': '\u22B5',
|
|
220
|
+
'\\models': '\u22A8',
|
|
221
|
+
'\\Subset': '\u22D0',
|
|
222
|
+
'\\Supset': '\u22D1',
|
|
223
|
+
'\\Vdash': '\u22A9',
|
|
224
|
+
'\\Vvdash': '\u22AA',
|
|
225
|
+
'\\eqcirc': '\u2256',
|
|
226
|
+
'\\circeq': '\u2257',
|
|
227
|
+
'\\Deltaeq': '\u225C',
|
|
228
|
+
'\\bumpeq': '\u224F',
|
|
229
|
+
'\\Bumpeq': '\u224E',
|
|
230
|
+
'\\between': '\u226C',
|
|
231
|
+
'\\pitchfork': '\u22D4',
|
|
232
|
+
'\\doteq': '\u2250',
|
|
233
|
+
'\\get': '\u2190',
|
|
234
|
+
'\\updownarrow': '\u2195',
|
|
235
|
+
'\\Leftarrow': '\u21D0',
|
|
236
|
+
'\\Rightarrow': '\u21D2',
|
|
237
|
+
'\\Uparrow': '\u21D1',
|
|
238
|
+
'\\Downarrow': '\u21D3',
|
|
239
|
+
'\\Leftrightarrow': '\u21D4',
|
|
240
|
+
'\\Updownarrow': '\u21D5',
|
|
241
|
+
'\\longleftarrow': '\u27F5',
|
|
242
|
+
'\\longrightarrow': '\u27F6',
|
|
243
|
+
'\\longleftrightarrow': '\u27F7',
|
|
244
|
+
'\\Longleftarrow': '\u27F8',
|
|
245
|
+
'\\Longrightarrow': '\u27F9',
|
|
246
|
+
'\\Longleftrightarrow': '\u27FA',
|
|
247
|
+
'\\nearrow': '\u2197',
|
|
248
|
+
'\\nwarrow': '\u2196',
|
|
249
|
+
'\\searrow': '\u2198',
|
|
250
|
+
'\\swarrow': '\u2199',
|
|
251
|
+
'\\nleftarrow': '\u219A',
|
|
252
|
+
'\\nrightarrow': '\u219B',
|
|
253
|
+
'\\nleftrightarrow': '\u21AE',
|
|
254
|
+
'\\nLeftarrow': '\u21CD',
|
|
255
|
+
'\\nRightarrow': '\u21CF',
|
|
256
|
+
'\\nLeftrightarrow': '\u21CE',
|
|
257
|
+
'\\dashleftarrow': '\u21E0',
|
|
258
|
+
'\\dashrightarrow': '\u21E2',
|
|
259
|
+
'\\mapstoleft': '\u21A4',
|
|
260
|
+
'\\mapsto': '\u21A6',
|
|
261
|
+
'\\longmapstoleft': '\u27FB',
|
|
262
|
+
'\\longmapsto': '\u27FC',
|
|
263
|
+
'\\hookleftarrow': '\u21A9',
|
|
264
|
+
'\\hookrightarrow': '\u21AA',
|
|
265
|
+
'\\leftharpoonup': '\u21BC',
|
|
266
|
+
'\\leftharpoondown': '\u21BD',
|
|
267
|
+
'\\rightharpoonup': '\u21C0',
|
|
268
|
+
'\\rightharpoondown': '\u21C1',
|
|
269
|
+
'\\upharpoonleft': '\u21BF',
|
|
270
|
+
'\\upharpoonright': '\u21BE',
|
|
271
|
+
'\\downharpoonleft': '\u21C3',
|
|
272
|
+
'\\downharpoonright': '\u21C2',
|
|
273
|
+
'\\leftrightharpoons': '\u21CB',
|
|
274
|
+
'\\rlhar': '\u21CC',
|
|
275
|
+
'\\leftleftarrows': '\u21C7',
|
|
276
|
+
'\\rightrightarrows': '\u21C9',
|
|
277
|
+
'\\upuparrows': '\u21C8',
|
|
278
|
+
'\\downdownarrows': '\u21CA',
|
|
279
|
+
'\\leftrightarrows': '\u21C6',
|
|
280
|
+
'\\rightleftarrows': '\u21C4',
|
|
281
|
+
'\\looparrowleft': '\u21AB',
|
|
282
|
+
'\\looparrowright': '\u21AC',
|
|
283
|
+
'\\leftarrowtail': '\u21A2',
|
|
284
|
+
'\\rightarrowtail': '\u21A3',
|
|
285
|
+
'\\Lsh': '\u21B0',
|
|
286
|
+
'\\Rsh': '\u21B1',
|
|
287
|
+
'\\ldsh': '\u21B2',
|
|
288
|
+
'\\rdsh': '\u21B3',
|
|
289
|
+
'\\Lleftarrow': '\u21DA',
|
|
290
|
+
'\\Rrightarrow': '\u21DB',
|
|
291
|
+
'\\twoheadleftarrow': '\u219E',
|
|
292
|
+
'\\twoheadrightarrow': '\u21A0',
|
|
293
|
+
'\\curvearrowleft': '\u21B6',
|
|
294
|
+
'\\curvearrowright': '\u21B7',
|
|
295
|
+
'\\circlearrowleft': '\u21BA',
|
|
296
|
+
'\\circlearrowright': '\u21BB',
|
|
297
|
+
'\\multimap': '\u22B8',
|
|
298
|
+
'\\leftrightwavearrow': '\u21AD',
|
|
299
|
+
'\\leftwavearrow': '\u219C',
|
|
300
|
+
'\\rightwavearrow': '\u219D',
|
|
301
|
+
'\\leftsquigarrow': '\u21DC',
|
|
302
|
+
'\\nsim': '\u2241',
|
|
303
|
+
'\\nasymp': '\u226D',
|
|
304
|
+
'\\lneqq': '\u2268',
|
|
305
|
+
'\\gneqq': '\u2269',
|
|
306
|
+
'\\nprec': '\u2280',
|
|
307
|
+
'\\nsucc': '\u2281',
|
|
308
|
+
'\\npreccurlyeq': '\u22E0',
|
|
309
|
+
'\\nsucccurlyeq': '\u22E1',
|
|
310
|
+
'\\notni': '\u220C',
|
|
311
|
+
'\\nsub': '\u2284',
|
|
312
|
+
'\\nsup': '\u2285',
|
|
313
|
+
'\\nsubseteq': '\u2288',
|
|
314
|
+
'\\nsupseteq': '\u2289',
|
|
315
|
+
'\\supsetneq': '\u228B',
|
|
316
|
+
'\\nsqsubseteq': '\u22E2',
|
|
317
|
+
'\\nsqsupseteq': '\u22E3',
|
|
318
|
+
'\\lnsim': '\u22E6',
|
|
319
|
+
'\\gnsim': '\u22E7',
|
|
320
|
+
'\\precnsim': '\u22E8',
|
|
321
|
+
'\\succnsim': '\u22E9',
|
|
322
|
+
'\\ntriangleleft': '\u22EA',
|
|
323
|
+
'\\ntriangleright': '\u22EB',
|
|
324
|
+
'\\ntrianglelefteq': '\u22EC',
|
|
325
|
+
'\\ntrianglerighteq': '\u22ED',
|
|
326
|
+
'\\nmid': '\u2224',
|
|
327
|
+
'\\nparallel': '\u2226',
|
|
328
|
+
'\\nvdash': '\u22AC',
|
|
329
|
+
'\\nvDash': '\u22AD',
|
|
330
|
+
'\\nVdash': '\u22AE',
|
|
331
|
+
'\\nVDash': '\u22AF',
|
|
332
|
+
'\\rightangle': '\u221F',
|
|
333
|
+
'\\angle': '\u2220',
|
|
334
|
+
'\\angmsd': '\u2221',
|
|
335
|
+
'\\angsph': '\u2222',
|
|
336
|
+
'\\angrtvb': '\u22BE',
|
|
337
|
+
'\\righttriangle': '\u22BF',
|
|
338
|
+
'\\epar': '\u22D5',
|
|
339
|
+
'\\colon': '\u2236',
|
|
340
|
+
'\\Colon': '\u2237',
|
|
341
|
+
'\\;': '\u2005',
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* Returns the Unicode symbol for a LaTeX command, or the input unchanged when unknown.
|
|
345
|
+
*
|
|
346
|
+
* @private
|
|
347
|
+
*/
|
|
348
|
+
export function getLatexSymbol(latex) {
|
|
349
|
+
return Object.prototype.hasOwnProperty.call(LATEX_SYMBOLS, latex) ? LATEX_SYMBOLS[latex] : latex;
|
|
350
|
+
}
|
|
351
|
+
var UNICODE_TO_LATEX = {
|
|
352
|
+
0x00B1: '\\pm',
|
|
353
|
+
0x221E: '\\infty',
|
|
354
|
+
0x2260: '\\neq',
|
|
355
|
+
0x00D7: '\\times',
|
|
356
|
+
0x00F7: '\\div',
|
|
357
|
+
0x221D: '\\propto',
|
|
358
|
+
0x226A: '\\ll',
|
|
359
|
+
0x226B: '\\gg',
|
|
360
|
+
0x2264: '\\le',
|
|
361
|
+
0x2265: '\\geq',
|
|
362
|
+
0x2213: '\\mp',
|
|
363
|
+
0x2245: '\\cong',
|
|
364
|
+
0x2248: '\\approx',
|
|
365
|
+
0x2261: '\\equiv',
|
|
366
|
+
0x2200: '\\forall',
|
|
367
|
+
0x2201: '\\complement',
|
|
368
|
+
0x2202: '\\partial',
|
|
369
|
+
0x221A: '\\sqrt',
|
|
370
|
+
0x221B: '\\cbrt',
|
|
371
|
+
0x221C: '\\qdrt',
|
|
372
|
+
0x222A: '\\cup',
|
|
373
|
+
0x2229: '\\cap',
|
|
374
|
+
0x2205: '\\emptyset',
|
|
375
|
+
0x2109: '\\degf',
|
|
376
|
+
0x2103: '\\degc',
|
|
377
|
+
0x2207: '\\nabla',
|
|
378
|
+
0x2203: '\\exists',
|
|
379
|
+
0x2204: '\\nexists',
|
|
380
|
+
0x2208: '\\in',
|
|
381
|
+
0x220B: '\\ni',
|
|
382
|
+
0x2190: '\\gets',
|
|
383
|
+
0x2191: '\\uparrow',
|
|
384
|
+
0x2192: '\\rightarrow',
|
|
385
|
+
0x2193: '\\downarrow',
|
|
386
|
+
0x2194: '\\leftrightarrow',
|
|
387
|
+
0x2234: '\\therefore',
|
|
388
|
+
0x00AC: '\\lnot',
|
|
389
|
+
0x03B1: '\\alpha',
|
|
390
|
+
0x03B2: '\\beta',
|
|
391
|
+
0x03B3: '\\gamma',
|
|
392
|
+
0x03B4: '\\delta',
|
|
393
|
+
0x03B5: '\\varepsilon',
|
|
394
|
+
0x03F5: '\\epsilon',
|
|
395
|
+
0x03B8: '\\theta',
|
|
396
|
+
0x03D1: '\\vartheta',
|
|
397
|
+
0x03BC: '\\mu',
|
|
398
|
+
0x03C0: '\\pi',
|
|
399
|
+
0x03C1: '\\rho',
|
|
400
|
+
0x03C3: '\\sigma',
|
|
401
|
+
0x03C4: '\\tau',
|
|
402
|
+
0x03C6: '\\varphi',
|
|
403
|
+
0x03C9: '\\omega',
|
|
404
|
+
0x002A: '\\ast',
|
|
405
|
+
0x2219: '\\bullet',
|
|
406
|
+
0x22EE: '\\vdots',
|
|
407
|
+
0x22EF: '\\cdots',
|
|
408
|
+
0x22F1: '\\ddots',
|
|
409
|
+
0x2135: '\\aleph',
|
|
410
|
+
0x2136: '\\beth',
|
|
411
|
+
0x220E: '\\qed',
|
|
412
|
+
0x03B6: '\\zeta',
|
|
413
|
+
0x03B7: '\\eta',
|
|
414
|
+
0x03B9: '\\iota',
|
|
415
|
+
0x03BA: '\\kappa',
|
|
416
|
+
0x03BB: '\\lambda',
|
|
417
|
+
0x03BD: '\\nu',
|
|
418
|
+
0x03BE: '\\xi',
|
|
419
|
+
0x03D6: '\\varpi',
|
|
420
|
+
0x03F1: '\\varrho',
|
|
421
|
+
0x03C2: '\\varsigma',
|
|
422
|
+
0x03C5: '\\upsilon',
|
|
423
|
+
0x03D5: '\\phi',
|
|
424
|
+
0x03C7: '\\chi',
|
|
425
|
+
0x03C8: '\\psi',
|
|
426
|
+
0x0393: '\\Gamma',
|
|
427
|
+
0x0394: '\\Delta',
|
|
428
|
+
0x0398: '\\Theta',
|
|
429
|
+
0x039B: '\\Lambda',
|
|
430
|
+
0x039E: '\\Xi',
|
|
431
|
+
0x03A0: '\\Pi',
|
|
432
|
+
0x03A3: '\\Sigma',
|
|
433
|
+
0x03A5: '\\Upsilon',
|
|
434
|
+
0x03A6: '\\Phi',
|
|
435
|
+
0x03A8: '\\Psi',
|
|
436
|
+
0x03A9: '\\Omega',
|
|
437
|
+
0x210F: '\\hbar',
|
|
438
|
+
0x0131: '\\imath',
|
|
439
|
+
0x03F0: '\\varkappa',
|
|
440
|
+
0x2118: '\\wp',
|
|
441
|
+
0x2137: '\\gimel',
|
|
442
|
+
0x2138: '\\daleth',
|
|
443
|
+
0x2218: '\\circ',
|
|
444
|
+
0x22C5: '\\cdot',
|
|
445
|
+
0x228E: '\\uplus',
|
|
446
|
+
0x2293: '\\sqcap',
|
|
447
|
+
0x2294: '\\sqcup',
|
|
448
|
+
0x2227: '\\land',
|
|
449
|
+
0x2228: '\\vee',
|
|
450
|
+
0x226E: '\\nless',
|
|
451
|
+
0x2270: '\\nleq',
|
|
452
|
+
0x226F: '\\ngt',
|
|
453
|
+
0x2271: '\\ngeq',
|
|
454
|
+
0x223C: '\\sim',
|
|
455
|
+
0x2243: '\\simeq',
|
|
456
|
+
0x2262: '\\nequiv',
|
|
457
|
+
0x2244: '\\nsimeq',
|
|
458
|
+
0x2249: '\\napprox',
|
|
459
|
+
0x2247: '\\ncong',
|
|
460
|
+
0x2209: '\\notin',
|
|
461
|
+
0x2282: '\\subset',
|
|
462
|
+
0x2283: '\\supset',
|
|
463
|
+
0x2286: '\\subseteq',
|
|
464
|
+
0x2287: '\\supseteq',
|
|
465
|
+
0x227A: '\\prcue',
|
|
466
|
+
0x227B: '\\succ',
|
|
467
|
+
0x227C: '\\preccurlyeq',
|
|
468
|
+
0x227D: '\\succcurlyeq',
|
|
469
|
+
0x228F: '\\sqsubset',
|
|
470
|
+
0x2290: '\\sqsupset',
|
|
471
|
+
0x2291: '\\sqsubseteq',
|
|
472
|
+
0x2292: '\\sqsupseteq',
|
|
473
|
+
0x2225: '\\parallel',
|
|
474
|
+
0x22A5: '\\bot',
|
|
475
|
+
0x22A2: '\\vdash',
|
|
476
|
+
0x22A3: '\\dashv',
|
|
477
|
+
0x22C8: '\\bowtie',
|
|
478
|
+
0x224D: '\\asymp',
|
|
479
|
+
0x2214: '\\dotplus',
|
|
480
|
+
0x2238: '\\dotminus',
|
|
481
|
+
0x2216: '\\setminus',
|
|
482
|
+
0x22D2: '\\Cap',
|
|
483
|
+
0x22D3: '\\Cup',
|
|
484
|
+
0x229F: '\\boxminus',
|
|
485
|
+
0x22A0: '\\boxtimes',
|
|
486
|
+
0x22A1: '\\boxdot',
|
|
487
|
+
0x229E: '\\boxplus',
|
|
488
|
+
0x22C7: '\\divideontimes',
|
|
489
|
+
0x22C9: '\\ltimes',
|
|
490
|
+
0x22CA: '\\rtimes',
|
|
491
|
+
0x22CB: '\\leftthreetimes',
|
|
492
|
+
0x22CC: '\\rightthreetimes',
|
|
493
|
+
0x22CF: '\\curlywedge',
|
|
494
|
+
0x22CE: '\\curlyvee',
|
|
495
|
+
0x229D: '\\odash',
|
|
496
|
+
0x22BA: '\\intercal',
|
|
497
|
+
0x2295: '\\oplus',
|
|
498
|
+
0x2296: '\\ominus',
|
|
499
|
+
0x2297: '\\otimes',
|
|
500
|
+
0x2298: '\\oslash',
|
|
501
|
+
0x2299: '\\odot',
|
|
502
|
+
0x229B: '\\oast',
|
|
503
|
+
0x229A: '\\ocirc',
|
|
504
|
+
0x2020: '\\dag',
|
|
505
|
+
0x2021: '\\ddag',
|
|
506
|
+
0x22C6: '\\star',
|
|
507
|
+
0x22C4: '\\diamond',
|
|
508
|
+
0x2240: '\\wr',
|
|
509
|
+
0x25B3: '\\triangle',
|
|
510
|
+
0x22C0: '\\bigwedge',
|
|
511
|
+
0x22C1: '\\bigvee',
|
|
512
|
+
0x2A00: '\\bigodot',
|
|
513
|
+
0x2A02: '\\bigotimes',
|
|
514
|
+
0x2A01: '\\bigoplus',
|
|
515
|
+
0x2A05: '\\bigsqcap',
|
|
516
|
+
0x2A06: '\\bigsqcup',
|
|
517
|
+
0x2A04: '\\biguplus',
|
|
518
|
+
0x2A03: '\\bigudot',
|
|
519
|
+
0x2235: '\\because',
|
|
520
|
+
0x22D8: '\\lll',
|
|
521
|
+
0x22D9: '\\ggg',
|
|
522
|
+
0x2266: '\\leqq',
|
|
523
|
+
0x2267: '\\geqq',
|
|
524
|
+
0x2272: '\\lesssim',
|
|
525
|
+
0x2273: '\\gtrsim',
|
|
526
|
+
0x22D6: '\\lessdot',
|
|
527
|
+
0x22D7: '\\gtrdot',
|
|
528
|
+
0x2276: '\\lessgtr',
|
|
529
|
+
0x22DA: '\\lesseqgtr',
|
|
530
|
+
0x2277: '\\gtrless',
|
|
531
|
+
0x22DB: '\\gtreqless',
|
|
532
|
+
0x2251: '\\Doteq',
|
|
533
|
+
0x2252: '\\fallingdotseq',
|
|
534
|
+
0x2253: '\\risingdotseq',
|
|
535
|
+
0x223D: '\\backsim',
|
|
536
|
+
0x224A: '\\approxeq',
|
|
537
|
+
0x22CD: '\\backsimeq',
|
|
538
|
+
0x22DE: '\\curlyeqprec',
|
|
539
|
+
0x22DF: '\\curlyeqsucc',
|
|
540
|
+
0x227E: '\\precsim',
|
|
541
|
+
0x227F: '\\succsim',
|
|
542
|
+
0x22DC: '\\eqless',
|
|
543
|
+
0x22DD: '\\eqgtr',
|
|
544
|
+
0x22B2: '\\vartriangleleft',
|
|
545
|
+
0x22B3: '\\vartriangleright',
|
|
546
|
+
0x22B4: '\\trianglelefteq',
|
|
547
|
+
0x22B5: '\\trianglerighteq',
|
|
548
|
+
0x22A8: '\\models',
|
|
549
|
+
0x22D0: '\\Subset',
|
|
550
|
+
0x22D1: '\\Supset',
|
|
551
|
+
0x22A9: '\\Vdash',
|
|
552
|
+
0x22AA: '\\Vvdash',
|
|
553
|
+
0x2256: '\\eqcirc',
|
|
554
|
+
0x2257: '\\circeq',
|
|
555
|
+
0x225C: '\\Deltaeq',
|
|
556
|
+
0x224F: '\\bumpeq',
|
|
557
|
+
0x224E: '\\Bumpeq',
|
|
558
|
+
0x226C: '\\between',
|
|
559
|
+
0x22D4: '\\pitchfork',
|
|
560
|
+
0x2250: '\\doteq',
|
|
561
|
+
0x2195: '\\updownarrow',
|
|
562
|
+
0x21D0: '\\Leftarrow',
|
|
563
|
+
0x21D2: '\\Rightarrow',
|
|
564
|
+
0x21D1: '\\Uparrow',
|
|
565
|
+
0x21D3: '\\Downarrow',
|
|
566
|
+
0x21D4: '\\Leftrightarrow',
|
|
567
|
+
0x21D5: '\\Updownarrow',
|
|
568
|
+
0x27F5: '\\longleftarrow',
|
|
569
|
+
0x27F6: '\\longrightarrow',
|
|
570
|
+
0x27F7: '\\longleftrightarrow',
|
|
571
|
+
0x27F8: '\\Longleftarrow',
|
|
572
|
+
0x27F9: '\\Longrightarrow',
|
|
573
|
+
0x27FA: '\\Longleftrightarrow',
|
|
574
|
+
0x2197: '\\nearrow',
|
|
575
|
+
0x2196: '\\nwarrow',
|
|
576
|
+
0x2198: '\\searrow',
|
|
577
|
+
0x2199: '\\swarrow',
|
|
578
|
+
0x219A: '\\nleftarrow',
|
|
579
|
+
0x219B: '\\nrightarrow',
|
|
580
|
+
0x21AE: '\\nleftrightarrow',
|
|
581
|
+
0x21CD: '\\nLeftarrow',
|
|
582
|
+
0x21CF: '\\nRightarrow',
|
|
583
|
+
0x21CE: '\\nLeftrightarrow',
|
|
584
|
+
0x21E0: '\\dashleftarrow',
|
|
585
|
+
0x21E2: '\\dashrightarrow',
|
|
586
|
+
0x21A4: '\\mapstoleft',
|
|
587
|
+
0x21A6: '\\mapsto',
|
|
588
|
+
0x27FB: '\\longmapstoleft',
|
|
589
|
+
0x27FC: '\\longmapsto',
|
|
590
|
+
0x21A9: '\\hookleftarrow',
|
|
591
|
+
0x21AA: '\\hookrightarrow',
|
|
592
|
+
0x21BC: '\\leftharpoonup',
|
|
593
|
+
0x21BD: '\\leftharpoondown',
|
|
594
|
+
0x21C0: '\\rightharpoonup',
|
|
595
|
+
0x21C1: '\\rightharpoondown',
|
|
596
|
+
0x21BF: '\\upharpoonleft',
|
|
597
|
+
0x21BE: '\\upharpoonright',
|
|
598
|
+
0x21C3: '\\downharpoonleft',
|
|
599
|
+
0x21C2: '\\downharpoonright',
|
|
600
|
+
0x21CB: '\\leftrightharpoons',
|
|
601
|
+
0x21CC: '\\rlhar',
|
|
602
|
+
0x21C7: '\\leftleftarrows',
|
|
603
|
+
0x21C9: '\\rightrightarrows',
|
|
604
|
+
0x21C8: '\\upuparrows',
|
|
605
|
+
0x21CA: '\\downdownarrows',
|
|
606
|
+
0x21C6: '\\leftrightarrows',
|
|
607
|
+
0x21C4: '\\rightleftarrows',
|
|
608
|
+
0x21AB: '\\looparrowleft',
|
|
609
|
+
0x21AC: '\\looparrowright',
|
|
610
|
+
0x21A2: '\\leftarrowtail',
|
|
611
|
+
0x21A3: '\\rightarrowtail',
|
|
612
|
+
0x21B0: '\\Lsh',
|
|
613
|
+
0x21B1: '\\Rsh',
|
|
614
|
+
0x21B2: '\\ldsh',
|
|
615
|
+
0x21B3: '\\rdsh',
|
|
616
|
+
0x21DA: '\\Lleftarrow',
|
|
617
|
+
0x21DB: '\\Rrightarrow',
|
|
618
|
+
0x219E: '\\twoheadleftarrow',
|
|
619
|
+
0x21A0: '\\twoheadrightarrow',
|
|
620
|
+
0x21B6: '\\curvearrowleft',
|
|
621
|
+
0x21B7: '\\curvearrowright',
|
|
622
|
+
0x21BA: '\\circlearrowleft',
|
|
623
|
+
0x21BB: '\\circlearrowright',
|
|
624
|
+
0x22B8: '\\multimap',
|
|
625
|
+
0x21AD: '\\leftrightwavearrow',
|
|
626
|
+
0x219C: '\\leftwavearrow',
|
|
627
|
+
0x219D: '\\rightwavearrow',
|
|
628
|
+
0x21DC: '\\leftsquigarrow',
|
|
629
|
+
0x2241: '\\nsim',
|
|
630
|
+
0x226D: '\\nasymp',
|
|
631
|
+
0x2268: '\\lneqq',
|
|
632
|
+
0x2269: '\\gneqq',
|
|
633
|
+
0x2280: '\\nprec',
|
|
634
|
+
0x2281: '\\nsucc',
|
|
635
|
+
0x22E0: '\\npreccurlyeq',
|
|
636
|
+
0x22E1: '\\nsucccurlyeq',
|
|
637
|
+
0x220C: '\\notni',
|
|
638
|
+
0x2284: '\\nsub',
|
|
639
|
+
0x2285: '\\nsup',
|
|
640
|
+
0x2288: '\\nsubseteq',
|
|
641
|
+
0x2289: '\\nsupseteq',
|
|
642
|
+
0x228B: '\\supsetneq',
|
|
643
|
+
0x22E2: '\\nsqsubseteq',
|
|
644
|
+
0x22E3: '\\nsqsupseteq',
|
|
645
|
+
0x22E6: '\\lnsim',
|
|
646
|
+
0x22E7: '\\gnsim',
|
|
647
|
+
0x22E8: '\\precnsim',
|
|
648
|
+
0x22E9: '\\succnsim',
|
|
649
|
+
0x22EA: '\\ntriangleleft',
|
|
650
|
+
0x22EB: '\\ntriangleright',
|
|
651
|
+
0x22EC: '\\ntrianglelefteq',
|
|
652
|
+
0x22ED: '\\ntrianglerighteq',
|
|
653
|
+
0x2224: '\\nmid',
|
|
654
|
+
0x2226: '\\nparallel',
|
|
655
|
+
0x22AC: '\\nvdash',
|
|
656
|
+
0x22AD: '\\nvDash',
|
|
657
|
+
0x22AE: '\\nVdash',
|
|
658
|
+
0x22AF: '\\nVDash',
|
|
659
|
+
0x221F: '\\rightangle',
|
|
660
|
+
0x2220: '\\angle',
|
|
661
|
+
0x2221: '\\angmsd',
|
|
662
|
+
0x2222: '\\angsph',
|
|
663
|
+
0x22BE: '\\angrtvb',
|
|
664
|
+
0x22BF: '\\righttriangle',
|
|
665
|
+
0x22D5: '\\epar',
|
|
666
|
+
0x2236: '\\colon',
|
|
667
|
+
0x2237: '\\Colon',
|
|
668
|
+
};
|
|
669
|
+
/**
|
|
670
|
+
* Returns the LaTeX command for a Unicode symbol (compression `GetSymbolLaTeX`), or undefined.
|
|
671
|
+
* `l` maps to `\\ell` only for the script font.
|
|
672
|
+
*
|
|
673
|
+
* @private
|
|
674
|
+
*/
|
|
675
|
+
export function getSymbolLatex(char, isScriptFont) {
|
|
676
|
+
var code = char.charCodeAt(0);
|
|
677
|
+
if (code === 108) {
|
|
678
|
+
return isScriptFont ? '\\ell' : undefined;
|
|
679
|
+
}
|
|
680
|
+
return UNICODE_TO_LATEX[code];
|
|
681
|
+
}
|