TeX Emission Path
TeX Emission Path
The TeX path emits LaTeX-oriented output from Hugo templates and lets TeX do composition. It is separate from the browser PDF compositor, which measures and composes rendered HTML in Chromium.
Why It Exists
TeX already owns high-quality line breaking, page building, floats, kerning, hyphenation, and many typography details. The generator’s TeX path should provide better semantic structure to TeX rather than replacing TeX’s layout engine.
Main Templates
layouts/_default/baseof.tex: TeX document shell and package setup.layouts/_default/list.texandhome.tex: book/list-oriented TeX output.layouts/_default/_markup/*.tex: TeX render hooks for Markdown constructs.layouts/partials/preprocess-tex.tex: TeX-oriented preprocessing.- shortcode
.textemplates: output-specific structured block rendering.
Difference From Browser PDF
Browser PDF is useful for faithful editing, preview, and Chromium-based book export. TeX output is useful when the final compositor should be LaTeX itself.
Both paths should consume the same authored Markdown and semantic Hugo contracts where possible. Avoid adding browser-only authoring concepts that cannot be represented in the TeX path.
Known Direction
The TeX path mostly needs better semantic hints and fewer forced placements, not a custom browser-style layout engine. Browser PDF work should not make TeX a second-class output.
Files To Read
layouts/_default/baseof.texlayouts/_default/list.texlayouts/_default/_markup/render-image.texlayouts/partials/preprocess-tex.texdocs/pdf-generator-gap-analysis.md