I am commenting on a LaTeX document (with todonotes), and I would like to put a reference to a line in the source code, writing e.g.:
See the code around line 123 of foo.tex to please fix this ugly equation.
foo.tex itself is included into a main.tex document, which contains the document's head and \include statements to all other document parts.
Is such a thing possible?
\todo{See the code at line 123 of foo.tex}. But that isn't what you're asking, obviously. Could you be clearer what you want? You want to use the\labeland\refmechanism to refer to a line in the code? – Seamus Jul 17 '12 at 15:27\todo{foo}to place a little comment on the side of my document. Often, these comments are about a misplaced character or a suggested fix of the underlying source. In these cases, I want the reader/author to be quickly able to locate the part I commented on in the source. Therefore I need the line number and source file where my comment is located in. – mSSM Jul 17 '12 at 15:30