LaTeX Word Count
SublimeText 2+3 plugin providing a customisable word and character counter for LaTeX and plaintext files
- Total 28K
- Win 11K
- Mac 12K
- Linux 5K
|Feb 17||Feb 16||Feb 15||Feb 14||Feb 13||Feb 12||Feb 11||Feb 10||Feb 9||Feb 8||Feb 7||Feb 6||Feb 5||Feb 4||Feb 3||Feb 2||Feb 1||Jan 31||Jan 30||Jan 29||Jan 28||Jan 27||Jan 26||Jan 25||Jan 24||Jan 23||Jan 22||Jan 21||Jan 20||Jan 19||Jan 18||Jan 17||Jan 16||Jan 15||Jan 14||Jan 13||Jan 12||Jan 11||Jan 10||Jan 9||Jan 8||Jan 7||Jan 6||Jan 5||Jan 4||Jan 3|
A Sublime Text word and character count plugin for LaTeX and plaintext files.
LaTeX Word Count can be installed easily using Sublime Text Package Control.
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
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.
- 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.
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