Skip to main content

Scan LaTeX documents for their dependencies.

Project description

PyPI - Python Version image image PyPI - License image image pre-commit.ci status image

Features

latex-dependency-scanner is a package to detect all required files to compile a LaTeX document.

Installation

latex-dependency-scanner is available on PyPI and Anaconda.org. Install it with

$ pip install latex-dependency-scanner

# or

$ conda install -c conda-forge latex-dependency-scanner

Usage

The package contains two functions.

Scan

scan() accepts a path-like object or a list of path-like objects which point to .tex documents. The return is a collection of paths related to this document.

import latex_dependency_scanner as lds


paths = lds.scan("document.tex")

For dependencies which cannot be found and which have no file extension (like graphics in \includegraphics), all possible candidates are returned.

PDF

compile_pdf() allows to conveniently generate PDFs with Python. The function is mainly used for validating test cases.

import latex_dependency_scanner as lds


lds.compile_pdf("document.tex", "document.pdf")

Changes

Consult the release notes to find out about what is new.

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_dependency_scanner-0.1.3.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

latex_dependency_scanner-0.1.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file latex_dependency_scanner-0.1.3.tar.gz.

File metadata

File hashes

Hashes for latex_dependency_scanner-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4f75f3780a2a83632c0119e4b5bb8e0b86018ebc376f500e3d34fe57cc6ab039
MD5 2bd9890282acd3d6c5eb352a54b8b953
BLAKE2b-256 bb0c638957d81421c3462d409d312e110b4e86719e083135c4f8dbfd6c405827

See more details on using hashes here.

File details

Details for the file latex_dependency_scanner-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for latex_dependency_scanner-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5c1e3ecbf2bf5c3b66ba418bf8bdae210c98e20be36bbf0981659f5cf0842990
MD5 161b81d3c92490f1939d8ba714c6d88f
BLAKE2b-256 5f029cc6bf6426d0d692b9425f5448e4c064becab1cc82ebff962166ca4b0f7a

See more details on using hashes here.

Supported by

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