Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [texcount]

TeXcount is a Perl script that counts words in the text of LaTeX files.

1
vote
0answers
29 views

Texcount command not found system in MacTeX

I have a problem trying to invoke texcount from LaTeX file. I am using MacOS with MacTeX 2018 installed. texcount comes directly with the MacTeX and it is on the PATH. When I run texcount on command ...
6
votes
2answers
349 views

Dynamically count words in chapter and insert word count at start of chapter

TL;DR Einar's first alternative solution of making a new input command that automatically generates counts at the end of each input section is what I used to generate counts at the end of each chapter:...
0
votes
1answer
2k views

Total word count using texcount

This question is an extension of my previous question, although the answer to that question worked well in TeX-Studio, it does not work in Overleaf v2, which was primarily the Shareletax interface). ...
0
votes
2answers
67 views

Get texcount to ignore numbers

Trying to get texcount to not count numbers as words, but setting alphabets=Latin doesn't seem to be solving the problem. Any suggestions? MWE: \begin{document} testing 1 2 3 this should be five \...
0
votes
0answers
80 views

!!! %TC:endignore without corresponding %TC:ignore.?

I am using %TC:ignore and %TC:endignore in Sharelatex to try and make TexCount ignore some text over several section, in my case the appendix. But when I press the Word Count button and the window ...
2
votes
1answer
202 views

TeXcount in-line references

I am using TeXcount to count the words in my pdfLatex/XeTex documents. This is working decent overall, but I need TeXcount to ignore my in-text references. By default, TeXcount counts all the in-line ...
-1
votes
1answer
418 views

Dynamic word count for abstract environment in LaTeX using Knitr/Sweave/Rstudio

I am attempting to use TeXcount to count the number of words in my abstract environment and print it out, so that when I update the abstract it prints the new word count. I did my best to search the ...
0
votes
2answers
533 views

TeXcount cannot fine \input files with a command in the path?

UPDATE: The problem I am having is due to having Python code inside a PythonTeX pycode environment. Seems this causes a parsing error with the TeXcount Perl script. I want to use TeXcount to count ...
0
votes
0answers
81 views

How do get wordcount on our working file pdf? [duplicate]

Is it ok that LaTeX doesn't have a wordcounter? texcount is a very valuable external esource to determine how many words you have in your document, but it relies on console and executing a separate ...
0
votes
1answer
160 views

How do I setup a template and a command line for TeXcount

I need so setup TeXcount to count the characters of a LaTeX document including those in food and end notes but without those in references, tables, figures, captions, and the titlepage. Better would ...
4
votes
1answer
878 views

how to count the number of words in a sentence, the number of sentences in a paragraph, and the number of paragraph?

I am writing an article on latex. I need to count the number of words in a sentence, the number of sentences in a paragraph, and the number of words in the paragraph? e.g. This is the first sentence....
4
votes
2answers
101 views

wordcount by section when sections were formally known as chapter

I have a wordcount macro I use to keep track of word numbers for each chapter of a book. Each chapter is written in a separate file which I input from my master file. When I work on a single chapter, ...
6
votes
1answer
254 views

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. ...
4
votes
1answer
299 views

Can I configure texcount to not ignore certain optional arguments?

Is it possible to configure texcount not to ignore text in optional arguments for certain macros? Consider the following example: \documentclass{article} \begin{document} \autocite[e.g.][4]{key-1,...
2
votes
1answer
86 views

Can I configure texcount to double-count text in certain mandatory arguments?

Is it possible to configure texcount to double-count the contents of non-optional arguments for certain macros? Consider the following example: \documentclass{article} \begin{document} \autocite[e.g....
9
votes
2answers
914 views

How can I convince texcount that my use of \newcolumntype is perfectly valid syntax?

Note that not counting words is not an option. All journals in my discipline require a word count on submission, as do most anthology editors, conference organisers and other institutional powers. ...
6
votes
1answer
445 views

Using Arara with TexCount

I'm running TeXShop and I have a pretty big document - my PhD thesis. I want to do a word count with regular intervals, not necessarily every time I compile, but I want the information to be ...
2
votes
1answer
351 views

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]...
4
votes
1answer
1k views

Make texcount ignore appendices

Is it possible to tell texcount to stop counting when it reaches appendices? (i.e. the \appendix command)? I'm using texcount. to check my thesis which is organised so that each chapter has its own \...
1
vote
1answer
881 views

Texcount error 'could not recognise package list'

using texcount in the command line interface produces the error 'could not recognise package list'. I'm using texcount -1 -sum -inc mymainfile.tex which includes several files in a two different ...
0
votes
2answers
420 views

TexCount: Error using envir in an external options file

I am struggling with adding parsing rules to TexCount in an external options file. I am running TexCount as follows: texcount -sub -html -stat -inc -v3 -opt=tcrules master.tex > count.html The ...
1
vote
1answer
318 views

Using Texcount Templates

Anybody have a texcount template they would share? I noticed that the texcount documentation references an option -template="template". I presume this is to enable adding some custom text surrounding ...
4
votes
1answer
460 views

TeXcount problems with $ dollar sign in shell command

I can't get TeXcount to perform a word count on a LaTeX document that runs a Linux shell command to access a shell variable (i.e. the command involves a "$" dollar symbol). example.tex \...
1
vote
1answer
270 views

Counting words with TexCount in quote environment

How can I enter a new counter with texcount to count everything within the \begin{quote} ... \end{quote} environment? I have tried the following, which gives me nil results. %TC:newcounter quote ...
6
votes
2answers
3k views

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.
2
votes
1answer
250 views

Can I count text as another category using TeXCount?

I am using TeXCount to perform a word count. I am using %TC:macro \macroname n (http://app.uio.no/ifi/texcount/faq.html#newmacro) to treat macros differently (for example I have a 'to-do' macro). Can ...
4
votes
2answers
128 views

TeXcount counting \multicolumn

When using TeXcount on the following MWE \multicolumn macro is counted as a word and I get: Words in text: 6 What can I do to avoid this behavior and get the correct word count? \documentclass{...
5
votes
1answer
521 views

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!
3
votes
2answers
802 views

“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 ...
3
votes
1answer
335 views

LyX texcount custom converter

Is it possible to define a new Converter in LyX so I can use texcount -sub and produce a .txt file with the statistics of the file? I was thinking in going to Tools -> Preferences -> Converters ...
4
votes
1answer
2k views

Perl File Missing from TeX Live on Windows (TeXcount)

Trying to run TeXcount on Windows 7 with TeX Live results in >texcount Can't locate Win32/Console/ANSI.pm in @INC (@INC contains: C:/texlive/2013/tlpkg/tlperl/lib c:/texlive/2013/tlpkg/tlperl/lib ....
2
votes
0answers
2k views

Using TeXcount with TeXnicCenter [closed]

I am trying to run TeXcount with TeXnicCenter on Windows but cannot find any clear instructions as to how to do this. I have so far installed active perl and TeXcount. In TeXnicCenter I have defined ...
2
votes
1answer
1k views

Counting figures, tables and citations in a document

My idea is to use TeXcount to scan my document and output the number of words, figures, tables, equations and citations. I've been looking at the documentation for TeXcount and it seems that words ...
12
votes
2answers
1k views

TeXcount and biblatex

I have recently switched from BibTeX to the biblatex package (using the Biber back-end) and I can only subscribe what others have already said about its many virtues. This question is not so much ...
1
vote
0answers
214 views

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 ...