#pdf #template #latex

tex_tmpl_rs

Render a LaTeX & Handlebars template into PDF

4 releases

0.2.1 Aug 9, 2024
0.1.2 Jan 7, 2023
0.1.1 Dec 8, 2021
0.1.0 Dec 8, 2021

#204 in Template engine

33 downloads per month

MIT license

7KB
122 lines

tex_tmpl_rs

A small wrapper library for rendering a LaTeX / Handlebars template into a PDF document using Tectonic.

Example

\documentclass{article}
\begin{document}
    Hello, {{foo}}!
\end{document}
let mut data = HashMap::new();
data.insert("foo", "boo");

let t = TemplateRecipe {
    template: &tex_path,
    output: &pdf_path,
    data: &data,
    helpers: None,
};

let _ = render_pdf(&t);

Dependencies

~37–69MB
~1M SLoC