Latex templating with Jinja and PDF conversion.
Project description
Latex Jinja
Latex templating with Jinja and PDF conversion.
Example
Copy the template files:
python -m latex-jinja init
INFO Copied "inputs.json"
INFO Copied "template.tex.j2"
This creates a Jinja latex template and an inputs file:
template.tex.j2
\documentclass[12pt]{article}
\begin{document}
\title{ {{title}} }
\maketitle
...
\end{document}
inputs.json
{
"author": "Author",
"title": "Title"
}
Run the Jinja templating engine and produce a PDF:
python -m latex-jinja build
INFO Loaded inputs from "inputs.json"
INFO Rendered the template "template.tex.j2
INFO Created "article.pdf"
This will populate the template and produces a PDF:
Installing
Download the TeX distribution, this includes pdflatex which is used by this package.
pip install latex-jinja
Documentation
Documentation and more detailed examples are hosted on Github Pages.
Tooling
Dependencies
To install dependencies:
yarn install
pip install .[all]
Tests
To run tests:
thx test
Documentation
To generate the documentation locally:
thx docs
Linters
To run linters:
thx lint
Formatters
To run formatters:
thx format
Contributing
Please read this repository's Code of Conduct which outlines our collaboration standards and the Changelog for details on breaking changes that have been made.
This repository adheres to semantic versioning standards. For more information on semantic versioning visit SemVer.
Bump2version is used to version and tag changes. For example:
bump2version patch
Contributors
- Joel Lefkowitz - Initial work
Remarks
Lots of love to the open source community!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file latex_jinja-0.3.1.tar.gz.
File metadata
- Download URL: latex_jinja-0.3.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eac740d22bae891fcb7b93b3fcf36402be31f34a2b143ddaec6c217bc812ffce
|
|
| MD5 |
2a74a60d794cd0da7f9a04a84544afe2
|
|
| BLAKE2b-256 |
0ea79510b7abf78b78201430522551d10b4ca37299e28e73f4ce58186e935050
|
Provenance
The following attestation bundles were made for latex_jinja-0.3.1.tar.gz:
Publisher:
publish.yaml on JoelLefkowitz/latex-jinja
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
latex_jinja-0.3.1.tar.gz -
Subject digest:
eac740d22bae891fcb7b93b3fcf36402be31f34a2b143ddaec6c217bc812ffce - Sigstore transparency entry: 152458902
- Sigstore integration time:
-
Permalink:
JoelLefkowitz/latex-jinja@6f5ffa58298576fba0aa7e5b0c66752ee121d5e1 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/JoelLefkowitz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@6f5ffa58298576fba0aa7e5b0c66752ee121d5e1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file latex_jinja-0.3.1-py3-none-any.whl.
File metadata
- Download URL: latex_jinja-0.3.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb99aec1e3a2a433ea374341ca12b23dbb3f18a0639a5162b0d97065d53f27d6
|
|
| MD5 |
5dee1bc011d0b72d18ff7e5faaa5c5b9
|
|
| BLAKE2b-256 |
420e3ccc4aaca46f403342d7a10f6578978184899b3bdff4bb0f62f5d1f36e08
|
Provenance
The following attestation bundles were made for latex_jinja-0.3.1-py3-none-any.whl:
Publisher:
publish.yaml on JoelLefkowitz/latex-jinja
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
latex_jinja-0.3.1-py3-none-any.whl -
Subject digest:
bb99aec1e3a2a433ea374341ca12b23dbb3f18a0639a5162b0d97065d53f27d6 - Sigstore transparency entry: 152458903
- Sigstore integration time:
-
Permalink:
JoelLefkowitz/latex-jinja@6f5ffa58298576fba0aa7e5b0c66752ee121d5e1 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/JoelLefkowitz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@6f5ffa58298576fba0aa7e5b0c66752ee121d5e1 -
Trigger Event:
push
-
Statement type: