TeXSpacing

References
public sealed class TeXSpacing
Collates a bunch of settings used during the glue-box model setup phase. Basically, it lists the standard spacing and penalties to be used when converting a body of text into a TeX stream.

Properties

ClauseGlue

#
Gets the inter-clause glue, for example following a comma, full stop, or semi-colon.
public TeXGlue ClauseGlue { get; }

HyphenationPenalty

#
Gets the penalty to insert at hyphenation points.
public TeXPenalty HyphenationPenalty { get; }

LastLineGlue

#
Gets the glue to use at the end of a paragraph.
public TeXGlue LastLineGlue { get; }

LeadingLineBox

#
Gets the box to insert in front of the first word of every new paragraph. May be null.
public TeXBox LeadingLineBox { get; }

MathGlue

#
Gets the ideal inter-symbol glue inside mathematical expressions.
public TeXGlue MathGlue { get; }

ParagraphPenalty

#
Gets the penalty to append at the end of a paragraph.
public TeXPenalty ParagraphPenalty { get; }

TabGlue

#
Gets the glue to use for tab whitespace.
public TeXGlue TabGlue { get; }

WordGlue

#
Gets the ideal inter-word glue.
public TeXGlue WordGlue { get; }

Methods

CreateFromFont

#
Create a standard TeX spacing instance based on a specific font.
public static TeXSpacing CreateFromFont(
Font
font
)

WithClauseGlue

#
Set the clause spacing glue.
public TeXSpacing WithClauseGlue(
glue
)

WithHyphenationPenalty

#
Set the hyphenation penalty.
public TeXSpacing WithHyphenationPenalty(
penalty
)

WithLastLineGlue

#
Set the last-line spacing glue.
public TeXSpacing WithLastLineGlue(
glue
)

WithLeadingBox

#
Set the leading box.
public TeXSpacing WithLeadingBox(
box
)

WithMathGlue

#
Set the math spacing glue.
public TeXSpacing WithMathGlue(
glue
)

WithParagraphPenalty

#
Set the paragraph ending penalty.
public TeXSpacing WithParagraphPenalty(
penalty
)

WithTabGlue

#
Set the tab spacing glue.
public TeXSpacing WithTabGlue(
glue
)

WithWordGlue

#
Set the word spacing glue.
public TeXSpacing WithWordGlue(
glue
)