Changes

Jump to navigation Jump to search
3,388 bytes added ,  12:48, 8 June 2020
m
no edit summary
< Probably for your [[VisualsPresentations|slides]] | , probably for some [[Presentations]] Animation| [[Layersanimation]] >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 '''Beware''', this doesn’t work in current (2018) MkIV. Have a look at [[PresentationsViewer Layers]], {{src|attr-lay.mkiv}}. == Overview == On the [http://archive.contextgarden.net/thread/20050707.223338.a9169811.html mailing list] Hans suggested many different ways (astonishing easy to use) to hide the content in a PDF document. Sadly, most of them are viewer-dependent. {|slidesclass="wikitable"|-! method ! properties|- valign="top"| <texcode>\defineeffect[my-secrets][layer], probably for some [state=top]\starteffect[Animationmy-secrets]My public secret.\stopeffect</texcode>|animation* makes (invisible) layer on top (JS-based)* completely hides everything* works with newer Adobe Acrobat/Viewer; in most other browsers the content is not hidden* I managed to freeze Acrobat 6.0 pro when trying to save the text|- align="left" valign="top"| <texcode>\defineeffect[my-hesitations][layer][state=stop] \starteffect[my-hesitations]To \ConTeXt\ or for whatever reason not to \ConTeXt?\stopeffect\button{Show Decision}[VideLayer{my-hesitations}]\button{Hide Decision}[HideLayer{my-hesitations}]\button{Toggle Decision}[ToggleLayer{my-hesitations}]</texcode>| * makes (invisible) layer, which can be switched on and off (JS-based)* you may want can switch the content on and off* when hidden, it: you is completely hidden* works with newer Adobe Acrobat/Viewer; in most other browsers the content is not hidden* even some new Acrobat versions can hide some content from 't handle the documentbuttons|- align="left" valign="top" | <texcode>\starteffect[hidden] % In MkIVMy secret hidden for Adam's apple ;)\stopeffect</texcode>| * makes transparent fonts* no JavaScript* pretty safe for different viewers* only text is hidden, but not images, rules, while leaving exactly ...|- align="left" valign="top"| [[Hiding Content#The plain TeX way|the same amount plain TeX way]]| * puts a blank box instead of space as that its content (letter)* absolutely no content would need if typeset in the document, not even hidden (only blank space)* only works for letters and whitespace, no macros, no figures, ...|} == The plain TeX way == This example was adapted from the TeXBOOK. However, it can only handle usual waytext. Forget about macros, forget about graphics ... I hope and still believe that it is possible to extend this macro to make it work in general case. This is done by placing would also be a preferred solution as it doesn't depend on the viewer's JavaScript ''in''capabilities. <texcode>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the portion of code adapted from the content on a layer TeXBOOK, Excercise 11.5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\dolist{\afterassignment\dodolist\let\next= }\def\dodolist{\ifx\next\endlist\let\next\relax \else \\\let\next\dolist \fi\next}\def\endlist{\endlist} \def\\{\if\space\next\ % assume that \next is not normally visible when the document unexpandable\else\setbox0=\hbox{\next}\setbox1=\hbox{}% \dp1=\dp0\ht1=\ht0\wd1=\wd0\box1\fi} \def\demobox#1{{\dolist#1\endlist}} </texcode> <context> \def\dolist{\afterassignment\dodolist\let\next= }\def\dodolist{\ifx\next\endlist\let\next\relax \else \\\let\next\dolist \fi\next}\def\endlist{\endlist} \def\\{\if\space\next\ % assume that \next is displayedunexpandable\else\setbox0=\hbox{\next}\setbox1=\hbox{}% \dp1=\dp0\ht1=\ht0\wd1=\wd0\box1\fi} \def\demobox#1{{\dolist#1\endlist}} Please write something more interesting on this place\demobox{if you are visiting this page and getting bored.}Thanks. Please write something more interesting on this placeif you are visiting this page and getting bored.Thanks. </context> == Layer: state=top ==
You can try something like:
</context>
<b>== Final Remarks == * Just as a hint</b>: Dondon't ever think about hiding your secrets or solutions to the problems for your students that this way!<br>If you happen to have . Readers with Adobe Acrobat Professional, you can select <i>''Layers</i> '' on the left and switch the hidden layer on again.<br>You have been warned.<font color="red">YOU HAVE BEEN WARNED!</font>* Kerning could cause miniscule differences in the exact placement of the (hidden) content.
[[httpCategory://archive.contextgarden.net/thread/20050707.223338.a9169811.htmlLayout]][[Category:Presentation]]

Navigation menu