Presentation: unroll on the same line

Hi!

When making a presentation, is it possible to have an unroll environment where each new step appears on the same line, instead of making a new line for each step?

For example: I have a list of items horizontally on the same row and I want to sequentially have them appear on the same row from left to right.

This could be done with overlays, but would be a bit cumbersome to implement for many steps on many slides, and it seems like this would be a great option (and a simple change) to the unroll environment if it does not already exist.

Thanks!

I wrote a macro that does what you want—I do not understand how what I did works though, and I do not know what controls what :wink:

One needs to

  1. Define a new environment, let’s call it unroll-inline
<assign|space-extra|<macro|x| <arg|x>>>

<assign|unroll-inline|<xmacro|args|<style-with|src-compact|none|<arg|args|0><map-args|space-extra|concat|args|1>>>>
  1. Add unroll-inline to the Scheme group unroll-tag, to let TeXmacs attribute to unroll-inline the behaviours shared by the group elements (define-group adds to a group, not only defines it). I did it in my-init-texmacs.scm, did not test whether it works or not somewhere else.
(define-group unroll-tag unroll-inline)

In Beamer style, the “previous” and “next” buttons do unroll.

I had to copy-paste the definition of comma-separated from the manual in order to be able to write unroll-inline because I did not understand how to insert arguments in the xmacro body neither how to insert a concat tag.
The structured insert buttons that appear when the cursor is inside the unroll-inline macro may be connected to the xmacro and not to the unroll-tag group.

I would appreciate someone else sorting out what I have not been able to sort out.

1 Like