\newcommand {\framedgraphic}[2] { \begin{frame}{#1} \begin{center} \includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2} \end{center} \end{frame} } \hypersetup{% breaklinks=true, linktocpage=false, colorlinks=true, urlcolor=blue, linkcolor=blue, citecolor=black } \newcommand{\myCode}[1]{\colorbox{gray!30}{#1}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Make source code easier to copy % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref \usepackage{accsupp} \newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}} %default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}} \let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version \def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}