[Tex/LaTex] Number every line of pages

line-numbering

When editing documents it is convenient to have all the lines on a page numbered (on the left margin) so that the reviewer can refer to them in his report. How can I achieve this with LaTeX?

Best Answer

As Martin Scharrer has pointed out -- and to answer the general question once and for all --: Use the lineno package. (The package allows to number every line, as shown in its documentation.) See this entry of the UK TeX FAQ for possible pitfalls and alternatives.

The following addition to the tex file will cause line numbers to appear (at least in scrbook class using xelatex)

\usepackage{lineno}
\linenumbers