
\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}
問題
- 它將計算字元而不是單字。
- 它只計算一個特定區域中的字元——並且只像 Microsoft Word 那樣進行計數。
- 它將在計數區域上方列印數字。