Skip to main content

Latex Jinja

Latex templating with Jinja and PDF conversion.

Review Version Downloads Quality Coverage

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:

Example

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

Remarks

Lots of love to the open source community!

Be kind to your mind Love each other It's ok to have a bad day

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)

Source distribution for latex-jinja 0.3.1
File Size Uploaded
latex_jinja-0.3.1.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for latex-jinja 0.3.1
File Interpreter ABI Platform
latex_jinja-0.3.1-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page