Difference between revisions of "Hiding Content"

From Wiki
Jump to navigation Jump to search
m (head links)
(Clarified language, added another example for comparison.)
Line 1: Line 1:
 
< [[Visuals]] | [[Presentations]] | [[Layers]] >
 
< [[Visuals]] | [[Presentations]] | [[Layers]] >
  
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.  This is done by placing the content on a layer that is not normally visible when the document is displayed.
  
 
You can try something like:
 
You can try something like:
Line 36: Line 36:
 
</context>
 
</context>
  
 +
This can be compared to the non-hidden version, which is:
 +
 +
<context>
 +
I don't tell this to everybody:
 +
{\quotation{\ConTeXt\ goes beyond the limits of imagination, that's why I love it!}}
 +
You'll understand that once you get to know it better.
 +
</context>
  
 
<b>Just as a hint</b>: Don't ever think about hiding your secrets or solutions to the problems for your students that way!<br>
 
<b>Just as a hint</b>: Don't ever think about hiding your secrets or solutions to the problems for your students that way!<br>

Revision as of 00:56, 4 August 2005

< Visuals | Presentations | Layers >

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. This is done by placing the content on a layer that is not normally visible when the document is displayed.

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

This can be compared to the non-hidden version, which is:

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]]