LaTeX Word Count
SublimeText 2+3 plugin providing a customisable word and character counter for LaTeX and plaintext files
Details
Installs
- Total 42K
- Win 19K
- Mac 17K
- Linux 7K
May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 3 | 2 | 0 | 6 | 1 | 1 | 2 | 2 | 1 | 1 | 1 | 0 | 1 | 3 | 2 | 4 | 4 | 4 | 2 | 1 | 1 | 4 | 2 | 4 | 0 | 1 | 1 | 0 | 1 | 5 | 5 | 4 | 3 | 1 | 5 | 2 | 6 | 4 | 1 | 0 | 0 | 3 | 2 | 4 | 0 |
Mac | 0 | 0 | 1 | 3 | 0 | 0 | 0 | 1 | 2 | 0 | 1 | 2 | 1 | 0 | 4 | 5 | 1 | 2 | 2 | 2 | 1 | 2 | 2 | 0 | 3 | 0 | 1 | 2 | 1 | 2 | 1 | 2 | 0 | 0 | 2 | 1 | 3 | 0 | 0 | 2 | 1 | 1 | 3 | 2 | 3 | 4 |
Linux | 0 | 3 | 1 | 0 | 0 | 2 | 1 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 3 | 4 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 2 | 0 | 3 | 2 | 1 | 0 | 1 | 0 | 0 | 2 | 0 | 0 |
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