https://github.com/pytask-dev/latex-dependency-scanner
A dependency scanner for LaTeX documents.
https://github.com/pytask-dev/latex-dependency-scanner
latex
Last synced: about 2 months ago
JSON representation
A dependency scanner for LaTeX documents.
- Host: GitHub
- URL: https://github.com/pytask-dev/latex-dependency-scanner
- Owner: pytask-dev
- License: mit
- Created: 2020-11-18T22:19:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-05-05T17:52:10.000Z (2 months ago)
- Last Synced: 2025-05-05T19:00:54.344Z (2 months ago)
- Topics: latex
- Language: Python
- Size: 75.2 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pypi.org/project/latex-dependency-scanner)
[](https://anaconda.org/conda-forge/latex-dependency-scanner)
[](https://anaconda.org/conda-forge/latex-dependency-scanner)
[](https://pypi.org/project/latex-dependency-scanner)
[](https://github.com/pytask-dev/latex-dependency-scanner/actions?query=branch%3Amain)
[](https://app.codecov.io/gh/pytask-dev/latex-dependency-scanner)
[](https://results.pre-commit.ci/latest/github/pytask-dev/latex-dependency-scanner/main)
[](https://github.com/psf/black)# 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](https://pypi.org/project/latex-dependency-scanner) and
[Anaconda.org](https://anaconda.org/conda-forge/latex-dependency-scanner). Install it
with```console
$ 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.```python
import latex_dependency_scanner as ldspaths = 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.```python
import latex_dependency_scanner as ldslds.compile_pdf("document.tex", "document.pdf")
```# Changes
Consult the [release notes](CHANGES.md) to find out about what is new.