Skip to main content

COMMANDS

Constant COMMANDS 

Source
pub const COMMANDS: [&str; 12];
Expand description

The text commands declared for math mode, in the order they are registered: text, textnormal, textup, textrm, textmd, textbf, textit, textsl, textsc, textsf, texttt, mbox.

The names are written without the leading backslash. Each command takes one mandatory argument read in text mode. The library does not apply what a command asks of the output (a bold weight for \textbf, nothing for \text): the command’s name is carried by the element value (MathTextCommand) and by the payload of the presentation node (MathTextPayload::command), and the output decides.