Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The usual behavior of beamer when using \framebreak is to change the title of the current frame by adding a "local numbering" of the slide within those "broken frames".

I would like to achieve the same result on some frames (this can't be a global behavior change) when using \uncover, \only, \alt and such, but for now, I do it by hand, e.g.

\documentclass[svgnames,smaller]{beamer}
\usepackage{tikz}
\usepackage[utf8]{inputenc}
\usetheme{Warsaw}

\begin{document}

\begin{frame}
\frametitle{HELLO \uncover<1->{I}\uncover<2->{I}\uncover<3->{I}}
\uncover<1->{ A \\}
\uncover<2->{ B \\}
\uncover<3->{ C \\}
\end{frame}

\end{document}

So my two question are pretty straightforward : do you know how to this properly (for example, I can't go beyond a counter value of 3 in this piece of code)? and what is the beamer counter that stores the "local numbering" I was referring to earlier in this post.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

If I understand correctly your message, you're trying to put in the frame title the Roman number of the slide:

\newcommand{\slidenumber}[1]{%
  \csname @#1\expandafter\endcsname\csname beamer@slideinframe\endcsname}

\begin{document}

\begin{frame}
\frametitle{HELLO \slidenumber{Roman}}
\uncover<1->{ A \\}
\uncover<2->{ B \\}
\uncover<3->{ C \\}
\end{frame}

\end{document}

You can use also \slidenumber{arabic}, \slidenumber{roman} or even \slidenumber{alph} and \slidenumber{Alph}.

share|improve this answer
    
Perfect, I didn't know about beamer@slideinframe ! –  user8947 Nov 12 '11 at 9:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.