I have been using the beamer document class with the theme- cambridgeUS in lyx. The following code is the preamble. Now, I want to insert a hyperlink to a pdf file in all the pages by adding them in the header or the footer. The footer at present has the author, title and page number. How do I add the fourth? Or how can it be done with the header?
%\usecolortheme[named=Brown]{structure}
\usetheme{CambridgeUS}
%\usecolortheme{seahorse}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{items}[ball]
%\setbeamertemplate{navigation symbols}{}
\setbeamercolor{title}{bg=red!65!black, fg=white}
\usepackage{hyperref}
%% Macro for inserting Page number in Warsaw theme
%\newcommand*\oldmacro{}%
%\let\oldmacro\insertshorttitle%
%\renewcommand*\insertshorttitle{%
% \oldmacro\hfill%
% \insertframenumber\,/\,\inserttotalframenumber}
\usepackage{ragged2e}\title{TE TM Hybrid Modes}
\author[Dr. James]{Dr. James}
\institute[IIT Madras]{ \\Department of Electrical Engineering\\Indian Institute of Technology Madras}
\pgfdeclareimage[height=1cm]{iitmlogo}{/home/melvinp/Dropbox/NPTEL/Lecture2/IITMLogo.pdf}
\logo{\pgfuseimage{iitmlogo}}
\date{}
\AtBeginDocument{\setlength{\abovedisplayskip}{0pt}}
\addtobeamertemplate{block begin}{\setlength{\abovedisplayskip}{0pt}}
%\AtBeginSubsection[]
%{
% \begin{frame}<beamer>
% \frametitle{Layout}
% \tableofcontents[currentsection,currentsubsection]
% \end{frame}
%}
%\justifying{
Thank You
Best Answer
The
CambridgeUS
theme uses the outer themeinfolines
. You can download the original file from CTAN and use it as a basis to make your own outer theme with an external link.In this example the footer contains a fourth field with a link to the beamer user guide:
Save this as
beamerouterthemewithlink.sty
and put it in your project folder or the local tex-mf tree. Then you can use it by adding this line in your tex file:Similarly, you could also modify the header by adding another
beamercolorbox
. Just make sure that the total width of allbeamercolorbox
es is equal to\textwidth
.