This commit is contained in:
counterweight 2026-05-14 10:56:04 +02:00
parent bc92231240
commit b8225c639e
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
11904 changed files with 1472749 additions and 133 deletions

View file

@ -0,0 +1,2 @@
import { Configuration } from '../Configuration.js';
export declare const NoUndefinedConfiguration: Configuration;

View file

@ -0,0 +1,49 @@
"use strict";
var __values = (this && this.__values) || function(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoUndefinedConfiguration = void 0;
var Configuration_js_1 = require("../Configuration.js");
function noUndefined(parser, name) {
var e_1, _a;
var textNode = parser.create('text', '\\' + name);
var options = parser.options.noundefined || {};
var def = {};
try {
for (var _b = __values(['color', 'background', 'size']), _c = _b.next(); !_c.done; _c = _b.next()) {
var id = _c.value;
if (options[id]) {
def['math' + id] = options[id];
}
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
parser.Push(parser.create('node', 'mtext', [], def, textNode));
}
exports.NoUndefinedConfiguration = Configuration_js_1.Configuration.create('noundefined', {
fallback: { macro: noUndefined },
options: {
noundefined: {
color: 'red',
background: '',
size: ''
}
},
priority: 3
});
//# sourceMappingURL=NoUndefinedConfiguration.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"NoUndefinedConfiguration.js","sourceRoot":"","sources":["../../../../ts/input/tex/noundefined/NoUndefinedConfiguration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAwBA,wDAAkD;AASlD,SAAS,WAAW,CAAC,MAAiB,EAAE,IAAY;;IAClD,IAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC,CAAC;IACpD,IAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,WAAW,IAAI,EAAE,CAAC;IACjD,IAAM,GAAG,GAAG,EAA8B,CAAC;;QAC3C,KAAiB,IAAA,KAAA,SAAA,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,CAAC,CAAA,gBAAA,4BAAE;YAA7C,IAAM,EAAE,WAAA;YACX,IAAI,OAAO,CAAC,EAAE,CAAC,EAAE;gBACf,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC;aAChC;SACF;;;;;;;;;IACD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;AACjE,CAAC;AAEY,QAAA,wBAAwB,GAAG,gCAAa,CAAC,MAAM,CAC1D,aAAa,EAAE;IACb,QAAQ,EAAE,EAAC,KAAK,EAAE,WAAW,EAAC;IAC9B,OAAO,EAAE;QACP,WAAW,EAAE;YACX,KAAK,EAAE,KAAK;YACZ,UAAU,EAAE,EAAE;YACd,IAAI,EAAE,EAAE;SACT;KACF;IACD,QAAQ,EAAE,CAAC;CACZ,CACF,CAAC"}