4

I am using a customized Copenhagen theme, where my header line is redefined like

\setbeamertemplate{frametitle}{\nointerlineskip  
\begin{beamercolorbox}[wd=\paperwidth,ht=2.75ex,dp=1.375ex,left]{frametitle}
\hspace*{2ex}\strut\insertframetitle\strut\par%
\end{beamercolorbox}}

Now, I want to add the frame numbering on the right side of this header line as shown in the image. enter image description here

It would be more helpful, if I can set the size (small or tiny) of the numbers too...

Thanks in advance and waiting for reply...

1

1 Answer 1

6
\documentclass{beamer}

\usetheme{Copenhagen}

\setbeamertemplate{frametitle}{\nointerlineskip  
    \begin{beamercolorbox}[wd=\paperwidth,ht=2.75ex,dp=1.375ex]{frametitle}
        \hspace*{2ex}\insertframetitle \hfill {\tiny\insertframenumber} \hspace*{1ex}%
    \end{beamercolorbox}}


\begin{document}

    \begin{frame}
        \frametitle{test}
    \end{frame}

    \begin{frame}
        \frametitle{test}
    \end{frame}

\end{document}  

enter image description here

2
  • Wavoo, that was a quick and wonderful answer ! Thank you very much Sam...
    – Ashok
    Mar 20, 2015 at 4:37
  • If this solved your problem please consider marking it as ‘Accepted’ by clicking on the tickmark below the vote count Mar 20, 2015 at 9:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .