Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. documentclass{beamer}
  2. usepackage[utf8]{inputenc}
  3. usepackage[T1]{fontenc}
  4. usepackage{graphicx}
  5. graphicspath{{Images/}}
  6. title{This is my short title that looks nice...}
  7. date[]{today}
  8. author[My name]{My name hfill texttt{My email} \[.5em] My affiliation}
  9.  
  10. usetheme{mine}
  11.  
  12. begin{document}
  13.  
  14. begin{frame}
  15. titlepage
  16. end{frame}
  17.  
  18. begin{frame}{Context}
  19. Test frame
  20. end{frame}
  21.  
  22. end{document}
  23.  
  24. mode<presentation>
  25.  
  26. setbeamertemplate{background}{
  27. begin{tikzpicture}
  28. useasboundingbox (0,0) rectangle(thepaperwidth,thepaperheight);
  29. % Top box.
  30. fill[color=green!20!black!90] (0,2) rectangle (thepaperwidth, thepaperheight);
  31. % Left box.
  32. fill[color=green!20!black!90] (0,0) rectangle(2.95,1.9);
  33. % Right box.
  34. fill[color=green!20!black!90] (3.05,0) rectangle(thepaperwidth,1.9);
  35. % Makes page white if not on page 1 (i.e. title page).
  36. ifnumthepage>1relax%
  37. fill[white,opacity=1] (0,0) rectangle(thepaperwidth,thepaperheight);
  38. fi
  39. end{tikzpicture}
  40. }
  41.  
  42. setbeamertemplate{items}[square]
  43. setbeamertemplate{sections/subsections in toc}[square]
  44.  
  45. % Title page
  46. defbeamertemplate*{title page}{mine}[1][]
  47. {
  48. vskip5.5cm%
  49. begin{beamercolorbox}[wd=12cm,leftskip=3cm,#1]{title page header}
  50. usebeamerfont{title}inserttitle%
  51. end{beamercolorbox}%
  52. vskip0.25cm%
  53. begin{beamercolorbox}[wd=12cm,leftskip=3cm,#1]{date}
  54. usebeamerfont{author}insertdate%
  55. end{beamercolorbox}
  56. vskip1.2cm%
  57. begin{beamercolorbox}[wd=12cm,leftskip=3cm,#1]{author}
  58. usebeamerfont{author}insertauthor%
  59. end{beamercolorbox}
  60. vfill
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement