4

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

For example only every fifth line.

There are no hints in the manual.

11

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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