# Make Beamer slide in one order and display them in another one

I'd like to produce a first set of slides (questions) followed by slides of their answers (because they are calculated together), then a second set of questions and their answers

But show all questions first and only after all the answers.

At compilation :

1. Set A of questions
3. Set B of questions that are inserted between 1/ and 2/
4. Set B of answers that comes normally after 2/

At show :

1. Set A of questions
2. Set B of questions

Is it possible ?

• You are thinking about a single frame environment where you will insert questions and answers (without leaving the frame env), right? – Nico Boni Oct 7 '14 at 19:05
• I thaught about a kind of automatic link that will point on the begining of the next set. – Tarass Oct 7 '14 at 19:24
• would it be possible to set up some kind of a MWE to show what you are trying to achieve and what your actual code looks like? – Nico Boni Oct 7 '14 at 19:29
• It's an automatic questionnary powered in lua, then I will make a table with the answers. Each set of questions will add his answers in it and I'll ask to process it at the end. It's a better approach. Sorry for loss of time. – Tarass Oct 7 '14 at 19:45

You can use \only{} with non-sequential numbering, like this:

\documentclass{beamer}
\begin{document}
\begin{frame}\frametitle{Q\&A}
\only<1>{%
Question from set A

Another question from set A
}
\only<3>{%

}
\only<2>{%
Question from set B

Another question from set B
}
\only<4>{%