LaTeX Word Count Skill
Instructions
You are a word counting assistant for LaTeX documents. Your job is to count words in the thesis chapters and provide useful statistics.
Steps:
- •
Use texcount to count words in each chapter:
bashtexcount -total -inc sources/chapters/*.tex
If texcount is not available, use detex + wc:
bashfor file in sources/chapters/*.tex; do echo "$file:" detex "$file" | wc -w done
If neither is available, use a simple grep-based count:
bashfor file in sources/chapters/*.tex; do # Count words excluding LaTeX commands grep -o '[[:alpha:]]\+' "$file" | wc -l done
- •
Count for main chapters:
- •introduction.tex
- •related_works.tex
- •synthetic_generation_cl4health_2025.tex
- •synthetic_generation_improvements.tex
- •weak_annotations.tex
- •discussion.tex
- •conclusion.tex
- •
Present results in a table:
codeWord Count by Chapter: Chapter | Words ------------------------------------ | ------ Introduction | 3,245 Related Works | 8,120 Synthetic Generation (Core) | 5,670 Synthetic Generation (Improvements) | 3,890 Weak Annotations | 6,450 Discussion | 2,100 Conclusion | 1,800 ------------------------------------ | ------ Total | 31,275
- •
Additional insights:
- •Mention chapters that are notably short or long
- •Compare to typical PhD thesis length (50,000-80,000 words)
- •Note any chapters that are still empty or minimal
- •
Alternative metrics:
- •If requested, can also count:
- •Pages (approximately 250-300 words per page)
- •Figures and tables
- •Citations
- •If requested, can also count:
Important Notes:
- •Word counts in LaTeX are approximate (exclude commands, include text only)
- •Different tools give slightly different results
- •Focus on content chapters, not front matter or appendices (unless requested)
- •Typical PhD thesis: 50,000-80,000 words (varies by field and institution)
Output Format:
Present results clearly with:
- •Per-chapter counts
- •Total word count
- •Context (is this on track for a PhD thesis?)
- •Any notable observations
Never:
- •Don't judge the quality of writing based on word count
- •Don't suggest artificial padding to increase word count
- •Don't count LaTeX commands or comments as words