TeXcount version history
Click on the version link to download script or package.
- Version 3.2
released August 5, 2020
- Added some additional macro and package rules. Also included amsmath rules by default.
- Version 3.2.beta
released July 21, 2020
- Added more package rules, and included amsmath in default rules. Added %TC:wordtype instruction to allow
numbers/words to be counted differently (experimental). Better parsing of various number formats. Added support
for arithmetic combination of counters in summary output templates. Colour codes moved to end by default.
Various smaller bug fixes and improvments.
- Version 3.1.1
released October 28, 2018
- Fixed regular expressions that fail on recent Perl versions.
Improved file inclusion search paths.
- Version 3.1
released September 16, 2017
- Fixed error in help command, and error when detecting terminal width.
Added option -all-nonspace-characters to count characters including punctuation.
- Version 3.0.1
released April 2, 2017
- Fixed a few bugs which caused problems in some special cases: eg %TC instructions mistaken for comments,
macro options not always handled as intended, etc. Now does proper parsing of package inclusion macros like
\usepackage. Also changed internal handling of file names. Also reorganised the help text.
- Version 3.0.0.24
released April 11, 2014
- Fixed bug which interprets e.g. \multi as {\mu}lti.
Added option -out-stderr, and better handling of missing ANSI colour support.
- Version 3.0
released July 29, 2013
- In this major upgrade, support for parsing macro options like \item[...] are introduced, and the
default rule for what text is permitted in options has been relaxed. The
support for adding macro parsing rules is improved, allowing more intuitive code names rather than
cryptic numerical codes to identify the parsing rules, and allowing the user to add more counting categories.
The verbose output has also been made more customisable.
- Version 3.0β build 74
released June 4, 2013
- Some additional fixes and improvement: e.g. option -tex for output to TeX code.
- Version 3.0β
released May 30, 2012
- Some bugs introduced in 3.0α have been fixed, but most importantly many new macro rules have
been added, including rules specific to various packages.
- Version 3.0α
released Jan 9, 2012
- This is an early release of the upcoming version 3.0 for testing. There are several new features
and improvements. Most significant, perhaps, is that macro options, [...], can now be parsed
and counted. Also, colour coded verbose text output now also works in Windows, although not
perfectly. Cryptic numerical codes for specifying rules have been replaced by more intuitive
keywords, and the user can now add more counters (e.g. for counting footnotes separately).
For HTML output, external CSS styles can be specified or a HTML template provided; and which
elements to include in the verbose output can be customised in great detail.
- Version 2.3
released Jul 28, 2011
- Some minor fixes relative to 2.3β. Changed handling of Korean to logographic, i.e. count
characters instead of words, and added -korean-words to count space separated words.
Added -words-only option to count words only, not logographic characters.
- Version 2.3β
updated Mar 08, 2011
- TeXcount now supports multiple scripts/languages and encodings, can produce word frequency
statistics, be used in a pipe, merge included files into the document, customise the
summary output, and take options from an option file.
- Version 2.3α
updated Jun 22, 2010
- TeXcount can now perform letter counts, output summary using customised output templates,
read options from a separate options file, provide help on how different macros and groups
are interpreted, and perform global preparsing substitutions.
- Version 2.2
updated Apr 30, 2009
- Only minor corrections relative to 2.2.β: the Unicode, Chinese and Japanese seems to work well,
and I have even received reports that it works well with other languages such as Greek and Hebrew.
- Version 2.2.β
updated Mar 17, 2009
- The main change is the support for Unicode (UTF-8), Chinese and Japanese. Some problems have also
been fixed: e.g. there was a problem with the %TC:endignore which could cause failure.
- Version 2.1
updated Nov 02, 2008
- In addition to the upgrades of 2.1α and 2.1β, there are a few minor fixes. Most
importantly, the help has been improved with a presentation of the output style and colour codes added
at the start of the output which explains briefly how to interpret the output. The code has also been
refactored and cleaned somewhat.
- Version 2.1β
updated Oct 30, 2008
- Main change is that help on the colour codes of the verbose output is now provided: this will be
added at the top, but may be suppressed using -nocode. Some minor fixes and improvements.
- Version 2.1α
updated Jul 09, 2008
- Some problems have been fixed: file type adding and path for included files should now be correct, and somehow the
use of $$...$$ for displayed formulae had become conditionally broken. Options are added to
reduce output from complete summary per file, to brief summary (one line) per file or only total summary.
It is also now possible to get only to total sum, i.e. one number, which may be convenient if using as
input to other programs (e.g. Emacs). The total sum can be customised with respect to which words
(text, header, caption) and formulae (inlined, displayed) are counted. The detailed output can also give
the cumulative sum, and it is possible to get subcounts, e.g. per section. The rules for what TeXcount may
consider a word or a macro option may also be relaxed, which may help users who f.ex. have special
characters or macros as parts of options, or use character modifying macros (e.g. \"). This
version has still to be tested well, which is why it is labelled as an alpha version; it will be replaced
by a β version when I expect most problems to be corrected, and by a final version when I decide
it is ready to replace version 2.0. The documentation may also need some improvement and proof-reading.
- Version 2.0
updated Feb 10, 2008: Some fixes
- A few minor problems have been fixed. I have changed the name of the name of the
exclude rule to the more intuitive name macro. Also, the first line of the
script used to give the path to the perl command, which is used for running the
script under Linux/Unix. This has been changed to
#!/usr/bin/env perl which should be more robust...provided you have env
installed there. The documentation has been claiming incorrectly that the default
treatment of begin-end groups has been to treat them as floats, i.e. not count them as text,
but this has been wrong: the default is to count the contents as the surrounding text.
- Version 2.0.beta
updated Jan 31, 2008: Major upgrade
- This new version has some major improvements. First, adding new macro
handling rules can now be done though comments in the TeX files: comments on the
form %TC:instruction. There is also
increased flexibility in specifying the handling rules: i.e. how to handle the different
parameters. The preamble (between \documentclass and
\begin{document}) is now handled properly: previously this was parsed much
like the rest of the document. However, the script may still be used on LaTeX files
that do not contain \documentclass and \begin{document}. The script
may now also automatically count included documents, although this is turned off by
default. When the script has been in use for some time and problems, if any,
have been addressed, the final version 2.0 will be released here and on
CTAN.
- Version 1.9
updated Jan 10, 2008: major improvements,
version uploaded to CTAN (not released on this page)
- In addition to a number of minor fixes and improvements, this version was a
large part of the step towards version 2.0: it added support for macros to be
counted as words (\LaTeX is recognised as a word) and special
handling of the preamble. On request, it was uploaded to
CTAN while still
awaiting the testing and final release of version 2.0.
- Version 1.8
updated Jun 20, 2007: Minor improvements
- First, I've removed the -T option from the script so it will run
more easily from the command line under windows: previously, the command
perl -T needed to be used (at least some places). I've added support
for a very few more macros. I've fixed the problem that options [...]
were not allowed to contain special characters: if they did, they were not
ignored as they normally should. And finally, \$ were interpreted
as starting inlined maths, which was wrong.
- Version 1.7
updated Jul 2, 2006: Bug-fix
- When fixing the \{...\} bug last time, I had the foresight to
included \[...\] in the fix. Bad idea as these indicate displayed maths!
- Version 1.6
updated Mar 6, 2006: Locale and bug-fix
- The locale on the online web service did not handle special letters like
å; this is now fixed. Though it's now running on the Norwegian locale, this
seems to handle not only the special Norwegian letters, but also the Swedish and German ones.
Another problem I found was that
\{ was interpreted as start of a group, hence requiring a matching
\}; this is also fixed.
- Version 1.5
updated Jan 9, 2006: extensive upgrading
- The list of macros and environments handled by the script has been
extended: from containing only the most used, I have gone through a list of
macros found in a documentation. Though it is most likely not complete, and
there will be additional macros and environments declared in various
packages, it should be a major improvement.
Environments are no longer treated as floats by default: thus, if within the text, it
will be treated as text, etc.
-
There is now a HTML mode included which will mark the interpretation using
HTML code. Some improvements have been made in how mathematics within excluded (not counted)
regions are marked. The HTML code may be produce only for the parsed text and
the word count, or as a complete HTML document.
- Version 1.4
updated Jan 2, 2006: some improvements
- Improvements of code, making code more robust and adding more comments. All
to make the script more usable for the general public. This was the first
version to be actively published: prior to that, the user base was more
limited.
- Version 1.3
updated Jan 2, 2006: some upgrading
- It was pointed out to me that some special letters used in some languages
would not be identified as letters and cause words to be split in two. I have
also added a few more macros, but many users may find the need to
add further macros, so I have added some more documentation in the Perl
script. Another change made is that options on the form [...] after macros
are now ignored not only immediately after the macro name, but also between
and after tokens and {...} that have been specified not to be counted.
- Version 1.2
updated Oct 10, 2005: one error corrected
- This one is a bit embarrassing. Version 1.1 would ignore everything
between \begin{document} and \end{document} treating the environment
as a float. Anyway, it's fixed now.
- Version 1.1
updated Sept 9, 2005: some errors corrected
- Options containing commas were counted as text. Environments
having a zero as last token failed to find the \end. (Removed because
it contains a serious bug! See version 1.2.)
- Version 1.0
summer 2005
- First working version of TeXcount with the core functionality in place:
word counting and verbose output. For use on Unix/Linux only since verbose output
relied on ANSI colour codes which would produce gibberish on Windows.
Last modified August 05, 2020.