Take the 2-minute tour ×
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 9 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".

\documentclass{article}

\usepackage[modulo]{lineno}
\linenumbers

\usepackage{lipsum}

\begin{document}

\lipsum[1]

\end{document}

enter image description here

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

Your Answer

 
discard

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.