I'm writing a document where some text portions are confidential and would therefore like to create an environment (e.g. confidential
) which I can then exclude from the PDF by simply setting a variable or option.
Is there any way of doing this in LaTeX, or better yet, is there a package for this?
Best Answer
You want the comment package. This provides the
\includecomment
and\excludecomment
macros: