程序包 net.top_t

类 LaTexConvert

java.lang.Object
net.top_t.LaTexConvert

public class LaTexConvert
extends Object
LaTextConvert used to convert LaTex code
  • 构造器详细资料

    • LaTexConvert

      public LaTexConvert()
  • 方法详细资料

    • latexToSvgCode

      public static String latexToSvgCode​(String latex, boolean fontAsShapes, boolean bkgTransparent) throws IOException
      convert LaTex code to .svg code
      参数:
      latex - LaTex code
      fontAsShapes - use shape
      bkgTransparent - if set background color to transparent
      返回:
      抛出:
      IOException
    • toSvgFile

      public static void toSvgFile​(String latexCode, boolean fontAsShapes, boolean bkgTransparent, File svgFile)
      convert LaTex code to .svg file
      参数:
      latexCode -
      fontAsShapes -
      bkgTransparent -
      svgFile -
    • toPngFile

      public static void toPngFile​(String latexString, File pngFile, boolean isTransparent) throws IOException
      convert LaTex code to .png file
      参数:
      latexString -
      pngFile -
      isTransparent - set the background color to transparent
      抛出:
      IOException
    • main

      public static void main​(String[] args)