add tag
4 years ago topnush

Consider the following MWE:

When it gets to First line I would like the counter to be back at 1 so that it underlines from the 1…9 instead of 5…9. Similarly for the two lines below they should be going from index 1, not 5. Is there any way to do that?

Top Answer
4 years ago user 3.14159

You can use the counter beamerpauses (I think).

ani.gif

4 years
topnush replying to user 3.14159 — Wednesday, 5th May 2021 17:36

the new version is perfect. Thank you

user 3.14159 replying to topnush — Wednesday, 5th May 2021 17:36

I think that now I finally understood what you want to achieve. Please have a look.

22 minutes
topnush — Wednesday, 5th May 2021 17:13

similarly S should be {1}, {1,2} etc.

topnush replying to user 3.14159 — Wednesday, 5th May 2021 17:13

it (at least the animation) still isn’t right. s/t should be 1,1,1, 0.75, 0.6, 0.5,0.429,0.375,0.333 but in your animation it is 0.6, 0.5, 0.429, 0.375, 0.333 then blank

user 3.14159 replying to topnush — Wednesday, 5th May 2021 17:09

Better now? (I am wondering what the purpose of \uncover<1->{...} is, naively it seems not to have an effect.)

topnush replying to user 3.14159 — Wednesday, 5th May 2021 17:07

it still seems to be 1-9 where it should be 1-

user 3.14159 — Wednesday, 5th May 2021 16:58

@topnush Done.

6 hours
samcarter replying to topnush — Wednesday, 5th May 2021 10:33

I wonder who said this 😃 Yes, it is true that \uncover is more powerful than \pause - but that does not mean that you should use both, one of them is enough 😃

19 minutes
topnush — Wednesday, 5th May 2021 10:14

but having both is clearly silly here

topnush replying to samcarter — Wednesday, 5th May 2021 10:14

just deleted the (first) uncover 😃 I feel someone said that \pause wasn’t as good as \uncover that’s the only reason

samcarter replying to topnush — Wednesday, 5th May 2021 10:11

Why are you using the \uncover anyway? The \pause before takes care of it not appearing earlier.

15 minutes
topnush replying to samcarter — Wednesday, 5th May 2021 09:56

thank you

topnush replying to user 3.14159 — Wednesday, 5th May 2021 09:56

this actually works perfectly. Thank you. You just need to change it to uncover<1->. Could you include it in your answer please?

16 hours
samcarter replying to topnush — Tuesday, 4th May 2021 17:50

The reason not all your values are shown is that with \uncover<1-9>{} you stop it after half the list. You need at least overlays until 13 and not 9 (but the \uncover seems to be superfluous anyway, so I would just remove it)

samcarter — Tuesday, 4th May 2021 17:45

For the first part, you can avoid all the problems with counters and offsets if you let beamer create the overlays with

(for the second part, I think @marmots count= ... from is the easiest solution)

an hour
topnush — Tuesday, 4th May 2021 16:51

instead S and s/t should go through their lists (as your new example does for the first 5) for all 9

topnush — Tuesday, 4th May 2021 16:49

Your animation hasn’t been updated but you can see that S and s/t disappear once 6 is underlined which shouldn’t happen.

topnush replying to user 3.14159 — Tuesday, 4th May 2021 16:48

that is almost it! It is all perfect until I get S = {5,4,3}, s/t = 0.6 and then S and s/t are blank after that. I guess the counter was reset but it still thinks there are only 5 of them instead of 9?

user 3.14159 replying to topnush — Tuesday, 4th May 2021 16:45

I’d say yes but I do not know what the expected result is.

topnush — Tuesday, 4th May 2021 16:41

now it is starting at index 5

topnush — Tuesday, 4th May 2021 16:40

that part should also start from index 1

topnush replying to user 3.14159 — Tuesday, 4th May 2021 16:40
user 3.14159 replying to topnush — Tuesday, 4th May 2021 16:40

Sorry, can you be a bit more specific? What are the two lines below?

topnush — Tuesday, 4th May 2021 16:38

@marmot, re: your answer, will the same trick work if you include the two lines below as well?

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.