0

In my presentation on each frame (including title frame) I need a background image and a footer line on each frame with the companies name (so that the image begins direclty upon this footer line).

I managed to add the image and the footer line as needed using \usebackgroundtemplate \vbox to \paperhigth taken from this answer: Beamer background image centered And the colorbox part from this answer: How to make \colorbox fill the color between underline and overline of a text?

But my footer line starts too low so that the text in it is cut by the frame edge: text cut at frame edge How do I raise the \colorbox (and the picture not shown) by about .5em?
Desired output is:
text completely visible

This is my sample code:

    \documentclass[aspectratio=169]{beamer}
    \usepackage{color}
    \definecolor{gray}{rgb}{0.76, 0.76, 0.76}
    \definecolor{dark-gray}{rgb}{0.36, 0.36, 0.36}
    \usebackgroundtemplate{%
        \vbox to \paperheight{
            \vfil       
            \colorbox{dark-gray}{
                \makebox [\paperwidth][l]{
                   \tiny\color{gray}{
                      \hspace{2em}\textcopyright Company Name
                   }
                }
             }
        }
    }

    \begin{document}
    \begin{frame}{ } 
     test
    \end{frame}
    \end{document}
1

You could specify the height of the box:

\documentclass[aspectratio=169]{beamer}
\definecolor{gray}{rgb}{0.76, 0.76, 0.76}
\definecolor{dark-gray}{rgb}{0.36, 0.36, 0.36}
\usebackgroundtemplate{%
    \vbox to \paperheight{
        \vfil       
        \colorbox{dark-gray}{
            \makebox(442,8)[lt]{
               \tiny\color{gray}{
                  \hspace{2em}\textcopyright Company Name
               }
            }
         }
    }
}

\begin{document}
\begin{frame}
 test
\end{frame}
\end{document}

enter image description here

EDIT:

To use other than the default coordinates:

\documentclass[aspectratio=169]{beamer}
\definecolor{gray}{rgb}{0.76, 0.76, 0.76}
\definecolor{dark-gray}{rgb}{0.36, 0.36, 0.36}
\usebackgroundtemplate{%
    \vbox to \paperheight{
        \vfil       
        \colorbox{dark-gray}{
                \setlength{\unitlength}{\paperwidth}
            \makebox(1,0.02)[lt]{
               \tiny\color{gray}{
                  \hspace{2em}\textcopyright Company Name
               }
            }
         }
    }
}

\begin{document}
\begin{frame}
 test
\end{frame}
\end{document}
4
  • can I use length aliases like \pagewidth, \textheight? Oct 28 '16 at 14:12
  • 1
    No. But you could change the unit of the coordinates, see my edit. Oct 28 '16 at 14:18
  • This lets the grey bar begin after the image. :o( Oct 28 '16 at 14:31
  • solved, i needed an empty line between image and colorbox... :o) Oct 28 '16 at 14:34

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.