Skip to main content

Latex templating with Jinja and PDF conversion.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

latex_jinja-0.3.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

latex_jinja-0.3.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

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

Hashes for latex_jinja-0.3.1.tar.gz
Algorithm Hash digest
SHA256 eac740d22bae891fcb7b93b3fcf36402be31f34a2b143ddaec6c217bc812ffce
MD5 2a74a60d794cd0da7f9a04a84544afe2
BLAKE2b-256 0ea79510b7abf78b78201430522551d10b4ca37299e28e73f4ce58186e935050

See more details on using hashes here.

Provenance

The following attestation bundles were made for latex_jinja-0.3.1.tar.gz:

Publisher: publish.yaml on JoelLefkowitz/latex-jinja

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for latex_jinja-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bb99aec1e3a2a433ea374341ca12b23dbb3f18a0639a5162b0d97065d53f27d6
MD5 5dee1bc011d0b72d18ff7e5faaa5c5b9
BLAKE2b-256 420e3ccc4aaca46f403342d7a10f6578978184899b3bdff4bb0f62f5d1f36e08

See more details on using hashes here.

Provenance

The following attestation bundles were made for latex_jinja-0.3.1-py3-none-any.whl:

Publisher: publish.yaml on JoelLefkowitz/latex-jinja

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page