About This
I am Michael Tyson, and I run A Tasty Pixel. I write on a variety of technology and software development topics as I travel around Europe in a motorhome.
-
Subscribe to updates 203 feed subscribers
Follow me on Twitter 367 followers
Newsletter
Let us keep you informed about important updates, special offers, and new products. Just type in your email address below and hit enter to sign up!
My Products
Popular Posts
- "Elegant Grunge" Wordpress theme
- Using RemoteIO audio unit
- Custom Permalinks
- Connecting an iMac up to your TV
- Smart 404 for Wordpress
- UIImage, resolution independence and the iPhone 4's Retina display
- Flickrpress: Wordpress Flickr widget
- Easy rounded corners on UITableViewCell image view
- Making UIToolbar and UINavigationBar's background totally transparent
- Sort your Flickr photostream
Counting words in LaTeX documents with TextMate
When working on LaTeX documents in TextMate, the default word count feature isn’t too helpful, as it also includes all of the LaTeX control sequences in the count. There are plenty of suggestions out there, but this is one I came up with, which works the same way as the default word count facility (Ctrl-Shift-N):
This is just a copy of the default statistics action from the Text bundle, but with the ‘detex’ utility added into the pipeline to remove all LaTeX control sequences.
Put this in a new command in the LaTeX bundle, with ‘Selected Text’ for input, and ‘Show as Tool Tip’ for output. I assigned Ctrl-Shift-N as the key equivalent.
Related posts