This is kind of similar to some of the pdf to latex questions but from a different angle. I'm not looking for a complete LaTeX reconstruction method, I want to know if the comments are safely hidden.
My scenario is that I would like to distribute a sample test to my students which includes the real test or some variation of it commented out---that way I can keep the same file from year to year without having to manage multiple documents. I'm pretty sure that what's commented out is dropped entirely from the compiled document but I'd like to be absolutely certain before I distribute such a pdf. Is there any way whatsoever to extract commented lines from the final pdf? If it makes any difference, I'll probably be using XeLaTeX.
\the\inputlinenowill put something different into the PDF file if you add a comment line before it, so comments are not "completely ignored" when applying smartass criteria. But certainly well enough for the given application. Source specials also give away input location data, so if the length of a comment is relevant (like "is the shortest sequence matching the criteria less than 20 lines?")... – user9588 May 31 '12 at 07:53:D– Count Zero May 31 '12 at 11:50attachfileand then everything is visible again. But this won't happen without explicitly requesting / including it. – topskip Jun 12 '12 at 20:32.dvior.pdffile. Of course the.synctexfile mustn't be included when distributing the output file. :) – egreg Jun 16 '12 at 20:47