pub enum MathStyle {
TeX,
ISO,
French,
Upright,
}
Expand description
The way in which math variables are displayed.
This is used to determine how single-letter variables are displayed. This affects lowercase and uppercase latin letters (a-z and A-Z), and uppercase and lowercase greek letters (α-ω and Α-Ω). Style differences are shown in the table below.
§Math Styles
Style | Low. Latin | Upp. Latin | Low. Greek | Upp. Greek |
---|---|---|---|---|
TeX | italic | italic | italic | upright |
ISO | italic | italic | italic | italic |
French | italic | upright | upright | upright |
Upright | upright | upright | upright | upright |
Variants§
TeX
The default style used in TeX.
Makes everything italic except for uppercase greek letters.
This is the default value.
ISO
The style used in ISO 80000-2:2019
.
Makes everything italic.
French
The style used in French typography.
Makes everything upright except for lowercase latin letters.
Upright
Makes everything upright.
Trait Implementations§
impl Copy for MathStyle
impl StructuralPartialEq for MathStyle
Auto Trait Implementations§
impl Freeze for MathStyle
impl RefUnwindSafe for MathStyle
impl Send for MathStyle
impl Sync for MathStyle
impl Unpin for MathStyle
impl UnwindSafe for MathStyle
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