[Tex/LaTex] Beamer: page number position


I am using Beamer and I managed to put next to the page number the word "Pag:". To do so, I used \raisebox{1.39cm} (line 28 of the code below) until Pag. and the page number were aligned. However, even if it works, I do not like this solution because it is not precise. Can you come up with a better solution?

\usepackage{pifont} %per il simbolo dell'elenco puntato
\setbeamercolor{item}{fg=black} %simbolo elenco puntato di nero
\setbeamercolor{frametitle}{fg=black} %frametitle di colore nero
\renewcommand{\sfdefault}{phv} %cambia il font


                      %   Code for the number position of the page  %

\setbeamercolor{page number in head}{fg=black}

\defbeamertemplate{footline}{myframe number}
  \usebeamercolor[fg]{page number in head}%
  \usebeamerfont{page number in head}%
  \raisebox{1.39cm}[0pt][0pt]{ %<----------------  Vertical position of the number
  \shifttext{-619pt}{\insertframenumber}} %<------ Horizontal position of the number


\setbeamertemplate{footline}[myframe number]

                      %  End of the code

\setbeamersize{text margin left=40pt,text margin right=40pt}



%                         Position of Pag.                  
\begin{textblock*}{100mm}[0.88,-48.2](.85\textwidth,-1cm) %[0.88,-48.2] are coordinates
\tiny Pag.}

  \item[\ding{226}] Text



enter image description here

Best Answer

You can define the footline like this:

  \usebeamercolor[fg]{page number in head}%
  \usebeamerfont{page number in head}%
  Pag. \insertframenumber