slipshow icon indicating copy to clipboard operation
slipshow copied to clipboard

carousel flipping from outside

Open nilsbecker opened this issue 6 months ago • 4 comments

To sync carousel page flips with outside steps, it would be good to be able to invoke {change-page=carouselid} from other places, outside the carousel block. I have not been able to get this to work.

nilsbecker avatar Oct 06 '25 08:10 nilsbecker

I don't think there is a need for change-page to be inside the carousel. See for instance this test file.

If you send me an example of something you've tried and it failed, I can have a better look!

panglesd avatar Oct 07 '25 21:10 panglesd

ok, i'll see if i can reproduce. i do remember it failing...

nilsbecker avatar Oct 09 '25 08:10 nilsbecker

here is an example. am i doing it wrong?

{carousel #timesink}
> > - point one  
> > Recomputing $\rho$ seems to require solving the ODE again → slow.  
> 
> > - *But really it doesn't!*

{step change-page=timesink}

{pause}
- Here's why

nilsbecker avatar Oct 09 '25 09:10 nilsbecker

Hmm, I think that you are seeing the bug fixed by #170: In your example, the second "page" of the carousel is a blank line. So when you "change-page", the carousel goes to the second page (some whitespace, so invisible).

Until #170 is released, you can use change-page='~n:+2 timesink' to go from page 1 directly to page 3.

panglesd avatar Oct 10 '25 12:10 panglesd