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 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 this repository, share with friends/colleagues, or donate to become a supporter of the project.
Metadata
Release files for texsquisite 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| texsquisite-0.0.3.tar.gz | 14.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| texsquisite-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.4 kB
Release files / texsquisite-0.0.3.tar.gz
| Download URL | texsquisite-0.0.3.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba501a4fe6c59cd358b8bdd1fb9beccf8d21bb81c613c507c109a5729710eab7
|
|
BLAKE2b-256 checksum How to use checksums |
e673c9f2ffc6cf75d0a92b1f34246239fe4fe8579562f0c61ab86ae26083d392
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / texsquisite-0.0.3-py3-none-any.whl
| Download URL | texsquisite-0.0.3-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7acbeeee3a1ee0435d5e7bd4b6852e0480305da1a67de9691ae071b594ad1d2
|
|
BLAKE2b-256 checksum How to use checksums |
fb79a2bf28287a74fd813c069a6acaa98c0da28c5dc3057a136c3d5be118cceb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|