class

Pomtex::Seed::Resolver

Inherits Reference < Object

Maps requested files (*.sty, *.cls, *.tfm, ...) to the arils that provide them.

Constructors

for_release(year : Int32 | Nil, offline : Bool = false, refresh : Bool = false) : Resolver

Opens the index whose arils match a TeX kernel from TeX Live year: current tlnet, or the frozen archive of year once tlnet has moved on.

Source
new(index : Index | Nil)
Source
open(offline : Bool = false, refresh : Bool = false) : Resolver

Loads the cached index, (re)building it from tlnet when missing or stale.

Source

Class methods

alternates(file : String) : Array(String)

Other names that satisfy a request: \usetikzlibrary{x} falls back to the pgf-level library when there is no tikz-level one (e.g. arrows.meta).

Source
fresh?
Source
historic?(year : Int32 | Nil) : Bool

Whether arils for a TeX Live year kernel come from its frozen archive. Answers from cached indexes only; never touches the network.

Source
rebuild_index
Source

Instance methods

available?
Source
closure(roots : Enumerable(String), & : Array(Package) -> Array(Package)) : Array(Package)

Expands roots with their dependencies, keeping only packages for which missing reports true. missing receives a whole layer at a time so the caller can probe kpathsea in one batch.

Source
font_candidates(name : String) : Array(String)

Every font file whose name starts with name, upright regular faces first ("Inconsolata" → Inconsolatazi4-Regular.otf, InconsolataN-Regular.otf, ...).

Source
font_file(name : String) : String | Nil

Finds an OpenType/TrueType file for a font name such as "TeX Gyre Termes".

Source
index
Source
package(name : String) : Package | Nil
Source
package_for(file : String) : String | Nil

The package that provides file, trying file.tex for extension-less inputs.

Source