Scan LaTeX documents for their dependencies.
Project description
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file latex_dependency_scanner-0.1.3.tar.gz.
File metadata
- Download URL: latex_dependency_scanner-0.1.3.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f75f3780a2a83632c0119e4b5bb8e0b86018ebc376f500e3d34fe57cc6ab039
|
|
| MD5 |
2bd9890282acd3d6c5eb352a54b8b953
|
|
| BLAKE2b-256 |
bb0c638957d81421c3462d409d312e110b4e86719e083135c4f8dbfd6c405827
|
File details
Details for the file latex_dependency_scanner-0.1.3-py3-none-any.whl.
File metadata
- Download URL: latex_dependency_scanner-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c1e3ecbf2bf5c3b66ba418bf8bdae210c98e20be36bbf0981659f5cf0842990
|
|
| MD5 |
161b81d3c92490f1939d8ba714c6d88f
|
|
| BLAKE2b-256 |
5f029cc6bf6426d0d692b9425f5448e4c064becab1cc82ebff962166ca4b0f7a
|