Merge branch 'master' of github.com:mvy/solarized

This commit is contained in:
Yves Stadler 2013-01-03 15:05:01 +01:00
commit e93f4aff1c
3 changed files with 123 additions and 0 deletions

28
latex-beamer/README.md Normal file
View file

@ -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

61
latex-beamer/slides.tex Normal file
View file

@ -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}

View file

@ -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}