ufc_format.cls 5.5 KB

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