Advertisement
Hirwanto

beamerthemeOxygen

Jan 27th, 2015
636
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 2.58 KB | None | 0 0
  1. %\usetheme{Rochester} %works
  2. \usetheme{PaloAlto} %works fine
  3. %\usetheme{Marburg} %sucks
  4. %\usepackage{multimedia}
  5.  
  6.  
  7. \RequirePackage{pgf}
  8.  
  9. \pgfdeclareimage[width=1.0\paperwidth]{oxygen-header}{oxygen-header}
  10.  
  11. \setbeamertemplate{blocks}[rounded][shadow=true]
  12. \setbeamercovered{transparent}
  13.  
  14. \beamer@headheight=0.13\paperwidth
  15.  
  16. %\definecolor{oxygenorange}{HTML}{F7800A}
  17. \definecolor{oxygenorange}{HTML}{236EAF}
  18. \definecolor{oxygengray}{HTML}{686868}
  19. \definecolor{oxygenlightgray}{HTML}{EEEEEE}
  20. \definecolor{oxygenblue}{HTML}{236EAF}
  21. \setbeamercolor*{Title bar}{fg=white}
  22. \setbeamercolor*{Location bar}{fg=oxygenorange,bg=oxygenlightgray}
  23. \setbeamercolor*{frametitle}{parent=Title bar}
  24. \setbeamercolor*{block title}{bg=oxygenblue,fg=white}
  25. \setbeamercolor*{block body}{bg=oxygenlightgray,fg=oxygengray}
  26. \setbeamercolor*{normal text}{bg=white,fg=oxygengray}
  27. \setbeamercolor*{section in head/foot}{bg=oxygenblue,fg=white}
  28.  
  29. \usecolortheme[named=oxygenorange]{structure}
  30.  
  31. \setbeamerfont{section in head/foot}{size=\tiny,series=\normalfont}
  32. \setbeamerfont{frametitle}{size=\Large}
  33. %\beamer@sidebarwidth=0pt
  34. %\setbeamersize{sidebar width left=0cm}
  35. \setbeamertemplate{frametitle}
  36. {
  37.  \vskip-0.2\beamer@headheight
  38.  \vskip-\baselineskip
  39.  \vskip-0.2cm
  40.  \hskip-0.6cm\usebeamerfont*{frametitle}\insertframetitle
  41.  \vskip-0.10em
  42.  \hskip-0.6cm\usebeamerfont*{framesubtitle}\insertframesubtitle
  43. }
  44.  
  45. \setbeamertemplate{headline}
  46. {
  47.  \pgfuseimage{oxygen-header}
  48.  \vskip -1.95cm
  49.  \linethickness{0pt}
  50.  
  51.  \framelatex{
  52.  \begin{beamercolorbox}[wd=\paperwidth,ht=0.3\beamer@headheight]{Title bar}
  53.    \usebeamerfont{section in head/foot}%
  54.    \insertsectionnavigationhorizontal{1pt}{\hskip0.22cm}{}%
  55.   \end{beamercolorbox}}
  56.  
  57.  \framelatex{
  58.  \begin{beamercolorbox}[wd=\paperwidth,ht=0.7\beamer@headheight]{Title bar}
  59.  \end{beamercolorbox}}
  60. }
  61.  
  62. \setbeamertemplate{footline}
  63. {
  64.  \linethickness{0pt}
  65.  \framelatex{
  66.  \begin{beamercolorbox}[leftskip=.3cm,wd=\paperwidth,ht=0.3\beamer@headheight,sep=0.1cm]{Location bar}
  67.    \usebeamerfont{section in head/foot}%
  68.     \insertshortauthor~|~\insertshorttitle
  69.     \hfill
  70.     \insertframenumber/\inserttotalframenumber
  71.   \end{beamercolorbox}}
  72. }
  73.  
  74. \setbeamertemplate{section in sidebar}%{sidebar theme}
  75. {%
  76.   \vbox{%
  77.     \vskip1ex%
  78.     \beamer@sidebarformat{3pt}{section in sidebar}{\insertsectionheadnumber
  79. ~\insertsectionhead}%
  80.   }%
  81. }
  82. \setbeamertemplate{section in sidebar shaded}%{sidebar theme}
  83. {%
  84.   \vbox{%
  85.     \vskip1ex%
  86.     \beamer@sidebarformat{3pt}{section in sidebar shaded}{\insertsectionheadnumber
  87. ~\insertsectionhead}%
  88.   }%
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement