I like to have in frame with option \allowframebreaks different \framesubtitle. Solution provided by samcarter_is_at_topanswers.xyz in change-frame-subtitle-after-a-framebreak fulfil this my wish, however I like to change a way of numbering of frames. Instead of \Roman numbers i like to have \arabic numbered on the following way
(<frame number>/<number of slides in frame>)
which in the case when frame has three slides, are numbered as (1/3), (2/3) and (3/3). How to achieve this?
Code in given link is:
\documentclass{beamer}
\makeatletter
\newcommand*{\slideinframe}{\number\beamer@slideinframe}
\newcounter{bar}
\newcommand{\foo}{%
\setcounter{bar}{\insertframeendpage}%
\addtocounter{bar}{-\insertframestartpage}%
\addtocounter{bar}{1}%
(\slideinframe/\thebar)%
}
\makeatother
\usepackage{lipsum}
\begin{document}
\begin{frame}%[allowframebreaks]
\frametitle{Foo \foo}
\only<+>{
\framesubtitle{Bar}
}
\lipsum[1]
%\framebreak
\only<+>{
\framesubtitle{Baz}
}
\color{red}\lipsum[2]
\end{frame}
\end{document}
what it do, but consider solution suggested in @samcarter_is_at_topanswers.xyz answer frame is not divided on slides:
But when I uncomment lines in above MWE, slides appear, but numbering not works anymore as expected...



\lipsum[1]after eacj subtitle ,, text are not in own slide, but it continues and is cut after first frame. Addingallowsframebreaksresulted in correct breaking frame into slides, but numbering is corrupted. SO so far only +1 for your effort. – Zarko Jan 28 '24 at 19:14allowframebreaks, this option is not really compatible with overlays. Instead use\only<...>{...}etc. to split your text across the slides. – samcarter_is_at_topanswers.xyz Jan 28 '24 at 19:17