Documentation
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultHandler generates PDFs via the pdflatex executable. // A LaTeX installation is required, as well as the pdflatex command. DefaultHandler = NewHandler("pdflatex") )
Functions ¶
This section is empty.
Types ¶
type GoHandler ¶
type GoHandler struct {
// contains filtered or unexported fields
}
GoHandler is a Latex handler that compiles Latex document in background goroutines.
func NewGoHandler ¶
NewGoHandler creates a new Latex handler that compiles Latex document in the background with the cmd executable.
The handler allows for up to n concurrent compilations. If n<=0, the concurrency will be set to the number of cores+1.
func (*GoHandler) CompileLatex ¶
CompileLatex compiles the provided .tex document.
type Handler ¶
type Handler interface { // CompileLatex compiles the provided .tex document. CompileLatex(fname string) error }
Handler is the interface that handles the generation of PDFs from TeX, usually via pdflatex.
func NewHandler ¶
NewHandler returns a Handler compiling .tex documents with the provided cmd executable.
type NoopHandler ¶
type NoopHandler struct{}
NoopLatexHandler is a no-op LaTeX compiler.
func (NoopHandler) CompileLatex ¶
func (NoopHandler) CompileLatex(fname string) error