"spoiler" format

Hi all,

Is there a way to make an interactive “spoiler” format? I am comfortable with writing scheme if that’s needed (though haven’t read that part of manual yet). This is really useful for writing editorials for problems, so that future when I want to get a hint I can just click it.

I am aware of the fold / unfold function. More ideally I would like a black rectangle that when clicked, reveal the content behind it :slight_smile:

Have you tried the options under Insert → Fold → Folded? At least for me, they are usually sufficient for this purpose.

The style Education->Exam has a question/asnwer environment which folds leaving only the question and an “arrow” which you can click to reveal the answer. You can look there for an example on how to implement such a feature…