> This will never be accurate, with automatic words like "chapter"
my words > in various languages. So why not use "ls -l" (or "dir" in windows) - > just look at the file size. this wont help. .lyx has zilion of \begin_layout, .tex has zilion of others macros, dvi is binary, etc. pavel