Crates.io | tex-fmt |
lib.rs | tex-fmt |
version | 0.2.2 |
source | src |
created_at | 2024-04-27 18:47:11.770883 |
updated_at | 2024-06-15 11:05:20.142888 |
description | LaTeX formatter written in Rust |
homepage | |
repository | https://github.com/WGUNDERWOOD/tex-fmt |
max_upload_size | |
id | 1222809 |
size | 44,102 |
An extremely fast LaTeX formatter written in Rust.
Input | Output |
|
|
.tex
, .bib
, .cls
, and .sty
# install stable release
cargo install tex-fmt
# install from github
cargo install --git "https://github.com/wgunderwood/tex-fmt"
nix build "github:wgunderwood/tex-fmt"
When formatting all of the test cases, tex-fmt is hundreds of times faster than latexindent.
Files | Lines | Size | tex-fmt | latexindent | latexindent -m |
---|---|---|---|---|---|
47 | 93k | 3.5M | 0.186s | 96.0s [x516] | 124.3s [x667] |
latexindent. Perl script, many configuration options, slow on large files.
LaTeXTidy. Perl script, download links seem to be broken.
latex-pretty. Browser-based, uses latexindent as the backend.
latexformat.com. Browser-based.
texpretty. C program which works sometimes and appears to be fast. Fails with certain keywords inside brackets.
latex-editor. Browser-based.
LaTeXFmt. Vim plugin, does not apply indentation.
latex-formatter. Visual Studio plugin, uses latexindent as the backend.