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!
Metadata
Release files for latex-jinja 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| latex_jinja-0.3.1.tar.gz | 5.2 kB | With provenance | Details for latex_jinja-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| latex_jinja-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for latex_jinja-0.3.1-py3-none-any.whl |
Total release size: 12.5 kB
Release files / latex_jinja-0.3.1.tar.gz
| Download URL | latex_jinja-0.3.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eac740d22bae891fcb7b93b3fcf36402be31f34a2b143ddaec6c217bc812ffce
|
|
BLAKE2b-256 checksum How to use checksums |
0ea79510b7abf78b78201430522551d10b4ca37299e28e73f4ce58186e935050
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2024.
Transparency logRelease files / latex_jinja-0.3.1-py3-none-any.whl
| Download URL | latex_jinja-0.3.1-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb99aec1e3a2a433ea374341ca12b23dbb3f18a0639a5162b0d97065d53f27d6
|
|
BLAKE2b-256 checksum How to use checksums |
420e3ccc4aaca46f403342d7a10f6578978184899b3bdff4bb0f62f5d1f36e08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2024.
Transparency logSecurity for latex-jinja 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for latex_jinja-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2024.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.