Skip to content

Releases: WGUNDERWOOD/tex-fmt

v0.4.7

15 Nov 11:19
Compare
Choose a tag to compare
  • Fix bug with --stdin adding newlines at EOF
  • Fix logic for ignoring verbatim environments
  • Ensure sectioning commands begin on new lines
  • Various performance improvements
  • Add NEWS.md for release notes
  • Ensure all test files successfully compile to PDFs
  • Better documentation of options in README.md

v0.4.6

21 Oct 15:50
Compare
Choose a tag to compare
  • Added --wrap flag to choose line length for wrapping
  • Significant changes to central formatting logic to reduce memory allocations
  • Treat comment environments as verbatim
  • Improved performance with finding comments in source code

v0.4.5

08 Oct 11:30
Compare
Choose a tag to compare
  • Added --usetabs to use tabs instead of spaces for indentation
  • Fixed a bug with unicode graphemes and comment handling
  • Main function now returns std::process::ExitCode for a cleaner exit
  • Reduced memory allocation in comment handling logic
  • Reduced memory allocation when indenting lines
  • Caching of pattern matches reduces number of regex searches

v0.4.4

29 Sep 13:38
Compare
Choose a tag to compare
  • Added --tab flag for variable tab size [default: 2]
  • Fixed bug with incorrect line numbers being printed
  • Fixed bug with quadratic complexity of comment checking
  • Added Arch User Repository support
  • Added VS Code support
  • Improved performance by moving environment checking inside main loop
  • Upgraded Cargo dependencies
  • Included LTO optimization on the release build

v0.4.3

13 Sep 08:41
Compare
Choose a tag to compare
  • Switch output text coloring to the colored crate.
  • Add --stdin flag to read input from STDIN (and output to STDOUT).

v0.4.2

08 Sep 13:21
Compare
Choose a tag to compare
  • Added --quiet flag to suppress warning messages
  • Allow tex-fmt main for tex-fmt main.tex
  • Internal documentation
  • Improved performance
  • Added more Clippy lints

v0.4.1

01 Sep 17:10
Compare
Choose a tag to compare

Added binary archives to GitHub release.

v0.4.0

31 Aug 15:43
Compare
Choose a tag to compare

Breaking change

The logic for line wrapping has been changed. Previously, for lines longer than 80 characters, we would break the line at suitable points into chunks of no more than 80 characters. Then another round of indenting was applied, and this would often push the length back over 80 characters. A subsequent round of wrapping was therefore required, and often led to the creation of very short lines (#6).

The new approach is to take lines longer than 80 characters and remove the first segment up to 70 characters, pushing the resulting two lines back onto the queue. When indenting is then reapplied, the lines typically do not go over 80 characters unless the indentation is very deep. However, some lines may now be truncated to 70 characters rather than 80.

Other updates

  • Added a --keep flag to disable line wrapping (#10)
  • Improved the central algorithm to avoid multiple passes and improve run-time performance (#7)
  • Only write the file to disk if the formatting returns a different string, to avoid unnecessary editing of modification times

v0.3.1

17 Aug 11:32
Compare
Choose a tag to compare
  • Updated README
  • Added project logo

v0.3.0

31 Jul 15:10
Compare
Choose a tag to compare
  • Added a --check flag to check if file is correctly formatted
  • Fixed bug with line wrapping giving up early
  • Shell scripts verified with shellcheck
  • Refactored variable names
  • Some performance improvements