Sorry this is a bit specific, but I could really use some help. I am trying to work out a good way of getting a word count for my thesis. I do most of my editing on windows, via TeXnicCenter v1 and MikTeX2.9.
The TeXCount webpage implies that MikTeX should come with TeXCount installed, and I see texcount.exe under C:\ProgramFiles\MiKTeX 2.9\miktex\bin\x64
but I don't understand how to use it.
I have seen the following question Using TeXcount with TeXnicCenter on this site, but I decided to go down the route suggested on this thread http://www.latex-community.org/forum/viewtopic.php?f=36&t=730 because it seemed to me some folks had actually got it working, but it hasn't helped me yet.
I followed the instructions
- Install ActivePerl
- in TeXnicCenter go to /Tools/Customize/tools/new(insert)/
- Fill in:
WordCount
command: "cmd /K texcount"
Arguments: "-inc '%pm'"
At this point it seems to try to run MiKTeX 2.8 but I have no idea why! And then throws up an error message saying "The Perl script could not be found."
I am not surprised, I can't find it either. It is not installed in MiKTeX 2.9\scripts
. I have downloaded it myself and put TeXcount_3_0_0_24
into that directory, but I am not confident that this path is being scanned by MiKTeX, and again I am not sure how to make that happen. I tried putting it elsewhere and providing MiKTeX with a new location, but MiKTeX just told me it was "Not a TDS-compliant root directory".
I am rather stumped. I don't want to have to go putting copies of perl scripts and executables into all my directories as the final post suggested.
Alternatively, if you think I am crazy to be going down this route, can anyone recommend a free pdf word counting tool? I'd prefer texcount because my word limit does not include captions, references etc and it's a faff to strip them out.
As a last resort I can ftp everything across to linux and try to install TeXCount there, but I'd prefer to stick with my laptop if I can.
command: texcount.exe
where I point to the executable inmiktex2.9\bin
and now it just says "file not found". It seemed to do some kind of package installation step, but I still see no sign of the .pl anywhere-inc %pm
as argument. Also I certainly would never try an installation instruction that is more than 7 years old.no file specified
. Progress at least, it looks like it is actually trying to run texcount even if it is not finding my file."%pm"
and now it seems to run, but a box pops up for 0.2 seconds, I can't see what it's saying because it then closes instantly. I have used-html
and>texcount.html
but the resulting file is blank. Guess I need to know how to forward stderr to a file under windows!%pm >texcount.log