Skip to main content

A LaTex linter written in Python

Project description

texsquisite

Repo Status PyPI Version Status Test Status Readthedocs Status License

texsquisite is an linter for LaTeX that auto-formats code and fixes common typesetting mistakes.

Install

pip install texsquisite

How to Use

Run texsquisite in the command-line in your working directory:

texsquisite check

It will automatically detect all *.tex files and print errors. For example, it may output something like:

Fixable errors in tests/file1.tex:
  line 3: [S001] - line should not end with trailing whitespace
    hello world              % trailing whitespace  
  line 11: [S004] - \footnote should not have space before it
    hello \footnote{world}   % whitespace before footnote

Fixable errors in tests/dir2/file2.tex:
  line 3: [S001] - line should not end with trailing whitespace
    hello world              % trailing whitespace  

texsquisite: 2 files scanned.
3 error(s) found, 3 of which are fixable with '--fix'.

To auto-fix fixable errors, do:

texsquisite check --fix

Include a texsquisite.toml file in your working directory to add configurable options.

For more info, check out the docs.

Contribute

texsquisite is open-source and just getting started! Fork the code and submit a PR to add your own features.

  • publish on PyPI
  • use a LaTeX lexer/parser to catch more types of errors
  • spot and fix common text/math-mode mix-ups
  • ambitious: check units in equations
  • add more rules (this will never end)

For more info, check out the Contributing Guide

License

This work is distributed under the MIT License. See LICENSE for more information.

Support

:star: Star this repository, share with friends/colleagues, or donate to become a supporter of the project.

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

texsquisite-0.0.2.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

texsquisite-0.0.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file texsquisite-0.0.2.tar.gz.

File metadata

  • Download URL: texsquisite-0.0.2.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for texsquisite-0.0.2.tar.gz
Algorithm Hash digest
SHA256 55acd711b2b7333ac3ab6a08497b23ecfd8f66493bd949d3bf6cd33d846c91ab
MD5 26b8f07c476fa8b6cae570596e587232
BLAKE2b-256 e444d561f23b146adc24b1364965b9fda2c784b907fca2495b0c6a5f984a6935

See more details on using hashes here.

File details

Details for the file texsquisite-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: texsquisite-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for texsquisite-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3dc0df6b47e75c433ebf33a0347e6cb1c6c0c2c426408c18a5ed126a874ff8a9
MD5 04b3b251b98e7c610abf90666bcb44e9
BLAKE2b-256 e653c4edb130d00f2fbd5d8ea5cfe98a3220cb2ff1c27db2e34cb12b0b1aa0a9

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