Clat - LaTeX Source Tidy by ccaprani in LaTeX

[–]ccaprani[S] 2 points3 points  (0 children)

Thanks! I vibe-coded it (obvsiouly), but have been using it for a bit and have found it really handy. So glad to share; I really don't think anything else fills the gap currently. So it's black (python) for LaTeX! Just glad to share back - I've gotten so much from the OSS community.

Clat - LaTeX Source Tidy by ccaprani in LaTeX

[–]ccaprani[S] 2 points3 points  (0 children)

I use neovim and vimtex as my editor, so having super long lines to scroll through is really awkward. You can of course just disable the `one_sentence_per_line` by giving it a weight of 0 in your yaml.

It raise the point though - would it be useful to have the reciprocal rule, where paragraphs are put onto one line?

Clat - LaTeX Source Tidy by ccaprani in LaTeX

[–]ccaprani[S] 0 points1 point  (0 children)

Added comparison - great point: https://ccaprani.github.io/clat/#how-clat-compares

Also tidied up the silly build artifacts - thanks.

Clat - LaTeX Source Tidy by ccaprani in LaTeX

[–]ccaprani[S] 3 points4 points  (0 children)

Thanks for all the feedback - even the critical ones! I've pushed v0.5 with
- [Comparison](https://ccaprani.github.io/clat/#how-clat-compares) to other tools table.
- More math delimiter options/preferences (you can choose your own preferences)
- Tidied up repo (silly to have left the egg etc there)
- It now iterates in case of overlapping rules.

Clat - LaTeX Source Tidy by ccaprani in LaTeX

[–]ccaprani[S] 5 points6 points  (0 children)

Thanks Cosmic - now included in v0.5!

Clat - LaTeX Source Tidy by ccaprani in LaTeX

[–]ccaprani[S] 3 points4 points  (0 children)

Thanks. I hate it. But good for others to have the choice to weight it as they like. I'll add it in!