Background inspiration and code:
\documentclass{article}
\usepackage{bashful}
\pagestyle{empty}
\bash
texcount -sum -1 tmp.tex
\END
\begin{document}
%here is a front page and a table of contents
%Counted characters: \bashStdout}
%START CHARACTER COUNTING
This file has \emph{\bashStdout} words.
%END COUNTING CHARACTERS
\end{document}
Problems
- It shall count the characters and not the words.
- It shall only count the characters in one specific region -- and only count like a Microsoft Word would do it.
- It shall print the number above the counted region.
texcount -char -sum -1 tmp.tex? – Feb 01 '17 at 12:21