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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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