GeneralCommenting a complete Paragraph

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Commenting a complete Paragraph

Post by pallav »

While typing the source file we sometimes want to make a comment which will not appear in the typeset version. For this we start the line with % and for this the whole line will be ignored during typesetting and not shown in the out put file.

A single % sometimes cannot ignore for the case of a long paragraph (with texts and equations). Instead of typing % at the start of each line of the paragraph, is there any alternative and easiest way to ignore the paragraph? If yes, how?

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Commenting a complete Paragraph

Post by Stefan Kottwitz »

You could use the comment package or the verbatim package. Both provide environments to comment out whole paragraphs and more.

Stefan
LaTeX.org admin
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Re: Commenting a complete Paragraph

Post by pallav »

Thank you very much for your quick reply.
Post Reply