TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been trying to customize the footline in a beamer template but when I added a fourth box, the spacing went wacko.

Here's my template:




% Define colors

% Title block
\setbeamertemplate{title page}[default][colsep=-4bp,rounded=true,shadow=true]

% Bottom infolines
% Name and institution
\begin{beamercolorbox}[wd=0.3\paperwidth,ht=2.3ex,dp=1.25ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshortauthor~~\beamer@ifempty{\insertshortinstitute}{}{(\insertshortinstitute)}
% Short title
\begin{beamercolorbox}[wd=0.4\paperwidth,ht=2.3ex,dp=1.25ex,center]{author in head/foot}%
\usebeamerfont{anthor in head/foot}\insertshorttitle
% Date
\begin{beamercolorbox}[wd=0.2\paperwidth,ht=2.3ex,dp=1.25ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshortdate{}
% Frame counter

\begin{beamercolorbox}[wd=0.1\paperwidth,ht=2.3ex,dp=1.25ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertframenumber{}\hspace*{1pt}/\hspace*{1pt}\inserttotalframenumber

% Set themes

% Set colors


And my MWE is:


\usetheme{Bread} % Custom theme (listed above)

\title[Uncertainty in Life]{Uncertainty in Life}
\author[Mr. Smith]{John Smith}
\institute[UN]{University of Nowhere}
\date{November 28, 2012}


As you can tell from the example, there is a slight space between the first and second box, and a large space between the third and fourth box.

share|improve this question
up vote 2 down vote accepted

You forgot to add a % at the end of \end{beamercolorbox} on the third box, just on the line above the % Frame counter comment line.

Remember that newline characters count as a space, so adding a comment right at the end of the line sometimes fixes spacing issues as in this case. Also, take into account that blank lines instruct the TeX engine to start a new paragraph.

share|improve this answer

Your Answer


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.