For some beamer related code in one of my packages, I need to access the current overlay number. I mean the internal number used for things like \only<1>{..}.
\only<1>{ Some internal number must be one in here }
\only<2>{ But 2 in here }
\only<1-5>{\includegraphics[page=(current overlay number)]{...}}
I checked the beamer manual and did not find any information about this. I checked the source code and found some related macros/counters, but they didn't always hold the correct values. \beamerpauses seems not the correct one either. Does anyone know the "official" counter/macro for this number?
\overlaynumber\is 2 on both pages. – Rubi Shnol Aug 29 '20 at 14:45