Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I did a dry run of a presentation I'm giving and I noticed that when in full screen mode, the projector is cutting off a little bit of all four sides of the slide (appears to be overscan). I've tried getting the projector and laptop to correct for it but have been unsuccessful. As a hack, I'd like to just increase the distance between the header and footer and the edge of the slide. The style file I'm using contains

\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/theme/compatibility/beamerthemeshadow.sty,v 1.12 2007/01/28 20:48:30 tantau Exp $

\mode<presentation>

\definecolor{BYUblue}{RGB}{0,31,69}
\definecolor{BYUgold}{RGB}{195,163,106}
\usecolortheme[RGB={0,31,69}]{structure} % BYU Blue

\usetheme{Frankfurt}
\setbeamercolor*{section in head/foot}{bg=BYUblue,fg=gray!25}
\setbeamercolor*{frametitle}{bg=BYUblue!50,fg=white!25}
\setbeamercovered{transparent}
\mode<all>

\addtobeamertemplate{frametitle}{}{%
\begin{textblock*}{100mm}(0.95\textwidth,-0.7cm)
\includegraphics[width=1.2cm]{figures/magiccLabLogo}
\end{textblock*}}

% define the footline
\defbeamertemplate*{footline}{infolines theme}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.25\paperwidth,ht=2.25ex,dp=2ex,left]{author in head/foot}%
    \hspace*{2mm}
%        \usebeamerfont{author in head/foot}\insertshortauthor~~(\insertshortinstitute)
        \usebeamerfont{author in head/foot}\insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=2ex,center]{title in head/foot}%
        \usebeamerfont{title in head/foot}\insertshorttitle
        \hspace*{2mm}
  \end{beamercolorbox}}%
  \begin{beamercolorbox}[wd=.25\paperwidth,ht=2.25ex,dp=2ex,right]{author in head/foot}%
        \usebeamerfont{author in head/foot}\insertpagenumber/\insertpresentationendpage
        \hspace*{2mm}
  \end{beamercolorbox}%
  \vskip0pt%
}

\setbeamertemplate{navigation symbols}{} % no nav symbols  

I moved the footer up by increasing the dp setting of the beamercolorboxes to 2ex in the above footline definition above. Is there an easy way like that do that for the header?

This is what I have

This is what I have

This is what I want - just a little additional space just above the section titles This is what I want

share|improve this question
    
If you are able to provide a minimal working example (MWE) that the community can play with, it could be useful to diagnose the actual problem and how to fix it correctly. –  Werner Jan 11 at 5:24

1 Answer 1

So I've sort of figured it out. The Frankfurt theme uses the smoothbars outer theme. I navigated to the MiKTeX 2.9\tex\latex\beamer\base\themes\outer folder and made a backup copy of the beamerouterthemesmoothbars.sty file. I then edited it so the \AtBeginDocument command is now

\AtBeginDocument{
  {
    \usebeamerfont*{headline}
    \colorlet{global.bg}{bg}
    \usebeamercolor{subsection in head/foot}
    \usebeamercolor{section in head/foot}
    \usebeamercolor{frametitle}

    \ifbeamer@sb@subsection
      \pgfdeclareverticalshading{beamer@barshade}{\the\paperwidth}{%
         color(0ex)=(global.bg);%
         color(1ex)=(subsection in head/foot.bg);%
         color(3.25ex)=(subsection in head/foot.bg);%
         color(4.25ex)=(section in head/foot.bg);%
         color(9.75ex)=(section in head/foot.bg)%
       }
       \pgfdeclareverticalshading{beamer@aboveframetitle}{\the\paperwidth}{%
         color(0ex)=(frametitle.bg);%
         color(1ex)=(frametitle.bg);%
         color(2ex)=(subsection in head/foot.bg)
       }
    \else
      \pgfdeclareverticalshading{beamer@barshade}{\the\paperwidth}{%
         color(0ex)=(global.bg);%
         color(1ex)=(section in head/foot.bg);%
         color(8ex)=(section in head/foot.bg)% <- this was the only line I changed. It was 7ex.
       }
     \pgfdeclareverticalshading{beamer@aboveframetitle}{\the\paperwidth}{%
         color(0ex)=(frametitle.bg);%
         color(1ex)=(frametitle.bg);%
         color(2ex)=(section in head/foot.bg)
       }
    \fi  

    \pgfdeclareverticalshading{beamer@belowframetitle}{\the\paperwidth}{%
      color(0ex)=(global.bg);%
      color(1ex)=(frametitle.bg)
    }
  }
}

I'm using the compress option so subsections aren't shown. I tried to understand what all this code is doing, but am completely baffled at what all it does. I'm sure there are LaTeX gurus out there that explain it better.

share|improve this answer

Your Answer

 
discard

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.