TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

I want to have a draft of a document I am writing, with the line numbers aside. I looked at some options like lineno, but this way it skips some lines. Is there a simple workaround or another package to do this?

share|improve this question
What kind of lines does it skip? – Leonardo Herrera Feb 21 '11 at 21:18
@Leonardo Basically anything in a box. Displayed math also causes problems. See this this answer here. – Alan Munn Feb 21 '11 at 21:30
@endir: Welcome to tex.sx! Does the answer in Alan's link help you? – Hendrik Vogt Feb 22 '11 at 7:56
@endir: Any update on this? The answer to the question lined by @Alan seems like the best plan to me. – Joseph Wright Mar 13 '11 at 14:17
See also this answer which explains how to use \internallinenumbers to number boxes etc. – Seamus Mar 22 '11 at 18:33

The Number every line of pages question was very similar to this.

The code I posted Number every line of pages, appears to solve this problem and hence the reason for posting this short snippet here. As the code does not box or unbox paragraphs, displayed math can be used.

enter image description here

share|improve this answer

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.