程序包 net.top_t
类 LaTexConvert
java.lang.Object
net.top_t.LaTexConvert
public class LaTexConvert extends Object
LaTextConvert used to convert LaTex code
-
构造器概要
构造器 构造器 说明 LaTexConvert() -
方法概要
修饰符和类型 方法 说明 static StringlatexToSvgCode(String latex, boolean fontAsShapes, boolean bkgTransparent)convert LaTex code to .svg codestatic voidmain(String[] args)static voidtoPngFile(String latexString, File pngFile, boolean isTransparent)convert LaTex code to .png filestatic voidtoSvgFile(String latexCode, boolean fontAsShapes, boolean bkgTransparent, File svgFile)convert LaTex code to .svg file
-
构造器详细资料
-
LaTexConvert
public LaTexConvert()
-
-
方法详细资料
-
latexToSvgCode
public static String latexToSvgCode(String latex, boolean fontAsShapes, boolean bkgTransparent) throws IOExceptionconvert LaTex code to .svg code- 参数:
latex- LaTex codefontAsShapes- use shapebkgTransparent- 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 IOExceptionconvert LaTex code to .png file- 参数:
latexString-pngFile-isTransparent- set the background color to transparent- 抛出:
IOException
-
main
-