htex

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: BSD-3-Clause Imports: 7 Imported by: 1

Documentation

Index

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 Handler

type Handler interface {
	CompileLatex(fname string) error
}

Handler is the interface that handles the generation of PDFs from TeX, usually via pdflatex.

func NewHandler

func NewHandler(cmd string) Handler

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

Jump to

Keyboard shortcuts

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