Crate mitex_spec
source ·Expand description
Specification structure of a set of LaTeX commands.
The specification will be passed to MiTeX for converting LaTeX code correctly. For example, MiTeX Parser uses it to produce an AST that respect the shape of commands.
Note: since we need to process environments statically, users cannot
override the \begin and \end commands.
See https://github.com/mitex-rs/mitex/blob/main/docs/spec.typ for detailed description.
Re-exports§
pub use query::CommandSpecRepr as JsonCommandSpec;
Modules§
- The character encoding used for argument matching
- The query module contains the data structures that are used by
typst query <mitex-packages>
Structs§
- An archived
CmdShape - An archived
CommandSpec - An archived
CommandSpecRepr - An archived
EnvShape - An archived
GlobStr - Shape of a TeX command.
- The resolver for an archived
CmdShape - Command specification that is cheap to clone
- Command specification that contains a set of commands and environments.
- The resolver for an archived
CommandSpecRepr - The resolver for an archived
CommandSpec - Shape of a TeX envionment.
- The resolver for an archived
EnvShape - A shared string that represents a glob pattern.
- The resolver for an archived
GlobStr
Enums§
- An archived
ArgPattern - An archived
ArgShape - An archived
CommandSpecItem - An archived
ContextFeature - An efficient pattern used for argument matching.
- The resolver for an archived
ArgPattern - Shape of arguments with direction to match since.
- The resolver for an archived
ArgShape - An item of command specification. It is either a normal command or an environment. See Command Syntax for concept of command. See Environment Syntax for concept of environment.
- The resolver for an archived
CommandSpecItem - A feature that specifies how to process the content of an environment.
- The resolver for an archived
ContextFeature