myStyle.sty 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. \newcommand {\framedgraphic}[2] {
  2. \begin{frame}{#1}
  3. \begin{center}
  4. \includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2}
  5. \end{center}
  6. \end{frame}
  7. }
  8. \hypersetup{%
  9. breaklinks=true,
  10. linktocpage=false,
  11. colorlinks=true,
  12. urlcolor=blue,
  13. linkcolor=blue,
  14. citecolor=black
  15. }
  16. \newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}
  17. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  18. % Make source code easier to copy %
  19. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  20. % from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref
  21. \usepackage{accsupp}
  22. \newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}
  23. %default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}
  24. \let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version
  25. \def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}