Saturday, April 4, 2009

Line numbers in LaTeX

As I am doing a bit of writing, I suddenly had the need to have line numbers in my LaTeX document. There is a really nice package called lineno that takes care of this very nicely. All you have to do is include the package, and put the command \linenumbers somewhere in your document. I placed the following two lines in my preamble:

  \usepackage{lineno}
  \linenumbers

You will find the documentation for lineno at ctan. 

1 comments:

markusN said...

Thanks, works nicely!