# comment – Selectively include/exclude portions of text

Selectively include/exclude pieces of text, allowing the user to define new, separately controlled, comment versions. All text between \comment ... \endcomment or \begin{comment} ... \end{comment} is discarded. The opening and closing commands should appear on a line of their own. No starting spaces, nothing after it. This environment should work with arbitrary amounts of comment, and the comment can be arbitrary text.

Other ‘comment’ environments are defined and selected/deselected with \includecomment{versiona} and \excludecoment{versionb} These environments are used as \versiona … \endversiona or \begin{versiona} … \end{versiona} with the opening and closing commands again on a line of their own.

 Sources /macros/latex/contrib/comment Documentation READMEPackage documentation Version 3.8 Licenses GNU General Public License, version 2 Maintainer Victor Eijkhout Contained in TeX Live as commentMiKTeX as comment Topics Conditional compilationEditorial

## Announcements

Here you can see a respective diagram in newer browsers.

more

## Suggestions

Maybe you are interested in the following packages as well.

more