| Package | Description |
|---|---|
| uk.ac.ed.ph.snuggletex.dombuilding |
Contains handler classes for building DOM tree branches for various commands and environments.
|
| uk.ac.ed.ph.snuggletex.internal |
This package contains the guts of SnuggleTeX; classes here are responsible for the parsing
process, token fixing and DOM/web building.
|
| uk.ac.ed.ph.snuggletex.tokens |
Internal package defining the various types of LaTeX tokens produced by the parsing process.
|
| Modifier and Type | Method and Description |
|---|---|
String |
HSpaceHandler.convertLaTeXSize(DOMBuilder builder,
Element parentElement,
Token sizeToken) |
| Modifier and Type | Method and Description |
|---|---|
Element |
DOMBuilder.appendOrThrowError(Element parentElement,
Token token,
ErrorCode errorCode,
Object... arguments) |
void |
DOMBuilder.appendSimpleMathElement(Element parentElement,
Token token) |
void |
DOMBuilder.buildMathElement(Element parentElement,
Token token,
ArgumentContainerToken mathContentToken,
boolean isDisplayMath)
Builds a MathML
math element for the given Token token, using contentToken
to provide the content, descending into child Nodes as normal. |
void |
DOMBuilder.buildMathElement(Element parentElement,
Token token,
ArgumentContainerToken mathContentToken,
boolean isDisplayMath,
DOMBuilder.MathContentBuilderCallback mathContentBuilderCallback)
Builds a MathML
math element for the given Token token, using contentToken
to provide the content, using the given DOMBuilder.MathContentBuilderCallback to
supply the content. |
URI |
DOMBuilder.resolveLink(Element parentElement,
Token token,
String rawHref) |
URI |
DOMBuilder.validateURI(Element parentElement,
Token token,
String rawURI)
Checks the given raw URI to ensure that it is valid, returning a
URI Object if
valid or null if not. |
String |
DOMBuilder.validateXMLId(Element parentElement,
Token nameToken,
String rawName)
Checks the given XML Name as in
DOMBuilder.validateXMLName(Element, Token, String), additionally
checking that an ID of the same name is not already in use in the output DOM. |
String |
DOMBuilder.validateXMLName(Element parentElement,
Token nameToken,
String rawName)
Checks the given raw XML Name to ensure that it confirms to the correct syntax, returning
it unchanged if successful.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArgumentContainerToken
This token is used as a container for the arguments specified for a particular
Command or Environment. |
class |
BraceContainerToken
Represents a literal braced section in the original LaTeX document, i.e. something like
{ ... }. |
class |
CommandToken
This token represents a LaTeX
BuiltinCommand. |
class |
EnvironmentToken
Represents a
BuiltinEnvironment. |
class |
ErrorToken
Special token encapsulating a client error in parsing.
|
class |
FlowToken
Base class for
Tokens which represent the main "flow" of content, rather than things
like command arguments. |
class |
MathCharacterToken
Represents a character in math mode.
|
class |
RootToken
This token represents the root of a parsed
SnuggleInput |
class |
SimpleToken
Represents a "simple" LaTeX token.
|
| Modifier and Type | Method and Description |
|---|---|
static ArgumentContainerToken |
ArgumentContainerToken.createEmptyContainer(Token parentToken,
LaTeXMode latexMode,
ComputedStyle computedStyle) |
static ArgumentContainerToken |
ArgumentContainerToken.createFromContiguousTokens(Token parentToken,
LaTeXMode latexMode,
List<? extends FlowToken> contents,
ComputedStyle computedStyle) |
static ArgumentContainerToken |
ArgumentContainerToken.createFromContiguousTokens(Token parentToken,
LaTeXMode latexMode,
List<? extends FlowToken> contents,
int startIndex,
int endIndex,
ComputedStyle computedStyle) |
Copyright © 2008–2026 The University of Edinburgh. All rights reserved.