0

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?

1

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}}
\hyperlink{wrong}{\beamerbutton{I jump to third slide of next frame}}

A complete example:

\documentclass{beamer}

\begin{document}

\begin{frame}
What is the color of the white horse of Henri IV?
\hyperlink{good}{\beamerbutton{White}}
\hyperlink{wrong}{\beamerbutton{Blue}}
\end{frame}

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.