I would like to show two different pieces of listings at the same time in a slide. With the following code the second listing only shows up at the end, while I would like it to alongside with the line 'int y = 20':

    int x = 10; @\pause@
    int y = 20; @\pause@
    int z = 42; @\pause@

     int next (int x)

The delimiters @ are used to escape inside a listing block.

closed as unclear what you're asking by TeXnician, Stefan Pinnow, user36296, egreg, user31729 Jan 5 '18 at 0:10

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Can you please convert your code fragments to a compilable MWE? – user36296 Jul 4 '16 at 13:37