How to hide\unhide proofs (or sections/blocks ) easily?

1,556 views
Skip to first unread message

Hakan

unread,
Oct 14, 2009, 1:24:06 PM10/14/09
to LaTeX Users Group
Hello there,

I have been looking for a solution to this problem for a while. I
would like to be able to easily hide or unhide proofs (or any part of
the document for that matter) in my paper so that when I print it I
can see my paper without any proofs. But I would like to be able to do
\undo that without going through all proofs and putting/removing
comment symbols there.

All answers appreciated. Thank you very much.

jon

unread,
Oct 14, 2009, 1:33:42 PM10/14/09
to LaTeX Users Group
On Oct 14, 1:24 pm, Hakan <bezgi...@gmail.com> wrote:
> I have been looking for a solution to this problem for a while. I
> would like to be able to easily hide or unhide proofs (or any part of
> the document for that matter) in my paper so that when I print it I
> can see my paper without any proofs. But I would like to be able to do
> \undo that without going through all proofs and putting/removing
> comment symbols there.

maybe:

http://www.ctan.org/tex-archive/help/Catalogue/entries/comment.html

cheers,
jon.

Werner Grundlingh

unread,
Oct 14, 2009, 1:36:28 PM10/14/09
to LaTeX Users Group
Consider using the comment package, available online via CTAN from:
http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=comment

Here's an extract from the package description:

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.

Werner

Hakan

unread,
Oct 14, 2009, 1:59:07 PM10/14/09
to LaTeX Users Group
Dear Jon and Werner,

I am grateful! Thank you very much indeed.

Hakan
Reply all
Reply to author
Forward
0 new messages