mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 15:53:34 +02:00
texcount: add page (#10625)
texcount is a command line tool that comes with TeX Live preinstalled. It counts words in TeX files or TeX document structures while omitting macros. Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
e81359d4d5
commit
909998dcf5
1 changed files with 21 additions and 0 deletions
21
pages/common/texcount.md
Normal file
21
pages/common/texcount.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# 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 with verbose output:
|
||||
|
||||
`texcount -v {{path/to/file.tex}}`
|
Loading…
Add table
Reference in a new issue