Generate dirtrees for LaTeX
Project description
latex-dirtree-gen
Python version of the Perl latex-dirtree-generator by Danny Koppenhagen.
Usage
usage: latex-dirtree-gen [-h] [-d DEPTH] [--color] directory
positional arguments:
directory project root
optional arguments:
-h, --help show this help message and exit
-d DEPTH, --depth DEPTH
how many directories should the program descend
--color draw directories in red
Examples
# use default settings
latex-dirtree-gen .
# set depth to two directores and print directory names in red
latex-dirtree-gen -d 2 --color .
Sample output:
\dirtree{%
.1 .
.2 pdf.
.3 cover.pdf.
.2 text.
.3 01-introduction.tex.
.3 02-content.tex.
.3 99-other.tex.
.3 04-email.tex.
.2 README.md.
.2 main.tex.
.2 main.pdf.
.2 .gitignore.
}
Just a basic dirtree, just as you'd expect.
Contributing
If you find an error or have an improvement idea, file an issue!
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
Close
Hashes for latex_dirtree_gen-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a23cea27515ca5b09ccb9c1b40c164ef094a72d379aa7401d9e6054b5f76e50 |
|
MD5 | 7f02cfc434560446ca6fe2683dce9c69 |
|
BLAKE2b-256 | 204b231d5391d83bede4436ae581cf1fc0cbc70c268978185584c3dffde0401b |