| 1 |
% \iffalse meta-comment |
| 2 |
% !TEX program = pdfLaTeX |
| 3 |
% |
| 4 |
% ------------------------------------------------------------------------------ |
| 5 |
% Beamer theme cuerna, version 1.1 |
| 6 |
% Copyright (C) 2016 by Geri Ochoa |
| 7 |
% email: [email protected] |
| 8 |
% github: https://github.com/geriom/beamercuerna |
| 9 |
% my web site: bluesimplex.com |
| 10 |
% |
| 11 |
% This work may be distributed and/or modified under the conditions of the LaTeX |
| 12 |
% Project Public License, either version 1.3c of this license or (at your option) |
| 13 |
% any later version. The latest version of this license is in |
| 14 |
% http://www.latex-project.org/lppl.txt and version 1.3c or later is part of all |
| 15 |
% distributions of LaTeX version 2008/05/04 or later. |
| 16 |
% ------------------------------------------------------------------------------ |
| 17 |
% |
| 18 |
% \fi |
| 19 |
% |
| 20 |
|
| 21 |
% \iffalse |
| 22 |
%<*driver> |
| 23 |
\ProvidesFile{beamercuerna.dtx}[2016/09/18 v1.1 beamer theme cuerna] |
| 24 |
\documentclass{ltxdoc} |
| 25 |
\usepackage{listings} |
| 26 |
\EnableCrossrefs |
| 27 |
\CodelineIndex |
| 28 |
\RecordChanges |
| 29 |
|
| 30 |
\usepackage{pdfpages} |
| 31 |
|
| 32 |
\OnlyDescription |
| 33 |
\begin{document} |
| 34 |
\DocInput{beamercuerna.dtx} |
| 35 |
\PrintChanges |
| 36 |
\PrintIndex |
| 37 |
\end{document} |
| 38 |
%</driver> |
| 39 |
|
| 40 |
% \fi |
| 41 |
|
| 42 |
% \changes{v1.0}{2014/10/22}{Initial version} |
| 43 |
% |
| 44 |
% \GetFileInfo{beamercuerna.dtx} |
| 45 |
% |
| 46 |
% \DoNotIndex{\newcommand, \newenvironment} |
| 47 |
% |
| 48 |
% \title{The \textsf{beamercuerna} beamer theme\thanks{This document |
| 49 |
% corresponds to \textsf{beamercuerna}~\fileversion, date \filedate.}} |
| 50 |
% \author{Geri Ochoa \\ \texttt{[email protected]}} |
| 51 |
% |
| 52 |
% \maketitle |
| 53 |
% |
| 54 |
% \section{Introduction} |
| 55 |
% This package contains a theme for \textit{Beamer}, the theme itself must be |
| 56 |
% referenced as \textit{Cuerna} inside beamer and has four basic colour themes. |
| 57 |
% It requires no additional customization but to set the theme and colour theme |
| 58 |
% with the usual syntax. |
| 59 |
% |
| 60 |
% \section{Usage} |
| 61 |
% A very basic example is presented below, it comprises the title page and a |
| 62 |
% single slide. |
| 63 |
% \begin{verbatim} |
| 64 |
% \documentclass{beamer} |
| 65 |
% \usepackage[utf8]{inputenc} |
| 66 |
% \usepackage[T1]{fontenc} |
| 67 |
% |
| 68 |
% \usetheme{Cuerna} |
| 69 |
% |
| 70 |
% \usecolortheme{default} |
| 71 |
% |
| 72 |
% \logo{\includegraphics[width=1.7cm]{pictures/bluesimplex.png}} |
| 73 |
% |
| 74 |
% \title{A rather long title without specific meaning} |
| 75 |
% |
| 76 |
% |
| 77 |
% \author{Geri Ochoa\\ |
| 78 |
% \texttt{[email protected]}} |
| 79 |
% |
| 80 |
% \date{Important Congress 2016} |
| 81 |
% |
| 82 |
% \institute{Institute of Mathematics, Great University} |
| 83 |
% |
| 84 |
% \begin{document} |
| 85 |
% |
| 86 |
% \begin{frame} |
| 87 |
% |
| 88 |
% \titlepage |
| 89 |
% |
| 90 |
% \end{frame} |
| 91 |
% |
| 92 |
% \section{Introduction} |
| 93 |
% \begin{frame} |
| 94 |
% \frametitle{Title of the slide} |
| 95 |
% \framesubtitle{Subtitle} |
| 96 |
% Some text on top of this slide |
| 97 |
% |
| 98 |
% \[ |
| 99 |
% \int_{0}^{\infty} \frac{5x^2}{\sqrt{a+b}}\, dx |
| 100 |
% \] |
| 101 |
% |
| 102 |
% \begin{itemize} |
| 103 |
% \item[\checkmark] Fist item in the list |
| 104 |
% \item Second item |
| 105 |
% \item Another item |
| 106 |
% \item And finally, the last item |
| 107 |
% \end{itemize} |
| 108 |
% \end{frame} |
| 109 |
% |
| 110 |
% \end{document} |
| 111 |
% \end{verbatim} |
| 112 |
% |
| 113 |
% |
| 114 |
% The output depends on the parameter passed to the |\usecolortheme| command. |
| 115 |
% There are four of them shipped with this package: |
| 116 |
% \includepdf[scale=0.9,pages={1,2}, nup=2x1, pagecommand=\subsection{default}] |
| 117 |
% {pictures/defaultexample} |
| 118 |
% |
| 119 |
% \includepdf[scale=0.9,pages={1,2}, nup=2x1, |
| 120 |
% pagecommand=\subsection{bluesimplex}] |
| 121 |
% {pictures/bluesimplexexample} |
| 122 |
% |
| 123 |
% \includepdf[scale=0.9,pages={1,2}, nup=2x1, pagecommand=\subsection{lettuce}] |
| 124 |
% {pictures/lettuceexample} |
| 125 |
% |
| 126 |
% \includepdf[scale=0.9,pages={1,2}, nup=2x1, pagecommand=\subsection{brick}] |
| 127 |
% {pictures/brickexample} |
| 128 |
% |
| 129 |
% |
| 130 |
% \StopEventually{} |
| 131 |
% \begin{macrocode} |
| 132 |
%<*cuerna> |
| 133 |
\mode<presentation> |
| 134 |
|
| 135 |
%Required packages |
| 136 |
\RequirePackage{tikz} |
| 137 |
\RequirePackage{graphicx} |
| 138 |
\RequirePackage{amssymb} |
| 139 |
\RequirePackage{xcolor} |
| 140 |
\RequirePackage{lmodern} |
| 141 |
\RequirePackage[absolute, overlay]{textpos} |
| 142 |
|
| 143 |
%Color config files |
| 144 |
\usecolortheme{Cuerna} |
| 145 |
\useinnertheme{Cuerna} |
| 146 |
\useoutertheme{Cuerna} |
| 147 |
|
| 148 |
|
| 149 |
\setbeamertemplate{navigation symbols}{} |
| 150 |
\setbeamertemplate{blocks}[rounded][shadow=true] |
| 151 |
|
| 152 |
\mode<all> |
| 153 |
%</cuerna> |
| 154 |
% |
| 155 |
% |
| 156 |
%<*inner> |
| 157 |
\mode<presentation> |
| 158 |
|
| 159 |
%This draws the background |
| 160 |
\setbeamertemplate{background}{ |
| 161 |
\begin{tikzpicture}[espiral/.style={thick,color=edgescolor}] |
| 162 |
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight); |
| 163 |
\fill[color=edgescolor] (0,0) rectangle(\the\paperwidth, \the\paperheight); |
| 164 |
\fill[color=squarecolor] (0,0) rectangle(0.59\paperwidth, \the\paperheight); |
| 165 |
\draw[espiral] (0,0) .. controls +(up:0.5\paperheight) and (0.3\paperwidth, \the\paperheight) .. (0.59\paperwidth,\the\paperheight); |
| 166 |
\fill[color=squarecolor] (0.60\paperwidth,0.41\paperheight) rectangle(\the\paperwidth, \the\paperheight); |
| 167 |
\draw[espiral] (0.60\paperwidth,\paperheight) .. controls +(right:0.3\paperwidth) and (\paperwidth, 0.61\paperheight) .. (\the\paperwidth, 0.41\paperheight); |
| 168 |
\fill[color=squarecolor] (0.77\paperwidth,0) rectangle(\the\paperwidth, 0.40\paperheight); |
| 169 |
\draw[espiral] (\paperwidth,0.4\paperheight) .. controls +(down:0.2\paperwidth) and (0.88\paperwidth, 0) .. (0.77\paperwidth, 0); |
| 170 |
\fill[color=squarecolor] (0.6\paperwidth,0) rectangle(0.76\paperwidth, 0.23\paperheight); |
| 171 |
\draw[espiral] (0.76\paperwidth,0) .. controls +(left:0.08\paperwidth) and (0.6\paperwidth, 0.12\paperheight) .. (0.6\paperwidth, 0.23\paperheight); |
| 172 |
\fill[color=squarecolor] (0.6\paperwidth, 0.24\paperheight) rectangle(0.69\paperwidth, 0.4\paperheight); |
| 173 |
\draw[espiral] (0.6\paperwidth,0.24\paperheight) .. controls +(up:0.08\paperheight) and (0.64\paperwidth, 0.4\paperheight) .. (0.69\paperwidth, 0.4\paperheight); |
| 174 |
\fill[color=squarecolor] (0.70\paperwidth, 0.31\paperheight) rectangle(0.76\paperwidth, 0.40\paperheight); |
| 175 |
\draw[espiral] (0.7\paperwidth,0.4\paperheight) .. controls +(right:0.03\paperheight) and (0.76\paperwidth, 0.35\paperheight) .. (0.76\paperwidth, 0.31\paperheight); |
| 176 |
\fill[color=squarecolor] (0.72\paperwidth, 0.24\paperheight) rectangle(0.76\paperwidth, 0.3\paperheight); |
| 177 |
\draw[espiral] (0.76\paperwidth,0.3\paperheight) .. controls +(down:0.03\paperheight) and (0.74\paperwidth, 0.24\paperheight) .. (0.72\paperwidth, 0.24\paperheight); |
| 178 |
\fill[color=squarecolor] (0.70\paperwidth, 0.24\paperheight) rectangle(0.71\paperwidth, 0.28\paperheight); |
| 179 |
\draw[espiral] (0.71\paperwidth,0.24\paperheight) .. controls +(left:0.005\paperwidth) and (0.7\paperwidth, 0.26\paperheight) .. (0.7\paperwidth, 0.28\paperheight); |
| 180 |
\ifnum\thepage>1\relax% |
| 181 |
\fill[white, opacity=1] (0,0) rectangle(\the\paperwidth, \the\paperheight); |
| 182 |
\fi |
| 183 |
\end{tikzpicture} |
| 184 |
} |
| 185 |
|
| 186 |
\setbeamerfont{date}{size=\large, shape=\upshape} |
| 187 |
\setbeamerfont{title}{size=\huge, shape=\mdseries} |
| 188 |
\setbeamerfont{institute}{size=\tiny, shape=\itshape} |
| 189 |
|
| 190 |
%Creates the title page contents |
| 191 |
\defbeamertemplate*{title page}{Cuerna}[1][] |
| 192 |
{ |
| 193 |
\begin{textblock}{9}(0.2,2.5) |
| 194 |
\begin{beamercolorbox}[center,sep=1pt,#1]{title page header} |
| 195 |
\usebeamerfont{title}\inserttitle\par% |
| 196 |
\end{beamercolorbox} |
| 197 |
\end{textblock} |
| 198 |
\vskip7.0cm% |
| 199 |
\begin{beamercolorbox}[wd=6cm,leftskip=0cm,#1]{author} |
| 200 |
\usebeamerfont{date}\insertauthor% |
| 201 |
\end{beamercolorbox} |
| 202 |
\vskip0.1cm% |
| 203 |
\begin{beamercolorbox}[wd=6cm, #1]{institute} |
| 204 |
\usebeamerfont{institute}\insertinstitute |
| 205 |
\end{beamercolorbox} |
| 206 |
|
| 207 |
|
| 208 |
\begin{textblock}{6}(9.3,5) |
| 209 |
\begin{beamercolorbox}[right]{date} |
| 210 |
\usebeamerfont{date}\insertdate% |
| 211 |
\end{beamercolorbox} |
| 212 |
\end{textblock} |
| 213 |
|
| 214 |
\begin{textblock}{4}(12.9,11.8) |
| 215 |
\insertlogo |
| 216 |
\end{textblock} |
| 217 |
\vfill |
| 218 |
} |
| 219 |
|
| 220 |
%Lists and the table of contents |
| 221 |
\setbeamertemplate{items}[triangle] |
| 222 |
\setbeamertemplate{sections/subsections in toc}[square] |
| 223 |
|
| 224 |
\mode<all> |
| 225 |
%</inner> |
| 226 |
% |
| 227 |
% |
| 228 |
%<*outer> |
| 229 |
\mode<presentation> |
| 230 |
|
| 231 |
\setbeamerfont{sectiontitle}{size=\huge, shape=\scshape} |
| 232 |
|
| 233 |
%Title bar |
| 234 |
\defbeamertemplate*{frametitle}{Cuerna}[1][] |
| 235 |
{ |
| 236 |
\vskip0.2cm |
| 237 |
\begin{beamercolorbox}[right]{sectiontitle} |
| 238 |
\usebeamerfont{date}\insertsection |
| 239 |
\end{beamercolorbox} |
| 240 |
\vskip-0.2cm |
| 241 |
\definecolor{imred}{HTML}{BD2026} |
| 242 |
\definecolor{imyellow}{HTML}{FCED27} |
| 243 |
\definecolor{imorange}{HTML}{F6B419} |
| 244 |
\begin{beamercolorbox}[wd=\paperwidth,ht=1.9cm]{frametitle} |
| 245 |
\begin{tikzpicture} |
| 246 |
\useasboundingbox (0,0) rectangle(\the\paperwidth,1.4); |
| 247 |
{\node[anchor=west, white] at (0.4, 0.8){\insertlogo};} |
| 248 |
\fill[squarecolor](2.45, 0.3) rectangle(\paperwidth,1.4); |
| 249 |
\ifx\insertframesubtitle\@empty% |
| 250 |
{\node[anchor=west, white, font=\large] at (3.0,0.82){\insertframetitle};} |
| 251 |
\else% |
| 252 |
{\node[anchor=west, white, font=\large] at (3.0, 1.02){\insertframetitle};% |
| 253 |
\node[anchor=west, white, font=\small] at (3.0, 0.63){\insertframesubtitle};}% |
| 254 |
\fi |
| 255 |
\end{tikzpicture} |
| 256 |
\end{beamercolorbox} |
| 257 |
\vskip-0.5cm |
| 258 |
} |
| 259 |
|
| 260 |
%Prevents the logo from beign added to every slide |
| 261 |
\defbeamertemplate*{sidebar right}{sidebar theme} |
| 262 |
{% |
| 263 |
\vfill% |
| 264 |
\llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}% |
| 265 |
\vskip2pt} |
| 266 |
|
| 267 |
\mode<all> |
| 268 |
%</outer> |
| 269 |
% |
| 270 |
% |
| 271 |
%<*default> |
| 272 |
\mode<presentation> |
| 273 |
|
| 274 |
\definecolor{edgescolor}{HTML}{4DA6FF} |
| 275 |
\definecolor{squarecolor}{HTML}{002B36} |
| 276 |
|
| 277 |
%Colours to use in some elements |
| 278 |
\setbeamercolor*{title page header}{fg=white} |
| 279 |
\setbeamercolor*{author}{fg=white} |
| 280 |
\setbeamercolor*{date}{fg=white} |
| 281 |
\setbeamercolor*{institute}{fg=white} |
| 282 |
\setbeamercolor*{sectiontitle}{fg=black} |
| 283 |
|
| 284 |
%Item list colour |
| 285 |
\setbeamercolor*{item}{fg=squarecolor} |
| 286 |
|
| 287 |
%Theorem box colour |
| 288 |
\setbeamercolor{block title}{use=structure,fg=white,bg=squarecolor} |
| 289 |
|
| 290 |
\mode<all> |
| 291 |
%</default> |
| 292 |
% |
| 293 |
% |
| 294 |
%<*bluesimplex> |
| 295 |
\mode<presentation> |
| 296 |
|
| 297 |
\definecolor{edgescolor}{HTML}{3469CC} |
| 298 |
\definecolor{squarecolor}{HTML}{282d33} |
| 299 |
|
| 300 |
%Colours to use in some elements |
| 301 |
\setbeamercolor*{title page header}{fg=white} |
| 302 |
\setbeamercolor*{author}{fg=white} |
| 303 |
\setbeamercolor*{date}{fg=white} |
| 304 |
\setbeamercolor*{institute}{fg=white} |
| 305 |
\setbeamercolor*{sectiontitle}{fg=black} |
| 306 |
|
| 307 |
%Item list colour |
| 308 |
\setbeamercolor*{item}{fg=squarecolor} |
| 309 |
|
| 310 |
%Theorem box colour |
| 311 |
\setbeamercolor{block title}{use=structure,fg=white,bg=squarecolor} |
| 312 |
|
| 313 |
\mode<all> |
| 314 |
%</bluesimplex> |
| 315 |
% |
| 316 |
% |
| 317 |
%<*brick> |
| 318 |
\mode<presentation> |
| 319 |
|
| 320 |
\definecolor{edgescolor}{HTML}{757575} |
| 321 |
\definecolor{squarecolor}{HTML}{8B290E} |
| 322 |
|
| 323 |
%Colours to use in some elements |
| 324 |
\setbeamercolor*{title page header}{fg=white} |
| 325 |
\setbeamercolor*{author}{fg=white} |
| 326 |
\setbeamercolor*{date}{fg=white} |
| 327 |
\setbeamercolor*{institute}{fg=white} |
| 328 |
\setbeamercolor*{sectiontitle}{fg=black} |
| 329 |
|
| 330 |
%Item list colour |
| 331 |
\setbeamercolor*{item}{fg=squarecolor} |
| 332 |
|
| 333 |
%Theorem box colour |
| 334 |
\setbeamercolor{block title}{use=structure,fg=white,bg=squarecolor} |
| 335 |
|
| 336 |
\mode<all> |
| 337 |
%</brick> |
| 338 |
% |
| 339 |
% |
| 340 |
%<*lettuce> |
| 341 |
\mode<presentation> |
| 342 |
|
| 343 |
\definecolor{edgescolor}{HTML}{757575} |
| 344 |
\definecolor{squarecolor}{HTML}{3B5323} |
| 345 |
|
| 346 |
%Colours to use in some elements |
| 347 |
\setbeamercolor*{title page header}{fg=white} |
| 348 |
\setbeamercolor*{author}{fg=white} |
| 349 |
\setbeamercolor*{date}{fg=white} |
| 350 |
\setbeamercolor*{institute}{fg=white} |
| 351 |
\setbeamercolor*{sectiontitle}{fg=black} |
| 352 |
|
| 353 |
%Item list colour |
| 354 |
\setbeamercolor*{item}{fg=squarecolor} |
| 355 |
|
| 356 |
%Theorem box colour |
| 357 |
\setbeamercolor{block title}{use=structure,fg=white,bg=squarecolor} |
| 358 |
|
| 359 |
\mode<all> |
| 360 |
%</lettuce> |
| 361 |
|
| 362 |
%<*template> |
| 363 |
\documentclass{beamer} |
| 364 |
\usepackage[utf8]{inputenc} |
| 365 |
\usepackage[T1]{fontenc} |
| 366 |
|
| 367 |
%%Defining the ``proposition'' environment |
| 368 |
\newtheorem{proposition}{Proposition} |
| 369 |
|
| 370 |
|
| 371 |
%%Sets the beamer theme "Cuerna" |
| 372 |
\usetheme{Cuerna} |
| 373 |
|
| 374 |
\usecolortheme{default} |
| 375 |
%Available color themes: default, bluesimplex, brick, lettuce |
| 376 |
|
| 377 |
%%Insert the logo |
| 378 |
\logo{\includegraphics[width=1.7cm]{pictures/bluesimplex.png}} |
| 379 |
|
| 380 |
%%Title |
| 381 |
\title{A rather long title without specific meaning} |
| 382 |
|
| 383 |
|
| 384 |
\author{Geri Ochoa\\ %Author |
| 385 |
\texttt{[email protected]}} %e-mail |
| 386 |
|
| 387 |
\date{Important Congress 2016} %Date or event |
| 388 |
|
| 389 |
\institute{Institute of Mathematics, Great University} %%Institution |
| 390 |
|
| 391 |
\begin{document} |
| 392 |
|
| 393 |
\begin{frame} |
| 394 |
|
| 395 |
\titlepage %Creates the title page |
| 396 |
|
| 397 |
\end{frame} |
| 398 |
|
| 399 |
|
| 400 |
%-------------------------------------------------------------------------- |
| 401 |
\begin{frame} |
| 402 |
\tableofcontents %Prints the table of contents |
| 403 |
\end{frame} |
| 404 |
%-------------------------------------------------------------------------- |
| 405 |
|
| 406 |
\section{Introduction} %%A section (Optional) |
| 407 |
\begin{frame} |
| 408 |
\frametitle{Title of the slide} |
| 409 |
\framesubtitle{Subtitle} %%Subtitle (optional) |
| 410 |
Some text on top of this slide |
| 411 |
|
| 412 |
\[ |
| 413 |
\int_{0}^{\infty} \frac{5x^2}{\sqrt{a+b}}\, dx |
| 414 |
\] |
| 415 |
|
| 416 |
\begin{itemize} |
| 417 |
\item[\checkmark] Fist item in the list %% |
| 418 |
\item Second item |
| 419 |
\item Another item |
| 420 |
\item And finally, the last item |
| 421 |
\end{itemize} |
| 422 |
\end{frame} |
| 423 |
|
| 424 |
\begin{frame}{Random Text} %%Shorter way of setting the slide title |
| 425 |
Additional text with no other purpose but to take up some space. |
| 426 |
Additional text with no other purpose but to take up some space. |
| 427 |
Additional text with no other purpose but to take up some space. |
| 428 |
Additional text with no other purpose |
| 429 |
\( \sum_0^{\infty} a_i \) |
| 430 |
but to take up some space. |
| 431 |
\end{frame} |
| 432 |
|
| 433 |
\section{Second section} %%Another section |
| 434 |
\begin{frame} |
| 435 |
\frametitle{A theorem} |
| 436 |
|
| 437 |
\begin{proposition} %%The ``proposition'' environment |
| 438 |
The prime numbers are cool and infinite |
| 439 |
\end{proposition} |
| 440 |
|
| 441 |
And something else |
| 442 |
|
| 443 |
\end{frame} |
| 444 |
\end{document} |
| 445 |
%</template> |
| 446 |
|
| 447 |
% \end{macrocode} |
| 448 |
|
| 449 |
%\Finale |