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] [-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 DEPTH how many directories should the program descend
                          (default: 5)
  --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.
}

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.2.0.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

latex_dirtree_gen-0.2.0-py3-none-any.whl (3.0 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