Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Word count on TeXnic Center

593 views
Skip to first unread message

mei...@gmail.com

unread,
Feb 4, 2007, 9:24:27 PM2/4/07
to
Hi,

I need to count the no. of words in thesis. I have written the thesis
in multiple files. On searching the FAQ (http://www.math.upenn.edu/
tex_docs/help/faq/uktug-faq/FAQ64.html) I found that worcount can be
used for this purpose.

Can anybody PLEASE tell me how to run 'wordcount' on TeXnic Center (I
downloaded the entire package, not customized or recomended).

Regards
Neha

José Carlos Santos

unread,
Feb 5, 2007, 6:36:09 AM2/5/07
to

It may not be possible for you to use it. After all, since you are using
TeXnicCenter, you are working under WIndows, and wordcount is a Bourne
shell script.

I suggest that you install Perl in your machine and use the latexcount
Perl script instead, as suggested at the FAQ:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=wordcount

Best regards,

Jose Carlos Santos

kasmra

unread,
Feb 5, 2007, 7:09:36 AM2/5/07
to
Visit http://www.vim.org , download gVim for Windows, paste the source
text into Vim,
select the area you want the words counted from and type g<ctrl-g>,
and that's it.

There are other decent editors for that purpose also, but I choose
Vim.

mei...@gmail.com

unread,
Feb 5, 2007, 8:50:04 PM2/5/07
to
On Feb 5, 11:09 pm, "kasmra" <kas...@gmail.com> wrote:
> Visithttp://www.vim.org, download gVim for Windows, paste the source

> text into Vim,
> select the area you want the words counted from and type g<ctrl-g>,
> and that's it.
>
> There are other decent editors for that purpose also, but I choose
> Vim.
>
> On Feb 5, 4:24 am, mein...@gmail.com wrote:
>
>


Thanks Jose, Thanks Kasmara.

Appreciate your help.

While searching yesterday, I also came across this-

-------
The shell script wordcount.sh and accompanying file wordcount.tex can
be used to count words, whilst ignoring LaTeX commands. This can be
downloaded from http://www.tex.ac.uk/tex-archive/help/Catalogue/
entries/wordcount.html. In this case you will need the following in
your Makefile (again supposing that your document is called
"myrep.tex"):
myrep.dvi : myrep.tex
wordcount.sh myrep.tex | \
sed '/[0-9]\+ words/!d;s/.\+ \([0-9]\+\) words
\./\1/' \
> docwc.tex
latex myrep


(You may need to use bash wordcount.sh instead of wordcount.sh.)
Again, your LaTeX source code will need to load in "docwc.tex":
\numwords{\input{docwc}}
-------

from this site - http://theoval.sys.uea.ac.uk/~nlct/latex/packages/
cmpreprt/cmpreprt.html#commands

Since I am not very familiar with LaTeX yet, so I couldnt make much
sense of it.

Regards
Neha


0 new messages