<TeXmacs|1.0.7.15>

<style|generic>

<\body>
  <screens|<\shown>
    <section|first slide>\ 

    containing an executable switch

    <script-input|maxima|default|diff(cos(x^2),x)|<with|font|modern|<math|-2*x*sin
    <around*|(|x<rsup|2>|)>>>>

    You can evaluate the switch or not, but in order to observe the bug you
    have to return it to the ``input box'' state.

    Then navigate to the next (and last) slide using two different methods:

    <\itemize-dot>
      <item>first with ``next slide button'' or ``page down'' key. Observe
      the top of the slide: it starts with ``final slide''. This is normal
      behavior.

      <item>then with ``last slide button'' or F12 key. Then the output of
      the executable switch is inserted at the top the last slide. If you
      navigate back here with ``previous slide'' the switch indicates
      ``busy''.
    </itemize-dot>

    If the document contains several executables switches (possibly of
    different plugins and on different slides) that are in their ``input
    state'' at the moment you press F12, alls their outputs (images,
    formulas...) are prepended to the content of the last slide. This happens
    each time you press F12, even for slides that you have already passed.\ 

    Note that F9 (goto first slide) does the opposite: it returns all
    executable switches in their unevaluated state. So if you press F9 then
    F12, you get all the outputs of the switches at the top of the last
    slide.

    My guess is that when you press F12 for some reason all ``pending''
    executables are evaluated (even those that are not visible, even those
    that are on previous slides), and their output is inserted (after some
    computation delay) when the cursor is already on the last page.
  </shown>|<\hidden>
    <section|final slide>\ 

    (should have no switch, no equation, no image).

    \;
  </hidden>>
</body>

<\initial>
  <\collection>
    <associate|language|british>
    <associate|preamble|false>
    <associate|prog-scripts|maxima>
  </collection>
</initial>

<\references>
  <\collection>
    <associate|auto-1|<tuple|1|?>>
    <associate|auto-2|<tuple|2|?>>
  </collection>
</references>

<\auxiliary>
  <\collection>
    <\associate|toc>
      <vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|first
      slide> <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
      <no-break><pageref|auto-1><vspace|0.5fn>

      <vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|final
      slide> <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
      <no-break><pageref|auto-2><vspace|0.5fn>
    </associate>
  </collection>
</auxiliary>