ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

La​Te​X Word Count

by kevinstadler ALL Trending

SublimeText 2+3 plugin providing a customisable word and character counter for LaTeX and plaintext files

Details

Installs

  • Total 39K
  • Win 17K
  • Mac 15K
  • Linux 7K
Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16
Windows 1 8 13 9 13 1 8 5 4 6 9 3 5 7 6 9 8 10 6 5 2 5 9 10 4 9 5 5 2 5 11 8 9 11 5 4 15 3 8 7 6 8 1 7 4 8
Mac 0 8 3 3 9 4 3 3 3 5 3 8 6 3 3 3 13 9 2 6 4 5 3 7 4 7 8 1 6 7 5 4 4 5 4 0 5 6 6 5 7 7 1 3 6 3
Linux 0 1 3 1 1 3 4 0 1 2 1 1 7 3 0 1 1 3 2 1 3 0 0 2 5 1 2 0 1 1 1 3 3 2 0 1 1 2 2 1 1 1 1 2 1 3

Readme

Source
raw.​githubusercontent.​com

LaTeX Word Count

A Sublime Text word and character count plugin for LaTeX and plaintext files.

Usage

LaTeX Word Count can be installed easily using Sublime Text Package Control.

Go to Tools -> Word Count to display word, character and line counts for the current selection, or for the entire file if nothing is selected.

The default key binding is Control + Shift + C

LaTeX support

The main purpose of this plugin was to support reliable word counts for files with LaTeX markup. The plugin ignores the preamble, abstract, formulas, captions, and supports excluding headers, footnotes and appendices. Have a look at the available config options in Preferences -> Package Settings -> LaTeX Word Count to customise what gets counted.

Suggestions

  • Adding support for other ST-recognised markup languages should be pretty straightforward, have a look here to see how it's done for LaTeX and chip in!
  • A real-time word count displayed in the status bar a la WordCount would be nice and not too hard to implement. If anyone's actually using this plugin and would like this feature just let me know and I'll add it!
  • Sublime Text's scope_name() function could potentially be used to produce more robust stripping of LaTeX commands than the current regexp-wizardry.

License

This plugin combines a simple LaTeX word count python script that I wrote in 2009, the basic plugin structure taken from Naomichi Yamakita's string_counter, as well as changes and fixes submitted by GitHub contributors.

Released under the MIT License