[OS X TeX] Re: question on texcount applescript (selected text only)

Tim Lahey tim.lahey at gmail.com
Sun Jun 21 15:15:14 EDT 2009


On Jun 21, 2009, at 3:00 PM, <macosx-tex-request at email.esm.psu.edu>  
wrote:

> Message: 1
> Date: Sat, 20 Jun 2009 22:26:49 +0200
> From: Daniel Becker <daniel.becker at uni-rostock.de>
> Subject: Re: [OS X TeX] question on texcount applescript (selected
> 	text only)
> To: TeX on Mac OS X Mailing List <macosx-tex at email.esm.psu.edu>
> Message-ID: <3F7D0FBC-3B3E-45F3-B4F2-6CA44B3C298A at uni-rostock.de>
> Content-Type: text/plain; charset="US-ASCII"; format=flowed; delsp=yes
>
>
> Am 20.06.2009 um 17:40 schrieb Daniel Becker:
>
>> http://www2.hawaii.edu/~ramonf/TeXShop/TeXCount.html
>> Works very well and already uses temporary files but I don't know how
>> add something like
>>
>> * if text is selected, dump only that part to TMP that is selected
>
> I tried myself and have something that seems to work. Charcater-
> Counting based on texcount is maybe nonsense, so I used detex and wc.
> Works both for selected text and the whole document if nothing is
> selected.
>
> Comments welcome.....
>
> Daniel

A good overview of LaTeX word count methods is:

http://markelikalderon.com/blog/2007/12/30/latex-and-word-count-revisited/

He compares the results of different methods. He
seems to like texWordCount best (a perl script linked below).

http://www.comp.nus.edu.sg/~kanmy/software/texWordCount.pl

Cheers,

Tim.

---
Tim Lahey
PhD Candidate, Systems Design Engineering
University of Waterloo
http://www.linkedin.com/in/timlahey



More information about the MacOSX-TeX mailing list