A highly regarded professor of mine is currently writing a graduate mathematics textbook in which he has given the book a theme of ``do it yourself'' mathematics.

He has asked me to review the book in its early drafts, and one thing I've noticed is that some one the theorems that are left for the reader to prove would benefit from a simple spoiler in the spirit of those on math.se

For example, a good use of the spoiler's functionality can be found here.

So, my question is whether or not it is possible to implement this functionality in pdf documents.

Something like:

Theorem 4.5: There are infinitely many primes.

! Suppose there were finitely many primes. Multiply them together and add 1. What can you say about this new number?

Thanks for you help.

closed as unclear what you're asking by Mensch, Stefan Pinnow, Andrew Swann, Mico, Zarko Jun 5 '16 at 19:39

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Note that spoilers don't work here once the question is posted even though they work when you are editing it. – cfr Nov 20 '15 at 22:31
  • Related or possibly duplicate: pdftooltip from pdfcomment package: Using LaTeX code in tooltip – Mike Renfro Nov 20 '15 at 22:35
  • @MikeRenfro That code doesn't seem to render for me in Sublime Text 3 – Anthony Peter Nov 20 '15 at 22:51
  • @MikeRenfro Or at all when using overleaf – Anthony Peter Nov 20 '15 at 22:55
  • 1
    A lot of this type of thing is specific to Adobe Reader. Try that as well? – Mike Renfro Nov 20 '15 at 23:02