beamerinnerthemeFeather.sty 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. % This is the inner theme file of the Feather theme.
  2. % Copyright (c) 2014 by Lilyana Vaskova Vankova <lilqna.v@gmail.com>
  3. %
  4. % This program is free software: you can redistribute it and/or modify
  5. % it under the terms of the GNU General Public License as published by
  6. % the Free Software Foundation, either version 3 of the License, or
  7. % (at your option) any later version.
  8. %
  9. % This program is distributed in the hope that it will be useful,
  10. % but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. % GNU General Public License for more details.
  13. %
  14. % You can find the GNU General Public License at <http://www.gnu.org/licenses/>.
  15. %----------------------------------------------------------------------------------------------------------------------------------
  16. \NeedsTeXFormat{LaTeX2e}
  17. \ProvidesPackage{beamerinnerthemeFeather}[2014/04/08 v1.0.0 The Feather Beamer Theme]
  18. %----------------------------------------------------------------------------------------------------------------------------------
  19. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  20. % Theme options, definitions and templates.
  21. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  22. %----------------------------------------------------------------------------------------------------------------------------------
  23. % beamer specific options
  24. \mode<presentation> %refers to the first four modes (beamer,handout,second and trans). That is, to all modes except the article mode
  25. {
  26. %----------------------------------------------------------------------------------------------------------------------------------
  27. % title page
  28. %% definitions for fonts of the different elements
  29. \setbeamerfont{institute}{family=\rmfamily, size = \footnotesize}
  30. \setbeamerfont{title}{family=\rmfamily, size = \Large}
  31. \setbeamerfont{subtitle}{family=\rmfamily, size = \large}
  32. \setbeamerfont{author}{family=\rmfamily, size = \normalsize}
  33. \setbeamerfont{date}{family=\rmfamily, size = \footnotesize}
  34. \setbeamertemplate{title page}
  35. {
  36. %% setting the above deffinitions
  37. \begin{minipage}[c][\textheight][c]{\textwidth}
  38. \centering
  39. {\usebeamerfont{institute}\insertinstitute}\vspace*{30pt}
  40. {\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle}\vspace*{10pt}
  41. {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}\vspace*{30pt}
  42. {\usebeamerfont{author}\insertauthor}\vspace*{30pt}
  43. {\usebeamerfont{date}\insertdate}\vspace*{\baselineskip}
  44. \end{minipage}
  45. }
  46. %----------------------------------------------------------------------------------------------------------------------------------
  47. % final page
  48. \defbeamertemplate{final page}{text}[1]
  49. {
  50. \begin{minipage}[c][\textheight][c]{\textwidth}
  51. \centering
  52. #1
  53. \end{minipage}
  54. }
  55. \newcommand{\finalpage}[1]
  56. {
  57. \setbeamertemplate{final page}[text]{#1}
  58. \usebeamertemplate{final page}
  59. }
  60. %----------------------------------------------------------------------------------------------------------------------------------
  61. % add the feather to the background of the titlepage and the final page
  62. \newcommand{\1}
  63. {
  64. \setbeamertemplate{background}
  65. {
  66. \includegraphics[width=\paperwidth,height=\paperheight]{Feathergraphics/1}
  67. \tikz[overlay] \fill[fill opacity=0.75,fill=white] (0,0) rectangle (-\paperwidth,\paperheight);
  68. }
  69. }
  70. %----------------------------------------------------------------------------------------------------------------------------------
  71. % use numbers instead of a picture for the references
  72. \setbeamertemplate{bibliography item}[text]
  73. }
  74. \mode<all>