Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

For example only every fifth line.

There are no hints in the manual.

share|improve this question

1 Answer 1

up vote 10 down vote accepted

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







enter image description here

share|improve this answer
And the command \modulolinenumbers[4] changes from numbering every five lines to four. – egreg May 19 '12 at 17:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.