Debian Codegraph @

texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfmanual.code.tex

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %%% This file is a copy of some part of PGF/Tikz.
3 %%% It has been copied here to provide :
4 %%% - compatibility with older PGF versions
5 %%% - availability of PGF contributions by Christian Feuersaenger
6 %%% which are necessary or helpful for pgfplots.
7 %%%
8 %%% For reasons of simplicity, I have copied the whole file, including own contributions AND
9 %%% PGF parts. The copyrights are as they appear in PGF.
10 %%%
11 %%% Note that pgfplots has compatible licenses.
12 %%%
13 %%% This copy has been modified in the following ways:
14 %%% - nested \input commands have been updated
15 %%%
16 %
17 % Support for the contents of this file will NOT be done by the PGF/TikZ team.
18 % Please contact the author and/or maintainer of pgfplots (Christian Feuersaenger) if you need assistance in conjunction
19 % with the deployment of this patch or partial content of PGF. Note that the author and/or maintainer of pgfplots has no obligation to fix anything:
20 % This file comes without any warranty as the rest of pgfplots; there is no obligation for help.
21 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22 %%% Date of this copy: Sa 7. Dez 20:58:23 CET 2013 %%%
23
24
25
26 % Copyright 2009 by Till Tantau and Christian Feuersänger
27 %
28 % This file may be distributed and/or modified
29 %
30 % 1. under the LaTeX Project Public License and/or
31 % 2. under the GNU Public License.
32 %
33 % See the file doc/generic/pgf/licenses/LICENSE for more details.
34
35 \input pgfplotsoldpgfsupp_pgfmanual.prettyprinter.code.tex
36 \input pgfplotsoldpgfsupp_pgfmanual.pdflinks.code.tex
37
38 % TODO for auto xrefs:
39 % 1. check the already identified labels, preferrably using
40 % /pdflinks/show labels=true
41 % and the image externalization debug mode (see pgfmanual-en-main.tex)
42 % (to strip almost all images away)
43 %
44 % 2. Insert '\declareandlabel' in the document whenever something has been
45 % defined in the text, so it should get a pdf anchor (see
46 % pgfmanual.pdflinks.code.tex )
47 %
48 % 2.1 perhaps insert \pgfmanualpdflabel{<label>}{} where needed.
49 %
50 % 3. Verify that the |...| commands occuring in situations where catcodes can't
51 % be changed (footnotes or macro arguments) work as expected.
52 %
53 % 4. Consider telling the pretty printer that several control sequences
54 % have arguments which are options (see below for the predefined list).
55 % This may apply to \pgfpageslogicalpageoptions or so.
56 %
57 % 5. @Christian: consider extensions of the parser such that it identifies path commands (at least partially)
58 %
59 %
60
61 \def\pgfmanual@warning#1{\immediate\write16{! Package pgfmanual Warning: #1}}%
62
63
64 \pgfkeys{
65 % set this to 'false' to disable auto reference generation.
66 % However, a little bit runtime overhead will still remain
67 % (and the \pgfmanualpdflabel commands will still be used)
68 /pdflinks/codeexample links=true,
69 %
70 /codeexample/prettyprint/cs arguments/tikzset/.initial=1,
71 /codeexample/prettyprint/cs/tikzset/.code 2 args={\pgfmanualpdfref{#1}{#1}\{\pgfmanualprettyprintpgfkeys{#2}\pgfmanualclosebrace},
72 /codeexample/prettyprint/cs arguments/usetikzlibrary/.initial=1,
73 /codeexample/prettyprint/cs/usetikzlibrary/.code 2 args={\pgfmanualpdfref{#1}{#1}\{\pgfmanualpdfref{#2}{#2}\pgfmanualclosebrace},
74 /codeexample/prettyprint/cs arguments/usepgflibrary/.initial=1,
75 /codeexample/prettyprint/cs/usepgflibrary/.code 2 args={\pgfmanualpdfref{#1}{#1}\{\pgfmanualpdfref{#2}{#2}\pgfmanualclosebrace},
76 %
77 %
78 %
79 % whenever an unqualified key is found, the following key prefix
80 % list is tried to find a match.
81 /pdflinks/search key prefixes in={/tikz/,/pgf/},
82 %
83 % the link prefix written to the pdf file:
84 /pdflinks/internal link prefix=pgf,
85 %
86 /pdflinks/warnings=false,
87 % for debugging:
88 /pdflinks/show labels=false,
89 }%
90