diff options
author | Karl Berry <karl@freefriends.org> | 2019-01-29 22:14:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-01-29 22:14:50 +0000 |
commit | ff6764eeb888207c23a81141bb50836a98527f40 (patch) | |
tree | 7e5c70a7b2981d6b93a45cde32f7cec82fa30898 /Master/texmf-dist | |
parent | 2a9521a76a96fe366f1a457019e95659d9464924 (diff) |
beamertheme-light (29jan19)
git-svn-id: svn://tug.org/texlive/trunk@49867 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/beamertheme-light/README | 12 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/beamertheme-light/beamertheme-light-example.pdf | bin | 0 -> 98222 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/beamertheme-light/beamertheme-light-example.tex | 41 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/beamertheme-light/beamertheme-light.sty | 115 |
4 files changed, 168 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/beamertheme-light/README b/Master/texmf-dist/doc/latex/beamertheme-light/README new file mode 100644 index 00000000000..780eaab92f3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/beamertheme-light/README @@ -0,0 +1,12 @@ +The LaTeX package `beamertheme-light' provides an aesthetic and +minimal beamer style by redefining colors and fonts. +Several color themes are available as options. +A usage guide is given in beamertheme-light-example.pdf. + +Please send enhancements and corrections to: +Fabien Vergnet, f.j.vergnet@gmail.com, or +Vivien Goepp, vivien.goepp@gmail.com + +2019/01/29 +Package version 1.0 +This package is licensed under the General Public License version 3 (GPL3). diff --git a/Master/texmf-dist/doc/latex/beamertheme-light/beamertheme-light-example.pdf b/Master/texmf-dist/doc/latex/beamertheme-light/beamertheme-light-example.pdf Binary files differnew file mode 100644 index 00000000000..0a0fc47686b --- /dev/null +++ b/Master/texmf-dist/doc/latex/beamertheme-light/beamertheme-light-example.pdf diff --git a/Master/texmf-dist/doc/latex/beamertheme-light/beamertheme-light-example.tex b/Master/texmf-dist/doc/latex/beamertheme-light/beamertheme-light-example.tex new file mode 100644 index 00000000000..95c794a14fb --- /dev/null +++ b/Master/texmf-dist/doc/latex/beamertheme-light/beamertheme-light-example.tex @@ -0,0 +1,41 @@ +\documentclass[10pt, compress]{beamer} + +\usepackage[english]{babel} +\usepackage[green]{beamertheme-light} + +\title[The package \texttt{light}]{Colored beamer layout \\ with \texttt{beamertheme-light}} +\author[F. Vergnet and V. Goepp]{F. Vergnet$^\dagger$ and V. Goepp$^{\ddagger}$} +\institute{$\dagger$ : LMO, Universit\'e Paris-Sud, Universit\'e Paris-Saclay, \\ $\ddagger$ : MAP5, Universit\'e Paris-Descartes} +\date{Package version 1.0 (29/01/2019)} + +\begin{document} + +{\setbeamertemplate{footline}{} +\begin{frame} + \titlepage +\end{frame} +} + +\begin{frame} + \frametitle{How to use the package} + \begin{enumerate} + \item Download \texttt{beamertheme-light} from CTAN. + \item Include \texttt{\textbackslash usepackage[coloroption]\{beamertheme-light\}} in your \texttt{.tex} beamer document. + \item Replace \texttt{coloroption} by the color of your choice: ``red'', ``blue'', ``purple'', or ``green'' (the default color) + \item The beamer document will have the same layout as this document. + \end{enumerate} +\end{frame} + +\begin{frame} + \frametitle{Further options} + \begin{enumerate} + \item Provide a short title field. + \item Provide a short author field. + \item Use the command \texttt{\textbackslash thankframe\{mymessage\}} for the last frame. + \end{enumerate} +\end{frame} + +%%%%% Define last frame %%%%% +\thankframe{This is the thankframe} + +\end{document} diff --git a/Master/texmf-dist/tex/latex/beamertheme-light/beamertheme-light.sty b/Master/texmf-dist/tex/latex/beamertheme-light/beamertheme-light.sty new file mode 100644 index 00000000000..c2ceecc4b4a --- /dev/null +++ b/Master/texmf-dist/tex/latex/beamertheme-light/beamertheme-light.sty @@ -0,0 +1,115 @@ +%%%%% Package ``beamertheme-light'': a colored beamer theme %%%%% +%%%%% Authors: Fabien Vergnet and Vivien Goepp %%%%% +%%%%% Contact: f.j.vergnet@gmail.com and vivien.goepp@gmail.com %%%%% +%%%%% Package version 1.0 (29/01/2019) %%%%% + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{light}[2019/01/29 Beamer style package] + +\mode<presentation> + +%%%%% Define colors %%%%% +% Defaut: +\definecolor{vertfonce}{rgb}{0.20,0.43,0.09} +% Blue: +\definecolor{frenchblue}{rgb}{0.0, 0.45, 0.73} +\definecolor{sanddune}{rgb}{0.59, 0.44, 0.09} +% Purple: +\definecolor{darkmagenta}{rgb}{0.55, 0.0, 0.55} +\definecolor{byzantium}{rgb}{0.44, 0.16, 0.39} +\definecolor{sanddune}{rgb}{0.59, 0.44, 0.09} +% Beige: +\definecolor{darkpastelred}{rgb}{0.76, 0.23, 0.13} +\definecolor{desertsand}{rgb}{0.93, 0.79, 0.69} + +%%%%% Define body and title colors %%%%% +%% Foreground colors +\newcommand{\wordcolor}{vertfonce} % Text color +%% Optional colors +\DeclareOption{blue}{\renewcommand{\wordcolor}{frenchblue}} +\DeclareOption{red}{\renewcommand{\wordcolor}{darkpastelred}} +\DeclareOption{purple}{\renewcommand{\wordcolor}{darkmagenta}} +\DeclareOption*{\PackageWarning{descartes}{Unknown ‘\CurrentOption’}} +\ProcessOptions\relax + +%% Background colors +\newcommand{\strbg}{white!90!black} % Structure background color +\DeclareOption{blue}{\renewcommand{\strbg}{sanddune!15!white}} +\DeclareOption{red}{\renewcommand{\strbg}{desertsand!30!white}} +\DeclareOption{purple}{\renewcommand{\strbg}{byzantium!25!white}} +\DeclareOption*{\PackageWarning{descartes}{Unknown ‘\CurrentOption’}} +\ProcessOptions\relax + +%% Set colors +\setbeamercolor{title in head/foot}{fg=\wordcolor,bg=white!90!black} +\setbeamercolor{structure}{fg=\wordcolor,bg=\strbg} +\setbeamercolor{title}{fg=\wordcolor,bg=white} + +%%%%% Define title frame %%%%% +\defbeamertemplate*{title page}{customized}[1][] +{ + \vspace{1cm} + \usebeamerfont{title}\usebeamercolor[fg]{title}\center{\huge \inserttitle}\par + \center{\rule{0.6666\paperwidth}{0.02cm}\par} + \bigskip + \usebeamerfont{author}\usebeamercolor[black]{author}{\large \insertauthor}\\ + \bigskip + \usebeamerfont{institute}{\small \insertinstitute}\par + \bigskip + \vspace{1cm} + \usebeamerfont{date}{\small \insertdate}\par +} +%%%%% End define title frame %%%%% + +%%%%% Define footline %%%%% +\setbeamertemplate{footline} +{ + \leavevmode% + \hbox{% + \begin{beamercolorbox}[wd =.45\paperwidth, ht = 2.25ex, dp = 1ex, center]{author in head/foot}% + \usebeamerfont{author in head/foot}\colorbox{structure.bg}{\makebox[0.45\paperwidth]{\insertshortauthor}} + \end{beamercolorbox}% + \begin{beamercolorbox}[wd =.45\paperwidth, ht = 2.25ex, dp = 1ex, center]{title in head/foot}% + \usebeamerfont{title in head/foot}\colorbox{structure.bg}{\makebox[0.45\paperwidth]{\insertshorttitle}} + \end{beamercolorbox}% + \begin{beamercolorbox}[wd=.10\paperwidth, ht = 2.25ex, dp = 1ex, right]{date in head/foot}% + \usebeamerfont{date in head/foot}\colorbox{structure.bg}{\makebox[0.10\paperwidth]{ + \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}}} + \end{beamercolorbox}}% + \vskip0pt% +} +%%%%% End define footline %%%%% + +%%%%% Define command for the "Thank you" frame +\newcommand{\thankframe}[1]{ +\setbeamercolor{background canvas}{fg = title.fg,bg = title.fg!50!black} +\setbeamertemplate{footline}{} +\begin{frame} + \center{\Huge \textcolor{white}{#1}} +\end{frame} +\setbeamercolor{structure}{fg = \wordcolor, bg = \strbg} +\setbeamercolor{background canvas}{fg = black,bg = white} +} +%%%%% End define command for the "Thank you" frame + +%% Rounded block (for definition, prop, theorems, etc...) +\setbeamertemplate{blocks}[rounded][shadow = true] + +%% No navigation symbols +\setbeamertemplate{navigation symbols}{} + +%% Redefine itemize +\setbeamercolor{item}{fg = title.fg, bg = title.fg} +\setbeamertemplate{itemize item}{{\tiny{\textbullet}}} + +%% Redefine the way the legend of a figure is written +\setbeamertemplate{caption}{\raggedright\scriptsize{\insertcaption}\par} + +%% To have "[number]" before any reference in bibliography +\setbeamertemplate{bibliography item}[text] + +%% Remove 1 from the counter (title frame is 0) +\addtocounter{framenumber}{-1} + +\mode +<all> |