From c158d1a01a8abdecba5790afa3e3532a44bde075 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 27 Jul 2024 20:45:22 +0000 Subject: pgfplotsthemebeamer (27jul24) git-svn-id: svn://tug.org/texlive/trunk@71911 c570f23f-e606-0410-a88d-b1316a301751 --- .../pgfplotsthemebeamer/pgfplotsthemebeamer.sty | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/pgfplotsthemebeamer/pgfplotsthemebeamer.sty (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/pgfplotsthemebeamer/pgfplotsthemebeamer.sty b/Master/texmf-dist/tex/latex/pgfplotsthemebeamer/pgfplotsthemebeamer.sty new file mode 100644 index 00000000000..a47e1f5e97e --- /dev/null +++ b/Master/texmf-dist/tex/latex/pgfplotsthemebeamer/pgfplotsthemebeamer.sty @@ -0,0 +1,45 @@ +% !TeX root = ./testing/test.tex +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% The pgfplotsthemebeamer package +% Using colours from the current beamer theme in pgfplots +% Maintained by samcarter +% +% Project repository and bug tracker: +% https://github.com/samcarter/pgfplotstheme-beamer +% +% Released under the LaTeX Project Public License v1.3c or later +% See http://www.latex-project.org/lppl.txt +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\ProvidesPackage{pgfplotsthemebeamer}[2024/07/25 version v0.1 PGFplots colours based the colours of the current beamer theme] + +% error if used with a class other than beamer +\IfClassLoadedF{beamer}{% + \PackageError{pgfplotsthemebeamer}{This pgfplots theme needs to be used in conjunction with the beamer class}{} +} + +% process package options +\RequirePackage{pgfopts} +\newif\ifpgfplotsthemebeamer@all +\pgfkeys{ + pgfplotsthemebeamer/.cd , + all/.code = \pgfplotsthemebeamer@alltrue, +} +\ProcessPgfOptions{/pgfplotsthemebeamer} + +% setting up colours +\RequirePackage{pgfplots} +\pgfplotsset{ + beamercolors/.style={ + cycle multi list={ + mark=*\\mark=x\\mark=square*\\mark=o\\mark=+\\mark=square\\\nextlist + structure.fg\\alerted text.fg\\example text.fg\\ + } + } +} + +% making beamercolors default if package is loaded with `all` option +\ifpgfplotsthemebeamer@all + \pgfplotsset{beamercolors} +\fi -- cgit v1.2.3