LaTeX forum ⇒ Text FormattingAre "spoilers" feasible in TeX?

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

Are "spoilers" feasible in TeX?

Postby drowsy » Mon Jan 26, 2009 3:37 am

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.

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

Postby drowsy » Mon Jan 26, 2009 5:36 am

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.

Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 3 guests