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] [-v] [-d DEPTH] [--color] [--dots] directory
positional arguments:
directory project root
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-d/--depth DEPTH how many directories should the program descend
(default: 5)
-i/--ignore IGNORE comma separated list of directories and files to be ignored
(default: None)
--color draw directories in red
(default: False)
--dots add dots inside of folders that have not been visited
(default: False)
Examples
Default settings
$ latex-dirtree-gen .
\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.
}
Depth of one and red directory names
$ latex-dirtree-gen -d 1 --color .
\dirtree{%
.1 .
.2 pdf.
.3 cover.pdf.
.2 text.
.2 README.md.
.2 main.tex.
.2 main.pdf.
.2 .gitignore.
}
Depth of one and visible unvisited directories
$ latex-dirtree-gen -d 1 --dots .
\dirtree{%
.1 .
.2 pdf.
.3 cover.pdf.
.2 text.
.3 \dots.
.2 README.md.
.2 main.tex.
.2 main.pdf.
.2 .gitignore.
}
Ignore .git
and __pycache__
directories
$ latex-dirtree-gen --ignore .git,__pycache__
\dirtree{%
.1 .
.2 script.py.
.2 README.md.
}
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.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce5dcd65008b701cd83de6794cdc38a339b5a4267855eda54d4c628d6dc39bf3 |
|
MD5 | d1e37f36d56d15c2c0ecd0ffe55599e1 |
|
BLAKE2b-256 | b874a1e2c2896904b918527921b887f3f6307cf823c4f1404dab436fdfebe7a6 |