| 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.internal |
This package contains the guts of SnuggleTeX; classes here are responsible for the parsing
process, token fixing and DOM/web building.
|
| Modifier and Type | Method and Description |
|---|---|
static WebPageOutputOptions |
WebPageOutputOptionsBuilder.createHTML4Options()
Creates
WebPageOutputOptions used to serve up an HTML 4 page, possibly including
MathML and other XML islands. |
static WebPageOutputOptions |
WebPageOutputOptionsBuilder.createHTML5MathJaxOptions()
Creates
WebPageOutputOptions suitable for creating an HTML 5 web page with
embedded MathML, using MathJax for cross-browser rendering of the MathML. |
static WebPageOutputOptions |
WebPageOutputOptionsBuilder.createHTML5MathJaxOptions(String customMathJaxUrl)
Creates
WebPageOutputOptions suitable for creating an HTML 5 web page with
embedded MathML, using MathJax for cross-browser rendering of the MathML. |
static WebPageOutputOptions |
WebPageOutputOptionsBuilder.createHTML5Options()
Creates
WebPageOutputOptions used to serve up an HTML 5 page, with MathML and any
other XML islands "adopted" into HTML 4 by having their namespace details removed. |
static WebPageOutputOptions |
WebPageOutputOptionsBuilder.createIEMathPlayerSpecificOptions()
Creates
WebPageOutputOptions suitable for deploying solely in Internet
Explorer having the MathPlayer plug-in installed. |
static WebPageOutputOptions |
WebPageOutputOptionsBuilder.createLegacyCrossBrowserOptions()
Creates
WebPageOutputOptions that would previously have been considered
"cross-browser" in that it works on both Mozilla (i.e. |
static WebPageOutputOptions |
WebPageOutputOptionsBuilder.createMozillaSpecificOptions()
Creates
WebPageOutputOptions suitable for deploying solely in a Mozilla-based
browser, such as Firefox, using its native support for MathML. |
static WebPageOutputOptions |
WebPageOutputOptionsBuilder.createUniversalStylesheetOptions(String clientStylesheetUrl)
Create "Cross-browser" XHTML + MathML suitable for deploying to Mozilla and
Internet Explorer + MathPlayer using a client-side XSLT often called the "Universal StyleSheet".
|
static WebPageOutputOptions |
WebPageOutputOptionsBuilder.createUniversalStylesheetOptions(String clientStylesheetUrl,
String rendererPreference) |
static WebPageOutputOptions |
WebPageOutputOptionsTemplates.createWebPageOptions(WebPageOutputOptions.WebPageType webPageType)
Deprecated.
This was deprecated in SnuggleTeX 1.3.0 and will be removed in 1.4.
Use
WebPageOutputOptionsBuilder instead. |
static WebPageOutputOptions |
WebPageOutputOptionsBuilder.createXHTMLMathJaxOptions()
Creates
WebPageOutputOptions suitable for creating an XHTML + MathML web page,
using MathJax for cross-browser rendering of the MathML. |
static WebPageOutputOptions |
WebPageOutputOptionsBuilder.createXHTMLMathJaxOptions(String customMathJaxUrl)
Creates
WebPageOutputOptions suitable for creating an XHTML + MathML web page,
using MathJax for cross-browser rendering of the MathML. |
static WebPageOutputOptions |
WebPageOutputOptionsBuilder.createXHTMLOptions()
Creates
WebPageOutputOptions used to serve up an XHTML page, possibly including
MathML and other XML islands. |
| Modifier and Type | Method and Description |
|---|---|
Document |
SnuggleSession.buildWebPage(WebPageOutputOptions options)
Builds a complete web page based on the currently parsed tokens, returning a DOM
Document Object. |
String |
SnuggleSession.buildWebPageString(WebPageOutputOptions options)
Builds a complete web page based on the currently parsed tokens, returning a String
containing the resulting content.
|
Document |
SnuggleSession.createWebPage(WebPageOutputOptions options)
Deprecated.
|
void |
SnuggleSession.setWebPageContentType(WebPageOutputOptions options,
Object contentTypeSettable)
Calls the
setContentType of the given Object to something appropriate for the
given WebPageOutputOptions. |
boolean |
SnuggleSession.writeWebPage(WebPageOutputOptions options,
Object contentTypeSettable,
OutputStream outputStream)
Builds a complete web page based on the currently parsed tokens, sending the results
to the given
OutputStream, which is closed afterwards. |
boolean |
SnuggleSession.writeWebPage(WebPageOutputOptions options,
Object contentTypeSettable,
OutputStream outputStream,
SnuggleSession.EndOutputAction endOutputAction)
Builds a complete web page based on the currently parsed tokens, sending the results
to the given
OutputStream and performing the given SnuggleSession.EndOutputAction to
it afterwards (i.e. close, flush or do nothing). |
boolean |
SnuggleSession.writeWebPage(WebPageOutputOptions options,
OutputStream outputStream)
Builds a complete web page based on the currently parsed tokens, sending the results
to the given
OutputStream, which is closed afterwards. |
boolean |
SnuggleSession.writeWebPage(WebPageOutputOptions options,
OutputStream outputStream,
SnuggleSession.EndOutputAction endOutputAction)
Builds a complete web page based on the currently parsed tokens, sending the results
to the given
OutputStream and performing the given SnuggleSession.EndOutputAction to
it afterwards (i.e. close, flush or do nothing). |
| Constructor and Description |
|---|
WebPageBuilder(SessionContext sessionContext,
WebPageOutputOptions options) |
Copyright © 2008–2026 The University of Edinburgh. All rights reserved.