在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):go-latex/latex开源软件地址(OpenSource Url):https://github.com/go-latex/latex开源编程语言(OpenSource Language):Go 100.0%开源软件介绍(OpenSource Introduction):latex
For this, please take look at: Eventually, Installation
DocumentationDocumentation is served by godoc, here: The main use case for Examplepackage main
import (
"os"
"github.com/go-latex/latex/drawtex/drawimg"
"github.com/go-latex/latex/mtex"
)
func main() {
f, err := os.Create("output.png")
if err != nil {
panic(err)
}
defer f.Close()
dst := drawimg.NewRenderer(f)
err = mtex.Render(dst, `$f(x) = \frac{\sqrt{x +20}}{2\pi} +\hbar \sum y\partial y$`, 12, 72, nil)
if err != nil {
panic(err)
}
err = f.Close()
if err != nil {
panic(err)
}
} LICENSEBSD-3. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论