tex_tmpl_rs

Crates.iotex_tmpl_rs
lib.rstex_tmpl_rs
version0.2.1
sourcesrc
created_at2021-12-08 00:27:11.702065
updated_at2024-08-09 06:24:19.006267
descriptionRender a LaTeX & Handlebars template into PDF
homepage
repositoryhttps://github.com/adundovi/tex_tmpl_rs/
max_upload_size
id494159
size8,489
Andrej Dundovic (adundovi)

documentation

README

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);
Commit count: 6

cargo fmt