I am using the hyperref
package, and here is my code:
\documentclass[12pt]{beamer}
\usetheme{Boadilla}
\usepackage{float}
\usepackage{amsmath}
\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[a4paper,landscape]
\usefonttheme{professionalfonts} %To get the accents aligned correctly, albeit in Computer Modern Roman
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
%linkcolor=blue,
%filecolor=magenta,
%urlcolor=cyan,
urlcolor=blue,
}
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.2\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{author in head/foot}\insertdate
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.6\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.2\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\insertframenumber{} / \inserttotalframenumber\hspace*{1ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\title{Test} % used by \maketitle
\author{John Doe }
\date{Spring 2020} % used by \maketitle
\institute{John Doe University}
\begin{document}
\setcounter{section}{5}
\maketitle % automatic title!
\begin{frame}
Click on this link: \href{https://ocw.mit.edu/courses/aeronautics-and-astronautics/16-323-principles-of-optimal-control-spring-2008/lecture-notes/lec5.pdf}{MIT OpenCourseWare, Page 5-18}
\end{frame}
\end{document}
Output:
As one can see, the title in the footer gets highlighted red due the the hypersetup
command, and the URL description gets highlighted as expected, but clicking on the description doesn't do anything. I have two questions:
- How to enable only the URL description to be colored and disable the title coloring in the footer?
- How to enable the URL description so that when clicked on, the person gets directed to the link?