Can we add a button in Beamer to see whether the students checked the right answer?

Can we add a button in Beamer to see whether the students checked the right answer?

Give some multiple choices, then click the button, if the answer is right, then you will see "Good!", otherwise, you will get "Oh, be careful"

Can we attain this goal?

• Erh, what does this has to do with beamer? A class made to make presentations, how is that related to student interaction? – daleif Dec 27 '15 at 9:55
• thogh the pdf format can do this by now with certain readers, i would not recommend doing this. There are much better methods for interactive learning. – Johannes_B Dec 27 '15 at 10:04
• Acrotex, though commercial or low-level JavaScript -- I've looked for such stuff some years ago, but I was not convinced and dropped the interactive features of .pdf files generated with LaTeX – user31729 Dec 27 '15 at 10:11
• – Dr. Manuel Kuehner Dec 27 '15 at 10:29

You may try to put two different buttons with one (which is the right answer) goes to the "Good!" slide and the other one (which is the wrong answer) goes to the "Oh be careful" slide.

First place these two commands in the second and third slides respectively :

\hypertarget<1>{good}{\beamerbutton{I'm on the second slide - Good}}
\hypertarget<1>{wrong}{\beamerbutton{I'm on the third slide - Oh be careful !}}


Then, in the first slide, put :

\hyperlink{good}{\beamerbutton{I jump to second slide of next frame}}


A complete example:

\documentclass{beamer}

\begin{document}

\begin{frame}
What is the color of the white horse of Henri IV?