0

I'm making slides for Advanced Mathematics using Beamer. I want to place pagenumbers in the frametitle(right corner), is it possible to achieve this effect? Can anyone give me any advice? Thanks a lot! [Sample slide]

% !Tex encoding = UTF-8
% packages
   \usepackage[absolute,overlay]{textpos}
   \usepackage[skins]{tcolorbox}

\mode<presentation>

% Templates
\usetheme{default}
%\usetheme{warsaw}

%======================
%==Alternate Templates
%======================
%\usetheme[height=26pt]{Rochester}
%==Rectangle 
%==[height=26pt]==define the height of frametitle
%==A dominant theme without any navigational elements.
%==It can be made less dominant by using a different color theme.
%\setbeamercolor{structure}{fg=myred!90!black}

% colors
   \definecolor{blue_kuleuven}{RGB}{138,110,17}                 % blue of the university
    \definecolor{dark_blue_kuleuven}{RGB}{122,64,0}             % darker shade of blue
    \definecolor{light_blue_kuleuven}{RGB}{236,189,82}          % lighter shade of blue
   \definecolor {myred} {rgb}{0.55,0,0.1}
   \setbeamercolor{structure}{fg=myred!90!black}

   % inner color
   \usecolortheme{orchid}
   %\setbeamercolor{math text displayed}{fg=black}    % math text
   %\setbeamercolor{math text inlined}{fg=black}
   %\setbeamercolor{example text}{fg=myturquoise}

   % outer color
   \usecolortheme{whale}

% fonts
    %\setmainfont{Time New Roman}
    %\usefonttheme{professionalfonts}
    \usefonttheme[onlymath]{serif}              % math font
    \setbeamerfont{frametitle}{size=\Large}  % frame title font size
    \setbeamerfont{enumerate item}{size=\normalsize} % item symbol font size
    \setbeamerfont{footnote}{size=\tiny}        % footnote font size

% inner theme
   \useinnertheme{rectangles}    % use rectangles
    %itemize list
    \setbeamertemplate{itemize item}[triangle]          % item symbol
    \setbeamertemplate{itemize subitem}[circle]         % subitem symbol

    %enumerate list
    \setbeamertemplate{enumerate item}[numbered]        % item symbol
    \setbeamertemplate{enumerate subitem}[numbered]     % item symbol


%   \setbeamertemplate{sections/subsections in toc}[sections numbered]  % toc symbols
%   \setbeamerfont{section in toc}{series=\bf}
%   \setbeamersize{text margin left=5mm,text margin right=5mm} % text margins

    %blocks
    \setbeamertemplate{blocks}[rounded][shadow=false]

%outer theme
    \setbeamertemplate{navigation symbols}{}        % remove the navigation symbols
    % headline  
%   \setbeamertemplate{frametitle}{
%       \vskip 2mm
%       {
%           \ifnum \thesection=0
%               \insertframetitle
%           \else
%               \thesection~--~\insertframetitle
%           \fi
%       }
%       \vskip 1mm
%       \hrule
%   }

    % footline
    \setbeamertemplate{footline}{
        \hspace{-2mm}
        \vspace{8mm}
                %\begin{textblock*}{1.01\paperwidth}(0mm,0.94\paperheight)
                %   \begin{tcolorbox}[
                %                  arc=0pt,
                %                  boxrule=0pt,
                %                  height=0.04\paperheight,
                %                  width=\paperwidth,
                %                            coltext=black,
                %                            skin=bicolor,
                %                            valign=center,
                %                            halign=center,
                %                            interior style={left color=lightgray!80!white,right color=lightgray!90!white}
                %                        ]
                %                 \insertframenumber/\inserttotalframenumber 
                %             %    insert pagenumbe
                %   \end{tcolorbox}
        %。  \end{textblock*}
%       \begin{textblock*}{1.01\paperwidth}(0.92\paperwidth,0.945\paperheight)
%           \includegraphics[width=0.08\paperwidth]{fig/cufe_logo_2}
%       \end{textblock*}
    }


% bibliography
    \setbeamertemplate{bibliography item}{[\theenumiv]}
    \setbeamertemplate{bibliography entry title}{\\}
    \setbeamertemplate{bibliography entry location}{\\}
    \setbeamertemplate{bibliography entry note}{\\}

\mode
<all> 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.