Debian Codegraph @

texmf-dist/tex/latex/tikz-layers/tikz-layers.sty

raw
1 %% tikz-layers.sty
2 %% Copyright 2018 Rui Moutinho
3 %
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License, either version 1.3
6 % of this license or (at your option) any later version.
7 % The latest version of this license is in
8 % http://www.latex-project.org/lppl.txt
9 % and version 1.3 or later is part of all distributions of LaTeX
10 % version 2005/12/01 or later.
11 %
12 % This work has the LPPL maintenance status `maintained'.
13 %
14 % The Current Maintainer of this work is Rui Moutinho.
15 %
16 % This work consists of the files listed on manifest.txt.
17
18 \ProvidesPackage{tikz-layers}[2018/02/15 v0.9 Installs basic layers via TikZ]
19
20 \RequirePackage{tikz}
21 \usetikzlibrary{backgrounds}
22
23 \pgfdeclarelayer{behind}
24 \pgfdeclarelayer{above}
25 \pgfdeclarelayer{glass}
26
27 \pgfsetlayers{background,behind,main,above,glass}
28
29 \tikzset{
30 on layer/.style = {execute at begin scope={\pgfonlayer{#1}}, execute at end scope={\endpgfonlayer}},
31 on behind layer/.style = {on layer=behind},
32 on above layer/.style = {on layer=above},
33 on glass layer/.style = {on layer=glass},
34 }