1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 19:55:28 +02:00
tldr/pages/common/texcount.md
Managor 5305776d45
*: capitalize the first letter after "Note:" (#16226)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-05-04 05:15:17 +03:00

809 B

texcount

Count words in TeX documents omitting macros. Note: If the TeX document uses \include or \input and you want to count the included files, texcount must be run in the directory of the root TeX file. More information: https://app.uio.no/ifi/texcount/howto.html.

  • Count words in a TeX file:

texcount {{path/to/file.tex}}

  • Count words in a document and subdocuments built with \input or \include:

texcount -merge {{file.tex}}

  • Count words in a document and subdocuments, listing each file separately (and a total count):

texcount -inc {{file.tex}}

  • Count words in a document and subdocuments, producing subcounts by chapter (instead of subsection):

texcount -merge -sub=chapter {{file.tex}}

  • Count words with verbose output:

texcount -v {{path/to/file.tex}}