I am writing my thesis,

and i am in restructuring phase - sorting theorems where they should belong thematically. And it would be helpful to have all the proofs hidden so i am not laden with the additional information.

Is it possible to add something like hideproof to documentclass options to omit them when compiling the latex file.


You can put this code to the very end of your preamble:


It defines the environment killcontents that kills its contents, and then "maps" proof environment to killcontents.

| improve this answer | |
  • Won't just \newenvironment{killcontents}{}{} do, so you don't need the environ package? Also, I don't think there is a second {} for \NewEnviron – Peter Grill Mar 4 '12 at 18:26
  • @PeterGrill No. Such environment would do nothing, i.e. leave its contents as is. And you are right, the second {} is a non-sense, edited. – yo' Mar 4 '12 at 22:15
  • Duhhh??? Don't know what came over me. Must have been a momentary lapse of reason. – Peter Grill Mar 4 '12 at 23:28
  • It was very helpful for me. Great! – nichas Oct 13 '12 at 18:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.