Documentation ¶
Overview ¶
Package kpath provides tools to locate TeX related files.
It loosely mimicks Kpathsea, as described in:
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context holds state to efficiently search for files in a TDS (TeX Directory Structure), as described in:
func New ¶ added in v0.3.0
func New() Context
New returns a minimal kpath context initialized with the content of a minimal TeX Directory Structure.
func NewFromFS ¶ added in v0.3.0
NewFromFS creates a kpath search context from the provided filesystem.
NewFromFS checks first whether an ls-R database exists at the root of the provided filesystem, and otherwise walks the whole fs.
func (Context) Find ¶
Find returns the full path to the named file if it could be found within the TeXMF distribution system. Find returns an error if no file or more than one file were found.