diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex b/Master/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex index fe6106f4380..35f64d032dd 100644 --- a/Master/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex +++ b/Master/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex @@ -27,6 +27,7 @@ \def\pgfplotsset#{\pgfqkeys{/pgfplots}} +\def\pgfplots@log#1#2{\immediate\write-1{Package pgfplots info: #2}}% \def\pgfplots@error#1{\PackageError{pgfplots}{#1}{}}% \def\pgfplotstable@error@pkg#1{\PackageError{pgfplotstable}{#1}{}}% \def\pgfplots@warning#1{\pgfplots@message{! Package pgfplots Warning: #1}}% @@ -90,6 +91,15 @@ \fi \let#1=\pgfutil@empty },% + % #1 : the layer name + % #2 : additional context information (message) + /pgfplots/exception/inactive layer/.code 2 args={% + \ifx\pgfplotsexceptionmsg\relax + \pgfplots@error{Sorry, the layer '#1' has not been activated but it is referenced in #2. Perhaps you misspelled it? Each referenced layer must be activated (expect for layer 'discard').}% + \else + \pgfplots@error{\pgfplotsexceptionmsg}% + \fi + },% % #1: the argument which should have been assigned. % #2: an error message. /pgfplots/exception/no such element/.code 2 args={% |