Skip to main content

MathConstants

Struct MathConstants 

Source
pub struct MathConstants {
Show 31 fields pub x_height: f64, pub quad: f64, pub num1: f64, pub num2: f64, pub num3: f64, pub denom1: f64, pub denom2: f64, pub sup1: f64, pub sup2: f64, pub sup3: f64, pub sub1: f64, pub sub2: f64, pub sup_drop: f64, pub sub_drop: f64, pub delim1: f64, pub delim2: f64, pub axis_height: f64, pub rule_thickness: f64, pub big_op_spacing1: f64, pub big_op_spacing2: f64, pub big_op_spacing3: f64, pub big_op_spacing4: f64, pub big_op_spacing5: f64, pub display_op_scale: f64, pub delimiter_factor: f64, pub delimiter_shortfall: f64, pub null_delimiter_space: f64, pub baseline_skip: f64, pub line_skip: f64, pub delimiter_scale_ceiling: f64, pub fallback_space: f64,
}
Expand description

The Appendix-G parameter family, in ems of the text-size em.

Fields§

§x_height: f64

σ₅ — x-height.

§quad: f64

σ₆ — quad (1 em).

§num1: f64

σ₈ — num1: numerator shift, display style.

§num2: f64

σ₉ — num2: numerator shift, non-display, with bar.

§num3: f64

σ₁₀ — num3: numerator shift, non-display, barless.

§denom1: f64

σ₁₁ — denom1: denominator shift, display.

§denom2: f64

σ₁₂ — denom2: denominator shift, non-display.

§sup1: f64

σ₁₃ — sup1: superscript shift, display uncramped.

§sup2: f64

σ₁₄ — sup2: superscript shift, non-display uncramped.

§sup3: f64

σ₁₅ — sup3: superscript shift, cramped.

§sub1: f64

σ₁₆ — sub1: subscript shift without a superscript.

§sub2: f64

σ₁₇ — sub2: subscript shift with a superscript.

§sup_drop: f64

σ₁₈ — sup_drop: superscript baseline drop from the base’s top.

§sub_drop: f64

σ₁₉ — sub_drop: subscript baseline drop from the base’s bottom.

§delim1: f64

σ₂₀ — delim1: delimiter target for display-style generalized fractions.

§delim2: f64

σ₂₁ — delim2: delimiter target for non-display generalized fractions.

§axis_height: f64

σ₂₂ — axis height above the baseline.

§rule_thickness: f64

ξ₈ — default rule thickness.

§big_op_spacing1: f64

ξ₉ — big_op_spacing1: minimum gap below an upper limit.

§big_op_spacing2: f64

ξ₁₀ — big_op_spacing2: minimum gap above a lower limit.

§big_op_spacing3: f64

ξ₁₁ — big_op_spacing3: upper-limit gap floor including its depth.

§big_op_spacing4: f64

ξ₁₂ — big_op_spacing4: lower-limit gap floor including its height.

§big_op_spacing5: f64

ξ₁₃ — big_op_spacing5: padding above/below limit stacks.

§display_op_scale: f64

The display-size scale of \sum-class big operators. CM has no cmex-style size-variant glyphs, so the display variant is the authored glyph scaled by the cmex10 display/text height ratio (14 pt-class vs 10 pt-class: 1.4) — a calibration constant the Look Gallery judges (G0-3 “spike simplifications” work item).

§delimiter_factor: f64

TeX’s delimiterfactor/1000: a \left…\right delimiter must cover at least this fraction of twice the content’s axis-distance.

§delimiter_shortfall: f64

TeX’s delimitershortfall in ems (5 pt at 10 pt): the delimiter may fall short of full coverage by at most this much.

§null_delimiter_space: f64

TeX’s nulldelimiterspace in ems (1.2 pt at 10 pt): the width a null delimiter (\left.) occupies.

§baseline_skip: f64

\baselineskip in ems (12 pt at 10 pt): minimum baseline-to- baseline distance when stacking \\-separated lines.

§line_skip: f64

\lineskip in ems (1 pt at 10 pt): the gap used when boxes would otherwise touch.

§delimiter_scale_ceiling: f64

The uniform-scaling ceiling of the delimiter mechanism (ADR-0005): beyond 1.25× natural, drawn-path construction takes over (the drawn constructions land with the extensions bead; until then the engine keeps scaling uniformly and the seam is documented).

§fallback_space: f64

The interword space of text islands, in ems, used when the face does not map a space glyph.

Trait Implementations§

Source§

impl Clone for MathConstants

Source§

fn clone(&self) -> MathConstants

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for MathConstants

Source§

impl Debug for MathConstants

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for MathConstants

Source§

fn eq(&self, other: &MathConstants) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MathConstants

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.