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

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

HyphenationPenalty

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

LastLineGlue

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

LeadingLineBox

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

MathGlue

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

ParagraphPenalty

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

TabGlue

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

WordGlue

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

Methods

CreateFromFont

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

WithClauseGlue

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

WithHyphenationPenalty

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

WithLastLineGlue

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

WithLeadingBox

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

WithMathGlue

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

WithParagraphPenalty

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

WithTabGlue

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

WithWordGlue

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