[OS X TeX] texcount

Luis Vitorio Cargnini lvcargnini at gmail.com
Mon Feb 23 12:52:36 EST 2009


this means that you forgot to do this:
chmod +x ~/Library/TeXShop/Engines/texcount.engine

Le 09-02-23 à 12:46, Nathan Paxton a écrit :

> 	When i try this, I get the following error: "/Users/nathanpaxton/ 
> Library/TeXShop/Engines/texcount.engine does not have the executable  
> bit set."
>
> 	What does that mean?
>
> Best,
> -Nathan
> ----------
> Nathan A. Paxton
> Ph.D. Candidate
> Dept. of Government, Harvard University
>
> Resident Tutor
> John Winthrop House, Harvard University
>
> napaxton AT fas DOT harvard DOT edu
> http://www.fas.harvard.edu/~napaxton
> =========================================================
> When you have to stay eight years away from California, you live in  
> a perpetual state of homesickness.
>         - Ronald Reagan
>
> The most courageous act is still to think for yourself.  Aloud.
>         -Coco Chanel
> =========================================================
>
> On 23 Feb 2009, at 12:19 PM, Daniel Becker wrote:
>
>> Hallo -
>>
>> I just found out that MacTeX / TeXLive 2008 contains the command  
>> "texcount" that can be used to count words of a LaTeX-file. It can  
>> handle included files and produces an html-file with its results.
>>
>> I think that it works much better than "detex" that is used in  
>> TeXShop internally for the Edit -> Statistics Menu-Item
>>
>> Below you can find an "TeXShop-Engine" that counts the words of  
>> your .tex-file and produces two html-files with the results. And  
>> opens them.
>>
>> Thought this might be interesting for others who need to count  
>> words....
>>
>> Daniel
>>
>>
>>
>> Content of my .engine file in ~/Library/TeXShop/Engines/ 
>> texcount.engine:
>>
>>
>> #!/bin/tcsh
>>
>> set path= ($path /usr/texbin /usr/local/bin)
>> set filename = "$1"
>> set htmlname = "${filename:r}-texcount.html"
>> set htmlname2 = "${filename:r}-texcount-short.html"
>>
>> # all details
>> # run texcount and produce an html-file with the result
>> texcount -html -inc -v "$1" > "$htmlname"
>> #open the html-file
>> open "$htmlname"
>>
>> # only the counts
>> # run texcount and produce an html-file with the result
>> texcount -html -inc -v0 "$1" > "$htmlname2"
>> #open the html-file
>> open "$htmlname2"
>>
>> #end of the "engine"----------- Please Consult the Following Before  
>> Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq
>> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
>> List Archive: http://tug.org/pipermail/macostex-archives/
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20090223/80f81d3a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2320 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20090223/80f81d3a/attachment.p7s>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 198 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20090223/80f81d3a/attachment.sig>


More information about the MacOSX-TeX mailing list