| Package | Description |
|---|---|
| uk.ac.ed.ph.snuggletex |
Public API Package - almost all of the classes you will need for normal SnuggleTeX
use are contained in here.
|
| uk.ac.ed.ph.snuggletex.definitions |
Defines built-in commands, environments, accent maps, globals and related concepts.
|
| uk.ac.ed.ph.snuggletex.dombuilding |
Contains handler classes for building DOM tree branches for various commands and environments.
|
| Modifier and Type | Method and Description |
|---|---|
BuiltinCommand |
SnugglePackage.addCombinerCommand(String name,
EnumSet<LaTeXMode> allowedModes,
CombinerTargetMatcher combinerTargetMatcher,
CommandHandler handler,
TextFlowContext context) |
BuiltinCommand |
SnugglePackage.addComplexCommand(String name,
boolean allowOptionalArgument,
int arguments,
EnumSet<LaTeXMode> allowedModes,
LaTeXMode[] argumentModes,
CommandHandler handler,
TextFlowContext context) |
BuiltinCommand |
SnugglePackage.addComplexCommandOneArg(String name,
boolean allowOptionalArgument,
EnumSet<LaTeXMode> allowedModes,
LaTeXMode argumentMode,
CommandHandler handler,
TextFlowContext context) |
BuiltinCommand |
SnugglePackage.addComplexCommandOneArg(String name,
boolean allowOptionalArgument,
EnumSet<LaTeXMode> allowedModes,
LaTeXMode argumentMode,
Interpretation interpretation,
CommandHandler handler,
TextFlowContext context) |
BuiltinCommand |
SnugglePackage.addComplexCommandSameArgMode(String name,
boolean allowOptionalArgument,
int arguments,
EnumSet<LaTeXMode> allowedModes,
CommandHandler handler,
TextFlowContext context) |
BuiltinCommand |
SnugglePackage.addComplexCommandSameArgMode(String name,
boolean allowOptionalArgument,
int arguments,
EnumSet<LaTeXMode> allowedModes,
Interpretation interpretation,
CommandHandler handler,
TextFlowContext context) |
BuiltinCommand |
SnugglePackage.addSimpleCommand(String name,
EnumSet<LaTeXMode> allowedModes,
CommandHandler handler,
TextFlowContext context) |
BuiltinCommand |
SnugglePackage.addSimpleCommand(String name,
EnumSet<LaTeXMode> allowedModes,
Interpretation[] interpretations,
CommandHandler handler,
TextFlowContext context) |
BuiltinCommand |
SnugglePackage.addSimpleCommand(String name,
EnumSet<LaTeXMode> allowedModes,
Interpretation interpretation,
CommandHandler handler,
TextFlowContext context) |
BuiltinCommand |
SnugglePackage.addSimpleMathCommand(String name,
MathInterpretation[] interpretations,
CommandHandler handler) |
BuiltinCommand |
SnugglePackage.addSimpleMathCommand(String name,
MathInterpretation interpretation,
CommandHandler handler) |
| Constructor and Description |
|---|
BuiltinCommand(String texName,
CommandType commandType,
boolean allowingOptionalArgument,
int argumentCount,
EnumSet<LaTeXMode> allowedModes,
LaTeXMode[] argumentModes,
EnumMap<InterpretationType,Interpretation> interpretations,
CommandHandler domBuilderHandler,
TextFlowContext textFlowContext,
CombinerTargetMatcher combinerTargetMatcher) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCustomXMLElementHandler
Provides base functionality for the commands and environments that build custom
XML elements.
|
class |
AccentHandler
This builder handles applying accents to characters.
|
class |
AnchorHandler
Handles the
\\anchor command, generating an XHTML anchor. |
class |
BoxHandler
Handles
\\mbox, \\fbox and friends. |
class |
CharacterCommandHandler
This handles simple commands that essentially just stand in for single-character identifiers
that don't have any particular meaning when used in MATH mode (e.g. '$').
|
class |
DoNothingHandler
Trivial "do nothing" handler for commands and environments that don't add anything to
the resulting DOM.
|
class |
EnsureMathHandler
This handles the
\\ensuremath command. |
class |
GetVarHandler
Handles the
\\getvar macro. |
class |
HrefHandler
Handles the SnuggleTeX-specific
\\href command for easily creating web links. |
class |
HSpaceHandler
Handles the
\\hspace and \\hspace* commands. |
class |
InsertUnicodeHandler
Handles the non-standard
\\ux command to insert a Unicode character into the output. |
class |
InterpretableSimpleMathHandler
This builder calls back directly to the
DOMBuilder to handle mathematical
tokens with certain types of simple semantic interpretations. |
class |
LineBreakHandler
Handles instances of
\\\\, which forces a line break at the given point. |
class |
ListEnvironmentHandler
This handles LaTeX list environments (i.e.
|
class |
LiteralHandler
Handler for the custom
\\literal command, which allows literal input to be
entered, similar to \\verb with output without changing style. |
class |
MathComplexCommandHandler
Handles complex Math commands (i.e. ones taking arguments) that map very easily onto
MathML elements where each argument becomes a child element of the resulting MathML
container.
|
class |
MathLimitsHandler
Handles the mathematical "limit" tokens like
CorePackageDefinitions.CMD_MSUB_OR_MUNDER, generating
either msub or munder as appropriate, with analogous results for
CorePackageDefinitions.CMD_MSUP_OR_MOVER and CorePackageDefinitions.CMD_MSUBSUP_OR_MUNDEROVER. |
class |
MathNotHandler
Handles the
\\not combiner command. |
class |
MathRootHandler
Handles the LaTeX
\\sqrt command, which generates either a msqrt
or mroot depending on whether an optional argument has been passed or not. |
class |
MathUnderOrOverHandler
Handles the
\\stackrel, \\overset and \\underset commands. |
class |
MathVariantMapHandler
This handles changes to the current "mathvariant" caused by things like
\\mathcal
and friends. |
class |
ModeDelegatingHandler
Trivial "meta"-builder that delegates to a
CommandHandler depending on whether we
are in MATH or TEXT mode. |
class |
MrowHandler
Builds MathML
mrows. |
class |
ParagraphHandler
This builds the content of a (fixed)
CorePackageDefinitions.CMD_PARAGRAPH token. |
class |
SetVarHandler
Handles the
\\setvar macro. |
class |
SimpleXHTMLContainerBuildingHandler
This trivial handler takes an Environment or 1-argument Command and simply maps it to
an XHTML element with the given name and CSS class.
|
class |
SpaceHandler
Creates preset spacing elements in MATH and/or TEXT modes.
|
class |
TabularHandler
Handles the (rather complex)
tabular environment. |
class |
TagHandler |
class |
TextClassHandler
Handles things like the
\\underline command, which are simpler than the classic
LaTeX style controls. |
class |
TextHandler |
class |
TextSafeInterpretableMathIdentifierHandler
Used for things like
\\ldots, which work in both Math and Text modes |
class |
UnitsHandler
Handles
\\units, generating an mi element of the form:
<mi mathvariant="normal" class="MathML-Unit">... |
class |
VerbatimHandler
Handles the
verbatim environment and \\verb command. |
class |
XMLAttrHandler
Handles lonely instances of
\\xmlAttr, which results in CoreErrorCode.TDEX02
being emitted. |
class |
XMLBlockElementHandler
Builds custom block XML elements.
|
class |
XMLInlineElementHandler
Builds custom inline XML elements.
|
class |
XMLNameOrIdHandler
Trivial handler for the
\\xmlName and \\xmlId commands. |
class |
XMLUnparseHandler
Handles the special
xmlUnparsed command and environment. |
| Constructor and Description |
|---|
ModeDelegatingHandler(CommandHandler textModeBuilder,
CommandHandler mathModeBuilder) |
Copyright © 2008–2026 The University of Edinburgh. All rights reserved.