i have a little problem with beamer and hope that this is the right session in the forum. i modified a theme of beamer in a way that it looks as i like it. everythings works fine and i'm happy with the result but i get some "Overfull \hbox" warnings and would like to know how to fix that without changing the layout.
i know that the way i modified the beamer class might be "horrible", but anyway, i'm here to learn how its done nice and elegant.
thanks in advance!
Code: Select all
\documentclass[10pt]{beamer}
\usepackage[ngerman]{babel}
\usepackage[latin1]{inputenc}
\usepackage{helvet}
\usetheme{Berlin}
%colors==================================================
\definecolor{farbe1}{rgb}{0.2,0.2,0.2}
\definecolor{farbe2}{rgb}{0.3,0.3,0.3}
\definecolor{farbe3}{rgb}{0.8,0.8,0.8}
\definecolor{farbe4}{rgb}{0.9,0.9,0.9}
%set colors==============================================
\setbeamercolor{normal text}{fg=black,bg=white}
\setbeamercolor{palette primary}{fg=farbe4,bg=farbe2}
\setbeamercolor{item}{fg=farbe2,bg=white}
\setbeamercolor{navigation symbols}{fg=black,bg=white}
\setbeamercolor{box1}{fg=farbe4,bg=farbe1}
\setbeamercolor{box2}{fg=farbe4,bg=farbe2}
\setbeamercolor{box3}{fg=farbe4,bg=farbe1}
%layout==================================================
\setbeamertemplate{footline}
{%
\vspace*{0mm}\hspace*{0\textwidth}%
\begin{beamercolorbox}[wd=\textwidth,ht=1mm,dp=1mm,leftskip=1mm,rightskip=1mm]{box1}%
\end{beamercolorbox}%
}
\setbeamertemplate{headline}
{%
\vspace*{0mm}\hspace*{0\textwidth}%
\begin{beamercolorbox}[wd=\textwidth,ht=2mm,dp=0.6mm,leftskip=1mm,rightskip=1mm]{box1}%
\hfill \textbf{\inserttitle} \hfill \textbf{\insertframenumber}%
\end{beamercolorbox}\\
\vspace{-0.1mm}
}
\setbeamertemplate{frametitle}
{%
\hspace*{-0.1025\textwidth}
\begin{beamercolorbox}[wd=.14\textwidth,ht=6mm,dp=2mm,leftskip=4mm,rightskip=1mm]{box1}%
X.Y
\end{beamercolorbox}%
\hspace*{.0237\textwidth}%
\begin{beamercolorbox}[wd=1.0429\textwidth,ht=6mm,dp=2mm,leftskip=4mm,rightskip=1mm]{box2}%
\insertframetitle
\end{beamercolorbox}
\vspace*{-4mm}
}
%infos===================================================
\title{title}
\date{\today}
%document===============================================
\begin{document}
\maketitle
\section{section}
\subsection{subsection}
\begin{frame}{frametitle}
\end{frame}
\end{document}