Nasseroleslami, your method works fantastically! Does anyone know if there is a way to actually count the number of words in floats (e.g. numbers in a table). My word count requirements call for this, and TexCount (http://folk.uio.no/einarro/Comp/texwordcount.html) does not seem to allow for that option.
I think that's still just summing the float caption titles. I would like to sum the number of words in a table (counting each number as a word). So if I had a 3 x 4 table filled with numbers, it should report 12 words (for the 12 numbers).
Looking a bit further, if you read the full documentation (available at the link you posted), you'll see that there are comments you can insert into the file to tell it how to treat various environments. E.g., you can put something like:
This gives 12 as desired, but it would be kind of a pain to code everything like that. Maybe you could figure out a way around that though. I only spent a couple of minutes with the documentation. With further study, maybe you could figure it out.
Now you have a menu command that does the job. Please let us know if it works for you.
Sincerly
Bahman
Hi there,
this worked a treat for me (after creating an Output Profile failed miserably). However, there were a few slight differences for it to work me and so I just wanted to clarify for any others having problems.
I have a main file thesis.tex; it worked for me when I put texcount.pl and perl.exe in the same folder as this main file. I followed Bahman's instructions and a picture paints a thousand words so below is a screenshot of what I entered into the fields when creating the 'Word Count' tool to get it to work for me.
WordCount.png (56.29 KiB) Viewed 36249 times
NOTES
1. Command: I had to add the .pl file extension to texcount to get it to work. Otherwise, the following was produced at the cmd prompt:
=====================================================
texcount: Cannot start MiKTeX package manager.
Texcount: Data: invalid syntax
=====================================================
texcount: The Perl script count not be found.
texcount: Data: texcount
2. Arguments: Bahman uses -inc %pm (the -inc part includes tex files included in the main file) but I believe he missed out a set of speech marks, so it should be -inc "%pm". However, double speech marks will not work if your folders and/or files have spaces. As mentioned by a previous poster in this thread, to solve this problem, use single speech marks such that it becomes -inc '%pm'.
I finally created a shortcut 'Ctrl+Shift+W' to run the Word Count tool.