Documentation
¶
Overview ¶
Package latex deterministically projects a renderer-neutral composition manifest into a main LaTeX document and content-addressed fragment files. It performs no filesystem or process effects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AssetBinding ¶
type AssetBinding struct {
ComponentID string `json:"componentId"`
AssetID string `json:"assetId"`
SourceURI string `json:"sourceUri"`
MediaType string `json:"mediaType,omitempty"`
Digest string `json:"digest,omitempty"`
Path string `json:"path"`
}
AssetBinding tells an effectful collector where an inert asset must land.
type Projection ¶
type Projection struct {
Main string `json:"main"`
Files []File `json:"files"`
Assets []AssetBinding `json:"assets"`
SourceMap map[string]SourceLocation `json:"sourceMap"`
Hash string `json:"hash"`
}
Projection is a complete, deterministic input to an effectful compiler.
func Project ¶
func Project(manifest composition.RenderManifest, options Options) (Projection, error)
Project maps domain composition modes to safe LaTeX source boundaries: flow -> input, top-level section -> include, artifact -> embedded asset.
type SourceLocation ¶
SourceLocation maps editor identity to generated LaTeX.