I am looking a way to generate a toggle region in PDF compiled by pdflatex. Something like this implemented with javascript in html
http://www.randomsnippets.com/2008/02/12/how-to-hide-and-show-your-div/
I remember long time ago I saw a post online to implement this function but I can't find that post anymore.
ocgxfrom Paul Gaborit. The manual has a few nifty examples. http://tex.stackexchange.com/questions/65096/how-to-make-a-diagram-composed-of-superimposed-layers-where-the-viewer-can-make – percusse Feb 01 '13 at 01:20