Performing a wordcount on a latex document on overleaf produces a table of the form:

Total Words:10000


Math Inline:100

Math Display:10

What I'd like to know is if these categories are disjoint. In particular, does the "total words" count include the "Math Inline" or "Math Display" count, i.e. is "Total Words" the number of english language words excluding all mathematical equations and symbols? I'm grateful for any help.

  • Welcome to TeX.SE. Given that your query appears to be rather Overleaf-sprecific and would appear to have litttle to do with TeX, LaTeX, and friends, have you considered addressing your query to the Overleaf Helpdesk? I hear their technical support staff are top notch.
    – Mico
    Commented Apr 20, 2022 at 19:37
  • Thanks alot. I'll do that :).
    – user
    Commented Apr 20, 2022 at 19:40

1 Answer 1


(I'm on support staff at Overleaf.) Overleaf currently uses texcount for word counts, so the way things are counted is determined by texcount.

They are disjoint, the "total words" count does not include the totals from the other categories.

Test document:




Word $x$


texcount Output:

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

Overleaf Output:

Word Count
Total Words:1
Math Inline:1
Math Display:1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .