Skip to main content

A LaTex linter written in Python

Project description

texsquisite

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.1.tar.gz (7.3 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.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for texsquisite-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5d6247a905b2a130a5170d86a6a5dbcc8476fca11eb71d10cf8e788a1f949ac0
MD5 d7133b4a58dbbd501586a77154bcea1c
BLAKE2b-256 d3298efabf3a5e7e06c5ccfc16c0059473a53eb8711c43d183a9de41d9d9be72

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for texsquisite-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1199870419801181ec61fc29c0f9afd95b57837437af1135a9c1a816b7155b87
MD5 c755937c2fbe1dd3c3e734cbd2394f7c
BLAKE2b-256 3ab011b56f678812029c1a3302aaf04613d75341d79defc2663ca44ea30d4e4e

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