更正LaTeX文档的字数(Correct word

编程入门 行业动态 更新时间:2024-10-26 10:35:33
更正LaTeX文档的字数(Correct word-count of a LaTeX document)

我正在搜索为LaTeX文档执行正确字数的应用程序或脚本。

到目前为止,我只遇到只在单个文件上工作的脚本,但是我想要的是一个脚本,可以安全地忽略LaTeX关键字并遍历链接的文件 ...即按照\include和\input链接生成正确的单词- 记录整个文件。

使用vim,我目前使用ggVGg CTRL+G但显然显示当前文件的计数,并且不会忽略LaTeX关键字。

有没有人知道可以做这项工作的任何脚本(或应用程序)?

I'm currently searching for an application or a script that does a correct word count for a LaTeX document.

Up till now, I have only encountered scripts that only work on a single file but what I want is a script that can safely ignore LaTeX keywords and also traverse linked files...ie follow \include and \input links to produce a correct word-count for the whole document.

With vim, I currently use ggVGg CTRL+G but obviously that shows the count for the current file and does not ignore LaTeX keywords.

Does anyone know of any script (or application) that can do this job?

最满意答案

我使用texcount 。 该网页有一个Perl脚本下载(和一个手册)。

它将包括文档中的tex文件( \input或\include )(参见-inc ),支持宏,还有许多其他不错的功能。

当关注包含的文件时,您将获得有关每个单独文件以及总数的详细信息。 例如,这里是我的12页面文档的总输出:

TOTAL COUNT Files: 20 Words in text: 4188 Words in headers: 26 Words in float captions: 404 Number of headers: 12 Number of floats: 7 Number of math inlines: 85 Number of math displayed: 19

如果您只对总计感兴趣,请使用-total参数。

I use texcount. The webpage has a Perl script to download (and a manual).

It will include tex files that are included (\input or \include) in the document (see -inc), supports macros, and has many other nice features.

When following included files you will get detail about each separate file as well as a total. For example here is the total output for a 12 page document of mine:

TOTAL COUNT Files: 20 Words in text: 4188 Words in headers: 26 Words in float captions: 404 Number of headers: 12 Number of floats: 7 Number of math inlines: 85 Number of math displayed: 19

If you're only interested in the total, use the -total argument.

更多推荐

本文发布于:2023-07-21 09:37:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1209008.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字数   文档   LaTeX   Correct   word

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!