EmpheqUtil.d.ts 1.3 KB

12345678910111213141516171819202122232425262728
  1. import TexParser from '../TexParser.js';
  2. import { EnvList } from '../StackItem.js';
  3. import { MmlNode } from '../../../core/MmlTree/MmlNode.js';
  4. import { MmlMtable } from '../../../core/MmlTree/MmlNodes/mtable.js';
  5. import { MmlMtd } from '../../../core/MmlTree/MmlNodes/mtd.js';
  6. import { EmpheqBeginItem } from './EmpheqConfiguration.js';
  7. export declare const EmpheqUtil: {
  8. environment(parser: TexParser, env: string, func: Function, args: any[]): void;
  9. splitOptions(text: string, allowed?: {
  10. [key: string]: number;
  11. }): EnvList;
  12. columnCount(table: MmlMtable): number;
  13. cellBlock(tex: string, table: MmlMtable, parser: TexParser, env: string): MmlNode;
  14. topRowTable(original: MmlMtable, parser: TexParser): MmlNode;
  15. rowspanCell(mtd: MmlMtd, tex: string, table: MmlMtable, parser: TexParser, env: string): void;
  16. left(table: MmlMtable, original: MmlMtable, left: string, parser: TexParser, env?: string): void;
  17. right(table: MmlMtable, original: MmlMtable, right: string, parser: TexParser, env?: string): void;
  18. adjustTable(empheq: EmpheqBeginItem, parser: TexParser): void;
  19. allowEnv: {
  20. equation: boolean;
  21. align: boolean;
  22. gather: boolean;
  23. flalign: boolean;
  24. alignat: boolean;
  25. multline: boolean;
  26. };
  27. checkEnv(env: string): boolean;
  28. };