Hey all,
I couldn't find the answer to this on the web, so it's possible that a package hasn't been written for this, but maybe I haven't looked hard enough.
I'm writing quite a large document and I want the input line number to appear on the printed/compiled .pdf file. I don't want the lineno package (I don't want the line numbers to be printed), just the input line numbers so I when I'm reading the .pdf file I can easily find where the code is that produced what I'm reading.
As I said, not sure whether someone has done this before, but it would seem useful, so possible someone has.
General ⇒ Printing input line numbers
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: Printing input line numbers
There are better methods, namely SyncTeX. This is an extension implemented in most modern TeX engines that write a mapping between input lines and output positions in a file which can be read by viewers that support it. With SyncTeX enabled, you can just click on a position in the PDF to open the corresponding input in an editor. For this to work, the engine, the viewer and the editor have to support SyncTeX. The engine included in modern TeX distributions already support it; most editors that can be controlled externally in some way do; supported viewers include SumatraPDF and Skim. There are also editor/viewer combinations like TeXShop and TeXworks that support it.