Text FormattingAre "spoilers" feasible in TeX?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
drowsy
Posts: 44
Joined: Tue Dec 23, 2008 6:00 am

Are "spoilers" feasible in TeX?

Post by drowsy »

Is it possible to prepare latex documents with "spoilers"?
This is when some parts of your text are "folded",
but it is possible to unfold them by clicking.

Of course, this would be only for on-screen usage, no printing.


The idea is to present math proofs on "global" scale:
first you see how the proof goes. If you understand every step, you are fine. If not, you can open the proof of that step. It can consist of sub-claims and lemmas. If you can see how this lemma can be proved, you just skip it. Otherwise you can read it by unfolding the proof.
Last edited by drowsy on Mon Jan 26, 2009 5:38 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

drowsy
Posts: 44
Joined: Tue Dec 23, 2008 6:00 am

Re: Are "spoilers" feasible in TeX?

Post by drowsy »

It should be doable, I think, since javascript code can be embedded in latex documents.

Mmm, but can xpdf / evince / okular display documents with javascript? Does not look like it.
Post Reply