/tex_tmpl_rs

Render a LaTeX & Handlebars template into PDF

Primary LanguageRustMIT LicenseMIT

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);