TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 12 down vote accepted

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.

share|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 posting your answer, you agree to the privacy policy and terms of service.

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