Jeremy C. Reed wrote:
> This works for me (using \invisible instead of \unvisible).
Yes, this was a typo. Sorry.
> I am not sure if it is possible, but it would be great if I could make it
> smarter so the blank space could be done at the bottom of the page. Right
> now, I use \invisible for my instructor notes, so the student's handouts
> now have random white space. Hmmm... even though it looks strange, maybe
> this is okay, since they can use that space to take hand-written notes.
At the bottom of each page? That is difficult. You can try to set the contents
into a minipage into a float with b[ottom] placement. I don't know if that
method is save though. And the number of floats is limited:
\usepackage{ifthen}
[EMAIL PROTECTED]
\usepackage[dvips]{color}}
\newboolean{HIDE}
\newcommand\invisible
{\ifthenelse{\boolean{HIDE}}{%
\begin{figure}[b]%
\begin{minipage}[c]{1.0\columnwidth}%
\color{white}
}{}}
\newcommand\visible
{\ifthenelse{\boolean{HIDE}}{%
\end{minipage}%
\end{figure}
\color{black}
}{}}
Perhaps there are better solutions.
If you just want to comment out the contents, use the comment-environment:
\usepackage{ifthen}
\newboolean{HIDE}
\newcommand\invisible
{\ifthenelse{\boolean{HIDE}}{%
\begin{comment}}{}}
\newcommand\visible
{\ifthenelse{\boolean{HIDE}}{%
\end{comment}}{}}
> Also, it would be cool if the content could be highlighted and there was a
> button to toggle \invisible on and off.
What do you mean by highlighted? You can certainly use any emphasizing method
and color or, if you want highlighted background, the soul package.
A gui element (button) for this is overloaded IMHO. It's not too difficult to
toggle the HIDE switch manually.
Regards,
Juergen.