Crates.io | tex_tmpl_rs |
lib.rs | tex_tmpl_rs |
version | 0.2.1 |
source | src |
created_at | 2021-12-08 00:27:11.702065 |
updated_at | 2024-08-09 06:24:19.006267 |
description | Render a LaTeX & Handlebars template into PDF |
homepage | |
repository | https://github.com/adundovi/tex_tmpl_rs/ |
max_upload_size | |
id | 494159 |
size | 8,489 |
A small wrapper library for rendering a LaTeX / Handlebars template into a PDF document using Tectonic.
\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);