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.
generate_pdf() allows to conveniently generate PDFs with Python. The function is mainly used for validating test cases.
import latex_dependency_scanner as lds
lds.generate_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
Hashes for latex-dependency-scanner-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2935aef14ebb3817c73a8e76f8851625e152735efba65830bb8ff3e483d005d3 |
|
MD5 | 4f82c5869a92e3c53016260b536bf115 |
|
BLAKE2b-256 | 67aea77efcad667f629a64433fdff31d7009af7fab3ea85683f7bbde43360435 |
Hashes for latex_dependency_scanner-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa3f6d54da2684fc85746b9ee9d62ccc507993704cefcb70bd86b40d063d194e |
|
MD5 | 82eaffe371e8bbd226ac40f3bebca33d |
|
BLAKE2b-256 | c2cc3a2fd2ba97670721277b50284c90c16d3b4910820522ba3020a963b95556 |