pub struct ExprGraphLatexDisplay<'a> { /* private fields */ }Expand description
Configurable LaTeX-equation display for an ExprGraph.
The output is a math-mode fragment. It does not include $ delimiters or
a document preamble. Vector and matrix nodes use bmatrix from amsmath.
Color rules emit \\color[RGB] declarations and require xcolor.
Implementations§
Source§impl<'a> ExprGraphLatexDisplay<'a>
impl<'a> ExprGraphLatexDisplay<'a>
Sourcepub fn with_preset(self, preset: ColorPreset) -> Self
pub fn with_preset(self, preset: ColorPreset) -> Self
Adds the style rules from a built-in color palette.
Sourcepub fn with_style_rule(self, rule: NodeStyleRule) -> Self
pub fn with_style_rule(self, rule: NodeStyleRule) -> Self
Appends a node style rule.
Later matching rules override fields set by earlier rules. Only the foreground color is meaningful for LaTeX output.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ExprGraphLatexDisplay<'a>
impl<'a> RefUnwindSafe for ExprGraphLatexDisplay<'a>
impl<'a> Send for ExprGraphLatexDisplay<'a>
impl<'a> Sync for ExprGraphLatexDisplay<'a>
impl<'a> Unpin for ExprGraphLatexDisplay<'a>
impl<'a> UnsafeUnpin for ExprGraphLatexDisplay<'a>
impl<'a> UnwindSafe for ExprGraphLatexDisplay<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more