@minamorl/flashmath 0.0.0-stage → 0.1.1
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/LICENSE +225 -0
- package/NOTICE +25 -0
- package/README.md +188 -2
- package/dist/ast.d.ts +107 -0
- package/dist/chunk-6CC22KD6.js +1 -0
- package/dist/chunk-CBRBGK2B.js +1 -0
- package/dist/chunk-KDAOMSCC.js +1 -0
- package/dist/chunk-PLZAWTCY.js +1 -0
- package/dist/chunk-SHAALSPE.js +1 -0
- package/dist/chunk-TXV67IQS.js +1 -0
- package/dist/chunk-WZSFAGJH.js +1 -0
- package/dist/configuration-cache.d.ts +4 -0
- package/dist/configuration-cache.js +1 -0
- package/dist/configuration.d.ts +13 -0
- package/dist/configuration.js +1 -0
- package/dist/fonts/mjx-ncm-c.woff2 +0 -0
- package/dist/fonts/mjx-ncm-cb.woff2 +0 -0
- package/dist/fonts/mjx-ncm-s.woff2 +0 -0
- package/dist/fonts/mjx-ncm-sb.woff2 +0 -0
- package/dist/fonts/provenance.json +24 -0
- package/dist/fonts.css +29 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -0
- package/dist/mathml.d.ts +18 -0
- package/dist/native-layout.d.ts +7 -0
- package/dist/native-variants.d.ts +2 -0
- package/dist/native-variants.js +1 -0
- package/dist/output.d.ts +4 -0
- package/dist/output.js +1 -0
- package/dist/package-mark.d.ts +5 -0
- package/dist/packages/action.d.ts +17 -0
- package/dist/packages/ams.d.ts +19 -0
- package/dist/packages/amscd.d.ts +30 -0
- package/dist/packages/autoload.d.ts +16 -0
- package/dist/packages/base.d.ts +22 -0
- package/dist/packages/bbm.d.ts +24 -0
- package/dist/packages/bboldx.d.ts +12 -0
- package/dist/packages/bbox.d.ts +11 -0
- package/dist/packages/begingroup.d.ts +9 -0
- package/dist/packages/boldsymbol.d.ts +11 -0
- package/dist/packages/braket.d.ts +9 -0
- package/dist/packages/bussproofs-layout.d.ts +5 -0
- package/dist/packages/bussproofs-metrics.d.ts +1 -0
- package/dist/packages/bussproofs.d.ts +13 -0
- package/dist/packages/cancel.d.ts +8 -0
- package/dist/packages/cases.d.ts +16 -0
- package/dist/packages/centernot.d.ts +15 -0
- package/dist/packages/color.d.ts +30 -0
- package/dist/packages/colortbl.d.ts +10 -0
- package/dist/packages/colorv2.d.ts +15 -0
- package/dist/packages/configmacros.d.ts +11 -0
- package/dist/packages/dsfont.d.ts +12 -0
- package/dist/packages/empheq.d.ts +17 -0
- package/dist/packages/enclose.d.ts +13 -0
- package/dist/packages/extpfeil.d.ts +10 -0
- package/dist/packages/fontsizev3.d.ts +11 -0
- package/dist/packages/gensymb.d.ts +11 -0
- package/dist/packages/html.d.ts +8 -0
- package/dist/packages/mathtools.d.ts +17 -0
- package/dist/packages/mhchem-grammar.d.ts +179 -0
- package/dist/packages/mhchem-machine.d.ts +50 -0
- package/dist/packages/mhchem.d.ts +8 -0
- package/dist/packages/newcommand.d.ts +13 -0
- package/dist/packages/noerrors.d.ts +23 -0
- package/dist/packages/noundefined.d.ts +9 -0
- package/dist/packages/physics.d.ts +14 -0
- package/dist/packages/registry.d.ts +4 -0
- package/dist/packages/registry.js +1 -0
- package/dist/packages/require.d.ts +17 -0
- package/dist/packages/retry.d.ts +11 -0
- package/dist/packages/setoptions.d.ts +20 -0
- package/dist/packages/tagformat.d.ts +19 -0
- package/dist/packages/texhtml.d.ts +14 -0
- package/dist/packages/textcomp.d.ts +13 -0
- package/dist/packages/textmacros.d.ts +16 -0
- package/dist/packages/types.d.ts +47 -0
- package/dist/packages/unicode.d.ts +18 -0
- package/dist/packages/units.d.ts +19 -0
- package/dist/packages/upgreek.d.ts +11 -0
- package/dist/packages/verb.d.ts +11 -0
- package/dist/parser.d.ts +149 -0
- package/dist/preamble.d.ts +23 -0
- package/dist/react.d.ts +5 -0
- package/dist/react.js +1 -0
- package/dist/scanner.d.ts +40 -0
- package/dist/serialize.d.ts +3 -0
- package/dist/session-state.d.ts +18 -0
- package/dist/symbols.d.ts +544 -0
- package/package.json +56 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o={bold:[119808,119834,120782],italic:[119860,119886],"bold-italic":[119912,119938],script:[119964,119990],"bold-script":[120016,120042],fraktur:[120068,120094],"double-struck":[120120,120146,120792],"bold-fraktur":[120172,120198],"sans-serif":[120224,120250,120802],"bold-sans-serif":[120276,120302,120812],"sans-serif-italic":[120328,120354],"sans-serif-bold-italic":[120380,120406],monospace:[120432,120458,120822]},c={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-mathit":"italic","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold"},f={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},g=Array.from("\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\u03F4\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u2207\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9\u2202\u03F5\u03D1\u03F0\u03D5\u03F1\u03D6"),n={bold:120488,italic:120546,"bold-italic":120604,"bold-sans-serif":120662,"sans-serif-bold-italic":120720};function u(r){return Object.hasOwn(c,r)?c[r]:r}var p={script:"italic","bold-script":"bold-italic","double-struck":"bold",fraktur:"normal","bold-fraktur":"bold","bold-italic":"bold","sans-serif":"normal","bold-sans-serif":"bold","sans-serif-italic":"italic","sans-serif-bold-italic":"bold-italic",monospace:"normal"};function m(r,l){let e="";for(let x of r)e+=b(x);return e;function b(x){let d=x.codePointAt(0);if((l==="-tex-calligraphic"||l==="-tex-bold-calligraphic")&&d>=65&&d<=90)return x;let i=u(l);for((l==="-tex-calligraphic"||l==="-tex-bold-calligraphic")&&!(d>=65&&d<=90)&&(i=l==="-tex-calligraphic"?"italic":"bold-italic");Object.hasOwn(o,i);){let a=o[i],t=d>=65&&d<=90?a[0]+d-65:d>=97&&d<=122?a[1]+d-97:d>=48&&d<=57&&a[2]?a[2]+d-48:0;if(!t&&n[i]){let s=g.indexOf(x);s>=0?t=n[i]+s:(x==="\u03DC"||x==="\u03DD")&&(t=i==="bold"?120778+(x==="\u03DD"?1:0):0)}if(!t&&i==="italic"&&(x==="\u0131"||x==="\u0237")&&(t=x==="\u0131"?120484:120485),t)return String.fromCodePoint(f[t]??t);i=p[i]??"normal"}return x}}export{u as a,m as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var f=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var k=(b,a,c)=>()=>{if(c)throw c[0];try{return b&&(a=b(b=0)),a}catch(d){throw c=[d],d}};var l=(b,a)=>{for(var c in a)f(b,c,{get:a[c],enumerable:!0})},j=(b,a,c,d)=>{if(a&&typeof a=="object"||typeof a=="function")for(let e of h(a))!i.call(b,e)&&e!==c&&f(b,e,{get:()=>a[e],enumerable:!(d=g(a,e))||d.enumerable});return b};var m=b=>j(f({},"__esModule",{value:!0}),b);export{k as a,l as b,m as c};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const CONFIGURATION_CACHE_LIMIT = 128;
|
|
2
|
+
export declare function remember<T>(cache: Map<string, T>, key: string, value: T): T;
|
|
3
|
+
export declare function configurationKey(value: unknown): string | undefined;
|
|
4
|
+
export declare function copyConfiguration<T>(v: T): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d,e}from"./chunk-KDAOMSCC.js";import"./chunk-WZSFAGJH.js";e();export{a as CONFIGURATION_CACHE_LIMIT,c as configurationKey,d as copyConfiguration,b as remember};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ParseOptions } from "./ast.js";
|
|
2
|
+
import type { ActivePackageConfiguration, PackageEntry } from "./packages/types.js";
|
|
3
|
+
export declare function configure(input: ParseOptions): {
|
|
4
|
+
options: ParseOptions;
|
|
5
|
+
configuration: ActivePackageConfiguration;
|
|
6
|
+
};
|
|
7
|
+
/** Borrow a private template only when parsing has no mutable option state. */
|
|
8
|
+
export declare function parserConfiguration(input: ParseOptions): {
|
|
9
|
+
configuration: ActivePackageConfiguration;
|
|
10
|
+
options: ParseOptions;
|
|
11
|
+
};
|
|
12
|
+
/** Keep package lifecycle metadata outside the registry's registration-only boundary. */
|
|
13
|
+
export declare function resolveConfiguration(entries?: readonly PackageEntry[]): ActivePackageConfiguration;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{L as a,M as b,N as c,O as d}from"./chunk-SHAALSPE.js";import"./chunk-CBRBGK2B.js";import"./chunk-KDAOMSCC.js";import"./chunk-WZSFAGJH.js";d();export{a as configure,b as parserConfiguration,c as resolveConfiguration};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"source": "@mathjax/mathjax-newcm-font",
|
|
3
|
+
"version": "4.1.3",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"modifications": "none; original WOFF2 bytes",
|
|
6
|
+
"files": [
|
|
7
|
+
{
|
|
8
|
+
"file": "mjx-ncm-c.woff2",
|
|
9
|
+
"sha256": "bfe4cd45950bd79704ad58fa97edb3d716c7d14a8a493e41ae3f537c43ada90d"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"file": "mjx-ncm-cb.woff2",
|
|
13
|
+
"sha256": "68ebec1310a6cbb92b4a968ea63e89353b06e3d06423e6073fd7e7aa0d528605"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"file": "mjx-ncm-s.woff2",
|
|
17
|
+
"sha256": "d35959160704891ed2e2bbe40e8bf35cfbbfa06ba3edfce35ffc957604eea628"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"file": "mjx-ncm-sb.woff2",
|
|
21
|
+
"sha256": "49368a11a3abdb38d61e5eb23263bc2cca85473d6bd59ee4d9790ca1d981a6bb"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
package/dist/fonts.css
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* New Computer Modern 4.1.3; Apache-2.0. See NOTICE and LICENSE. */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Flashmath Calligraphic';
|
|
4
|
+
src: url('./fonts/mjx-ncm-c.woff2') format('woff2');
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
font-display: block;
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: 'Flashmath Calligraphic';
|
|
11
|
+
src: url('./fonts/mjx-ncm-cb.woff2') format('woff2');
|
|
12
|
+
font-weight: 700;
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-display: block;
|
|
15
|
+
}
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: 'Flashmath Script';
|
|
18
|
+
src: url('./fonts/mjx-ncm-s.woff2') format('woff2');
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-display: block;
|
|
22
|
+
}
|
|
23
|
+
@font-face {
|
|
24
|
+
font-family: 'Flashmath Script';
|
|
25
|
+
src: url('./fonts/mjx-ncm-sb.woff2') format('woff2');
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
font-style: normal;
|
|
28
|
+
font-display: block;
|
|
29
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { parseToMathMLAst, createMathMLParser } from "./parser.js";
|
|
2
|
+
export { toMathMLString } from "./serialize.js";
|
|
3
|
+
export { ParseError, UnsupportedFeatureError } from "./ast.js";
|
|
4
|
+
export type { MathMLKind, MathMLNode, ParseOptions, OutputOptions } from "./ast.js";
|
|
5
|
+
export type { MathMLParserSession } from "./parser.js";
|
|
6
|
+
export type { TexPackage, TexCommand, TexEnvironment, CommandHandler, PackageEntry, } from "./packages/types.js";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as u,b as h}from"./chunk-PLZAWTCY.js";import{a as p}from"./chunk-6CC22KD6.js";import"./chunk-TXV67IQS.js";import{a as i,c,d as M}from"./chunk-SHAALSPE.js";import"./chunk-CBRBGK2B.js";import"./chunk-KDAOMSCC.js";import"./chunk-WZSFAGJH.js";var f={"&":"&","<":"<",">":">",'"':""","'":"'"},g=e=>f[e];function s(e){return/[&<>"']/.test(e)?e.replace(/[&<>"']/g,g):e}function m(e,a={}){let r="",n=[p(e,a)];for(;n.length;){let t=n.pop();if(typeof t=="string"){r+=t;continue}if(t.kind==="#text"){r+=s(t.text);continue}r+="<"+t.kind;for(let o of Object.keys(t.attributes))r+=" "+o+'="'+s(t.attributes[o])+'"';r+=">",n.push("</"+t.kind+">");for(let o=t.children.length-1;o>=0;o--)n.push(t.children[o]);t.text&&(r+=s(t.text))}return r}M();export{i as ParseError,c as UnsupportedFeatureError,u as createMathMLParser,h as parseToMathMLAst,m as toMathMLString};
|
package/dist/mathml.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Token } from "./scanner.js";
|
|
2
|
+
import type { Node } from "./ast.js";
|
|
3
|
+
type Attrs = Record<string, string>;
|
|
4
|
+
export declare const relationChars: Set<string>;
|
|
5
|
+
export declare const stretchyChars: Set<string>;
|
|
6
|
+
export declare const fenceChars: Set<string>;
|
|
7
|
+
export declare const negated: Record<string, string>;
|
|
8
|
+
export declare const accents: Record<string, string>;
|
|
9
|
+
export declare const underover: Record<string, string>;
|
|
10
|
+
export declare function compatible(a: Attrs, b: Attrs): boolean;
|
|
11
|
+
export declare function nodeText(nodes: Node[]): string;
|
|
12
|
+
export declare function nameOf(id: number): string;
|
|
13
|
+
export declare function dimensionEm(d: string): number;
|
|
14
|
+
export declare function hasContent(n: Node): boolean;
|
|
15
|
+
export declare function operator(text: string, form?: string): [number, number, number, Record<string, unknown> | null];
|
|
16
|
+
export declare function em(n: number): string;
|
|
17
|
+
export declare function commandId(t: Token): number;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MathMLNode } from './ast.js';
|
|
2
|
+
export declare function addStyle(n: MathMLNode, css: string): void;
|
|
3
|
+
export declare function nativeBBox(n: MathMLNode): MathMLNode;
|
|
4
|
+
export declare function nativeEnclosure(n: MathMLNode): MathMLNode;
|
|
5
|
+
export declare function isCenterOver(n: MathMLNode): boolean;
|
|
6
|
+
export declare function nativeCenterOver(n: MathMLNode): MathMLNode;
|
|
7
|
+
export declare function nativeTable(n: MathMLNode, defaultSide?: string): MathMLNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-TXV67IQS.js";import"./chunk-WZSFAGJH.js";export{a as variantName,b as variantText};
|
package/dist/output.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { MathMLNode, OutputOptions } from './ast.js';
|
|
2
|
+
/** Native output lowers renderer-specific layout to MathML Core and inline CSS.
|
|
3
|
+
* MathJax output returns the original tree verbatim. Neither mode mutates input. */
|
|
4
|
+
export declare function mathMLForOutput(root: MathMLNode, options?: OutputOptions): MathMLNode;
|
package/dist/output.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-6CC22KD6.js";import"./chunk-TXV67IQS.js";import"./chunk-CBRBGK2B.js";import"./chunk-WZSFAGJH.js";export{a as mathMLForOutput};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type PackageMark = 'glyph' | 'arrow-label' | 'xarrow-label' | 'prescript' | 'bbox-padding';
|
|
2
|
+
export declare function markPackageNode<T extends object>(node: T, kind: PackageMark): T;
|
|
3
|
+
export declare const packageMark: (node: object) => PackageMark | undefined;
|
|
4
|
+
export declare function copyPackageMark(source: object, target: object): void;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
commands: {
|
|
4
|
+
mathtip: {
|
|
5
|
+
execute(p: import("../parser.js").Parser): void;
|
|
6
|
+
};
|
|
7
|
+
texttip: {
|
|
8
|
+
execute(p: import("../parser.js").Parser): void;
|
|
9
|
+
};
|
|
10
|
+
toggle: {
|
|
11
|
+
execute(p: import("../parser.js").Parser): void;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
environments: {};
|
|
15
|
+
configurationModules: string[];
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Node } from '../ast.js';
|
|
2
|
+
import type { Parser } from '../parser.js';
|
|
3
|
+
import type { TexCommand, TexEnvironment } from './types.js';
|
|
4
|
+
import type { Token } from '../scanner.js';
|
|
5
|
+
export declare function sequence(n: Node): Node[];
|
|
6
|
+
export declare function expand(p: Parser, body: string, count?: number): void;
|
|
7
|
+
/** Consume an environment body without rescanning source or recursive parsing. */
|
|
8
|
+
export declare function environmentBody(p: Parser, name: string): Token[];
|
|
9
|
+
export declare function clone(p: Parser, n: Node, stripIds?: boolean): Node;
|
|
10
|
+
export declare function tagCell(p: Parser, tag: string, label?: string, starred?: boolean): Node;
|
|
11
|
+
export declare function beginAms(p: Parser, name: string, done?: (n: Node) => void): void;
|
|
12
|
+
declare const _default: {
|
|
13
|
+
name: string;
|
|
14
|
+
readonly commands: Record<string, TexCommand>;
|
|
15
|
+
environments: Record<string, TexEnvironment>;
|
|
16
|
+
configurationModules: string[];
|
|
17
|
+
options: string[];
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Parser } from '../parser.js';
|
|
2
|
+
import type { Token } from '../scanner.js';
|
|
3
|
+
declare function begin(p: Parser, name: string): void;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
name: string;
|
|
6
|
+
commands: {
|
|
7
|
+
scriptstyle: {
|
|
8
|
+
name: string;
|
|
9
|
+
type: string;
|
|
10
|
+
char?: string;
|
|
11
|
+
attrs?: Record<string, unknown>;
|
|
12
|
+
args?: unknown[];
|
|
13
|
+
execute(p: Parser, t: Token, d: import("../symbols.js").Definition, id: number): void;
|
|
14
|
+
};
|
|
15
|
+
minCDarrowwidth: {
|
|
16
|
+
execute(p: Parser): void;
|
|
17
|
+
};
|
|
18
|
+
minCDarrowheight: {
|
|
19
|
+
execute(p: Parser): void;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
environments: {
|
|
23
|
+
CD: {
|
|
24
|
+
begin: typeof begin;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
options: string[];
|
|
28
|
+
configurationModules: string[];
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { requirePackage } from './require.js';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
name: string;
|
|
4
|
+
priority: number;
|
|
5
|
+
commands: {
|
|
6
|
+
require: {
|
|
7
|
+
execute: typeof requirePackage;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
environments: {};
|
|
11
|
+
options: string[];
|
|
12
|
+
configurationModules: string[];
|
|
13
|
+
initialize: typeof initialize;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
declare function initialize(p: import('../parser.js').Parser): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Parser } from "../parser.js";
|
|
2
|
+
import type { TexEnvironment } from "./types.js";
|
|
3
|
+
import type { Token } from "../scanner.js";
|
|
4
|
+
import type { Definition } from "../symbols.js";
|
|
5
|
+
declare function executeBase(parser: Parser, t: Token, d: Definition, id: number): void;
|
|
6
|
+
declare const _default: {
|
|
7
|
+
name: string;
|
|
8
|
+
commands: {
|
|
9
|
+
[k: string]: {
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
char?: string;
|
|
13
|
+
attrs?: Record<string, unknown>;
|
|
14
|
+
args?: unknown[];
|
|
15
|
+
execute: typeof executeBase;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
environments: Record<string, TexEnvironment>;
|
|
19
|
+
configurationModules: string[];
|
|
20
|
+
options: string[];
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Parser } from '../parser.js';
|
|
2
|
+
/** Math-font arguments share the existing scanner and explicit argument stack. */
|
|
3
|
+
export declare function fontArgument(p: Parser, font: string): void;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
name: string;
|
|
6
|
+
commands: {
|
|
7
|
+
mathversion: {
|
|
8
|
+
execute(p: Parser): void;
|
|
9
|
+
};
|
|
10
|
+
mathbbm: {
|
|
11
|
+
execute(p: Parser): void;
|
|
12
|
+
};
|
|
13
|
+
mathbbmss: {
|
|
14
|
+
execute(p: Parser): void;
|
|
15
|
+
};
|
|
16
|
+
mathbbmtt: {
|
|
17
|
+
execute(p: Parser): void;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
environments: {};
|
|
21
|
+
options: string[];
|
|
22
|
+
configurationModules: string[];
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Parser } from '../parser.js';
|
|
2
|
+
import type { TexCommand } from './types.js';
|
|
3
|
+
export declare function textVariant(p: Parser, bold?: boolean): "-bboldx" | "-bboldx-bold" | "-bboldx-light";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
name: string;
|
|
6
|
+
priority: number;
|
|
7
|
+
commands: Record<string, TexCommand>;
|
|
8
|
+
environments: {};
|
|
9
|
+
options: string[];
|
|
10
|
+
configurationModules: string[];
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function fontMetrics(): Record<number, readonly [number, number]>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Parser } from '../parser.js';
|
|
2
|
+
import type { TexCommand } from './types.js';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
name: string;
|
|
5
|
+
commands: Record<string, TexCommand>;
|
|
6
|
+
environments: {
|
|
7
|
+
prooftree: {
|
|
8
|
+
begin(p: Parser, name: string): void;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
configurationModules: string[];
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Parser } from '../parser.js';
|
|
2
|
+
declare function begin(p: Parser, name: string): void;
|
|
3
|
+
declare const _default: {
|
|
4
|
+
name: string;
|
|
5
|
+
commands: {};
|
|
6
|
+
environments: {
|
|
7
|
+
numcases: {
|
|
8
|
+
begin: typeof begin;
|
|
9
|
+
};
|
|
10
|
+
subnumcases: {
|
|
11
|
+
begin: typeof begin;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
configurationModules: string[];
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Parser } from '../parser.js';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
name: string;
|
|
4
|
+
commands: {
|
|
5
|
+
centerOver: {
|
|
6
|
+
execute: (p: Parser) => void;
|
|
7
|
+
};
|
|
8
|
+
centernot: {
|
|
9
|
+
execute: (p: Parser) => void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
environments: {};
|
|
13
|
+
configurationModules: string[];
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Node } from '../ast.js';
|
|
2
|
+
import type { Parser } from '../parser.js';
|
|
3
|
+
export declare function children(n: Node): Node[];
|
|
4
|
+
export declare function scopeStyle(p: Parser, attrs: Record<string, string>): void;
|
|
5
|
+
export declare function getColor(p: Parser, model: string, value: string): string;
|
|
6
|
+
export declare function readColor(p: Parser, fallback?: string): string;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
name: string;
|
|
9
|
+
commands: {
|
|
10
|
+
color: {
|
|
11
|
+
execute(p: Parser): void;
|
|
12
|
+
};
|
|
13
|
+
textcolor: {
|
|
14
|
+
execute(p: Parser): void;
|
|
15
|
+
};
|
|
16
|
+
definecolor: {
|
|
17
|
+
execute(p: Parser): void;
|
|
18
|
+
};
|
|
19
|
+
colorbox: {
|
|
20
|
+
execute(p: Parser): void;
|
|
21
|
+
};
|
|
22
|
+
fcolorbox: {
|
|
23
|
+
execute(p: Parser): void;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
environments: {};
|
|
27
|
+
options: string[];
|
|
28
|
+
configurationModules: string[];
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CommandHandler } from './types.js';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
name: string;
|
|
4
|
+
commands: {
|
|
5
|
+
color: {
|
|
6
|
+
execute: CommandHandler;
|
|
7
|
+
};
|
|
8
|
+
textcolor: {
|
|
9
|
+
execute: CommandHandler;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
environments: {};
|
|
13
|
+
configurationModules: string[];
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Macro } from '../scanner.js';
|
|
2
|
+
export declare function configuredMacro(value: unknown): Macro;
|
|
3
|
+
declare const _default: {
|
|
4
|
+
name: string;
|
|
5
|
+
commands: {};
|
|
6
|
+
environments: {};
|
|
7
|
+
options: string[];
|
|
8
|
+
configurationModules: string[];
|
|
9
|
+
initialize(p: import("../parser.js").Parser): void;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Node } from '../ast.js';
|
|
2
|
+
import type { Parser } from '../parser.js';
|
|
3
|
+
import type { TexCommand } from './types.js';
|
|
4
|
+
import type { Token } from '../scanner.js';
|
|
5
|
+
/** Decorations size themselves from independent, id-free copies of the table. */
|
|
6
|
+
export declare function decorate(p: Parser, table: Node, left: Token[], right: Token[], done: (n: Node) => void): void;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
name: string;
|
|
9
|
+
commands: Record<string, TexCommand>;
|
|
10
|
+
environments: {
|
|
11
|
+
empheq: {
|
|
12
|
+
begin(p: Parser, name: string): void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
configurationModules: string[];
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** MathJax keyval syntax: only braces protect separators; quotes are data. */
|
|
2
|
+
export declare function enclosureAttributes(source: string): Record<string, string>;
|
|
3
|
+
declare const _default: {
|
|
4
|
+
name: string;
|
|
5
|
+
commands: {
|
|
6
|
+
enclose: {
|
|
7
|
+
execute(p: import("../parser.js").Parser): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
environments: {};
|
|
11
|
+
configurationModules: string[];
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Parser } from '../parser.js';
|
|
2
|
+
import type { TexCommand } from './types.js';
|
|
3
|
+
export declare function xArrow(p: Parser, code: number, left: number, right: number): void;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
name: string;
|
|
6
|
+
commands: Record<string, TexCommand>;
|
|
7
|
+
environments: {};
|
|
8
|
+
configurationModules: string[];
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Parser } from '../parser.js';
|
|
2
|
+
import type { TexCommand, TexEnvironment, TexPackage } from './types.js';
|
|
3
|
+
declare function initialize(p: Parser): void;
|
|
4
|
+
export declare const boldsymbolDependency: TexPackage;
|
|
5
|
+
export declare const bboxDependency: TexPackage;
|
|
6
|
+
declare const _default: {
|
|
7
|
+
name: string;
|
|
8
|
+
commands: Record<string, TexCommand>;
|
|
9
|
+
characters: {
|
|
10
|
+
':': TexCommand;
|
|
11
|
+
};
|
|
12
|
+
environments: Record<string, TexEnvironment>;
|
|
13
|
+
initialize: typeof initialize;
|
|
14
|
+
configurationModules: string[];
|
|
15
|
+
options: string[];
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|