extra-preamble.latex 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. %% Better graphics sizes
  2. \usepackage{graphicx}
  3. % Redefine \includegraphics so that, unless explicit options are
  4. % given, the image width will not exceed the width or the height of the page.
  5. % Images get their normal width if they fit onto the page, but
  6. % are scaled down if they would overflow the margins.
  7. \makeatletter
  8. \def\ScaleWidthIfNeeded{%
  9. \ifdim\Gin@nat@width>\linewidth
  10. \linewidth
  11. \else
  12. \Gin@nat@width
  13. \fi
  14. }
  15. \def\ScaleHeightIfNeeded{%
  16. \ifdim\Gin@nat@height>0.75\textheight
  17. 0.75\textheight
  18. \else
  19. \Gin@nat@width
  20. \fi
  21. }
  22. \makeatother
  23. \setkeys{Gin}{width=\ScaleWidthIfNeeded,height=\ScaleHeightIfNeeded,keepaspectratio}%
  24. %% Eliminate header
  25. %%\setbeamertemplate{headline}{}
  26. %% Shorten footer title
  27. \makeatletter
  28. \setbeamertemplate{footline}
  29. {
  30. \leavevmode%
  31. \hbox{%
  32. \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{author in head/foot}%
  33. \usebeamerfont{author in head/foot}Ryan C. Thompson\hspace*{1em}
  34. \end{beamercolorbox}%
  35. \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,left]{title in head/foot}%
  36. \usebeamerfont{title in head/foot}\hspace*{1em}Genomic and epigenomic analysis of $\mathsf{CD4}^{+}$ memory
  37. \end{beamercolorbox}}%
  38. \vskip0pt%
  39. }
  40. \makeatother
  41. %% Eliminate figure numbering
  42. \usepackage{caption}
  43. \captionsetup{labelformat=empty,labelsep=none}