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.

In other words, I'd like to have the comment environment of the verbatim package "inverted". I am pretty sure I read about some package allowing this some time ago, but I can't recall its name (nor can I Google it), and I don't want to reinvent the wheel...

share|improve this question
    
Also note: there is also the comment package which allows you to define your own comment environments and enable or disable them. –  Martin Scharrer May 19 '11 at 17:11
    
I know that, but still this is not what I want. But thanks anyway! –  mbork May 19 '11 at 17:30
add comment

2 Answers

up vote 5 down vote accepted

OK, so I found it myself. It is the xcomment package. (From a glance at the code I suppose that it's an old, LaTeX 2.09 style file, but it seems to work fine with LaTeX2e.)

share|improve this answer
2  
A small code example would be great. –  Martin Scharrer May 14 '12 at 10:32
add comment

The preview package provides a preview environment and when active (active option) only displays the content in such environments. However, every environment is placed on its a page of its own, which might not what you want.

share|improve this answer
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.