TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

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. – kiss my armpit Jul 3 '12 at 8:53
up vote 11 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


before the section and


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.