From 9a0f941a808b2bb198eaa1b8046e84b44841e75e Mon Sep 17 00:00:00 2001 From: Francisco Coelho Date: Sat, 15 Nov 2014 10:38:33 +0000 Subject: [PATCH] alpha version --- README.md | 52 ++++++++++++++++++++++------------------------------ exemplos/simples.tex | 18 +++++++++++++++--- texmf/tex/latex/beamer/themes/color/beamercolorthemeGiraldo.sty | 44 ++++++++++++++++++++++++-------------------- texmf/tex/latex/beamer/themes/theme/beamerthemeGiraldo.sty | 26 +++++++++++++++++++++++++- 4 files changed, 86 insertions(+), 54 deletions(-) diff --git a/README.md b/README.md index 82e7f08..6af69b7 100644 --- a/README.md +++ b/README.md @@ -20,34 +20,26 @@ ## Exemplos -`` - \documentclass{beamer} - \usetheme{Giraldo} - % - \title{Exemplo de uma aula} - \subtitle{Uso do tema `Giraldo'} - \author{Francisco Coelho} - \institute[\texttt{fc@di.uevora.pt}]{ - Departamento de Informática\\ - Escola de Ciências e Tecnologia\\ - Universidade de Évora - } - - \begin{document} - \begin{frame} - \titlepage - \end{frame} - - \section*{Preâmbulo} - - \begin{frame}{Sumário} - \tableofcontents - \end{frame} - - \section{Uso básico do `beamer`} - - \begin{frame}{Criar uma página} - Olá - \end{frame} - \end{document} +``` +\documentclass{beamer} +\usetheme{Giraldo} +% +\title{Olá Mundo} +\subtitle{Uso do tema `Giraldo'} +\author{Francisco Coelho} +\institute[\texttt{fc@di.uevora.pt}]{ +Departamento de Informática\\ +Escola de Ciências e Tecnologia\\ +Universidade de Évora +} + +\begin{document} + \begin{frame}[plain]{\titlepage} + + \section{Uso básico do `beamer`} + + \begin{frame}{Criar uma página} + Olá + \end{frame} +\end{document} ``` \ No newline at end of file diff --git a/exemplos/simples.tex b/exemplos/simples.tex index cf38654..1709d2c 100644 --- a/exemplos/simples.tex +++ b/exemplos/simples.tex @@ -4,8 +4,8 @@ % % Suporte para o português % -\usepackage[T1]{fontenc} \usepackage{eurosym} +\usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[portuges]{babel} % @@ -101,7 +101,19 @@ Escola de Ciências e Tecnologia % \section{Opções e mais exemplos} - \begin{frame}{Beamer, \alert{Giraldo} e variantes} - Exemplos de uso do \texttt{Beamer} e do tema \texttt{Giraldo} + \begin{frame}{Beamer e \alert{Giraldo}} + \begin{semiverbatim} + \\documentclass\{beamer\} + + \\usetheme\{\alert{Giraldo}\} + + \\usepackage[portuges]\{babel\} + + \\begin\{document\} + + ~~~~... + + \\end\{document\} + \end{semiverbatim} \end{frame} \end{document} \ No newline at end of file diff --git a/texmf/tex/latex/beamer/themes/color/beamercolorthemeGiraldo.sty b/texmf/tex/latex/beamer/themes/color/beamercolorthemeGiraldo.sty index 9c49af4..a7cf387 100644 --- a/texmf/tex/latex/beamer/themes/color/beamercolorthemeGiraldo.sty +++ b/texmf/tex/latex/beamer/themes/color/beamercolorthemeGiraldo.sty @@ -19,7 +19,11 @@ % Basic text elements % \setbeamercolor*{normal text}{fg=black,bg=white} -\setbeamercolor{alerted text}{fg=ue-red,bg=white} +\setbeamercolor*{alerted text}{fg=ue-red,bg=white} +% +% +% Title page elements +% \setbeamercolor*{title}{fg=ue-red,bg=white} % % @@ -82,25 +86,25 @@ % Sidebar stuff % %\setbeamercolor*{sidebar}{parent=palette primary} -\setbeamercolor*{sidebar}{bg=ue-red,fg=black} -\setbeamercolor*{title in sidebar}{fg=white} -\setbeamercolor*{subsection in sidebar}{fg=white} -\setbeamercolor{palette sidebar primary}{ - use=normal text, - fg=normal text.fg -} -\setbeamercolor{palette sidebar secondary}{ - use=structure, - fg=white -} -\setbeamercolor{palette sidebar tertiary}{ - use=normal text, - fg=normal text.fg -} -\setbeamercolor{palette sidebar quaternary}{ - use=structure, - fg=structure.fg -} +% \setbeamercolor*{sidebar}{bg=ue-red,fg=black} +% \setbeamercolor*{title in sidebar}{fg=white} +% \setbeamercolor*{subsection in sidebar}{fg=white} +% \setbeamercolor{palette sidebar primary}{ +% use=normal text, +% fg=normal text.fg +% } +% \setbeamercolor{palette sidebar secondary}{ +% use=structure, +% fg=white +% } +% \setbeamercolor{palette sidebar tertiary}{ +% use=normal text, +% fg=normal text.fg +% } +% \setbeamercolor{palette sidebar quaternary}{ +% use=structure, +% fg=structure.fg +%} % % % diff --git a/texmf/tex/latex/beamer/themes/theme/beamerthemeGiraldo.sty b/texmf/tex/latex/beamer/themes/theme/beamerthemeGiraldo.sty index 2914c91..bbcbb8b 100644 --- a/texmf/tex/latex/beamer/themes/theme/beamerthemeGiraldo.sty +++ b/texmf/tex/latex/beamer/themes/theme/beamerthemeGiraldo.sty @@ -8,13 +8,23 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % +% Opcoes +% +\newif\ifgiraldo@sempavor +\giraldo@sempavorfalse +\DeclareOptionBeamer{sempavor}{\giraldo@sempavortrue} +\ProcessOptionsBeamer +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% % Logotipo(s) % \pgfdeclareimage[width=64pt]{ue-logo}{logo_horizontal_duas_linhas} \pgfdeclareimage[width=64pt]{ue-logo-branco}{logo_horizontal_duas_linhas_invertido} \pgfdeclareimage[width=96pt]{ue-logo-principal}{logo_principal} \titlegraphic{\pgfuseimage{ue-logo-principal}} -\logo{\pgfputat{\pgfxy(-1,8)}{\pgfbox[center,base]{\pgfuseimage{ue-logo}}}} +%\logo{\pgfputat{\pgfxy(-1.2,8)}{\pgfbox[center,base]{\pgfuseimage{ue-logo}}}} % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % @@ -27,6 +37,20 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % +% Opcao sempavor +% +\ifgiraldo@sempavor + \pgfdeclareimage[width=64pt]{ue-logo}{logo_horizontal_duas_linhas} + \setbeamercolor{frametitle}{bg=ue-red,fg=white} +\else + \pgfdeclareimage[width=64pt]{ue-logo}{logo_horizontal_duas_linhas} +\fi +\logo{\pgfputat{\pgfxy(-1.2,8)}{\pgfbox[center,base]{\pgfuseimage{ue-logo}}}} + +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% % Pagina de seccao % \AtBeginSection -- libgit2 0.21.2