summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/smartdiagram/smartdiagram.sty
blob: c2068ab502e74befb7e9a6146cd3e62da4ea7508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
%%
%% This is file `smartdiagram.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% smartdiagram.dtx  (with options: `package')
%% * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
%% smartdiagram --- Automatic creation of smart diagrams from lists of items.
%% 
%% E-mail: claudio <dot> fiandrino <at> gmail <dot> com
%% 
%% Released under the LaTeX Project Public License v1.3c or later
%% See http://www.latex-project.org/lppl.txt
%% * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
%% 
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{smartdiagram}[2016/12/23 v0.3b Automatic creation of smart diagrams from lists of items.]

\RequirePackage{tikz}

\RequirePackage{etoolbox}
\RequirePackage{xparse}
\RequirePackage{xstring}

\usetikzlibrary{backgrounds,
   calc,
   fadings,
   shadows,
   shapes.arrows,
   shapes.symbols
}
\pgfdeclarelayer{smart diagram arrow back}
\pgfsetlayers{background,smart diagram arrow back,main}

\def\usesmartdiagramlibrary{\pgfutil@ifnextchar[{\use@smartdiagramlibrary}{\use@@smartdiagramlibrary}}%}
\def\use@smartdiagramlibrary[#1]{\use@@smartdiagramlibrary{#1}}
\def\use@@smartdiagramlibrary#1{%
 \edef\pgf@list{#1}%
 \pgfutil@for\pgf@temp:=\pgf@list\do{%
  \expandafter\pgfkeys@spdef\expandafter\pgf@temp\expandafter{\pgf@temp}%
  \ifx\pgf@temp\pgfutil@empty
  \else
    \expandafter\ifx\csname smartdiagram@library@\pgf@temp @loaded\endcsname\relax%
    \expandafter\global\expandafter\let\csname smartdiagram@library@\pgf@temp @loaded\endcsname=\pgfutil@empty%
    \expandafter\edef\csname smartdiagram@library@#1@atcode\endcsname{\the\catcode`\@}
    \expandafter\edef\csname smartdiagram@library@#1@barcode\endcsname{\the\catcode`\|}
    \catcode`\@=11
    \catcode`\|=12
    \pgfutil@InputIfFileExists{smartdiagramlibrary\pgf@temp.code.tex}{}{
      \PackageError{smartdiagram}{I did not find the smartdiagram library '\pgf@temp'.}{}
    }%
    \catcode`\@=\csname smartdiagram@library@#1@atcode\endcsname
    \catcode`\|=\csname smartdiagram@library@#1@barcode\endcsname
  \fi%
 \fi
 }%
}

\usesmartdiagramlibrary{core.definitions}
\usesmartdiagramlibrary{core.styles}
\usesmartdiagramlibrary{core.commands}

%% 
%% Copyright (C) 2012-2013 by Claudio Fiandrino
%% E-mail: <claudio <dot> fiandrino <at> gmail <dot> com>
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License (LPPL), either
%% version 1.3c of this license or (at your option) any later
%% version.  The latest version of this license is in the file:
%% 
%% http://www.latex-project.org/lppl.txt
%% 
%% This work is "maintained" (as per LPPL maintenance status) by
%% Claudio Fiandrino.
%% 
%% This work consists of the file  smartdiagram.dtx
%% and the derived files           smartdiagram.ins,
%%                                 smartdiagram.pdf,
%%                                 smartdiagramlibrarycore.definitions.code.tex,
%%                                 smartdiagramlibrarycore.styles.code.tex,
%%                                 smartdiagramlibrarycore.commands.code.tex
%%                                 smartdiagramlibraryadditions.code.tex and
%%                                 smartdiagram.sty.
%% 
%%
%% End of file `smartdiagram.sty'.