WebPageOutputOptions instances
for various common scenarios.
This replaces WebPageOutputOptionsTemplates, which is now deprecated and will be removed
in SnuggleTeX 1.4
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static final WebPageOutputOptions | createHTML4Options()
Creates |
| public static final WebPageOutputOptions | createHTML5MathJaxOptions()
Creates |
| public static final WebPageOutputOptions | createHTML5MathJaxOptions(String
custom MathJax URL, which can be used to point to a local
installation of MathJax or pass custom configuration details to MathJax. customMathJaxUrl)Creates |
| public static final WebPageOutputOptions | createHTML5Options()
Creates |
| public static final WebPageOutputOptions | createIEMathPlayerSpecificOptions()
Creates |
| public static final WebPageOutputOptions | createLegacyCrossBrowserOptions()
Creates |
| public static final WebPageOutputOptions | createMozillaSpecificOptions()
Creates |
| public static final WebPageOutputOptions | 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". |
| public static final WebPageOutputOptions | |
| public static final WebPageOutputOptions | createXHTMLMathJaxOptions()
Creates |
| public static final WebPageOutputOptions | createXHTMLMathJaxOptions(String
custom MathJax URL, which can be used to point to a local
installation of MathJax or pass custom configuration details to MathJax. customMathJaxUrl)Creates |
| public static final WebPageOutputOptions | createXHTMLOptions()
Creates |
| WebPageOutputOptionsBuilder | back to summary |
|---|---|
| public WebPageOutputOptionsBuilder() | |
| createHTML4Options | back to summary |
|---|---|
| public static final WebPageOutputOptions createHTML4Options() Creates Technical notesThe JEuclid process hooks in here. | |
| createHTML5MathJaxOptions | back to summary |
|---|---|
| public static final WebPageOutputOptions createHTML5MathJaxOptions() Creates This is one of the most effective web page outputs.
| |
| createHTML5MathJaxOptions | back to summary |
|---|---|
| public static final WebPageOutputOptions createHTML5MathJaxOptions(String customMathJaxUrl) Creates This is one of the most effective web page outputs.
| |
| createHTML5Options | back to summary |
|---|---|
| public static final WebPageOutputOptions createHTML5Options() Creates These islands would normally need further processing before hitting a browser, so this output is probably not useful on its own. Technical notesThe JEuclid process hooks in here. | |
| createIEMathPlayerSpecificOptions | back to summary |
|---|---|
| public static final WebPageOutputOptions createIEMathPlayerSpecificOptions() Creates This is a niche output kept around for legacy purposes. You should look at some of the newer HTML5 + MathJax-related options for better compatibility and easier deployment. Technical notesIntended to be served as text/html, containing prefixed MathML islands.This only works on IE clients with the MathPlayer plug-in preinstalled, but is a good option if that's your target audience. This will display wrongly on IE6/7 if MathPlayer is not installed. | |
| createLegacyCrossBrowserOptions | back to summary |
|---|---|
| public static final WebPageOutputOptions createLegacyCrossBrowserOptions() Creates This is a niche output kept around for legacy purposes. You should look at some of the newer HTML5 + MathJax-related options for better compatibility and easier deployment. Technical notesOutput has XML declaration and DOCTYPE declaration consisting of the Public identifier defined inW3CConstants#XHTML_11_MATHML_20_PUBLIC_IDENTIFIER
and System identifier defined in W3CConstants#XHTML_11_MATHML_20_SYSTEM_IDENTIFIER.
The charset is declared only in the meta element in order
to appease MathPlayer.
This is intended to be served as application/xhtml+xml Works on both Mozilla and IE6/7 (provided MathPlayer has been installed). This will display wrongly on IE6/7 if MathPlayer is not installed. The main issue with this is that IE will want to download the relevant DTD, which hinders performance slightly. | |
| createMozillaSpecificOptions | back to summary |
|---|---|
| public static final WebPageOutputOptions createMozillaSpecificOptions() Creates This is a niche output kept around for legacy purposes. You should look at some of the newer HTML5 + MathJax-related options for better compatibility and easier deployment. Technical notesThis generates XHTML + MathML; no XML declaration; no DOCTYPE.This is intended to be served as application/xhtml+xml with encoding declared via HTTP header and meta element. This will display as an XML tree on IE, which is not useful. | |
| createUniversalStylesheetOptions | back to summary |
|---|---|
| public static final WebPageOutputOptions 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". See XSLT Stylesheets for MathML for more details. You must specify a URL for the client-side XSLT stylesheet that will be referenced in the resulting web page so that it is available to browsers. You will need to take into account security restrictions, such as "same domain", so will probably need to make sure you put the XSLT somewhere that is "local" to where you are serving up your pages. Note that the SnuggleTeX source distribution contains a slightly fixed version of the USS that works in versions of IE newer than 6, but hasn't been extensively tested. This is a niche output kept around for legacy purposes. You should look at some of the newer HTML5 + MathJax-related options for better compatibility and easier deployment. Technical notesThe resulting page is created with an XML declaration but no DOCTYPE declaration.The pref:renderer attribute on the html element will be set to mathplayer-dl. | |
| createUniversalStylesheetOptions | back to summary |
|---|---|
| public static final WebPageOutputOptions createUniversalStylesheetOptions(String clientStylesheetUrl, String rendererPreference) | |
| createXHTMLMathJaxOptions | back to summary |
|---|---|
| public static final WebPageOutputOptions createXHTMLMathJaxOptions() Creates This is one of the most effective web page outputs.
| |
| createXHTMLMathJaxOptions | back to summary |
|---|---|
| public static final WebPageOutputOptions createXHTMLMathJaxOptions(String customMathJaxUrl) Creates This is one of the most effective web page outputs.
| |
| createXHTMLOptions | back to summary |
|---|---|
| public static final WebPageOutputOptions createXHTMLOptions() Creates Technical notesThe JEuclid process hooks in here. | |