From 470f2659e0c943fe2b36e70c9886c8866d3c18de Mon Sep 17 00:00:00 2001 From: Yves Stadler Date: Mon, 6 Feb 2012 14:44:38 +0100 Subject: [PATCH] Beamer colourscheme --- latex-beamer/README.md | 28 +++++++++++++++++ latex-beamer/slides.tex | 61 ++++++++++++++++++++++++++++++++++++++ latex-beamer/solarized.tex | 34 +++++++++++++++++++++ 3 files changed, 123 insertions(+) create mode 100644 latex-beamer/README.md create mode 100644 latex-beamer/slides.tex create mode 100644 latex-beamer/solarized.tex diff --git a/latex-beamer/README.md b/latex-beamer/README.md new file mode 100644 index 0000000..f985a23 --- /dev/null +++ b/latex-beamer/README.md @@ -0,0 +1,28 @@ +# LaTeX Beamer colourscheme + +This colourscheme is based on the colour set named `solarized` that is release +on github.com at https://github.com/altercation/solarized by Ethan "altercation" +Schoonover. + +## Definitions + +This colour package redifines the color of : + +- The canvas background +- The frame colour and main title block +- The block title and background (normal, alerted, example) +- The item bullets colour +- Each `solarized` colour is defined as the name `solarized-`name. + +## Usage + +Use the slides.tex file for a fully operationnal example. +You can use latexmk -pdf slides.tex or pdflatex slides.tex to compile the +sources. + +## License + +License is granted on the same terms as the original `solarized` work by Ethan +Schoonover available here https://github.com/altercation/solarized/blob/master/LICENSE + +Adaptation work is offered by Yves "M'vy" Stadler diff --git a/latex-beamer/slides.tex b/latex-beamer/slides.tex new file mode 100644 index 0000000..e7329fd --- /dev/null +++ b/latex-beamer/slides.tex @@ -0,0 +1,61 @@ +\documentclass[french, 10pt]{beamer} + +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{bera} +\usepackage[french]{babel} +\usepackage{graphicx} + +\usepackage{pgf} + +\usepackage{tikz} +\usetikzlibrary{arrows,shapes} + +\usetheme{Rochester} + +\input{solarized.tex} +\setbeamercovered{transparent} + +\setbeamertemplate{navigation symbols}{} +\setbeamertemplate{footline}[text line]{\insertframenumber/\inserttotalframenumber} + +\title{The main title} +\author{Yves `M'vy` Stadler} + +\begin{document} + +\begin{frame} +\titlepage +\end{frame} + +\def\sectitle{Title} +\section{\sectitle} +% Frame +\begin{frame}{\sectitle} + % Block + \def\subsectitle{Block} + \subsection{\subsectitle} + \begin{block}{\subsectitle} + \begin{itemize} + \item Itemize + \end{itemize} + \end{block} + % Block + \def\subsectitle{Example Block} + \subsection{\subsectitle} + \begin{exampleblock}{\subsectitle} + \begin{itemize} + \item Itemize + \end{itemize} + \end{exampleblock} + % Block + \def\subsectitle{Block} + \subsection{\subsectitle} + \begin{alertblock}{\subsectitle} + \begin{itemize} + \item Itemize + \end{itemize} + \end{alertblock} +\end{frame} + +\end{document} diff --git a/latex-beamer/solarized.tex b/latex-beamer/solarized.tex new file mode 100644 index 0000000..96adfdf --- /dev/null +++ b/latex-beamer/solarized.tex @@ -0,0 +1,34 @@ +% Original definition from altercation/solarized +\definecolor{solarized-base03}{RGB}{0,43,54} % Background +\definecolor{solarized-base02}{RGB}{7,54,66} % Background highlight +\definecolor{solarized-base01}{RGB}{88,110,117} % Comments/Secondary content +\definecolor{solarized-base00}{RGB}{101,123,131}% +\definecolor{solarized-base0}{RGB}{131,148,150} % Body text, default code, primary content +\definecolor{solarized-base1}{RGB}{147,161,161} % Optional emphasised content +\definecolor{solarized-base2}{RGB}{238,232,213} % +\definecolor{solarized-base3}{RGB}{253,246,227} % +\definecolor{solarized-yellow}{RGB}{181,137,0} +\definecolor{solarized-orange}{RGB}{203,75,22} +\definecolor{solarized-red}{RGB}{220,50,47} +\definecolor{solarized-magenta}{RGB}{211,54,130} +\definecolor{solarized-violet}{RGB}{108,113,196} +\definecolor{solarized-blue}{RGB}{38,139,210} +\definecolor{solarized-cyan}{RGB}{42,161,152} +\definecolor{solarized-green}{RGB}{133,153,0} + +%% The beamer template +\setbeamercolor{block title}{bg=solarized-base02} +\setbeamercolor{block body}{bg=solarized-base2, fg=black} + +\setbeamercolor{block title example}{bg=solarized-base01} +\setbeamercolor{block body example}{bg=solarized-base1, fg=black} + +\setbeamercolor{block title alerted}{bg=solarized-base03} +\setbeamercolor{block body alerted}{bg=solarized-base0, fg=black} + +\setbeamercolor{item}{fg=solarized-orange} + +\setbeamercolor{background canvas}{bg=solarized-base3, fg=solarized-base0} + +\setbeamercolor{title}{bg=solarized-base02} +\setbeamercolor{frametitle}{bg=solarized-base03}