Skip to main content

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 paper.tex:
  line 1: [S002] - quotation should look like `this' or ``this''
    The result "holds" for every \(x.\)
  line 1: [S006] - punctuations {.,} should be inside \[math.\] and outside $math$.
    The result "holds" for every \(x.\)
  line 2: [S003] - \ref and \cite should have ~ before them
    See \ref{fig:one} and the appendix \footnote{which is long}.
  line 2: [S004] - \footnote should follow punctuation, with no space before it
    See \ref{fig:one} and the appendix \footnote{which is long}.

Fixable errors in sections/intro.tex:
  line 1: [S001] - line should not end with trailing whitespace
    We call this the ``main'' result.  

texsquisite: 2 files scanned.
5 error(s) found, 5 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.

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.3.tar.gz (14.0 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.3-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: texsquisite-0.0.3.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for texsquisite-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ba501a4fe6c59cd358b8bdd1fb9beccf8d21bb81c613c507c109a5729710eab7
MD5 6341ff33c932b1531de19cae3d6f6434
BLAKE2b-256 e673c9f2ffc6cf75d0a92b1f34246239fe4fe8579562f0c61ab86ae26083d392

See more details on using hashes here.

File details

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

File metadata

  • Download URL: texsquisite-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for texsquisite-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c7acbeeee3a1ee0435d5e7bd4b6852e0480305da1a67de9691ae071b594ad1d2
MD5 0b4124a9cd3e09d5ec52f43f7f0251d8
BLAKE2b-256 fb79a2bf28287a74fd813c069a6acaa98c0da28c5dc3057a136c3d5be118cceb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page