Latex
Latex component is used to display LaTeX content.
API
func Latex(c *tgframe.Container, text string, conf ...*LatexConf)
cis the container to add the LaTeX component to.textis the LaTeX content to display.confis an optional configuration, at most one.
// LatexConf is the configuration for the Latex component.
type LatexConf struct {
tgframe.Base // ID
}
Example
tgcomp.Latex(p.Main, "E = mc^2")