TeXcount is a Perl script that counts words in the text of LaTeX files.
Questions tagged [texcount]
67 questions
8
votes
1 answer
Simplified texcount results display
Writing a proposal with strict character limits.
Using the following in the preamble
% Compile with --enable-write18 or --shell-escape options
\immediate\write18{texcount -char -inc -tex -sum > /count.tex}
The following throughout…
John Chris
- 143
7
votes
1 answer
How to stop texcount from counting \begin{comment}...\end{comment}
Is there a way to stop texcount from counting words in \begin{comment}...\end{comment} blocks? It seems to skip only comments starting with %
Thank you very much in advance!
Dimitar
- 71
6
votes
1 answer
Can texcount be used to count sentences and syllables?
I would be interested in calculating Flesch–Kincaid readability tests in latex documents and, besides the number of words, those tests require the number of sentences and syllables in the text. Texcount is a powerful tool, but counting sentences and…
6
votes
2 answers
count words in latex files with input
Hi is there something like texcount to count all the words of a latex file including the ones linked by input and include?
Solution for linux as well as for windows are fine for me.
magu_
- 661
5
votes
1 answer
Can I tell TeXcount to not count underscores as word separators?
I am trying to count words in a document that contains various C types such as \texttt{uintptr\_t}, \texttt{size\_t}, etc. However, when I use texcount it breaks at the underscore and these as two words.
Is there a way to tell texcount to treat…
ar31
- 153
- 4
4
votes
1 answer
texcount mwe no longer functional after tex system update
The following mwe has been discussed in this post, and this one. The mwe no longer works after a system update. Any guidance on troubleshooting is greatly appreciated.
W10, MikTeX 2.9, TeXWorks, installed Perl 5.30, installed grep, confirm that…
John Chris
- 143
4
votes
2 answers
"Could not identify document class." error when trying to count words
I'm trying to count words in a cyrillic LaTeX document with Texcount.
I run the command perl texcount.pl index.tex and get following output:
D:\wd>perl texcount.pl index.tex
!!! Could not identify document class. !!!
File: index.tex
Encoding:…
Glory to Russia
- 448
- 4
- 14
2
votes
3 answers
Counting words and characters, with or without whitespace with texcount
The goal is a flexible scheme for automatic character counting using texcount. Specifically, the user should be able to select each permutation of the the following options (characters | words) and (including whitespace | not including…
John Chris
- 143
2
votes
1 answer
Using Texcount but how do I ignore macro contents?
I am using TexCount to do word counts on my document. I am using a \cmt command to write inline comments so anything in \cmt{} does not get printed.
I am using the texcount command %TC: macro \cmd [1] to try and ignore these comments
%TC: macro…
Munki Fisht
- 95
1
vote
0 answers
Character/word counting implementation must handle externalized content called via \input{}
This helpful implementation (for which we're grateful) may lack the ability to count characters or words contained within externalized content. As an example, please see this mwe.
The code is currently not compiling on my systems. I wonder if it…
John Chris
- 143
1
vote
1 answer
How to warn user if not enough content added to section using texcount?
We would like to adapt this solution and this one to include the following features:
Amber colored text if under 75% (even better if parameterized) of character limit.
Handle empty sections (seems to break if there are no characters in a section)
John Chris
- 143
1
vote
1 answer
Can one display the word count of a specific paragraph using texcount?
I am currently writing a research essay and was wondering if it is possible to create a function that links a small part of the output of the texcount function to another location in the file, in my case the title page.
Here is a MWE (minimum…
Nico
- 111
1
vote
0 answers
Problem with TeXcount related to file-including commands
I have found TeXcount extremely useful and, for all my needs so far, most accurate. Nonetheless, I have observed a strange behavior with TeXcount 3.0 (beta) when trying to make the script aware of files being included with the macro…
Marcos
- 5,422
0
votes
0 answers
Counting chars + spaces in mainmatter and appendix files
I am trying to make an automatic char count with spaces on my report, so that i get a char count on my main mainmatter displayed and one on my appendix. I have looked at Paul Gessler answer
(Command for character count including spaces (in…
0
votes
1 answer
How to use the package latex-wordcount on Atom?
I have a Windows machine with StrawberryPerl installed. I downloaded the texcount Perl script and have placed it in the PATH variable. I have also installed the latex-wordcount package for Atom.
However, what I don't understand is how to actually…