pub enum ColSeparationType {
Align,
Alignat,
Gather,
Small,
CD,
}
Expand description
Represents the different types of column separation used in array environments within LaTeX/KaTeX mathematical expressions.
This enum defines the various alignment and separation styles that can be applied to columns in array-like structures, such as matrices or tables in mathematical typesetting. Each variant corresponds to a specific LaTeX array column type and influences how spacing and alignment are handled during rendering.
§Examples
In LaTeX source:
\begin{pmatrix} a & b \\ c & d \end{pmatrix} // Uses Align or Gather
\begin{alignat}{2} x &= 1 \\ y &= 2 \end{alignat} // Uses Alignat
§Usage
Used internally by the parser when constructing ParseNodeArray
nodes to
specify how columns should be separated and aligned. The choice affects
spacing calculations and rendering behavior in the final output.
Variants§
Align
Standard alignment with default spacing, typically centered columns
Alignat
Alignment with specific left/right positioning, often used for equation arrays
Gather
Gathering style with centered columns and appropriate spacing
Small
Compact spacing for dense arrays
CD
Special handling for commutative diagram environments
Trait Implementations§
Source§impl Clone for ColSeparationType
impl Clone for ColSeparationType
Source§fn clone(&self) -> ColSeparationType
fn clone(&self) -> ColSeparationType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more