extra-preamble.latex 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. %% \usepackage{graphicx}
  25. %% \makeatletter
  26. %% \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
  27. %% \def\maxheight{\ifdim\Gin@nat@height>0.7\textheight\textheight\else\Gin@nat@height\fi}
  28. %% \makeatother
  29. %% % Scale images if necessary, so that they will not overflow the page
  30. %% % margins by default, and it is still possible to overwrite the defaults
  31. %% % using explicit options in \includegraphics[width, height, ...]{}
  32. %% \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
  33. %% Eliminate header
  34. \setbeamertemplate{headline}{}
  35. %% Shorten footer title
  36. \makeatletter
  37. \setbeamertemplate{footline}
  38. {
  39. \leavevmode%
  40. \hbox{%
  41. \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{author in head/foot}%
  42. \usebeamerfont{author in head/foot}Ryan C. Thompson\hspace*{1em}
  43. \end{beamercolorbox}%
  44. \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,left]{title in head/foot}%
  45. \usebeamerfont{title in head/foot}\hspace*{1em}Genomic and epigenomic analysis of $\mathsf{CD4}^{+}$ memory
  46. \end{beamercolorbox}}%
  47. \vskip0pt%
  48. }
  49. \makeatother
  50. %% Eliminate figure numbering
  51. \usepackage{caption}
  52. \captionsetup{labelformat=empty,labelsep=none}