Skip to main content

Generate TODO from LaTeX files

Project description

latex-todo-gen

Extract all TODOs and FIXMEs from LaTeX project.

Usage

-h, --help                Show this help message and exit
--outfile OUTFILE
-o OUTFILE                Output file.
                          Supported extensions: md, tex, pdf.
                          Default: TODO.md
--directories DIRECTORIES
-d DIRECTORIES            Comma separated list of directories.
                          Default: text
--files FILES
-f FILES                  Comma separated list of files.
                          Defaults to none.
--keywords KEYWORDS
-k KEYWORDS               Comma separated list of keywords.
                          Default: FIXME,TODO,NOTE
--scheme SCHEME           Color scheme for output PDF file.
                          Options: light, plain, mariana, marianne, dark.
                          Default: light
--description DESCRIPTION Set output file description.
                          Default: Statistics for this LaTeX project.
--footer FOOTER           Set file footer.
                          Defaults to link to this project.

Multiple output files supported:

  • Markdown (.md). This is a default.
  • LaTeX (.tex).
  • PDF (.pdf). Generates .tex file and converts it using the latex package.

Several color schemes for output PDF are supported (see Gitlab docs page).

Examples

# Use default settings
latex-todo-gen

# Set custom keywords
latex-todo-gen -k "REVIEW,FIXME,TODO,NOTE"

# Set description and output file as PDF
latex-todo-gen --description "This file is generated on every commit." -o "WIP.pdf"

# Set source directories and one main file
latex-todo-gen -d "src,settings" -f "main.tex"

# Set color scheme for output PDF
latex-todo-gen -o "TODO.pdf" --scheme marianne

Limitations

LaTeX sometimes fails when it tries to render a UTF-8 character it doesn't know. The \lstset in the template tries to encode most of diacritics for european alphabets, as well as some of the common characters. If you encounter an error, let me know via issues.

Contributing

PRs are welcome. I'm currently looking for:

  • pre-commit: I haven't been able to make it work, it seemed not to be able to locate the python script.
  • Load setup from config file. Maybe .todo-gen.yaml?
  • Universal TODO generator. This has proven to be much more universal program: you can just swap latex' % with python's # and you've got python-todo-gen. I'm probably migrate it sometime, but for now, it's just latex.
  • Multiple lines below the keyword: # TODO3 would append three lines instead of one

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-todo-gen-0.5.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

latex_todo_gen-0.5.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file latex-todo-gen-0.5.1.tar.gz.

File metadata

  • Download URL: latex-todo-gen-0.5.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

File hashes

Hashes for latex-todo-gen-0.5.1.tar.gz
Algorithm Hash digest
SHA256 504a6f2ae6955ed19b1af649cb4de08dbbec36aa9d08589c0669db9ae5e8a882
MD5 34af3e9c9f87ce4209ffff4ef7602ca3
BLAKE2b-256 bb20a4b60cc2fb96b7eed503f7c42f81a9c608e8a1a30378e937a052eb4ef9e4

See more details on using hashes here.

File details

Details for the file latex_todo_gen-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: latex_todo_gen-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

File hashes

Hashes for latex_todo_gen-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 10407cdd84b68e028ef733808b323ccabb3604cde78802bc9867ad13705fb899
MD5 9e380c3b5b81b9f78320abed8270d5e9
BLAKE2b-256 73f850ec2450c1518b765bf000bbfbb56b830e8fa444c002901bd45c046b9ced

See more details on using hashes here.

Supported by

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