6

How it is possible to number not every line with lineno?

For example only every fifth line.

There are no hints in the manual.

lockstep
  • 250,273

1 Answers1

14

Page 2 of my copy of the manual mentions the modulo option: "Print line numbers only if they are multiples of five".

\documentclass{article}

\usepackage[modulo]{lineno}
\linenumbers

\usepackage{lipsum}

\begin{document}

\lipsum[1]

\end{document}

enter image description here

lockstep
  • 250,273
  • 9
    And the command \modulolinenumbers[4] changes from numbering every five lines to four. – egreg May 19 '12 at 17:25