Skip to main content

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

latex-dirtree-gen-0.1.0.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

latex_dirtree_gen-0.1.0-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page