/** * Creates {@link WebPageOutputOptions} suitable for creating an HTML 5 web page with * embedded MathML, using MathJax for cross-browser rendering of the MathML. * <p> * This is one of the most effective web page outputs. * * @see #createXHTMLMathJaxOptions() */ public static final WebPageOutputOptions createHTML5MathJaxOptions() { WebPageOutputOptions options = createHTML5Options(); options.setMathJax(true); return options; }
/** * Creates {@link WebPageOutputOptions} suitable for creating an XHTML + MathML web page, * using MathJax for cross-browser rendering of the MathML. * <p> * This is one of the most effective web page outputs. * * @see #createHTML5MathJaxOptions() */ public static final WebPageOutputOptions createXHTMLMathJaxOptions() { WebPageOutputOptions options = new WebPageOutputOptions(); options.setSerializationMethod(SerializationMethod.XHTML); options.setIncludingXMLDeclaration(false); options.setMathJax(true); return options; }
/** * Creates {@link WebPageOutputOptions} suitable for deploying solely in a Mozilla-based * browser, such as Firefox, using its native support for MathML. * <p> * 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. * * <h3>Technical notes</h3> * * This generates XHTML + MathML; no XML declaration; no DOCTYPE. * <p> * This is intended to be served as <tt>application/xhtml+xml</tt> with * encoding declared via HTTP header and <tt>meta</tt> element. * <p> * This will display as an XML tree on IE, which is not useful. */ public static final WebPageOutputOptions createMozillaSpecificOptions() { WebPageOutputOptions options = new WebPageOutputOptions(); options.setMathJax(false); options.setSerializationMethod(SerializationMethod.XHTML); options.setIncludingXMLDeclaration(false); options.setContentType("application/xhtml+xml"); return options; }
options.setMathJax(false); options.setSerializationMethod(SerializationMethod.XHTML); options.setIncludingXMLDeclaration(true);