GeneralComment environment

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Christos
Posts: 25
Joined: Sun Nov 30, 2008 10:06 pm

Comment environment

Post by Christos »

Hi all,
I have a problem with the comment command. Specifically, the \begin{comment}....\end{comment} does not seem to work for me even with the simplest preamble:

\documentclass[a4paper,11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[latin1]{inputenc}

The error I get is: LaTeX Error: environment comment undefined.

Does anyone have a clue?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

marco_d
Posts: 57
Joined: Tue Jan 20, 2009 7:49 pm

Comment environment

Post by marco_d »

Hello,

you need the package.
http://tug.ctan.org/cgi-bin/ctanPackage ... id=comment

regards
Marco
i am German. I can not use difficult words. :-)
Christos
Posts: 25
Joined: Sun Nov 30, 2008 10:06 pm

Re: Comment environment

Post by Christos »

Marco,
thank you for your reply. Nevertheless, just found another way out. This environment can also be used with the verbatim package in the preamble. But a better way that I googled (void of many or new packages) is the following:

\newcommand{\comments}[1]{}

So, with: \comments{abcde....} the text is commented out.
Post Reply