Newer
Older
Lecture_repo / Lectures_my / MC_2016 / Lecture9 / beamerinnerthemeFlip.sty
@mchrzasz mchrzasz on 25 Apr 2016 3 KB finished the 9th lecutre
  1. % Inner style file for the BEAMER FLIP THEME
  2. % Copyright 2010 by Flip Tanedo
  3. % This file may be distributed and/or modified
  4. % 1. under the LaTeX Project Public License and/or
  5. % 2. under the GNU Public License.
  6. %
  7. % Based on: beamerinnerthemeFlip by Marco Barisione
  8.  
  9. \mode<presentation>
  10.  
  11. % % Use alternative title page style.
  12. % \DeclareOptionBeamer{alternativetitlepage}[true]{\def\beamer@Flip@alternativetitlepage{#1}}
  13.  
  14. % Logo to use in the alternative title page.
  15. % \def\beamer@Flip@titlepagelogo{}
  16. % \DeclareOptionBeamer{titlepagelogo}{\def\beamer@Flip@titlepagelogo{#1}}
  17.  
  18. % Bullet shape.
  19. \DeclareOptionBeamer{bullet}{\def\beamer@Flip@bullet{#1}}
  20. \DeclareOptionBeamer{shadow}[true]{\def\beamer@themerounded@shadow{#1}}
  21. \ExecuteOptionsBeamer{shadow=false}
  22.  
  23.  
  24. % \ExecuteOptionsBeamer{alternativetitlepage=false,bullet=square}
  25. \ProcessOptionsBeamer
  26.  
  27.  
  28.  
  29. % Margins.
  30. \newlength{\beamer@Flip@normalmargin}
  31. \setlength{\beamer@Flip@normalmargin}{.06\paperwidth}
  32. \setbeamersize{text margin left=\beamer@Flip@normalmargin}
  33. \setbeamersize{text margin right=\beamer@Flip@normalmargin}
  34. \setlength\leftmargini{.6\beamer@Flip@normalmargin}
  35. \setlength\leftmarginii{.6\beamer@Flip@normalmargin}
  36. \setlength\leftmarginiii{.6\beamer@Flip@normalmargin}
  37.  
  38. % Normal title page.
  39. \defbeamertemplate*{title page normal}{Flip theme}[1][]
  40. {
  41. \vbox{}
  42. \vfill
  43. \begin{centering}
  44. \begin{beamercolorbox}[wd=\paperwidth,sep=8pt,center,#1]{title page header}
  45. \usebeamerfont{title}\inserttitle\par%
  46. \ifx\insertsubtitle\@empty%
  47. \else%
  48. \vskip0.25em%
  49. {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
  50. \fi%
  51. \end{beamercolorbox}%
  52. \vskip1em\par
  53. \begin{beamercolorbox}[sep=8pt,center,#1]{author}
  54. \usebeamerfont{author}\insertauthor
  55. \end{beamercolorbox}
  56. \begin{beamercolorbox}[sep=8pt,center,#1]{institute}
  57. \usebeamerfont{institute}\insertinstitute
  58. \end{beamercolorbox}
  59. \begin{beamercolorbox}[sep=8pt,center,#1]{date}
  60. \usebeamerfont{date}\insertdate
  61. \end{beamercolorbox}\vskip0.5em
  62. {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
  63. \end{centering}
  64. \vfill
  65. }
  66.  
  67.  
  68. % Items.
  69. \defbeamertemplate{itemize item}{squarealt}%
  70. {\tiny\raise.5ex\hbox{\donotcoloroutermaths$\blacksquare$}}
  71. \defbeamertemplate{itemize subitem}{squarealt}%
  72. {\tiny\raise.4ex\hbox{\donotcoloroutermaths$\square$}}
  73. \defbeamertemplate{itemize subsubitem}{squarealt}%
  74. {\tiny\raise.3ex\hbox{\donotcoloroutermaths$\blacksquare$}}
  75. %
  76. \defbeamertemplate{itemize item}{circlealt}%
  77. {\small\raise.2ex\hbox{\donotcoloroutermaths$\bullet$}}
  78. \defbeamertemplate{itemize subitem}{circlealt}%
  79. {\small\raise.1ex\hbox{\donotcoloroutermaths$\circ$}}
  80. \defbeamertemplate{itemize subsubitem}{circlealt}%
  81. {\scriptsize\raise.1ex\hbox{\donotcoloroutermaths$\bullet$}}
  82. \setbeamertemplate{items}[circlealt]
  83. %
  84. \def\circletext{circle}
  85. \ifx\beamer@Flip@bullet\circletext
  86. \setbeamertemplate{items}[circlealt]
  87. \else
  88. \setbeamertemplate{items}[squarealt]
  89. \fi
  90.  
  91. \setbeamertemplate{blocks}[rounded][shadow=\beamer@themerounded@shadow]
  92.  
  93.  
  94. \mode<all>
  95.