public final class StyleEvaluator extends Object
ComputedStyle for each raw parsed Token. It is
used directly after LaTeXTokeniser but before the TokenFixer.
Once this has run, all Commands and Environments with a
StyleDeclarationInterpretation will have been removed from the parse tree. This
corresponds to commands such as \bf, \textrm{...} and environments like \begin{em}...\end{em}.
Each Token remaining in the tree will have its
Token.setComputedStyle(ComputedStyle) called
to indicate the resulting "style" it will have.
LaTeXTokeniser,
TokenFixer,
StyleRebuilder,
SnuggleSession.parseInput(uk.ac.ed.ph.snuggletex.SnuggleInput)| Constructor and Description |
|---|
StyleEvaluator(SessionContext sessionContext) |
public StyleEvaluator(SessionContext sessionContext)
public void evaluateStyles(RootToken rootToken) throws SnuggleParseException
SnuggleParseExceptionCopyright © 2008–2026 The University of Edinburgh. All rights reserved.