ufc_format.cls 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. \setbeamercolor{section in head/foot}{bg=blue_theme, fg=white}
  50. \setbeamercolor{subsection in head/foot}{bg=yellow, fg=white}
  51. \setbeamercolor{institute in head/foot}{bg=blue_theme, fg=white}
  52. \setbeamerfont{block title}{size={}}
  53. %% ---------- bottom fields ---------------------
  54. \setbeamercolor{author in head/foot}{bg=blue_theme, fg=white}
  55. \setbeamercolor{title in head/foot}{bg=yellow, fg=white}
  56. \setbeamercolor{date in head/foot}{bg=blue_theme, fg=white}
  57. % footer style
  58. \defbeamertemplate*{footline}{infolines theme}
  59. {
  60. \leavevmode%
  61. \hbox{%
  62. \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
  63. \usebeamerfont{author in head/foot}\insertshortauthor~~\insertshortinstitute
  64. \end{beamercolorbox}%
  65. \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot} \insertshorttitle
  66. \usebeamerfont{title in head/foot}
  67. \end{beamercolorbox}%
  68. \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
  69. \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
  70. \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
  71. \end{beamercolorbox}}%
  72. \vskip0pt%
  73. }
  74. \mode
  75. <all>
  76. % command of the example
  77. \renewcommand{\example}[1]{\textcolor{blue_theme}{\textbf{#1}}}
  78. % command of the emphases
  79. \renewcommand{\emph}[1]{\textcolor{red}{\textbf{#1}}}
  80. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  81. % create the blocks of the beamer template
  82. %% draw the blocks
  83. \setbeamertemplate{blocks}[rounded][shadow=true]
  84. % \setbeamercolor{separation line}{use=structure,bg=structure.fg!50!bg} % color on the top
  85. % block
  86. \setbeamercolor*{block title}{fg=white, bg=blue_theme}
  87. \setbeamercolor*{block body}{fg=black,bg=white}
  88. % alert block
  89. \setbeamercolor*{block title alerted}{fg=white,bg=red}
  90. \setbeamercolor*{block body alerted}{fg=black,bg=white}
  91. % example block
  92. \setbeamercolor*{block title example}{fg=white,bg=green_ufc}
  93. \setbeamercolor*{block body example}{fg=black,bg=white}
  94. % creating the environment the block
  95. \usepackage{etoolbox}
  96. \AtBeginEnvironment{exampleblock}{%
  97. \setbeamercolor{itemize item}{fg=green_ufc!70}
  98. }
  99. \AtBeginEnvironment{alertblock}{%
  100. \setbeamercolor{itemize item}{fg=red!70}
  101. }
  102. \AtBeginEnvironment{block}{%
  103. \setbeamercolor{itemize item}{fg=blue_theme!70}
  104. }
  105. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  106. % determine some color for the text
  107. \setbeamercolor*{normal text}{fg=black,bg=white}
  108. \setbeamercolor*{example text}{fg=yellow}
  109. \setbeamercolor*{alerted text}{fg=red}
  110. \setbeamercolor{itemize item}{fg=blue_theme!70}
  111. \setbeamercolor{enumerate item}{fg=black!70}
  112. \setbeamercolor{success}{fg=green}
  113. % create the alert box
  114. \newcommand{\alertbox}[1]{
  115. \begin{flushleft}
  116. \fcolorbox{red}{white}{
  117. \begin{minipage}{0.9\textwidth}
  118. #1
  119. \end{minipage}
  120. }
  121. \end{flushleft}
  122. }
  123. % create the simple box
  124. \newcommand{\simplebox}[1]{
  125. \begin{flushleft}
  126. \fcolorbox{blue_theme}{white}{
  127. \begin{minipage}{0.9\textwidth}
  128. #1
  129. \end{minipage}
  130. }
  131. \end{flushleft}
  132. }
  133. % create the success box
  134. \newcommand{\successbox}[1]{
  135. \begin{flushleft}
  136. \fcolorbox{green_ufc}{white}{
  137. \begin{minipage}{0.9\textwidth}
  138. #1
  139. \end{minipage}
  140. }
  141. \end{flushleft}
  142. }
  143. % create the source of the image
  144. \newcommand{\source}[1]{
  145. \caption*{\textcolor{blue_theme}{Fonte:} {#1}}
  146. }
  147. % create a command for UFC
  148. \newcommand{\ufc}{
  149. \bfseries
  150. \normalsize{Gymnasium Kirschgarten}
  151. }
  152. % department command
  153. \newcommand{\department}[1]{
  154. \vspace*{0.2cm}
  155. \bfseries
  156. \normalsize{#1}
  157. }
  158. %
  159. \newcommand{\email}[1]{
  160. \texttt{
  161. \href{mailto:#1}{#1}
  162. }
  163. }