Debian Codegraph @

texmf-dist/tex/latex/pgfplotsthemebeamer/pgfplotsthemebeamer.sty

raw
1 % !TeX root = ./testing/test.tex
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % The pgfplotsthemebeamer package
5 % Using colours from the current beamer theme in pgfplots
6 % Maintained by samcarter
7 %
8 % Project repository and bug tracker:
9 % https://github.com/samcarter/pgfplotstheme-beamer
10 %
11 % Released under the LaTeX Project Public License v1.3c or later
12 % See http://www.latex-project.org/lppl.txt
13 %
14 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15 \ProvidesPackage{pgfplotsthemebeamer}[2024/08/02 version v0.2 PGFplots colours based the colours of the current beamer theme]
16
17 % error if used with a class other than beamer
18 \IfClassLoadedF{beamer}{%
19 \PackageError{pgfplotsthemebeamer}{This pgfplots theme needs to be used in conjunction with the beamer class}{}
20 }
21
22 % setting up colours
23 \RequirePackage{pgfplots}
24 \pgfplotsset{
25 beamercolors/.style={
26 cycle multi list={
27 mark=*\\mark=x\\mark=square*\\mark=o\\mark=+\\mark=square\\\nextlist
28 structure.fg\\alerted text.fg\\example text.fg\\
29 }
30 }
31 }
32
33 % making beamercolors default if package is loaded with `all` option
34 \DeclareOption{all}{
35 \pgfplotsset{beamercolors}
36 }
37 \ProcessOptions\relax