印刷文字数

印刷文字数

背景のインスピレーションとコード:

\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 と同じようにカウントします。
  • カウントされた領域の上に数字を印刷します。

関連情報