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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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".

\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.