Class MathjaxContentTransformer

    • Constructor Detail

      • MathjaxContentTransformer

        public MathjaxContentTransformer()
    • Method Detail

      • texToRawSvg

        public static java.lang.String texToRawSvg​(java.lang.String tex)
                                            throws java.io.IOException
        Converts TeX math to SVG as String.
        Parameters:
        tex - The tex
        Returns:
        The SVG as string
        Throws:
        java.io.IOException - If converison fails.
        See Also:
        tex2svg(String)
      • tex2svg

        public static java.nio.file.Path tex2svg​(java.lang.String tex)
                                          throws java.io.IOException
        Converts the TeX math to SVG file.
        Parameters:
        tex - The mathematics.
        Returns:
        The path of the generated SVG.
        Throws:
        java.io.IOException - If the conversion goes wrong.