monaco-latex
Version:
LaTeX language support for Monaco Editor
44 lines (43 loc) • 1.3 kB
TypeScript
/**
* LaTeX command definitions with documentation for autocompletion and hover.
*/
export declare enum CommandCategory {
DocumentStructure = "Document Structure",
TextFormatting = "Text Formatting",
Math = "Mathematics",
Environments = "Environments",
References = "References & Citations",
Graphics = "Graphics & Floats",
Lists = "Lists",
Tables = "Tables",
Spacing = "Spacing & Layout",
Fonts = "Fonts",
Symbols = "Symbols",
Conditionals = "Conditionals"
}
export interface LaTeXCommand {
name: string;
signature?: string;
description: string;
category: CommandCategory;
package?: string;
snippet?: string;
example?: string;
}
export interface LaTeXEnvironment {
name: string;
description: string;
category: CommandCategory;
package?: string;
snippet?: string;
}
export interface LaTeXPackage {
name: string;
description: string;
}
export declare const LATEX_COMMANDS: LaTeXCommand[];
export declare const LATEX_ENVIRONMENTS: LaTeXEnvironment[];
export declare const LATEX_PACKAGES: LaTeXPackage[];
export declare const COMMAND_MAP: Map<string, LaTeXCommand>;
export declare const ENVIRONMENT_MAP: Map<string, LaTeXEnvironment>;
export declare const PACKAGE_MAP: Map<string, LaTeXPackage>;