Skip to main content

No project description provided

Project description

latexcor

PyPI version Python Versions Downloads License: MIT

LaTeX Compiler and File Manager - Automate your LaTeX workflow

Features

  • Clean auxiliary LaTeX files
  • Convert .tex files to UTF-8 encoding
  • Recompile LaTeX files automatically
  • Slugify file and directory names
  • Watch directory for changes and auto-compile
  • Support for XeLaTeX and LuaLaTeX engines

Installation

pip install --upgrade latexcor

Usage

$ latexcor [OPTIONS] COMMAND [ARGS]...

Global Options

  • --install-completion: Install completion for the current shell
  • --show-completion: Show completion for the current shell
  • --help: Show help message and exit

Commands

Clean (clean)

Clean auxiliary LaTeX files in a directory.

$ latexcor clean [OPTIONS]

Options:
  -p, --path DIRECTORY  Path to clean (defaults to current directory)
  --help               Show this message and exit

Convert to UTF-8 (convert-utf8)

Convert .tex files to UTF-8 encoding.

$ latexcor convert-utf8 [OPTIONS]

Options:
  -p, --path DIRECTORY  Path to process (defaults to current directory)
  --help               Show this message and exit

Recompile (recompile)

Recompile all LaTeX files in a directory.

$ latexcor recompile [OPTIONS]

Options:
  -e, --engine [xelatex|lualatex]  LaTeX engine to use [default: xelatex]
  -p, --path DIRECTORY            Path to process (defaults to current directory)
  -c, --confirm                   Confirm before recompiling each file
  --help                          Show this message and exit

Slugify (slugify)

Rename files and directories using slug format.

$ latexcor slugify [OPTIONS]

Options:
  -p, --path DIRECTORY           Path to process (defaults to current directory)
  -c, --confirm / -C, --no-confirm  Confirm before renaming [default: confirm]
  -v, --preview / -V, --no-preview  Show preview of changes [default: preview]
  --help                         Show this message and exit

Version (version)

Display the current version of latexcor.

$ latexcor version [OPTIONS]

Options:
  --help  Show this message and exit

Watch (watch)

Watch a directory and automatically compile LaTeX files when changes are detected.

$ latexcor watch [OPTIONS]

Options:
  -e, --engine [xelatex|lualatex]  LaTeX engine to use [default: xelatex]
  -p, --path DIRECTORY            Path to watch (defaults to current directory)
  --help                          Show this message and exit

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

latexcor-0.2.3.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

latexcor-0.2.3-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file latexcor-0.2.3.tar.gz.

File metadata

  • Download URL: latexcor-0.2.3.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Darwin/24.1.0

File hashes

Hashes for latexcor-0.2.3.tar.gz
Algorithm Hash digest
SHA256 6ca17b522dbbbf01877beef79b91ce313855e2a87c93c67ff9c0fe3892853b93
MD5 d9eb08ae4ca36873d749db7163189328
BLAKE2b-256 569008ecdac71a00791f953665a66489bc98ac465d69a378381902fa57f88157

See more details on using hashes here.

File details

Details for the file latexcor-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: latexcor-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Darwin/24.1.0

File hashes

Hashes for latexcor-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 58cd8be716398acb640a24fb3fe13706b114856d7a0e98e96bfbe7f8d3d4d30a
MD5 5c98cc1eb089be12039a4fc9f4a3d26d
BLAKE2b-256 e85846ae584380cb2f95fbb9f70d377e41421d02b09b4abff2723be8b6c1740d

See more details on using hashes here.

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