如何停止 texcount 计数 \begin{comment}...\end{comment}

如何停止 texcount 计数 \begin{comment}...\end{comment}

有没有办法停止texcount计算区块中的单词\begin{comment}...\end{comment}?它似乎只跳过以%

提前非常感谢您!

答案1

添加

%TC:group comment 0 0

文件顶部附近的某个位置。请参阅http://app.uio.no/ifi/texcount/faq.html#newgroup


\documentclass{article}
\usepackage{verbatim}
%TC:group comment 0 0
\begin{document}
one
\begin{comment}
  two three four five six seven eight
\end{comment}
\end{document}

$ texcount tc.tex
File: tc.tex
Encoding: ascii
Words in text: 1
Words in headers: 0
Words outside text (captions, etc.): 0
Number of headers: 0
Number of floats/tables/figures: 0
Number of math inlines: 0
Number of math displayed: 0

相关内容