GeneralHow to use TeXcount?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
eiger3970
Posts: 7
Joined: Mon Mar 10, 2014 4:30 am

How to use TeXcount?

Post by eiger3970 »

Hello,
I've typed up a document now in LaTex and would like to check how many words.
I am unable to find a button to select, or any other such options.
So I found <a href="http://app.uio.no/ifi/texcount/faq.html">TeXcount</a>, which is installed with my LaTex version, but I can't use it?

Any examples of a command to count my LaTex words?
Or better yet, a user friendly button to select to count my words?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

How to use TeXcount?

Post by nlct »

First of all texcount is a Perl script, so you need to make sure you have Perl installed. Some operating systems, such as Unix-like systems, have Perl already installed, but Windows users typically need to install a Perl distribution in order to run any Perl scripts. There are two popular Perl distributions for Windows: Strawberry Perl and ActivePerl. If you don't know whether or not you have Perl installed, open the MS Dos Prompt and type

Code: Select all

perl -version
If you get a message that's something like "Bad command or file name" then you don't have it installed. If it is installed then it should display the version number, copyright etc.

Once you have Perl installed, then you can run texcount. If you want to be able to run it by clicking a button in your text editor, then you need to say what editor you're using (TeXWorks, TeXnicCenter, WinEdt etc).

If you want to run texcount from the command prompt, then you may be able to run it just using

Code: Select all

texcount tex-file-name-here
or you might need to do

Code: Select all

perl texcount tex-file-name-here
where tex-file-name-here is the name of your TeX file. (The path will also be required if you're not in the same directory as that file.)

Regards
Nicola Talbot
Post Reply