Possible Duplicate:
Suppressing remarks when not needed
Is there a way that I can define a new environment in my manuscript which will only be typeset when a flag is activated? Otherwise these blocks should be suppressed.
What I am trying to do is include references to my personal notebooks and files in my Thesis that will only print in a copy for my own reference and not in the final draft.
I also use a Makefile to typeset various draft options. Is there a way to turn on such an option flag with a pdflatex command line argument?
pdflatex "\def\ShowSpecialBlocks{} \input{file.tex}"to process the filefile.tex. Then in your preamble check that this flag was set and use it to enable/disable whatever you are using to switch between showing/hiding your special blocks:\ifdefined\ShowSpecialBlocks flag=true \else flag=false \fi. The actual code will depend on how you are doing your conditionals. – Peter Grill Oct 09 '12 at 22:34commentpackage which I think is all I need. This would not have been an easy answer for me to find though. I wonder how the language can be improved to help search for something like this. – Mike Oct 09 '12 at 22:42[environments][comments]as the search term. But that's really why proper tagging is extremely important. And that's also the reason why we tend to not delete questions as duplicates: So that we have "different wordings" of the same question around, which increases users' chances of finding what they need. – doncherry Oct 09 '12 at 22:43