latex

package
v0.0.0-...-ef67f48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Template = template.Must(template.New("latex").Parse(`
\documentclass{article}
\begin{document}
\[{{.}}\]
\pagenumbering{gobble}
\end{document}
`))

Functions

func GenerateLatexImage

func GenerateLatexImage(latex string) (image.Image, error)

Types

type Request

type Request struct {
	Code    string `json:"code"`
	Format  string `json:"format"`
	Quality int    `json:"quality,omitempty"`
	Density int    `json:"density,omitempty"`
}

type Response

type Response struct {
	Status      Status `json:"status"`
	Log         string `json:"log"`
	Filename    string `json:"filename"`
	Description string `json:"description"`
}

type Status

type Status string
const (
	Success Status = "success"
	Error   Status = "error"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL