[Tex/LaTex] How to create a lined page with line numbers


I'd like to create a page in my LaTeX document that just consists of lines. It should look like this:

enter image description here

Additionally, I want the lines numbered. I have no idea where to start. Are there any hints?

Best Answer

This seems to work very well:


  \vbox to #2{\vss\noindent\raise\dimexpr#1+1pt\relax\hbox to 0pt{%








  • \loop ... \if ... \repeat construct
  • we set \linespagelength to the \textwidth and we remove the height #2 from it at each step
  • we set the line of width #1 and the line number in a \vbox of the height #2