I'm using the lineno
package to print line numbers (each page starts with number one) in the draft of my document:
\usepackage[switch*, pagewise]{lineno}
Is there a way to read out the number of lines in the whole document (or even per chapter) from one of the aux files?
I do only want to count the "real" text lines, not the headers and footers, so a sum of all the linenumbers would be quite useful. (Even if also floats are counted as one line each.)
Best Answer
The last annotation in the
.aux
file made bylineno
is of the formwhere
251
is the global number of counted lines and5
is the last page number. Of course this will depend on the document.If you say
in your preamble, you'll see a message such as
in the log file (and on the terminal window).