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: f64The 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: f64TeX’s delimiterfactor/1000: a \left…\right delimiter must cover
at least this fraction of twice the content’s axis-distance.
delimiter_shortfall: f64TeX’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: f64TeX’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: f64The 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: f64The interword space of text islands, in ems, used when the face does not map a space glyph.
Trait Implementations§
Source§impl Clone for MathConstants
impl Clone for MathConstants
Source§fn clone(&self) -> MathConstants
fn clone(&self) -> MathConstants
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more