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.

Possible Duplicate:
Commenting out large sections

I have in my document a paragraph that I want to keep in my tex source. But when generating the PDF, I don't want it to appear.

How can I hide a paragraph or a whole section ?

share|improve this question

marked as duplicate by doncherry, topskip, barbara beeton, lockstep, ienissei Jul 3 '12 at 16:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Perhaps have a look at some packages like verbatim (comment environment). –  ienissei Jul 3 '12 at 8:52
    
You can sandwich the paragraph or section with a conditional construct. –  Oh my ghost Jul 3 '12 at 8:53

1 Answer 1

up vote 9 down vote accepted

You can put a % at the beginning of every line, or if there are no fancy if-constructs already in the code it is sometimes simpler to put

\iffalse

before the section and

 \fi

after the section.

Or there are comment and other packages which give you comment environments if you would rather use an environment form.

share|improve this answer

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