Crate mitex_spec

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§

argument_kind
The character encoding used for argument matching
preludes
query
The query module contains the data structures that are used by typst query <mitex-packages>

Structs§

ArchivedCmdShape
An archived CmdShape
ArchivedCommandSpec
An archived CommandSpec
ArchivedCommandSpecRepr
An archived CommandSpecRepr
ArchivedEnvShape
An archived EnvShape
ArchivedGlobStr
An archived GlobStr
CmdShape
Shape of a TeX command.
CmdShapeResolver
The resolver for an archived CmdShape
CommandSpec
Command specification that is cheap to clone
CommandSpecRepr
Command specification that contains a set of commands and environments.
CommandSpecReprResolver
The resolver for an archived CommandSpecRepr
CommandSpecResolver
The resolver for an archived CommandSpec
EnvShape
Shape of a TeX envionment.
EnvShapeResolver
The resolver for an archived EnvShape
GlobStr
A shared string that represents a glob pattern.
GlobStrResolver
The resolver for an archived GlobStr

Enums§

ArchivedArgPattern
An archived ArgPattern
ArchivedArgShape
An archived ArgShape
ArchivedCommandSpecItem
An archived CommandSpecItem
ArchivedContextFeature
An archived ContextFeature
ArgPattern
An efficient pattern used for argument matching.
ArgPatternResolver
The resolver for an archived ArgPattern
ArgShape
Shape of arguments with direction to match since.
ArgShapeResolver
The resolver for an archived ArgShape
CommandSpecItem
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.
CommandSpecItemResolver
The resolver for an archived CommandSpecItem
ContextFeature
A feature that specifies how to process the content of an environment.
ContextFeatureResolver
The resolver for an archived ContextFeature