Take the 2-minute tour ×
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.

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
add comment

1 Answer 1

up vote 10 down vote accepted

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

\usepackage{environ}
\NewEnviron{killcontents}{}
\let\proof\killcontents
\let\endproof\endkillcontents

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. –  tohecz 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
add comment

Your Answer

 
discard

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.