निरंजन
Consider this code:
```
\documentclass{beamer}
\usetheme{Singapore}
\begin{document}
\section{foo}
\begin{frame}{foo}
quack
\end{frame}
\begin{frame}{bar}
quack
\end{frame}
\begin{frame}{foobar}
quack
\end{frame}
\end{document}
```
It produces the following:
![Screenshot_2021-12-14_10-16-31.png](/image?hash=90752fef9a2627d62a428ff9139e145c689943c0d3535e77a8d03b6595dce525)
I love this when there are a lot of `\section`s in my presentation, but if I have just one session, I would love to have the `foo` with three dots to move to the center and with center-alignment. How to do it?
Top Answer
samcarter
Quick hack:
```
\documentclass{beamer}
\makeatletter
\def\insertnavigation#1{%
\vbox{{%
\usebeamerfont{section in head/foot}\usebeamercolor[fg]{section in head/foot}%
\beamer@xpos=0\relax%
\beamer@ypos=1\relax%
\beamer@ypos@offset=0\relax%
\hbox to #1{\hskip-.3cm\setbox\beamer@sectionbox=\hbox{\kern1sp}%
\ht\beamer@sectionbox=1.875ex%
\dp\beamer@sectionbox=0.75ex%
\hfil%
\global\beamer@section@min@dim\z@
\dohead%
\beamer@section@set@min@width
\box\beamer@sectionbox\hfill}%
}}}
\makeatother
\usetheme{Singapore}
\begin{document}
\section{foo}
\begin{frame}{foo}
quack
\end{frame}
\begin{frame}{bar}
quack
\end{frame}
\begin{frame}{foobar}
quack
\end{frame}
\end{document}
```
![document.gif](/image?hash=43d4687c3b5eaba5d5c7810f01268c233ab11bdfcf695bac79c3063f83b7048e)