Hello, Thorsten (Localghost?)!
If I directly copy your code onto my pre-amble, it returns error:
! LaTeX Error: Command \beamer@@tmpop@footline@infolines theme already defined.
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
However, there are couple of ways to modify it so that it can work in LyX. For example, replace the first line from your code by
Code: Select all
\defbeamertemplate*{footline}{infolines}
or, another method is to replace the first line your code by
So the code in my pre-amble looks like:
Code: Select all
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage{graphics}
\usepackage[absolute,overlay]{textpos}
\usepackage{calligra}
\usepackage{listings}
\usetheme{CambridgeUS}
\setbeamercovered{transparent}
\usepackage{ae,aecompl}
\usecolortheme{crane}
\useoutertheme{infolines}
\setbeamertemplate{headline}
{%
\begin{beamercolorbox}{section in head/foot}
\vskip2pt \hfill \insertsectionnavigationhorizontal{\linewidth}{}{} \hfill \vskip2pt
\end{beamercolorbox}%
}
\defbeamertemplate*{footline}{infolines}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
Thank you so much, Thorsten~ Now I am going to give a wonderful presentation!
