ufc_format.cls 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. %% UFC Beamer Class File
  3. %% author: Maurício Moreira Neto
  4. %% description: This file creates a custom beamer class for the Federal University of Ceará (UFC).
  5. %% It was used the same color hue as the university emblem.
  6. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  7. \NeedsTeXFormat{LaTeX2e}
  8. \ProvidesClass{libs/ufc_format}[15/12/2020 v1.0 ufc template beamer]
  9. \PassOptionsToPackage{svgnames}{xcolor}
  10. \LoadClass[compress, 10pt]{beamer}
  11. %% Putting the background image in the frames
  12. \usebackgroundtemplate{%
  13. \vbox to \paperheight{\vfil\hbox to \paperwidth{\hfil\includegraphics[width=1\paperwidth]{../../logo/version2grey.pdf}\hfil}\vfil}
  14. }
  15. %\logo{\includegraphics[scale=0.1]{libs/emblemufc.pdf}\hspace{9.7cm} \vspace{-0.2cm}}
  16. %% Packages Used
  17. \RequirePackage[utf8]{inputenc}
  18. \RequirePackage[brazil]{babel}
  19. \RequirePackage{graphicx}
  20. \RequirePackage{hyperref}
  21. \RequirePackage{microtype}
  22. \RequirePackage[T1]{fontenc}
  23. \RequirePackage{helvet}
  24. \RequirePackage{pdfpages}
  25. \RequirePackage{tcolorbox}
  26. \RequirePackage{array}
  27. \RequirePackage{colortbl}
  28. \RequirePackage{graphicx}
  29. \RequirePackage{fancybox}
  30. \RequirePackage[footnotesize,hang]{caption}
  31. % Option management
  32. \RequirePackage{beamerbaseoptions}
  33. % colors
  34. \definecolor{blue_theme}{RGB}{178,34,34}
  35. \definecolor{yellow}{RGB}{206, 177, 68}
  36. \definecolor{black}{RGB}{0, 0, 0}
  37. \definecolor{white}{RGB}{255, 255, 255}
  38. \definecolor{red}{RGB}{215, 0, 0}
  39. \definecolor{green_ufc}{RGB}{0, 146, 62}
  40. % style of the blocks ufc
  41. \beamerboxesdeclarecolorscheme{blockUFC}{blue_theme}{white}
  42. \beamer@autopdfinfotrue
  43. \beamer@notesnormalstrue
  44. \usecolortheme[named=blue_theme]{structure}
  45. \useinnertheme{rectangles}
  46. \useoutertheme[subsection=false]{miniframes}
  47. \setbeamertemplate{navigation symbols}{}
  48. \setbeamercolor{section in head/foot}{bg=blue_theme, fg=white}
  49. \setbeamercolor{subsection in head/foot}{bg=yellow, fg=white}
  50. \setbeamercolor{institute in head/foot}{bg=blue_theme, fg=white}
  51. \setbeamerfont{block title}{size={}}
  52. %% ---------- bottom fields ---------------------
  53. \setbeamercolor{author in head/foot}{bg=blue_theme, fg=white}
  54. \setbeamercolor{title in head/foot}{bg=yellow, fg=white}
  55. \setbeamercolor{date in head/foot}{bg=blue_theme, fg=white}
  56. % footer style
  57. \defbeamertemplate*{footline}{infolines theme}
  58. {
  59. \leavevmode%
  60. \hbox{%
  61. \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
  62. \usebeamerfont{author in head/foot}\insertshortauthor~~\insertshortinstitute
  63. \end{beamercolorbox}%
  64. \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot} \insertshorttitle
  65. \usebeamerfont{title in head/foot}
  66. \end{beamercolorbox}%
  67. \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
  68. \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
  69. \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
  70. \end{beamercolorbox}}%
  71. \vskip0pt%
  72. }
  73. \mode
  74. <all>
  75. % command of the example
  76. \renewcommand{\example}[1]{\textcolor{blue_theme}{\textbf{#1}}}
  77. % command of the emphases
  78. \renewcommand{\emph}[1]{\textcolor{red}{\textbf{#1}}}
  79. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  80. % create the blocks of the beamer template
  81. %% draw the blocks
  82. \setbeamertemplate{blocks}[rounded][shadow=true]
  83. % \setbeamercolor{separation line}{use=structure,bg=structure.fg!50!bg} % color on the top
  84. % block
  85. \setbeamercolor*{block title}{fg=white, bg=blue_theme}
  86. \setbeamercolor*{block body}{fg=black,bg=white}
  87. % alert block
  88. \setbeamercolor*{block title alerted}{fg=white,bg=red}
  89. \setbeamercolor*{block body alerted}{fg=black,bg=white}
  90. % example block
  91. \setbeamercolor*{block title example}{fg=white,bg=green_ufc}
  92. \setbeamercolor*{block body example}{fg=black,bg=white}
  93. % creating the environment the block
  94. \usepackage{etoolbox}
  95. \AtBeginEnvironment{exampleblock}{%
  96. \setbeamercolor{itemize item}{fg=green_ufc!70}
  97. }
  98. \AtBeginEnvironment{alertblock}{%
  99. \setbeamercolor{itemize item}{fg=red!70}
  100. }
  101. \AtBeginEnvironment{block}{%
  102. \setbeamercolor{itemize item}{fg=blue_theme!70}
  103. }
  104. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  105. % determine some color for the text
  106. \setbeamercolor*{normal text}{fg=black,bg=white}
  107. \setbeamercolor*{example text}{fg=yellow}
  108. \setbeamercolor*{alerted text}{fg=red}
  109. \setbeamercolor{itemize item}{fg=blue_theme!70}
  110. \setbeamercolor{enumerate item}{fg=black!70}
  111. \setbeamercolor{success}{fg=green}
  112. % create the alert box
  113. \newcommand{\alertbox}[1]{
  114. \begin{flushleft}
  115. \fcolorbox{red}{white}{
  116. \begin{minipage}{0.9\textwidth}
  117. #1
  118. \end{minipage}
  119. }
  120. \end{flushleft}
  121. }
  122. % create the simple box
  123. \newcommand{\simplebox}[1]{
  124. \begin{flushleft}
  125. \fcolorbox{blue_theme}{white}{
  126. \begin{minipage}{0.9\textwidth}
  127. #1
  128. \end{minipage}
  129. }
  130. \end{flushleft}
  131. }
  132. % create the success box
  133. \newcommand{\successbox}[1]{
  134. \begin{flushleft}
  135. \fcolorbox{green_ufc}{white}{
  136. \begin{minipage}{0.9\textwidth}
  137. #1
  138. \end{minipage}
  139. }
  140. \end{flushleft}
  141. }
  142. % create the source of the image
  143. \newcommand{\source}[1]{
  144. \caption*{\textcolor{blue_theme}{Fonte:} {#1}}
  145. }
  146. % create a command for UFC
  147. \newcommand{\ufc}{
  148. \bfseries
  149. \normalsize{Gymnasium Kirschgarten}
  150. }
  151. % department command
  152. \newcommand{\department}[1]{
  153. \vspace*{0.2cm}
  154. \bfseries
  155. \normalsize{#1}
  156. }
  157. %
  158. \newcommand{\email}[1]{
  159. \texttt{
  160. \href{mailto:#1}{#1}
  161. }
  162. }