Difference between revisions of "Hiding Content"

From Wiki
Jump to navigation Jump to search
 
(Secret removed from <context>...</context> :) Had to be faked.)
Line 1: Line 1:
 
Probably for your [[Presentations|slides]], probably for some [[Animation|animation]] or for whatever reason you may want it: you can hide some content from the document, while leaving exactly the same amount of space as that content would need if typeset in the usual way.
 
Probably for your [[Presentations|slides]], probably for some [[Animation|animation]] or for whatever reason you may want it: you can hide some content from the document, while leaving exactly the same amount of space as that content would need if typeset in the usual way.
 +
 +
You can try something like:
  
 
<texcode>
 
<texcode>
Line 13: Line 15:
 
</texcode>
 
</texcode>
  
<font color="red">How can I make this example work on the Wiki?</font>
+
which results in
  
 
<context>
 
<context>
 +
\setupcolors[state=start]
 
\defineproperty[my-secrets][layer][state=top]
 
\defineproperty[my-secrets][layer][state=top]
  
Line 21: Line 24:
 
%
 
%
 
\startproperty[my-secrets]%
 
\startproperty[my-secrets]%
\quotation{\ConTeXt\ goes beyond the limits of imagination, that's why I love it!}
+
%
 +
% for the curious eyes: this effect was faked on Wiki as it doesn't work otherwise
 +
% (when PNG is generated from the PDF, the hidden layer becomes visible)
 +
%
 +
\color[white]{\quotation{\ConTeXt\ goes beyond the limits of imagination, that's why I love it!}}
 
\stopproperty
 
\stopproperty
 
%
 
%

Revision as of 23:18, 7 July 2005

Probably for your slides, probably for some animation or for whatever reason you may want it: you can hide some content from the document, while leaving exactly the same amount of space as that content would need if typeset in the usual way.

You can try something like:

\defineproperty[my-secrets][layer][state=top]

I don't tell this to everybody:
%
\startproperty[my-secrets]%
\quotation{\ConTeXt\ goes beyond the limits of imagination, that's why I love it!}
\stopproperty
%
You'll understand that once you get to know it better.

which results in


Just as a hint: Don't ever think about hiding your secrets or solutions to the problems for your students that way!
If you happen to have Adobe Acrobat Professional, you can select Layers on the left and switch the hidden layer on again.
YOU HAVE BEEN WARNED!

[[1]]