README ¶ mtex mtex provides a Go implementation of a naive LaTeX-like math expression parser and renderer. Example $> mtex-render -font-size=48 -dpi=100 "$\sum\sqrt{\frac{a+b}{2\pi}}\cos\omega\binom{a+b}{\beta}\prod \alpha x\int\frac{\partial x}{x}\hbar$" Expand ▾ Collapse ▴ Documentation ¶ Overview ¶ Package mtex provides tools to render LaTeX math expressions. Index ¶ func Parse(expr string, fontSize, DPI float64, backend font.Backend) (tex.Node, error) func Render(dst Renderer, expr string, size, dpi float64, fonts *ttf.Fonts) error type Renderer Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Parse ¶ func Parse(expr string, fontSize, DPI float64, backend font.Backend) (tex.Node, error) Parse parses a LaTeX math expression and returns the TeX-like box model and an error if any. func Render ¶ func Render(dst Renderer, expr string, size, dpi float64, fonts *ttf.Fonts) error Types ¶ type Renderer ¶ type Renderer interface { Render(w, h, dpi float64, cnv *drawtex.Canvas) error } Source Files ¶ View all Source files macros.go mtex.go parser.go render.go Directories ¶ Show internal Expand all Path Synopsis symbols Package symbols contains logic about TeX symbols. Package symbols contains logic about TeX symbols. Click to show internal directories. Click to hide internal directories.