extra-preamble.latex 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. %% TODO: CHANGE THIS
  37. \makeatletter
  38. \setbeamertemplate{footline}
  39. {
  40. \leavevmode%
  41. \hbox{%
  42. \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{author in head/foot}%
  43. \usebeamerfont{author in head/foot}Ryan C. Thompson\hspace*{1em}
  44. \end{beamercolorbox}%
  45. \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,left]{title in head/foot}%
  46. \usebeamerfont{title in head/foot}\hspace*{1em}Analyzing ChIP-seq Promoter Coverage Landscapes
  47. \end{beamercolorbox}}%
  48. \vskip0pt%
  49. }
  50. \makeatother
  51. %% \makeatletter
  52. %% \setbeamertemplate{footline}
  53. %% {
  54. %% \leavevmode%
  55. %% \hbox{%
  56. %% \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
  57. %% \usebeamerfont{author in head/foot}\insertsection
  58. %% \end{beamercolorbox}%
  59. %% \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
  60. %% \usebeamerfont{title in head/foot}\insertsubsection
  61. %% \end{beamercolorbox}}%
  62. %% \vskip0pt%
  63. %% }
  64. %% \makeatother