I'm looking for a kind of extended draft mode which places the source code position of paragraphs, sectioning commands and figures etc. as marginpars or similar in the PDF, so that they appear on a print-out.
Background
I often give my paper drafts or (parts of) my thesis as PDFs to my coauthors/contributors and/or supervisors, respectively. They usually print it out and make corrections and remarks on paper. We tend to meet and I bring a Netbook (small Laptop) with me so that I can make the changes directly to the LaTeX code while we discus them.
The issue is that they make statements like "on the Xth line in the Yth paragraph on page Z it should be foo not bar" or "Figure X should be bigger". Now I have trouble converting that to the location in the LaTeX source code. I think I could use SyncTeX and have the PDF open, then click on the position they mention to get to the source (I never used it so far), but this doesn't work in this case anyway because normally I already made several changes on the source file since they printed the PDF out! Editing should be quickly and easily possible, so I can't start handling two different versions of source code and PDFs etc. At the moment I simply search for parts of the original text they mention, but this doesn't work all the time because this text might not be fully verbatim like that in the source file due to line breaks etc.
Tasks:
I like to get the following:
- Beside every sectioning title and start of paragraph (i.e. about one number per paragraph) I like to have the source line number displayed (e.g. as
\marginpar) - There where the code of a source file starts (
\included chapters but also sections included using\input) I like to have the name of the source file printed. - Figures should be marked with the name of the image files while the images are still displayed! If the figure is a diagrams (
tikzpictureetc.) from an external file then the file name is also to be displayed. (Which actually might be already the case from the previous point). \labels and\refs should be displayed using the internal name (as\marginpars again)- Bonus: Citiation keys (
\cite) should be displayed like labels.
I know about packages which do display labels so this should be easily done but the rest needs some custom code I think.

\beginmacro. – Martin Scharrer♦ Jul 14 '11 at 17:52\inputlinenowhich is a number register. So\the\inputlinenowould print it. – Martin Scharrer♦ Jul 14 '11 at 21:25