Add preprints files (part 15)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +25 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/README.md +17 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex +357 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex +162 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex +150 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex +161 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex +29 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex +997 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorepathprocessing.code.tex +417 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorepathusage.code.tex +510 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex +197 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex +724 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorequick.code.tex +67 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorerdf.code.tex +83 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex +496 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex +700 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcoretransformations.code.tex +503 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcoretransparency.code.tex +146 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.code.tex +205 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.ee.IEC.code.tex +371 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.ee.code.tex +121 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.logic.CDH.code.tex +20 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.logic.IEC.code.tex +59 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.logic.US.code.tex +49 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.logic.code.tex +31 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.3d.code.tex +61 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.barcharts.code.tex +35 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.code.tex +2355 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.formats.functions.code.tex +8 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.polar.code.tex +527 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.sparklines.code.tex +26 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/graphs/tikzlibrarygraphs.code.tex +2275 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/graphs/tikzlibrarygraphs.standard.code.tex +72 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzexternalshared.code.tex +1265 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary3d.code.tex +97 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryangles.code.tex +89 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryanimations.code.tex +790 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryarrows.code.tex +6 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryautomata.code.tex +95 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarybabel.code.tex +9 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarybackgrounds.code.tex +134 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarybending.code.tex +7 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarycalc.code.tex +455 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarycalendar.code.tex +398 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarychains.code.tex +198 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarydecorations.code.tex +173 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarydecorations.footprints.code.tex +5 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarydecorations.fractals.code.tex +5 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarydecorations.markings.code.tex +22 -0
- preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarydecorations.pathmorphing.code.tex +5 -0
.gitattributes
CHANGED
|
@@ -765,3 +765,28 @@ preprints/Uniform-Permanence-in-Weakly-Reversible-Mass-Action-Systems-October-5-
|
|
| 765 |
preprints/Uniform-Pluricanonical-Iitaka-Fibrations-October-3-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 766 |
preprints/Uniform-quasipolynomial-time-trace-reconstruction-October-5-2026/uniform-trace-reconstruction.pdf filter=lfs diff=lfs merge=lfs -text
|
| 767 |
preprints/Uniform-real-Lipschitz-surfaces-on-the-triangular-lattice-September-25-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 765 |
preprints/Uniform-Pluricanonical-Iitaka-Fibrations-October-3-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 766 |
preprints/Uniform-quasipolynomial-time-trace-reconstruction-October-5-2026/uniform-trace-reconstruction.pdf filter=lfs diff=lfs merge=lfs -text
|
| 767 |
preprints/Uniform-real-Lipschitz-surfaces-on-the-triangular-lattice-September-25-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 768 |
+
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/uniform-stability-spherical-laughlin-gap.pdf filter=lfs diff=lfs merge=lfs -text
|
| 769 |
+
preprints/Uniformization-of-complete-Kahler-manifolds-with-positive-bisectional-curvature-September-23-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 770 |
+
preprints/Unitarizability-Implies-Amenability-for-Countable-Groups-September-23-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 771 |
+
preprints/Universal-Computation-with-Eventually-Stationary-Navier-Stokes-Forcing-September-27-2026/manuscript.pdf filter=lfs diff=lfs merge=lfs -text
|
| 772 |
+
preprints/Universal-cover-splitting-for-compact-Kahler-manifolds-September-23-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 773 |
+
preprints/Universal-optimality-of-the-triangular-lattice-September-23-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 774 |
+
preprints/Universal-strong-Kadison-Kastler-stability-September-23-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 775 |
+
preprints/Universal-Tensor-Squares-for-Symmetric-Groups-September-24-2026/main.pdf filter=lfs diff=lfs merge=lfs -text
|
| 776 |
+
preprints/Universality-of-critical-quench-autocorrelations-in-the-Sherrington-Kirkpatrick-model-October-5-2026/main.pdf filter=lfs diff=lfs merge=lfs -text
|
| 777 |
+
preprints/Unrestricted-pro-modularity-at-the-prime-two-October-4-2026/two-adic-promodularity.pdf filter=lfs diff=lfs merge=lfs -text
|
| 778 |
+
preprints/Vanishing-of-higher-bounded-Hochschild-cohomology-September-23-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 779 |
+
preprints/Variable-dimension-Weisfeiler-Leman-equivalence-on-general-and-subcubic-graphs-September-25-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 780 |
+
preprints/Variance-of-the-Random-k-SAT-Hitting-Time-September-27-2026/article.pdf filter=lfs diff=lfs merge=lfs -text
|
| 781 |
+
preprints/Velocity-Field-Detection-of-Computation-in-Forced-Navier-Stokes-Flows-September-27-2026/manuscript.pdf filter=lfs diff=lfs merge=lfs -text
|
| 782 |
+
preprints/Virasoro-Constraints-for-Projective-Complete-Intersections-September-24-2026/article.pdf filter=lfs diff=lfs merge=lfs -text
|
| 783 |
+
preprints/Virasoro-Constraints-under-Projectivization-October-5-2026/virasoro-constraints-under-projectivization.pdf filter=lfs diff=lfs merge=lfs -text
|
| 784 |
+
preprints/Virtual-compact-specialness-of-hyperbolic-one-relator-groups-September-25-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 785 |
+
preprints/Weak-and-strong-normalization-in-pure-type-systems-September-25-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 786 |
+
preprints/Weak-Hessian-bounds-along-every-geodesic-in-RCD-spaces-September-24-2026/weak-hessian-geodesics.pdf filter=lfs diff=lfs merge=lfs -text
|
| 787 |
+
preprints/Weak-mixing-of-triangular-billiards-with-an-irrational-angle-October-5-2026/weak-mixing-triangular-billiards.pdf filter=lfs diff=lfs merge=lfs -text
|
| 788 |
+
preprints/Weak-pure-infiniteness-and-O-infinity-absorption-September-25-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 789 |
+
preprints/Weighted-Dilation-Graphs-Smooth-Shifted-Primes-and-Totient-Fibers-September-24-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 790 |
+
preprints/Weil-classes-and-Hodge-classes-on-abelian-powers-September-30-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 791 |
+
preprints/Witnessed-symmetric-choice-is-strictly-stronger-than-choiceless-polynomial-time-with-counting-September-24-2026/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 792 |
+
preprints/Zero-Plane-Rigidity-for-Einstein-Four-Manifolds-October-4-2026/einstein-boundary.pdf filter=lfs diff=lfs merge=lfs -text
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# [Uniform Stability of the Spherical Laughlin Gap](uniform-stability-spherical-laughlin-gap.pdf)
|
| 2 |
+
|
| 3 |
+
**Author:** OpenAI
|
| 4 |
+
|
| 5 |
+
**Date:** October 5, 2026
|
| 6 |
+
|
| 7 |
+
## Citation
|
| 8 |
+
|
| 9 |
+
```bibtex
|
| 10 |
+
@misc{OAI:Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026,
|
| 11 |
+
author = {{OpenAI}},
|
| 12 |
+
title = {{Uniform Stability of the Spherical Laughlin Gap}},
|
| 13 |
+
howpublished = {OpenAI Math Release preprint
|
| 14 |
+
\href{https://github.com/openai/math/blob/main/preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/uniform-stability-spherical-laughlin-gap.pdf}{OAI:Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026}},
|
| 15 |
+
year = {2026}
|
| 16 |
+
}
|
| 17 |
+
```
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex
ADDED
|
@@ -0,0 +1,357 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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ys{
|
| 10 |
+
/pgf/images/include external/.code={\pgfimage{#1}},
|
| 11 |
+
/pgf/images/aux in dpth/.is if=pgfexternal@aux@in@dpth,
|
| 12 |
+
/pgf/images/aux in dpth/.default=true,
|
| 13 |
+
/pgf/images/trim external/.code n args={4}{%
|
| 14 |
+
\def\pgf@external@kern@left{#1}%
|
| 15 |
+
\def\pgf@external@kern@bottom{#2}%
|
| 16 |
+
\def\pgf@external@kern@right{#3}%
|
| 17 |
+
\def\pgf@external@kern@top{#4}%
|
| 18 |
+
\ifx\pgf@external@kern@left\pgfutil@empty\def\pgf@external@kern@left{0sp}\fi%
|
| 19 |
+
\ifx\pgf@external@kern@bottom\pgfutil@empty\def\pgf@external@kern@bottom{0sp}\fi%
|
| 20 |
+
\ifx\pgf@external@kern@right\pgfutil@empty\def\pgf@external@kern@right{0sp}\fi%
|
| 21 |
+
\ifx\pgf@external@kern@top\pgfutil@empty\def\pgf@external@kern@top{0sp}\fi%
|
| 22 |
+
},
|
| 23 |
+
/pgf/images/trim external={1truein}{1truein}{1truein}{1truein},
|
| 24 |
+
/pgf/images/external info/.is if=pgfexternal@info,
|
| 25 |
+
/pgf/images/external info/.default=true,
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
\newif\ifpgfexternalreadmainaux
|
| 31 |
+
\pgfexternalreadmainauxtrue
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
\def\pgfrealjobname#1{%
|
| 35 |
+
\global\let\pgfactualjobname=\jobname
|
| 36 |
+
\edef\pgf@tempa{\expandafter\string\csname #1\endcsname}%
|
| 37 |
+
\edef\pgf@tempb{\expandafter\string\csname\jobname\endcsname}%
|
| 38 |
+
\ifx\pgf@tempa\pgf@tempb%
|
| 39 |
+
\else%
|
| 40 |
+
\pgf@external@grabshipouttrue%
|
| 41 |
+
\pgfexternal@nofiles%
|
| 42 |
+
\ifpgfexternalreadmainaux
|
| 43 |
+
\gdef\jobname{#1}%
|
| 44 |
+
\fi
|
| 45 |
+
\ifpgfexternal@aux@in@dpth
|
| 46 |
+
\csname newwrite\endcsname\w@pgfexternal@auxout
|
| 47 |
+
\fi
|
| 48 |
+
\pgfexternal@geometry@compatibility
|
| 49 |
+
\fi%
|
| 50 |
+
\gdef\pgfrealjobname##1{}%
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
\def\pgfexternal@geometry@compatibility{%
|
| 54 |
+
\pgfutil@ifundefined{geometry}{%
|
| 55 |
+
}{%
|
| 56 |
+
\pgf@typeout{Package TikZ externalization: calling \string\geometry{driver=none} during externalization.^^J}%
|
| 57 |
+
\geometry{driver=none}%
|
| 58 |
+
}%
|
| 59 |
+
}%
|
| 60 |
+
|
| 61 |
+
\def\pgfexternal@nofiles{%
|
| 62 |
+
\let\pgfexternal@nofiles@=\relax
|
| 63 |
+
\def\relax{\relax}%
|
| 64 |
+
\csname nofiles\endcsname
|
| 65 |
+
\let\relax=\pgfexternal@nofiles@
|
| 66 |
+
}%
|
| 67 |
+
|
| 68 |
+
\newif\ifpgf@external@grabshipout
|
| 69 |
+
\newbox\pgfexternal@startupbox
|
| 70 |
+
|
| 71 |
+
\pgfutil@ifundefined{AtBeginDocument}{}{%
|
| 72 |
+
\AtBeginDocument{%
|
| 73 |
+
\ifpgf@external@grabshipout%
|
| 74 |
+
\global\let\pgfexternal@originalshipout=\shipout%
|
| 75 |
+
\global\def\shipout{\setbox\pgfpic=}%
|
| 76 |
+
\maxdeadcycles=10000%
|
| 77 |
+
{%
|
| 78 |
+
\output{\global\setbox\pgfexternal@startupbox=\vbox{\csname @begindvi\endcsname\unvbox255}}%
|
| 79 |
+
\hbox{}\eject%
|
| 80 |
+
}%
|
| 81 |
+
\fi%
|
| 82 |
+
}
|
| 83 |
+
}%
|
| 84 |
+
|
| 85 |
+
\pgfutil@ifundefined{AtEndDocument}{}{%
|
| 86 |
+
\AtEndDocument{%
|
| 87 |
+
\ifpgf@external@grabshipout
|
| 88 |
+
\pgfutil@ifundefined{pgfexternal@did@a@shipout}{%
|
| 89 |
+
\pgfexternal@error@no@shipout
|
| 90 |
+
}{}%
|
| 91 |
+
\fi
|
| 92 |
+
}%
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
\def\pgfexternal@error@no@shipout{%
|
| 96 |
+
\pgferror{Sorry, image externalization failed: the resulting image was EMPTY. I tried to externalize '\pgfactualjobname'. Perhaps there was a typo somewhere? Please check that your document contains '\string\beginpgfgraphicnamed{\pgfactualjobname} ... \string\endpgfgraphicnamed'}%
|
| 97 |
+
}%
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
\def\pgf@externalbegin#1{%
|
| 102 |
+
\let\pgf@next=\pgf@external@normal%
|
| 103 |
+
\ifpgf@external@grabshipout%
|
| 104 |
+
\edef\pgf@tempa{\expandafter\string\csname #1\endcsname}%
|
| 105 |
+
\edef\pgf@tempb{\expandafter\string\csname\pgfactualjobname\endcsname}%
|
| 106 |
+
\ifx\pgf@tempa\pgf@tempb%
|
| 107 |
+
\let\pgf@next=\pgf@external@grab%
|
| 108 |
+
\fi%
|
| 109 |
+
\fi%
|
| 110 |
+
\pgf@next{#1}%
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
\AtBeginDocument{
|
| 115 |
+
\let\beginpgfgraphicnamed=\pgf@externalbegin%
|
| 116 |
+
\let\endpgfgraphicnamed=\unskip
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
\def\pgf@external@normal#1{%
|
| 121 |
+
\let\pgf@filename=\pgfutil@empty%
|
| 122 |
+
\expandafter\pgf@findfile\pgfsys@imagesuffixlist:+{#1}%
|
| 123 |
+
\ifx\pgf@filename\pgfutil@empty%
|
| 124 |
+
\let\pgf@next=\relax%
|
| 125 |
+
\else%
|
| 126 |
+
\let\pgf@next=\pgf@replacepicturebygraphic%
|
| 127 |
+
\fi%
|
| 128 |
+
\pgf@next%
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
\long\def\pgf@replacepicturebygraphic#1\endpgfgraphicnamed{%
|
| 132 |
+
\expandafter\pgfincludeexternalgraphics\expandafter{\pgf@filename}\unskip
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
\def\pgfincludeexternalgraphics#1{%
|
| 136 |
+
\begingroup
|
| 137 |
+
\pgfexternalreaddpth{#1}%
|
| 138 |
+
\pgfkeysifdefined{/pgf/images/include external/#1/.@cmd}{%
|
| 139 |
+
\pgfkeysgetvalue{/pgf/images/include external/#1/.@cmd}\pgf@tempa
|
| 140 |
+
\pgfkeyslet{/pgf/images/include external/.@cmd}\pgf@tempa
|
| 141 |
+
}{}%
|
| 142 |
+
\setbox1=\hbox{\pgfkeysvalueof{/pgf/images/include external/.@cmd}{#1}\pgfeov}%
|
| 143 |
+
\ifdim\pgfexternaltrimleft=0sp \else \kern\pgfexternaltrimleft\relax \fi
|
| 144 |
+
\ifdim\pgfexternaldepth=0pt
|
| 145 |
+
\box1
|
| 146 |
+
\else
|
| 147 |
+
\dimen0=\pgfexternaldepth\relax
|
| 148 |
+
\hbox{\lower\dimen0 \box1 }%
|
| 149 |
+
\fi
|
| 150 |
+
\ifdim\pgfexternaltrimright=0sp \else \kern\pgfexternaltrimright\relax \fi
|
| 151 |
+
\endgroup
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
\def\pgfexternalreaddpth#1{%
|
| 155 |
+
\edef\pgfexternalreaddpth@restore{%
|
| 156 |
+
\noexpand\endlinechar=\the\endlinechar\space
|
| 157 |
+
\noexpand\catcode`\noexpand\@=\the\catcode`\@\space
|
| 158 |
+
}%
|
| 159 |
+
\def\pgfexternaldepth{0sp}%
|
| 160 |
+
\def\pgfexternaltrimleft{0sp}%
|
| 161 |
+
\def\pgfexternaltrimright{0sp}%
|
| 162 |
+
\endlinechar=-1 %
|
| 163 |
+
\catcode`\@=11
|
| 164 |
+
\openin\r@pgf@reada=#1.dpth
|
| 165 |
+
\pgfincludeexternalgraphics@read@dpth
|
| 166 |
+
\pgfexternalreaddpth@restore
|
| 167 |
+
}%
|
| 168 |
+
\def\pgfincludeexternalgraphics@read@dpth{%
|
| 169 |
+
\ifeof\r@pgf@reada
|
| 170 |
+
\closein\r@pgf@reada
|
| 171 |
+
\else
|
| 172 |
+
\read\r@pgf@reada to\pgfincludeexternalgraphics@auxline
|
| 173 |
+
\ifx\pgfincludeexternalgraphics@auxline\pgfutil@empty
|
| 174 |
+
\else
|
| 175 |
+
\expandafter\pgfincludeexternalgraphics@read@dpth@line\pgfincludeexternalgraphics@auxline\pgfincludeexternalgraphics@read@dpth@line@EOI
|
| 176 |
+
\fi
|
| 177 |
+
\expandafter\pgfincludeexternalgraphics@read@dpth
|
| 178 |
+
\fi
|
| 179 |
+
}%
|
| 180 |
+
|
| 181 |
+
\def\pgfexternal@restore#1{#1}%
|
| 182 |
+
|
| 183 |
+
\long\def\pgfincludeexternalgraphics@read@dpth@line@getfirst#1#2\pgfincludeexternalgraphics@read@dpth@line@EOI{%
|
| 184 |
+
\def\pgf@first{#1}%
|
| 185 |
+
}%
|
| 186 |
+
\long\def\pgfincludeexternalgraphics@read@dpth@line#1\pgfincludeexternalgraphics@read@dpth@line@EOI{%
|
| 187 |
+
\pgfincludeexternalgraphics@read@dpth@line@getfirst#1\pgfincludeexternalgraphics@read@dpth@line@EOI
|
| 188 |
+
\expandafter\ifcat\expandafter\noexpand\pgf@first\relax
|
| 189 |
+
\expandafter\ifx\pgf@first\pgfexternal@restore
|
| 190 |
+
#1%
|
| 191 |
+
\else
|
| 192 |
+
\pgfutil@ifundefined{if@filesw}{%
|
| 193 |
+
}{%
|
| 194 |
+
\if@filesw
|
| 195 |
+
{%
|
| 196 |
+
\toks0={#1}%
|
| 197 |
+
\immediate\write\@auxout{%
|
| 198 |
+
\noexpand\def\noexpand\dpthimport{\the\toks0}\noexpand\dpthimport}%
|
| 199 |
+
}%
|
| 200 |
+
\fi
|
| 201 |
+
}%
|
| 202 |
+
\fi
|
| 203 |
+
\else%
|
| 204 |
+
\def\pgfexternaldepth{#1}%
|
| 205 |
+
\fi
|
| 206 |
+
}%
|
| 207 |
+
|
| 208 |
+
\def\pgfexternalstorecommand#1{%
|
| 209 |
+
}%
|
| 210 |
+
\def\pgfexternalstorecommand@isexporting#1{%
|
| 211 |
+
\immediate\write\w@pgfexternal@auxout{\noexpand\pgfexternal@restore{#1}}%
|
| 212 |
+
}%
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
\def\pgf@external@grab#1{%
|
| 217 |
+
\def\pgf@filename{#1}%
|
| 218 |
+
\ifpgfexternal@aux@in@dpth
|
| 219 |
+
\begingroup
|
| 220 |
+
\pgf@external@init@aux@in@dpth
|
| 221 |
+
\let\G@refundefinedtrue=\pgf@external@grab@refundefinedtrue
|
| 222 |
+
\fi
|
| 223 |
+
\gdef\pgf@trimleft@final{0sp}%
|
| 224 |
+
\gdef\pgf@trimright@final{0sp}%
|
| 225 |
+
\setbox\pgfpic=\hbox\bgroup\bgroup%
|
| 226 |
+
\let\endpgfgraphicnamed=\pgf@externalend%
|
| 227 |
+
}
|
| 228 |
+
|
| 229 |
+
{\catcode`\^=12 \gdef\pgfexternal@hat{^}}
|
| 230 |
+
|
| 231 |
+
\expandafter\let\expandafter\pgf@external@grab@refundefinedtrue@orig\csname G@refundefinedtrue\endcsname
|
| 232 |
+
|
| 233 |
+
\def\pgf@external@grab@refundefinedtrue{%
|
| 234 |
+
\pgf@external@grab@refundefinedtrue@orig
|
| 235 |
+
\begingroup
|
| 236 |
+
\def\n{\pgfexternal@hat\pgfexternal@hat J}%
|
| 237 |
+
\pgfexternalstorecommand{%
|
| 238 |
+
\pgf@external@grab@refundefinedtrue@code
|
| 239 |
+
\noexpand\immediate\noexpand\write16{\pgf@external@grab@refundefinedtrue@warning}%
|
| 240 |
+
\noexpand\G@refundefinedtrue
|
| 241 |
+
}%
|
| 242 |
+
\endgroup
|
| 243 |
+
}%
|
| 244 |
+
|
| 245 |
+
\def\pgf@external@grab@refundefinedtrue@code{}
|
| 246 |
+
|
| 247 |
+
\def\pgf@external@grab@refundefinedtrue@warning{%
|
| 248 |
+
LaTeX Warning: External picture `\pgfactualjobname' contains undefined references\noexpand\on@line.\n
|
| 249 |
+
}%
|
| 250 |
+
|
| 251 |
+
\let\pgf@external@@protected@write@orig=\protected@write
|
| 252 |
+
\long\def\pgf@external@@protected@write@immediate#1#2#3{%
|
| 253 |
+
\begingroup
|
| 254 |
+
\let\pgf@write@=\write
|
| 255 |
+
\def\write{\noexpand\immediate\pgf@write@}%
|
| 256 |
+
\pgf@external@@protected@write@orig{#1}{#2}{#3}%
|
| 257 |
+
\endgroup
|
| 258 |
+
}%
|
| 259 |
+
|
| 260 |
+
\def\pgf@external@init@aux@in@dpth{%
|
| 261 |
+
\let\pgfexternalstorecommand=\pgfexternalstorecommand@isexporting
|
| 262 |
+
\csname @fileswtrue\endcsname
|
| 263 |
+
\immediate\openout\w@pgfexternal@auxout=\pgf@filename.dpth
|
| 264 |
+
\let\@auxout=\w@pgfexternal@auxout
|
| 265 |
+
\let\protected@write=\pgf@external@@protected@write@immediate
|
| 266 |
+
}%
|
| 267 |
+
|
| 268 |
+
\def\pgf@externalend@storeshifts#1{%
|
| 269 |
+
\immediate\write#1{\the\dp\pgfpic}%
|
| 270 |
+
\ifx\pgf@trimleft@final\pgfutil@empty\else
|
| 271 |
+
\immediate\write#1{\noexpand\pgfexternal@restore{\noexpand\def\noexpand\pgfexternaltrimleft{\pgf@trimleft@final}}}%
|
| 272 |
+
\fi
|
| 273 |
+
\ifx\pgf@trimright@final\pgfutil@empty\else
|
| 274 |
+
\immediate\write#1{\noexpand\pgfexternal@restore{\noexpand\def\noexpand\pgfexternaltrimright{\pgf@trimright@final}}}%
|
| 275 |
+
\fi
|
| 276 |
+
\ifpgfexternal@info
|
| 277 |
+
\immediate\write#1{\noexpand\pgfexternal@restore{\noexpand\def\noexpand\pgfexternalwidth{\the\wd\pgfpic}}}%
|
| 278 |
+
\immediate\write#1{\noexpand\pgfexternal@restore{\noexpand\def\noexpand\pgfexternalheight{\the\dimen0}}}%
|
| 279 |
+
\fi
|
| 280 |
+
}
|
| 281 |
+
\def\pgf@externalend{%
|
| 282 |
+
\unskip\egroup\egroup%
|
| 283 |
+
{%
|
| 284 |
+
\def\pgf@external@trim{0}%
|
| 285 |
+
\def\pgf@external@store@dpth{0}%
|
| 286 |
+
\ifpgf@trim@lowlevel
|
| 287 |
+
\gdef\pgf@trimleft@final{}%
|
| 288 |
+
\gdef\pgf@trimright@final{}%
|
| 289 |
+
\else
|
| 290 |
+
\ifdim\pgf@trimleft@final=0sp \gdef\pgf@trimleft@final{} \else\def\pgf@external@trim{1}\fi
|
| 291 |
+
\ifdim\pgf@trimright@final=0sp \gdef\pgf@trimright@final{} \else\def\pgf@external@trim{1}\fi
|
| 292 |
+
\if1\pgf@external@trim
|
| 293 |
+
\setbox\pgfpic=\hbox{%
|
| 294 |
+
\ifx\pgf@trimleft@final\pgfutil@empty\else\kern-\pgf@trimleft@final\fi
|
| 295 |
+
\box\pgfpic
|
| 296 |
+
\ifx\pgf@trimright@final\pgfutil@empty\else\kern-\pgf@trimright@final\fi
|
| 297 |
+
}%
|
| 298 |
+
\def\pgf@external@store@dpth{1}%
|
| 299 |
+
\fi
|
| 300 |
+
\fi
|
| 301 |
+
\parindent0pt %
|
| 302 |
+
\hoffset=0pt %
|
| 303 |
+
\voffset=0pt
|
| 304 |
+
\dimen0\ht\pgfpic%
|
| 305 |
+
\advance\dimen0\dp\pgfpic%
|
| 306 |
+
\ifdim\dp\pgfpic=0pt\relax
|
| 307 |
+
\else%
|
| 308 |
+
\def\pgf@external@store@dpth{1}%
|
| 309 |
+
\fi
|
| 310 |
+
\ifpgfexternal@info
|
| 311 |
+
\def\pgf@external@store@dpth{1}%
|
| 312 |
+
\fi
|
| 313 |
+
\if1\pgf@external@store@dpth
|
| 314 |
+
\ifpgfexternal@aux@in@dpth
|
| 315 |
+
\pgf@externalend@storeshifts\@auxout
|
| 316 |
+
\immediate\closeout\@auxout
|
| 317 |
+
\else
|
| 318 |
+
\immediate\openout\pgf@plotwrite=\pgf@filename.dpth
|
| 319 |
+
\pgf@externalend@storeshifts\pgf@plotwrite
|
| 320 |
+
\immediate\closeout\pgf@plotwrite
|
| 321 |
+
\fi
|
| 322 |
+
\fi
|
| 323 |
+
\pgfsys@prepare@papersize{\the\wd\pgfpic}{\the\dimen0}%
|
| 324 |
+
\setbox0=\vbox{%
|
| 325 |
+
\kern -\pgf@external@kern@top\relax%
|
| 326 |
+
\hbox{%
|
| 327 |
+
\kern -\pgf@external@kern@left\relax%
|
| 328 |
+
\hbox to0pt{%
|
| 329 |
+
\wd\pgfexternal@startupbox=0pt %
|
| 330 |
+
\ht\pgfexternal@startupbox=0pt %
|
| 331 |
+
\dp\pgfexternal@startupbox=0pt %
|
| 332 |
+
\box\pgfexternal@startupbox%
|
| 333 |
+
\pgfsys@atbegindocument\hss}%
|
| 334 |
+
\box\pgfpic%
|
| 335 |
+
\kern\pgf@external@kern@right\relax%
|
| 336 |
+
}%
|
| 337 |
+
\kern\pgf@external@kern@bottom\relax%
|
| 338 |
+
}%
|
| 339 |
+
\let\pgfexternal@nointerlineskip@orig=\nointerlineskip
|
| 340 |
+
\let\nointerlineskip=\pgfexternal@nointerlineskip
|
| 341 |
+
\pgfexternal@originalshipout\box0 %
|
| 342 |
+
\gdef\pgfexternal@did@a@shipout{1}%
|
| 343 |
+
}%
|
| 344 |
+
\ifpgfexternal@aux@in@dpth
|
| 345 |
+
\endgroup
|
| 346 |
+
\fi
|
| 347 |
+
}
|
| 348 |
+
|
| 349 |
+
\def\pgfexternal@nointerlineskip{%
|
| 350 |
+
\ifvmode
|
| 351 |
+
\pgfexternal@nointerlineskip@orig
|
| 352 |
+
\else
|
| 353 |
+
\relax%
|
| 354 |
+
\fi
|
| 355 |
+
}%
|
| 356 |
+
|
| 357 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basi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| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{pgfcoregraphicstate.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
\newdimen\pgflinewidth
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
\def\pgfsetlinewidth#1{%
|
| 10 |
+
\pgfmathsetlength\pgflinewidth{#1}%
|
| 11 |
+
\global\pgflinewidth=\pgflinewidth%
|
| 12 |
+
\pgfsys@setlinewidth{\the\pgflinewidth}%
|
| 13 |
+
\ignorespaces}
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
\def\pgfsetinnerlinewidth#1{%
|
| 18 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 19 |
+
\edef\pgfinnerlinewidth{\the\pgf@x}%
|
| 20 |
+
}
|
| 21 |
+
\def\pgfinnerlinewidth{0pt}
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
\def\pgfsetinnerstrokecolor#1{\def\pgfinnerstrokecolor{#1}}
|
| 26 |
+
\def\pgfinnerstrokecolor{white}
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
\def\pgfsetmiterlimit#1{%
|
| 31 |
+
\ifdim#1pt<1pt\pgferror{miter limit cannot be less than 1}\fi%
|
| 32 |
+
\pgfsys@setmiterlimit{#1}%
|
| 33 |
+
\ignorespaces}
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
\def\pgfsetdash#1#2{%
|
| 38 |
+
\def\pgf@temp{}%
|
| 39 |
+
\def\pgf@next{\pgf@strip}%
|
| 40 |
+
\pgf@strip#1{pgf@stop}%
|
| 41 |
+
\pgfmathsetlength\pgf@x{#2}%
|
| 42 |
+
\pgfsys@setdash{\pgf@temp}{\the\pgf@x}%
|
| 43 |
+
\ignorespaces}
|
| 44 |
+
|
| 45 |
+
\def\pgf@strip#1{%
|
| 46 |
+
\def\pgf@@temp{#1}%
|
| 47 |
+
\ifx\pgf@@temp\pgf@stop%
|
| 48 |
+
\let\pgf@next=\relax%
|
| 49 |
+
\else%
|
| 50 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 51 |
+
\ifx\pgf@temp\pgfutil@empty%
|
| 52 |
+
\edef\pgf@temp{\the\pgf@x}%
|
| 53 |
+
\else%
|
| 54 |
+
\edef\pgf@temp{\pgf@temp,\the\pgf@x}%
|
| 55 |
+
\fi%
|
| 56 |
+
\fi\pgf@next}
|
| 57 |
+
|
| 58 |
+
\def\pgf@stop{pgf@stop}
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
\def\pgfsetstrokecolor#1{%
|
| 63 |
+
\pgfutil@colorlet{pgfstrokecolor}{#1}%
|
| 64 |
+
\pgfutil@ifundefined{applycolormixins}{}{\applycolormixins{pgfstrokecolor}}%
|
| 65 |
+
\expandafter\let\expandafter\pgf@temp\csname\string\color@pgfstrokecolor\endcsname
|
| 66 |
+
\global\let\pgf@strokecolor@global=\pgf@temp
|
| 67 |
+
\expandafter\pgf@setstrokecolor\pgf@temp%
|
| 68 |
+
}
|
| 69 |
+
\def\pgf@setstrokecolor#1#2#3#4#5{%
|
| 70 |
+
\expandafter\ifx\csname pgfsys@color@#4@stroke\endcsname\relax%
|
| 71 |
+
\pgferror{Unsupported color model `#4'. Sorry}%
|
| 72 |
+
\else%
|
| 73 |
+
\edef\pgf@colmarshal{\expandafter\noexpand\csname pgfsys@color@#4@stroke\endcsname}%
|
| 74 |
+
\pgf@uncomma#5,,%
|
| 75 |
+
\pgf@colmarshal%
|
| 76 |
+
\fi}
|
| 77 |
+
|
| 78 |
+
\def\pgf@uncomma#1,{%
|
| 79 |
+
\def\pgf@coltest{#1}%
|
| 80 |
+
\ifx\pgf@coltest\pgfutil@empty%
|
| 81 |
+
\let\pgf@colnext=\relax%
|
| 82 |
+
\else%
|
| 83 |
+
\expandafter\def\expandafter\pgf@colmarshal\expandafter{\pgf@colmarshal{#1}}%
|
| 84 |
+
\let\pgf@colnext=\pgf@uncomma%
|
| 85 |
+
\fi%
|
| 86 |
+
\pgf@colnext%
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
\def\pgfsetfillcolor#1{%
|
| 92 |
+
\pgfutil@colorlet{pgffillcolor}{#1}%
|
| 93 |
+
\pgfutil@ifundefined{applycolormixins}{}{\applycolormixins{pgffillcolor}}%
|
| 94 |
+
\expandafter\let\expandafter\pgf@temp\csname\string\color@pgffillcolor\endcsname
|
| 95 |
+
\global\let\pgf@fillcolor@global=\pgf@temp
|
| 96 |
+
\expandafter\pgf@setfillcolor\pgf@temp
|
| 97 |
+
}
|
| 98 |
+
\def\pgf@setfillcolor#1#2#3#4#5{%
|
| 99 |
+
\expandafter\ifx\csname pgfsys@color@#4@fill\endcsname\relax%
|
| 100 |
+
\pgferror{Unsupported color model `#4'. Sorry}%
|
| 101 |
+
\else%
|
| 102 |
+
\edef\pgf@colmarshal{\expandafter\noexpand\csname pgfsys@color@#4@fill\endcsname}%
|
| 103 |
+
\pgf@uncomma#5,,%
|
| 104 |
+
\pgf@colmarshal%
|
| 105 |
+
\fi}
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
\def\pgfsetcolor#1{%
|
| 111 |
+
\pgfutil@colorlet{pgfstrokecolor}{#1}%
|
| 112 |
+
\pgfutil@ifundefined{applycolormixins}{}{\applycolormixins{pgfstrokecolor}}%
|
| 113 |
+
\expandafter\let\expandafter\pgf@temp\csname\string\color@pgfstrokecolor\endcsname
|
| 114 |
+
\global\let\pgf@strokecolor@global=\pgf@temp
|
| 115 |
+
\global\let\pgf@fillcolor@global=\pgf@temp
|
| 116 |
+
\expandafter\pgf@setcolor\pgf@temp%
|
| 117 |
+
}
|
| 118 |
+
\def\pgf@setcolor#1#2#3#4#5{%
|
| 119 |
+
\expandafter\ifx\csname pgfsys@color@#4\endcsname\relax%
|
| 120 |
+
\pgferror{Unsupported color model `#4'. Sorry}%
|
| 121 |
+
\else%
|
| 122 |
+
\edef\pgf@colmarshal{\expandafter\noexpand\csname pgfsys@color@#4\endcsname}%
|
| 123 |
+
\pgf@uncomma#5,,%
|
| 124 |
+
\pgf@colmarshal%
|
| 125 |
+
\fi}
|
| 126 |
+
|
| 127 |
+
\def\XC@bcolor{\pgfsys@color@reset}
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
\def\pgfsetbuttcap{\pgfsys@buttcap\ignorespaces}
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
\def\pgfsetroundcap{\pgfsys@roundcap\ignorespaces}
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
\def\pgfsetrectcap{\pgfsys@rectcap\ignorespaces}
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
\def\pgfsetmiterjoin{\pgfsys@miterjoin\ignorespaces}
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
\def\pgfsetbeveljoin{\pgfsys@beveljoin\ignorespaces}
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
\def\pgfsetroundjoin{\pgfsys@roundjoin\ignorespaces}
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
\def\pgfseteorule{\pgfsys@eoruletrue\ignorespaces}
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
|
| 158 |
+
\def\pgfsetnonzerorule{\pgfsys@eorulefalse\ignorespaces}
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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gdef\pgf@filename{}%
|
| 11 |
+
\ifx\pgf@imagepage\pgfutil@empty%
|
| 12 |
+
\else%
|
| 13 |
+
\expandafter\pgf@findfile\pgfsys@imagesuffixlist:+{#3.page\pgf@imagepage}%
|
| 14 |
+
\fi%
|
| 15 |
+
\ifx\pgf@filename\pgfutil@empty%
|
| 16 |
+
\expandafter\pgf@findfile\pgfsys@imagesuffixlist:+{#3}%
|
| 17 |
+
\else%
|
| 18 |
+
\pgfkeys{/pgf/images/page=}%
|
| 19 |
+
\fi%
|
| 20 |
+
\ifx\pgf@filename\pgfutil@empty%
|
| 21 |
+
\pgfwarning%
|
| 22 |
+
{File "#3" not found when defining image "#2".
|
| 23 |
+
Tried all extensions in "\pgfsys@imagesuffixlist"}%
|
| 24 |
+
\pgf@declaredraftimage{#2}{#3}%
|
| 25 |
+
\else%
|
| 26 |
+
\ifpgf@draftmode%
|
| 27 |
+
\pgf@declaredraftimage{#2}{#3}%
|
| 28 |
+
\else%
|
| 29 |
+
\pgfsys@defineimage%
|
| 30 |
+
\fi%
|
| 31 |
+
\fi%
|
| 32 |
+
\expandafter\global\expandafter\let\csname pgf@image@#2!\endcsname=\pgf@image%
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
\pgfkeys{
|
| 37 |
+
/pgf/images/draft/.is if=pgf@draftmode,
|
| 38 |
+
/pgf/images/draft/.default=true}
|
| 39 |
+
\pgfkeys{/pgf/images/width/.estore in=\pgf@imagewidth}
|
| 40 |
+
\pgfkeys{/pgf/images/height/.estore in=\pgf@imageheight}
|
| 41 |
+
\pgfkeys{/pgf/images/page/.estore in=\pgf@imagepage}
|
| 42 |
+
\pgfkeys{/pgf/images/interpolate/.cd,.code=\edef\pgf@imageinterpolate{#1},.default=true}
|
| 43 |
+
\let\pgf@imageinterpolate\pgfutil@empty
|
| 44 |
+
\pgfkeys{/pgf/images/mask/.code=%
|
| 45 |
+
{%
|
| 46 |
+
\edef\pgf@imagemask{#1}%
|
| 47 |
+
\ifx\pgf@imagemask\pgfutil@empty%
|
| 48 |
+
\else%
|
| 49 |
+
\pgfutil@ifundefined{pgf@mask@#1}%
|
| 50 |
+
{\pgferror{Undefined mask "#1".}%
|
| 51 |
+
\edef\pgf@imagemask{}}%
|
| 52 |
+
{\edef\pgf@imagemask{\csname pgf@mask@#1\endcsname}%
|
| 53 |
+
}%
|
| 54 |
+
\fi%
|
| 55 |
+
}}
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
\def\pgf@findfile#1:#2+#3{%
|
| 59 |
+
\pgfutil@IfFileExists{#3#1}%
|
| 60 |
+
{\xdef\pgf@filename{#3#1}}%
|
| 61 |
+
{\def\pgf@mightbeempty{#2}%
|
| 62 |
+
\ifx\pgf@mightbeempty\pgfutil@empty\else%
|
| 63 |
+
\pgf@findfile#2+{#3}%
|
| 64 |
+
\fi}}
|
| 65 |
+
|
| 66 |
+
\def\pgf@declaredraftimage#1#2{%
|
| 67 |
+
\ifx\pgf@imagewidth\pgfutil@empty%
|
| 68 |
+
\pgfwarning{Missing width for image "#1" ("#2") in draft mode. Using 1cm instead}%
|
| 69 |
+
\edef\pgf@imagewidth{1cm}%
|
| 70 |
+
\fi%
|
| 71 |
+
\ifx\pgf@imageheight\pgfutil@empty%
|
| 72 |
+
\pgfwarning{Missing height for image "#1" ("#2") in draft mode. Using 1cm instead}%
|
| 73 |
+
\edef\pgf@imageheight{1cm}%
|
| 74 |
+
\fi%
|
| 75 |
+
\ifx\pgf@imagepage\pgfutil@empty\else\edef\pgf@imagepagetext{ page \pgf@imagepage}\fi%
|
| 76 |
+
\edef\pgf@image{%
|
| 77 |
+
\hbox to \pgf@imagewidth{%
|
| 78 |
+
\vrule\kern-0.4pt%
|
| 79 |
+
\vbox to \pgf@imageheight{%
|
| 80 |
+
\hrule\vfil%
|
| 81 |
+
\hbox to \pgf@imagewidth{\hskip-10cm\hfil\noexpand\pgfutil@font@tiny#2\pgf@imagepage\hfil\hskip-10cm}%
|
| 82 |
+
\vfil\hrule}%
|
| 83 |
+
\kern-0.4pt\vrule}%
|
| 84 |
+
}%
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
\def\pgfdeclaremask{\pgfutil@ifnextchar[\pgf@declaremask{\pgf@declaremask[]}}
|
| 91 |
+
\def\pgf@declaremask[#1]#2#3{%
|
| 92 |
+
\pgfqkeys{/pgf/images/mask}{matte={1 1 1},#1}%
|
| 93 |
+
\def\pgf@mask{}%
|
| 94 |
+
\gdef\pgf@filename{}%
|
| 95 |
+
\expandafter\pgf@findfile\pgfsys@imagesuffixlist:+{#3}%
|
| 96 |
+
\ifx\pgf@filename\pgfutil@empty%
|
| 97 |
+
\pgfwarning%
|
| 98 |
+
{File "#3" not found when defining mask "#2".
|
| 99 |
+
Tried all extensions in "\pgfsys@imagesuffixlist"}%
|
| 100 |
+
\else%
|
| 101 |
+
\pgfsys@definemask%
|
| 102 |
+
\fi%
|
| 103 |
+
\expandafter\global\expandafter\let\csname pgf@mask@#2\endcsname=\pgf@mask%
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
\pgfkeys{/pgf/images/mask/matte/.cd,.estore in=\pgf@maskmatte,.value required}
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
\def\pgfaliasimage#1#2{%
|
| 112 |
+
\expandafter\global\expandafter\let\expandafter\pgf@temp\expandafter=\csname pgf@image@#2!\endcsname%
|
| 113 |
+
\expandafter\global\expandafter\let\csname pgf@image@#1!\endcsname=\pgf@temp%
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
\def\pgfuseimage#1{%
|
| 119 |
+
\def\pgf@imagename{pgf@image@#1}%
|
| 120 |
+
\pgf@tryextensions{\pgf@imagename}{\pgfalternateextension}%
|
| 121 |
+
\expandafter\pgfutil@ifundefined\expandafter{\pgf@imagename}%
|
| 122 |
+
{\pgferror{Undefined image "#1"}}%
|
| 123 |
+
{{\leavevmode\csname\pgf@imagename\endcsname}}}
|
| 124 |
+
|
| 125 |
+
\def\pgf@tryextensions#1#2{%
|
| 126 |
+
\edef\pgf@args{[#2!]}\expandafter\pgf@@tryextensions\pgf@args{#1}}
|
| 127 |
+
\def\pgf@@tryextensions[#1!#2]#3{%
|
| 128 |
+
\expandafter\pgfutil@ifundefined\expandafter{#3#1!#2}%
|
| 129 |
+
{\def\pgf@temp{#2}%
|
| 130 |
+
\ifx\pgf@temp\pgfutil@empty%
|
| 131 |
+
\edef#3{#3!}%
|
| 132 |
+
\else%
|
| 133 |
+
\pgf@@tryextensions[#2]{#3}%
|
| 134 |
+
\fi}%
|
| 135 |
+
{\edef#3{#3#1!#2}}}
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
\def\pgfalternateextension{}
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
\def\pgfimage{\pgfutil@ifnextchar[\pgf@imagecom{\pgf@imagecom[]}}
|
| 145 |
+
\def\pgf@imagecom[#1]#2{%
|
| 146 |
+
\pgfdeclareimage[#1]{pgflastimage}{#2}%
|
| 147 |
+
\pgfuseimage{pgflastimage}}
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{pgfcorelayers.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
\def\pgfdeclarelayer#1{%
|
| 7 |
+
\pgfutil@ifundefined{pgf@layerbox@#1}{%
|
| 8 |
+
\expandafter\expandafter\csname pgf@newbox\endcsname\csname pgf@layerbox@#1\endcsname%
|
| 9 |
+
\expandafter\expandafter\csname pgf@newbox\endcsname\csname pgf@layerboxsaved@#1\endcsname%
|
| 10 |
+
}{}%
|
| 11 |
+
}
|
| 12 |
+
\let\pgf@newbox=\newbox %
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
\def\pgfsetlayers#1{%
|
| 16 |
+
\let\pgf@layerlist\pgfutil@empty%
|
| 17 |
+
\pgf@dosetlayer#1,,\relax%
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
\def\pgf@dosetlayer#1,#2,\relax{%
|
| 21 |
+
\ifx\pgf@layerlist\pgfutil@empty%
|
| 22 |
+
\edef\pgf@layerlist{\pgfutil@trimspaces{#1}}%
|
| 23 |
+
\else
|
| 24 |
+
\edef\pgf@layerlist{\pgf@layerlist,\pgfutil@trimspaces{#1}}%
|
| 25 |
+
\fi
|
| 26 |
+
\def\pgf@test{#2}%
|
| 27 |
+
\ifx\pgf@test\pgfutil@empty%
|
| 28 |
+
\else%
|
| 29 |
+
\pgf@dosetlayer#2,\relax%
|
| 30 |
+
\fi%
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
\pgfsetlayers{main}
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
\def\pgfonlayer@name{main}
|
| 37 |
+
|
| 38 |
+
\def\pgfonlayer#1{%
|
| 39 |
+
\pgfutil@ifundefined{pgf@layerbox@#1}{%
|
| 40 |
+
\pgferror{Sorry, the requested layer '#1' could not be found. Maybe you misspelled it?}%
|
| 41 |
+
\bgroup
|
| 42 |
+
\begingroup
|
| 43 |
+
}{%
|
| 44 |
+
\begingroup
|
| 45 |
+
\edef\pgf@temp{#1}%
|
| 46 |
+
\ifx\pgf@temp\pgfonlayer@name
|
| 47 |
+
\def\pgf@temp{%
|
| 48 |
+
\bgroup
|
| 49 |
+
\begingroup
|
| 50 |
+
}%
|
| 51 |
+
\else
|
| 52 |
+
\let\pgfonlayer@name=\pgf@temp
|
| 53 |
+
\pgfonlayer@assert@is@active
|
| 54 |
+
\def\pgf@temp{%
|
| 55 |
+
\expandafter\global\expandafter%
|
| 56 |
+
\setbox\csname pgf@layerbox@#1\endcsname=\hbox to 0pt%
|
| 57 |
+
\bgroup%
|
| 58 |
+
\expandafter\box\csname pgf@layerbox@#1\endcsname%
|
| 59 |
+
\begingroup%
|
| 60 |
+
}%
|
| 61 |
+
\fi
|
| 62 |
+
\pgfsetlinewidth{0.4pt}%
|
| 63 |
+
\pgf@temp
|
| 64 |
+
}%
|
| 65 |
+
}
|
| 66 |
+
\def\endpgfonlayer{%
|
| 67 |
+
\endgroup%
|
| 68 |
+
\hss
|
| 69 |
+
\egroup%
|
| 70 |
+
\endgroup
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
\let\startpgfonlayer=\pgfonlayer
|
| 74 |
+
\let\stoppgfonlayer=\endpgfonlayer
|
| 75 |
+
|
| 76 |
+
\def\pgfdiscardlayername{discard}
|
| 77 |
+
|
| 78 |
+
\def\pgfonlayer@assert@is@active{%
|
| 79 |
+
\ifx\pgfonlayer@name\pgfdiscardlayername
|
| 80 |
+
\else
|
| 81 |
+
\begingroup
|
| 82 |
+
\def\pgfonlayer@isactive{0}%
|
| 83 |
+
\expandafter\pgf@assert@layer@is@active@loop\pgf@layerlist,,\relax%
|
| 84 |
+
\if0\pgfonlayer@isactive
|
| 85 |
+
\pgfonlayer@assert@fail
|
| 86 |
+
\fi
|
| 87 |
+
\endgroup
|
| 88 |
+
\fi
|
| 89 |
+
}%
|
| 90 |
+
\def\pgfonlayer@assert@fail{%
|
| 91 |
+
\pgferror{Sorry, the requested layer '\pgfonlayer@name' is not
|
| 92 |
+
part of the layer list. Please verify that you provided
|
| 93 |
+
\string\pgfsetlayers\space and that '\pgfonlayer@name' is part of this list}%
|
| 94 |
+
}%
|
| 95 |
+
\def\pgf@assert@layer@is@active@loop#1,#2,\relax{%
|
| 96 |
+
\edef\pgf@test{#1}%
|
| 97 |
+
\ifx\pgf@test\pgfonlayer@name
|
| 98 |
+
\def\pgfonlayer@isactive{1}%
|
| 99 |
+
\else
|
| 100 |
+
\def\pgf@test{#2}%
|
| 101 |
+
\ifx\pgf@test\pgfutil@empty%
|
| 102 |
+
\else%
|
| 103 |
+
\pgf@assert@layer@is@active@loop#2,\relax%
|
| 104 |
+
\fi%
|
| 105 |
+
\fi
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
\def\pgf@insertlayers{%
|
| 110 |
+
\expandafter\pgf@dolayer\pgf@layerlist,,\relax%
|
| 111 |
+
}
|
| 112 |
+
\def\pgf@maintext{main}%
|
| 113 |
+
\def\pgf@dolayer#1,#2,\relax{%
|
| 114 |
+
\def\pgf@test{#1}%
|
| 115 |
+
\ifx\pgf@test\pgf@maintext%
|
| 116 |
+
\box\pgf@layerbox@main%
|
| 117 |
+
\else%
|
| 118 |
+
\pgfsys@beginscope%
|
| 119 |
+
\expandafter\box\csname pgf@layerbox@#1\endcsname%
|
| 120 |
+
\pgfsys@endscope%
|
| 121 |
+
\fi%
|
| 122 |
+
\def\pgf@test{#2}%
|
| 123 |
+
\ifx\pgf@test\pgfutil@empty%
|
| 124 |
+
\else%
|
| 125 |
+
\pgf@dolayer#2,\relax%
|
| 126 |
+
\fi%
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
\def\pgf@savelayers{%
|
| 130 |
+
\expandafter\pgf@dosavelayer\pgf@layerlist,,\relax%
|
| 131 |
+
}
|
| 132 |
+
\def\pgf@dosavelayer#1,#2,\relax{%
|
| 133 |
+
\def\pgf@test{#1}%
|
| 134 |
+
\ifx\pgf@test\pgf@maintext%
|
| 135 |
+
\else%
|
| 136 |
+
\setbox\csname pgf@layerboxsaved@#1\endcsname=\box\csname pgf@layerbox@#1\endcsname%
|
| 137 |
+
\fi%
|
| 138 |
+
\def\pgf@test{#2}%
|
| 139 |
+
\ifx\pgf@test\pgfutil@empty%
|
| 140 |
+
\else%
|
| 141 |
+
\pgf@dosavelayer#2,\relax%
|
| 142 |
+
\fi%
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
\def\pgf@restorelayers{%
|
| 146 |
+
\expandafter\pgf@dorestorelayer\pgf@layerlist,,\relax%
|
| 147 |
+
}
|
| 148 |
+
\def\pgf@dorestorelayer#1,#2,\relax{%
|
| 149 |
+
\def\pgf@test{#1}%
|
| 150 |
+
\ifx\pgf@test\pgf@maintext%
|
| 151 |
+
\else%
|
| 152 |
+
\global\setbox\csname pgf@layerbox@#1\endcsname=\box\csname pgf@layerboxsaved@#1\endcsname%
|
| 153 |
+
\fi%
|
| 154 |
+
\def\pgf@test{#2}%
|
| 155 |
+
\ifx\pgf@test\pgfutil@empty%
|
| 156 |
+
\else%
|
| 157 |
+
\pgf@dorestorelayer#2,\relax%
|
| 158 |
+
\fi%
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{pgfcoreobjects.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
\def\pgfdefobject#1#2#3#4{%
|
| 9 |
+
\pgfinterruptpath%
|
| 10 |
+
\pgf@relevantforpicturesizefalse%
|
| 11 |
+
\pgfsys@defobject{#1}{#2}{#3}{#4}%
|
| 12 |
+
\endpgfinterruptpath%
|
| 13 |
+
\ignorespaces%
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
\def\pgfuseobject#1{\pgfsys@beginscope\pgfsys@useobject{#1}{}\pgfsys@endscope}
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
\def\pgfuseobjectmagnify#1{%
|
| 23 |
+
\pgfsys@beginscope%
|
| 24 |
+
\pgfsys@useobject{#1}{\pgfsys@transformxyscale{\pgf@sys@tonumber{\pgf@x}}{\pgf@sys@tonumber{\pgf@y}}}%
|
| 25 |
+
\pgfsys@endscope%
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex
ADDED
|
@@ -0,0 +1,997 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{pgfcorepathconstruct.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
\newdimen\pgf@path@lastx
|
| 6 |
+
\newdimen\pgf@path@lasty
|
| 7 |
+
|
| 8 |
+
\let\pgfgetpath=\pgfsyssoftpath@getcurrentpath
|
| 9 |
+
\let\pgfsetpath=\pgfsyssoftpath@setcurrentpath
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
\newif\ifpgf@arccorners
|
| 15 |
+
|
| 16 |
+
\def\pgfsetcornersarced#1{%
|
| 17 |
+
\pgf@process{#1}%
|
| 18 |
+
\edef\pgf@corner@arc{{\the\pgf@x}{\the\pgf@y}}%
|
| 19 |
+
\pgf@arccornerstrue%
|
| 20 |
+
\ifdim\pgf@x=0pt%
|
| 21 |
+
\ifdim\pgf@y=0pt\relax%
|
| 22 |
+
\pgf@arccornersfalse%
|
| 23 |
+
\fi%
|
| 24 |
+
\fi%
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
\def\pgf@roundcornerifneeded{%
|
| 28 |
+
\ifpgf@arccorners\expandafter\pgfsyssoftpath@specialround\pgf@corner@arc\fi%
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
\def\pgf@lt@moveto#1#2{%
|
| 35 |
+
\pgf@protocolsizes{#1}{#2}%
|
| 36 |
+
\pgfsyssoftpath@moveto{\the#1}{\the#2}%
|
| 37 |
+
}
|
| 38 |
+
\def\pgf@lt@lineto#1#2{%
|
| 39 |
+
\pgf@protocolsizes{#1}{#2}%
|
| 40 |
+
\pgfsyssoftpath@lineto{\the#1}{\the#2}%
|
| 41 |
+
}
|
| 42 |
+
\def\pgf@lt@curveto#1#2#3#4#5#6{%
|
| 43 |
+
\pgf@protocolsizes{#1}{#2}%
|
| 44 |
+
\pgf@protocolsizes{#3}{#4}%
|
| 45 |
+
\pgf@protocolsizes{#5}{#6}%
|
| 46 |
+
\pgfsyssoftpath@curveto{\the#1}{\the#2}{\the#3}{\the#4}{\the#5}{\the#6}%
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
\let\pgf@lt@closepath\pgfsyssoftpath@closepath
|
| 50 |
+
|
| 51 |
+
\let\pgf@nlt@moveto\pgf@lt@moveto
|
| 52 |
+
\let\pgf@nlt@lineto\pgf@lt@lineto
|
| 53 |
+
\let\pgf@nlt@curveto\pgf@lt@curveto
|
| 54 |
+
\let\pgf@nlt@closepath\pgf@lt@closepath
|
| 55 |
+
|
| 56 |
+
\let\pgf@nlt@list\pgfutil@empty %
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
\def\pgfpathmoveto#1{%
|
| 61 |
+
\pgfpointtransformed{#1}%
|
| 62 |
+
\pgf@nlt@moveto{\pgf@x}{\pgf@y}%
|
| 63 |
+
\global\pgf@path@lastx=\pgf@x%
|
| 64 |
+
\global\pgf@path@lasty=\pgf@y%
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
\def\pgf@protocolsizes#1#2{%
|
| 68 |
+
\ifpgf@relevantforpicturesize%
|
| 69 |
+
\ifdim#1<\pgf@picminx\global\pgf@picminx#1\fi%
|
| 70 |
+
\ifdim#1>\pgf@picmaxx\global\pgf@picmaxx#1\fi%
|
| 71 |
+
\ifdim#2<\pgf@picminy\global\pgf@picminy#2\fi%
|
| 72 |
+
\ifdim#2>\pgf@picmaxy\global\pgf@picmaxy#2\fi%
|
| 73 |
+
\ifpgf@size@hooked%
|
| 74 |
+
\let\pgf@size@hook@x#1\let\pgf@size@hook@y#2\pgf@path@size@hook%
|
| 75 |
+
\fi%
|
| 76 |
+
\fi%
|
| 77 |
+
\ifdim#1<\pgf@pathminx\global\pgf@pathminx#1\fi%
|
| 78 |
+
\ifdim#1>\pgf@pathmaxx\global\pgf@pathmaxx#1\fi%
|
| 79 |
+
\ifdim#2<\pgf@pathminy\global\pgf@pathminy#2\fi%
|
| 80 |
+
\ifdim#2>\pgf@pathmaxy\global\pgf@pathmaxy#2\fi%
|
| 81 |
+
}
|
| 82 |
+
\newif\ifpgf@size@hooked
|
| 83 |
+
\let\pgf@path@size@hook=\pgfutil@empty%
|
| 84 |
+
|
| 85 |
+
\def\pgf@resetpathsizes{%
|
| 86 |
+
\global\pgf@pathmaxx=-16000pt\relax%
|
| 87 |
+
\global\pgf@pathminx=16000pt\relax%
|
| 88 |
+
\global\pgf@pathmaxy=-16000pt\relax%
|
| 89 |
+
\global\pgf@pathminy=16000pt\relax%
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
\def\pgf@getpathsizes#1{%
|
| 93 |
+
\edef#1{{\the\pgf@pathmaxx}{\the\pgf@pathminx}{\the\pgf@pathmaxy}{\the\pgf@pathminy}}%
|
| 94 |
+
}
|
| 95 |
+
\def\pgf@setpathsizes#1{%
|
| 96 |
+
\expandafter\pgf@@setpathsizes#1%
|
| 97 |
+
}
|
| 98 |
+
\def\pgf@@setpathsizes#1#2#3#4{%
|
| 99 |
+
\global\pgf@pathmaxx=#1\relax%
|
| 100 |
+
\global\pgf@pathminx=#2\relax%
|
| 101 |
+
\global\pgf@pathmaxy=#3\relax%
|
| 102 |
+
\global\pgf@pathminy=#4\relax%
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
\def\pgfpathlineto#1{%
|
| 111 |
+
\pgfpointtransformed{#1}%
|
| 112 |
+
\pgf@roundcornerifneeded%
|
| 113 |
+
\pgf@nlt@lineto{\pgf@x}{\pgf@y}%
|
| 114 |
+
\global\pgf@path@lastx=\pgf@x%
|
| 115 |
+
\global\pgf@path@lasty=\pgf@y%
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
\def\pgfpathclose{%
|
| 122 |
+
\pgf@roundcornerifneeded%
|
| 123 |
+
\pgf@nlt@closepath%
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
\def\pgfpathcurveto#1#2#3{%
|
| 129 |
+
\pgfpointtransformed{#3}%
|
| 130 |
+
\pgf@xb=\pgf@x%
|
| 131 |
+
\pgf@yb=\pgf@y%
|
| 132 |
+
\pgfpointtransformed{#2}%
|
| 133 |
+
\pgf@xa=\pgf@x%
|
| 134 |
+
\pgf@ya=\pgf@y%
|
| 135 |
+
\pgfpointtransformed{#1}%
|
| 136 |
+
\pgf@roundcornerifneeded%
|
| 137 |
+
\pgf@nlt@curveto{\pgf@x}{\pgf@y}{\pgf@xa}{\pgf@ya}{\pgf@xb}{\pgf@yb}%
|
| 138 |
+
\global\pgf@path@lastx=\pgf@xb%
|
| 139 |
+
\global\pgf@path@lasty=\pgf@yb%
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
\def\pgfpathquadraticcurveto#1#2{%
|
| 146 |
+
\pgfpointtransformed{#2}%
|
| 147 |
+
\pgf@xb=\pgf@x%
|
| 148 |
+
\pgf@yb=\pgf@y%
|
| 149 |
+
\pgfpointtransformed{#1}%
|
| 150 |
+
\pgf@xc=.6666666\pgf@x%
|
| 151 |
+
\pgf@yc=.6666666\pgf@y%
|
| 152 |
+
\pgf@xa=.33333333\pgf@xb%
|
| 153 |
+
\pgf@ya=.33333333\pgf@yb%
|
| 154 |
+
\advance\pgf@xa by\pgf@xc%
|
| 155 |
+
\advance\pgf@ya by\pgf@yc%
|
| 156 |
+
\advance\pgf@xc by.3333333\pgf@path@lastx%
|
| 157 |
+
\advance\pgf@yc by.3333333\pgf@path@lasty%
|
| 158 |
+
\pgf@roundcornerifneeded%
|
| 159 |
+
\pgf@nlt@curveto{\pgf@xc}{\pgf@yc}{\pgf@xa}{\pgf@ya}{\pgf@xb}{\pgf@yb}%
|
| 160 |
+
\global\pgf@path@lastx=\pgf@xb%
|
| 161 |
+
\global\pgf@path@lasty=\pgf@yb%
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
\def\pgfpatharc#1#2#3{%
|
| 169 |
+
{%
|
| 170 |
+
\pgfmathparse{#1}\let\pgf@temp@a=\pgfmathresult%
|
| 171 |
+
\pgfmathparse{#2}\let\pgf@temp@b=\pgfmathresult%
|
| 172 |
+
\pgfutil@in@{and }{#3}%
|
| 173 |
+
\ifpgfutil@in@%
|
| 174 |
+
\pgf@arc@get@radii#3\pgf@arc@stop%
|
| 175 |
+
\else
|
| 176 |
+
\pgf@arc@get@radii#3and #3\pgf@arc@stop%
|
| 177 |
+
\fi%
|
| 178 |
+
\pgf@arc@local@angle@a=\pgf@temp@a pt%
|
| 179 |
+
\pgf@arc@local@angle@b=\pgf@temp@b pt%
|
| 180 |
+
\loop%
|
| 181 |
+
\pgfutil@tempdima=\pgf@arc@local@angle@a%
|
| 182 |
+
\advance\pgfutil@tempdima by-\pgf@arc@local@angle@b\relax%
|
| 183 |
+
\ifdim\pgfutil@tempdima<0pt\relax%
|
| 184 |
+
\pgfutil@tempdima=-\pgfutil@tempdima\relax%
|
| 185 |
+
\fi%
|
| 186 |
+
\ifdim\pgfutil@tempdima>90pt\relax%
|
| 187 |
+
\ifdim\pgfutil@tempdima>115pt\relax%
|
| 188 |
+
\pgf@arc@temp=90pt%
|
| 189 |
+
\else%
|
| 190 |
+
\pgf@arc@temp=60pt%
|
| 191 |
+
\fi%
|
| 192 |
+
\ifdim\pgf@arc@local@angle@b>\pgf@arc@local@angle@a\relax%
|
| 193 |
+
{%
|
| 194 |
+
\pgf@arc@local@angle@b=\pgf@arc@local@angle@a\relax%
|
| 195 |
+
\advance\pgf@arc@local@angle@b by\pgf@arc@temp\relax%
|
| 196 |
+
\pgf@arc%
|
| 197 |
+
}
|
| 198 |
+
\advance\pgf@arc@local@angle@a by\pgf@arc@temp\relax%
|
| 199 |
+
\else
|
| 200 |
+
{%
|
| 201 |
+
\pgf@arc@local@angle@b=\pgf@arc@local@angle@a\relax%
|
| 202 |
+
\advance\pgf@arc@local@angle@b by-\pgf@arc@temp\relax%
|
| 203 |
+
\pgf@arc%
|
| 204 |
+
}%
|
| 205 |
+
\advance\pgf@arc@local@angle@a by-\pgf@arc@temp\relax%
|
| 206 |
+
\fi%
|
| 207 |
+
\repeat%
|
| 208 |
+
\pgf@roundcornerifneeded%
|
| 209 |
+
\pgf@arc%
|
| 210 |
+
}%
|
| 211 |
+
}
|
| 212 |
+
\dimendef\pgf@arc@local@angle@a=0
|
| 213 |
+
\dimendef\pgf@arc@local@angle@b=1
|
| 214 |
+
\dimendef\pgf@arc@temp=2
|
| 215 |
+
|
| 216 |
+
\def\pgf@arc@get@radii#1and #2\pgf@arc@stop{%
|
| 217 |
+
\pgfmathparse{#1}\let\pgf@arc@radius@a=\pgfmathresult%
|
| 218 |
+
\pgfmathparse{#2}\let\pgf@arc@radius@b=\pgfmathresult%
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
\def\pgf@arc{%
|
| 223 |
+
{%
|
| 224 |
+
\pgfutil@tempdima=\pgf@arc@radius@a pt%
|
| 225 |
+
\pgfutil@tempdimb=\pgf@arc@radius@b pt%
|
| 226 |
+
\pgf@xa=\pgf@arc@local@angle@a\relax%
|
| 227 |
+
\pgf@xb=\pgf@arc@local@angle@b\relax%
|
| 228 |
+
\advance\pgf@xb by-\pgf@xa\relax%
|
| 229 |
+
\ifdim\pgf@xb<0pt\relax%
|
| 230 |
+
\pgf@xb=-\pgf@xb\relax%
|
| 231 |
+
\fi%
|
| 232 |
+
\ifdim\pgf@xb=90.0pt%
|
| 233 |
+
\def\pgfmathresult{0.55228475}%
|
| 234 |
+
\else%
|
| 235 |
+
\pgfmathparse{1.333333333*tan(.25*\pgf@sys@tonumber{\pgf@xb})}%
|
| 236 |
+
\fi%
|
| 237 |
+
\pgfutil@tempdima=\pgfmathresult\pgfutil@tempdima%
|
| 238 |
+
\pgfutil@tempdimb=\pgfmathresult\pgfutil@tempdimb%
|
| 239 |
+
\pgf@xa=\pgf@arc@local@angle@a\relax%
|
| 240 |
+
\ifdim\pgf@arc@local@angle@b>\pgf@arc@local@angle@a\relax%
|
| 241 |
+
\advance\pgf@xa by 90pt\relax%
|
| 242 |
+
\else%
|
| 243 |
+
\advance\pgf@xa by -90pt\relax%
|
| 244 |
+
\fi%
|
| 245 |
+
\edef\pgf@arc@angle{\pgf@sys@tonumber{\pgf@xa}}%
|
| 246 |
+
\pgfpointtransformed{\pgfpointpolar{\pgf@arc@angle}{\pgfutil@tempdima and \pgfutil@tempdimb}}%
|
| 247 |
+
\advance\pgf@x by-\pgf@pt@x%
|
| 248 |
+
\advance\pgf@y by-\pgf@pt@y%
|
| 249 |
+
\pgf@xa=\pgf@path@lastx%
|
| 250 |
+
\pgf@ya=\pgf@path@lasty%
|
| 251 |
+
\advance\pgf@xa by \pgf@x%
|
| 252 |
+
\advance\pgf@ya by \pgf@y%
|
| 253 |
+
\pgfpointtransformed{\pgfpointpolar{\pgf@sys@tonumber{\pgf@arc@local@angle@a}}{\pgf@arc@radius@a pt and \pgf@arc@radius@b pt}}%
|
| 254 |
+
\pgf@xb=\pgf@path@lastx%
|
| 255 |
+
\pgf@yb=\pgf@path@lasty%
|
| 256 |
+
\advance\pgf@xb by -\pgf@x%
|
| 257 |
+
\advance\pgf@yb by -\pgf@y%
|
| 258 |
+
\pgfpointtransformed{\pgfpointpolar{\pgf@sys@tonumber{\pgf@arc@local@angle@b}}{\pgf@arc@radius@a pt and \pgf@arc@radius@b pt}}%
|
| 259 |
+
\advance\pgf@xb by \pgf@x%
|
| 260 |
+
\advance\pgf@yb by \pgf@y%
|
| 261 |
+
\ifdim\pgf@arc@local@angle@b>\pgf@arc@local@angle@a\relax%
|
| 262 |
+
\advance\pgf@arc@local@angle@b by -90pt\relax%
|
| 263 |
+
\else%
|
| 264 |
+
\advance\pgf@arc@local@angle@b by 90pt\relax%
|
| 265 |
+
\fi%
|
| 266 |
+
\pgfpointtransformed{\pgfpointpolar{\pgf@sys@tonumber{\pgf@arc@local@angle@b}}{\pgfutil@tempdima and \pgfutil@tempdimb}}%
|
| 267 |
+
\advance\pgf@x by-\pgf@pt@x%
|
| 268 |
+
\advance\pgf@y by-\pgf@pt@y%
|
| 269 |
+
\pgf@xc=\pgf@xb\relax%
|
| 270 |
+
\pgf@yc=\pgf@yb\relax%
|
| 271 |
+
\advance \pgf@xc by \pgf@x\relax%
|
| 272 |
+
\advance \pgf@yc by \pgf@y\relax%
|
| 273 |
+
\pgf@nlt@curveto{\pgf@xa}{\pgf@ya}{\pgf@xc}{\pgf@yc}{\pgf@xb}{\pgf@yb}%
|
| 274 |
+
\global\pgf@path@lastx=\pgf@xb%
|
| 275 |
+
\global\pgf@path@lasty=\pgf@yb%
|
| 276 |
+
}%
|
| 277 |
+
}
|
| 278 |
+
|
| 279 |
+
|
| 280 |
+
|
| 281 |
+
\def\pgfpatharcaxes#1#2#3#4{%
|
| 282 |
+
{%
|
| 283 |
+
\pgftransformtriangle{\pgfpointorigin}{#3}{#4}%
|
| 284 |
+
\pgfpatharc{#1}{#2}{1pt}%
|
| 285 |
+
}%
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
|
| 289 |
+
|
| 290 |
+
|
| 291 |
+
\def\pgfpatharcto#1#2#3#4#5#6{%
|
| 292 |
+
{%
|
| 293 |
+
\pgfmathsetmacro\pgf@arcto@rx{abs(#1)}%
|
| 294 |
+
\pgfmathsetmacro\pgf@arcto@ry{abs(#2)}%
|
| 295 |
+
\ifdim\pgf@arcto@rx pt=0pt%
|
| 296 |
+
\gdef\pgf@marshal{\pgfpathlineto{#6}}%
|
| 297 |
+
\else
|
| 298 |
+
\ifdim\pgf@arcto@ry pt=0pt%
|
| 299 |
+
\gdef\pgf@marshal{\pgfpathlineto{#6}}%
|
| 300 |
+
\else
|
| 301 |
+
\pgfmathsetmacro\pgf@arcto@phi{#3}%
|
| 302 |
+
\pgfmathsetmacro\pgf@arcto@fA{#4}%
|
| 303 |
+
\ifdim\pgf@arcto@fA pt=0pt
|
| 304 |
+
\else
|
| 305 |
+
\pgfmathsetmacro\pgf@arcto@fA{1.0} %
|
| 306 |
+
\fi
|
| 307 |
+
\pgfmathsetmacro\pgf@arcto@fS{#5}%
|
| 308 |
+
\ifdim\pgf@arcto@fS pt=0pt
|
| 309 |
+
\else
|
| 310 |
+
\pgfmathsetmacro\pgf@arcto@fS{1.0} %
|
| 311 |
+
\fi
|
| 312 |
+
\pgf@process{#6}
|
| 313 |
+
\edef\pgf@arcto@xb{\the\pgf@x}%
|
| 314 |
+
\edef\pgf@arcto@yb{\the\pgf@y}%
|
| 315 |
+
\pgftransforminvert%
|
| 316 |
+
\pgf@process{\pgfpointtransformed{\pgfqpoint{\pgf@path@lastx}{\pgf@path@lasty}}}
|
| 317 |
+
\edef\pgf@arcto@xa{\the\pgf@x}
|
| 318 |
+
\edef\pgf@arcto@ya{\the\pgf@y}
|
| 319 |
+
\edef\pgf@temp@a{\pgf@arcto@xa,\pgf@arcto@ya}
|
| 320 |
+
\edef\pgf@temp@b{\pgf@arcto@xb,\pgf@arcto@yb}
|
| 321 |
+
\ifx\pgf@temp@a\pgf@temp@b%
|
| 322 |
+
\global\let\pgf@marshal\pgfutil@empty
|
| 323 |
+
\else
|
| 324 |
+
\pgftransformreset
|
| 325 |
+
\pgftransformrotate{-\pgf@arcto@phi}
|
| 326 |
+
\pgf@process{
|
| 327 |
+
\pgfpointtransformed{\pgfpointscale{.5}{\pgfpointdiff
|
| 328 |
+
{\pgfqpoint{\pgf@arcto@xb}{\pgf@arcto@yb}}
|
| 329 |
+
{\pgfqpoint{\pgf@arcto@xa}{\pgf@arcto@ya}}
|
| 330 |
+
}
|
| 331 |
+
}
|
| 332 |
+
}
|
| 333 |
+
\edef\pgf@arcto@xaprime{\pgf@sys@tonumber\pgf@x}
|
| 334 |
+
\edef\pgf@arcto@yaprime{\pgf@sys@tonumber\pgf@y}
|
| 335 |
+
\pgfmathsetmacro\pgf@arcto@frac@x{\pgf@arcto@xaprime/\pgf@arcto@rx}
|
| 336 |
+
\pgfmathsetmacro\pgf@arcto@frac@y{\pgf@arcto@yaprime/\pgf@arcto@ry}
|
| 337 |
+
\pgfmathsetmacro\pgf@arcto@lambda{
|
| 338 |
+
\pgf@arcto@frac@x*\pgf@arcto@frac@x+\pgf@arcto@frac@y*\pgf@arcto@frac@y
|
| 339 |
+
}
|
| 340 |
+
\ifdim\pgf@arcto@lambda pt>1pt%
|
| 341 |
+
\pgfmathsetmacro\pgf@arcto@sqrt@lambda{sqrt(\pgf@arcto@lambda)}
|
| 342 |
+
\pgfmathsetmacro\pgf@arcto@rx{\pgf@arcto@sqrt@lambda*\pgf@arcto@rx}
|
| 343 |
+
\pgfmathsetmacro\pgf@arcto@ry{\pgf@arcto@sqrt@lambda*\pgf@arcto@ry}
|
| 344 |
+
\fi
|
| 345 |
+
\pgfmathsetmacro\pgf@arcto@xaprime@abs{abs(\pgf@arcto@xaprime)}
|
| 346 |
+
\pgfmathsetmacro\pgf@arcto@yaprime@abs{abs(\pgf@arcto@yaprime)}
|
| 347 |
+
\pgfmathmax@{\pgf@arcto@rx,\pgf@arcto@ry,\pgf@arcto@xaprime@abs,\pgf@arcto@yaprime@abs}
|
| 348 |
+
\pgfmathsetmacro\pgf@arcto@scaling{20/\pgfmathresult}
|
| 349 |
+
\pgfmathsetmacro\pgf@arcto@rx@scaled{\pgf@arcto@scaling*\pgf@arcto@rx}
|
| 350 |
+
\pgfmathsetmacro\pgf@arcto@ry@scaled{\pgf@arcto@scaling*\pgf@arcto@ry}
|
| 351 |
+
\pgfmathsetmacro\pgf@arcto@xaprime@scaled{\pgf@arcto@scaling*\pgf@arcto@xaprime}
|
| 352 |
+
\pgfmathsetmacro\pgf@arcto@yaprime@scaled{\pgf@arcto@scaling*\pgf@arcto@yaprime}
|
| 353 |
+
\ifdim\pgf@arcto@rx pt>\pgf@arcto@ry pt%
|
| 354 |
+
\pgfmathsetmacro\pgf@arcto@rx@over@ry{\pgf@arcto@rx/\pgf@arcto@ry}
|
| 355 |
+
\pgfmathsetmacro\pgf@arcto@ry@over@rx{\pgf@arcto@ry/\pgf@arcto@rx}
|
| 356 |
+
\pgfmathsetmacro\pgf@arcto@temp{\pgf@arcto@ry@over@rx*\pgf@arcto@xaprime@scaled}
|
| 357 |
+
\pgfmathsetmacro\pgf@arcto@numerator{
|
| 358 |
+
\pgf@arcto@ry@scaled*\pgf@arcto@ry@scaled-
|
| 359 |
+
\pgf@arcto@yaprime@scaled*\pgf@arcto@yaprime@scaled-
|
| 360 |
+
\pgf@arcto@temp*\pgf@arcto@temp
|
| 361 |
+
}
|
| 362 |
+
\pgfmathsetmacro\pgf@arcto@denominator{
|
| 363 |
+
\pgf@arcto@yaprime@scaled*\pgf@arcto@yaprime@scaled+
|
| 364 |
+
\pgf@arcto@temp*\pgf@arcto@temp
|
| 365 |
+
}
|
| 366 |
+
\else
|
| 367 |
+
\pgfmathsetmacro\pgf@arcto@rx@over@ry{\pgf@arcto@rx/\pgf@arcto@ry}
|
| 368 |
+
\pgfmathsetmacro\pgf@arcto@ry@over@rx{\pgf@arcto@ry/\pgf@arcto@rx}
|
| 369 |
+
\pgfmathsetmacro\pgf@arcto@temp{\pgf@arcto@rx@over@ry*\pgf@arcto@yaprime@scaled}
|
| 370 |
+
\pgfmathsetmacro\pgf@arcto@numerator{
|
| 371 |
+
\pgf@arcto@rx@scaled*\pgf@arcto@rx@scaled-
|
| 372 |
+
\pgf@arcto@xaprime@scaled*\pgf@arcto@xaprime@scaled-
|
| 373 |
+
\pgf@arcto@temp*\pgf@arcto@temp
|
| 374 |
+
}
|
| 375 |
+
\pgfmathsetmacro\pgf@arcto@denominator{
|
| 376 |
+
\pgf@arcto@xaprime@scaled*\pgf@arcto@xaprime@scaled+
|
| 377 |
+
\pgf@arcto@temp*\pgf@arcto@temp
|
| 378 |
+
}
|
| 379 |
+
\fi
|
| 380 |
+
\pgfmathsetmacro\pgf@arcto@frac{
|
| 381 |
+
\pgf@arcto@numerator/\pgf@arcto@denominator
|
| 382 |
+
}
|
| 383 |
+
\ifdim\pgf@arcto@frac pt<0pt
|
| 384 |
+
\pgfmathsetmacro\pgf@arcto@factor{0}
|
| 385 |
+
\else
|
| 386 |
+
\pgfmathsetmacro\pgf@arcto@factor{sqrt(\pgf@arcto@frac)}
|
| 387 |
+
\fi
|
| 388 |
+
\ifx\pgf@arcto@fA\pgf@arcto@fS
|
| 389 |
+
\pgfmathsetmacro\pgf@arcto@factor{-\pgf@arcto@factor}
|
| 390 |
+
\fi
|
| 391 |
+
\pgfmathsetmacro\pgf@arcto@cxprime{
|
| 392 |
+
\pgf@arcto@factor*\pgf@arcto@rx@over@ry*\pgf@arcto@yaprime
|
| 393 |
+
}
|
| 394 |
+
\pgfmathsetmacro\pgf@arcto@cyprime{
|
| 395 |
+
-\pgf@arcto@factor*\pgf@arcto@ry@over@rx*\pgf@arcto@xaprime
|
| 396 |
+
}
|
| 397 |
+
\pgftransformreset
|
| 398 |
+
\pgftransformrotate{\pgf@arcto@phi}
|
| 399 |
+
\pgf@process{
|
| 400 |
+
\pgfpointtransformed{\pgfqpoint{\pgf@arcto@cxprime pt}{\pgf@arcto@cyprime pt}}
|
| 401 |
+
}
|
| 402 |
+
\edef\pgf@arcto@temp{\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}}
|
| 403 |
+
\pgf@process{\pgfpointadd{\pgf@arcto@temp}{
|
| 404 |
+
\pgfpointscale{.5}{
|
| 405 |
+
\pgfpointadd
|
| 406 |
+
{\pgfqpoint{\pgf@arcto@xa}{\pgf@arcto@ya}}
|
| 407 |
+
{\pgfqpoint{\pgf@arcto@xb}{\pgf@arcto@yb}} }
|
| 408 |
+
}
|
| 409 |
+
}
|
| 410 |
+
\edef\pgf@arcto@cx{\the\pgf@x}
|
| 411 |
+
\edef\pgf@arcto@cy{\the\pgf@y}
|
| 412 |
+
\pgfmathsetmacro\pgf@arcto@vec@x{(\pgf@arcto@xaprime-\pgf@arcto@cxprime)/\pgf@arcto@rx}
|
| 413 |
+
\pgfmathsetmacro\pgf@arcto@vec@y{(\pgf@arcto@yaprime-\pgf@arcto@cyprime)/\pgf@arcto@ry}
|
| 414 |
+
\pgfmathsetmacro\pgf@arcto@denominator{veclen(\pgf@arcto@vec@x,\pgf@arcto@vec@y)}
|
| 415 |
+
\pgfmathsetmacro\pgf@arcto@frac{\pgf@arcto@vec@x/\pgf@arcto@denominator}
|
| 416 |
+
\pgfmathsetmacro\pgf@arcto@theta@start{acos(\pgf@arcto@frac)}
|
| 417 |
+
\ifdim\pgf@arcto@vec@y pt<0pt
|
| 418 |
+
\pgfmathsetmacro\pgf@arcto@theta@start{-\pgf@arcto@theta@start}
|
| 419 |
+
\fi
|
| 420 |
+
\pgfmathsetmacro\pgf@arcto@vec@x{(-\pgf@arcto@xaprime-\pgf@arcto@cxprime)/\pgf@arcto@rx}
|
| 421 |
+
\pgfmathsetmacro\pgf@arcto@vec@y{(-\pgf@arcto@yaprime-\pgf@arcto@cyprime)/\pgf@arcto@ry}
|
| 422 |
+
\pgfmathsetmacro\pgf@arcto@denominator{veclen(\pgf@arcto@vec@x,\pgf@arcto@vec@y)}
|
| 423 |
+
\pgfmathsetmacro\pgf@arcto@frac{\pgf@arcto@vec@x/\pgf@arcto@denominator}
|
| 424 |
+
\pgfmathsetmacro\pgf@arcto@theta@end{acos(\pgf@arcto@frac)}
|
| 425 |
+
\ifdim\pgf@arcto@vec@y pt<0pt
|
| 426 |
+
\pgfmathsetmacro\pgf@arcto@theta@end{-\pgf@arcto@theta@end}
|
| 427 |
+
\fi
|
| 428 |
+
\pgfmathsetmacro\pgf@arcto@delta@theta{abs(\pgf@arcto@theta@start-\pgf@arcto@theta@end)}
|
| 429 |
+
\ifdim\pgf@arcto@fA pt=0pt%
|
| 430 |
+
\ifdim\pgf@arcto@delta@theta pt>180pt%
|
| 431 |
+
\ifdim\pgf@arcto@theta@end pt>\pgf@arcto@theta@start pt
|
| 432 |
+
\pgfmathsetmacro\pgf@arcto@theta@end{\pgf@arcto@theta@end-360}
|
| 433 |
+
\else
|
| 434 |
+
\pgfmathsetmacro\pgf@arcto@theta@end{\pgf@arcto@theta@end+360}
|
| 435 |
+
\fi
|
| 436 |
+
\fi
|
| 437 |
+
\else
|
| 438 |
+
\ifdim\pgf@arcto@delta@theta pt<180pt%
|
| 439 |
+
\ifdim\pgf@arcto@theta@end pt>\pgf@arcto@theta@start pt
|
| 440 |
+
\pgfmathsetmacro\pgf@arcto@theta@end{\pgf@arcto@theta@end-360}
|
| 441 |
+
\else
|
| 442 |
+
\pgfmathsetmacro\pgf@arcto@theta@end{\pgf@arcto@theta@end+360}
|
| 443 |
+
\fi
|
| 444 |
+
\fi
|
| 445 |
+
\fi
|
| 446 |
+
\xdef\pgf@marshal{\noexpand
|
| 447 |
+
\pgfpatharcaxes{\pgf@arcto@theta@start}{\pgf@arcto@theta@end}
|
| 448 |
+
{\noexpand\pgfpointpolar{\pgf@arcto@phi}{\pgf@arcto@rx}}
|
| 449 |
+
{\noexpand\pgfpointpolar{\pgf@arcto@phi+90}{\pgf@arcto@ry}}
|
| 450 |
+
}
|
| 451 |
+
\fi\fi\fi
|
| 452 |
+
}
|
| 453 |
+
\pgf@marshal
|
| 454 |
+
}
|
| 455 |
+
|
| 456 |
+
|
| 457 |
+
|
| 458 |
+
\def\pgfpatharctomaxstepsize{45}
|
| 459 |
+
|
| 460 |
+
\def\pgfpatharctoprecomputed#1#2#3#4#5#6#7#8{%
|
| 461 |
+
\begingroup
|
| 462 |
+
\pgf@process{#1}%
|
| 463 |
+
\edef\pgfpath@center@x{\the\pgf@x}%
|
| 464 |
+
\edef\pgfpath@center@y{\the\pgf@y}%
|
| 465 |
+
\def\pgfpath@completearcend{#4}%
|
| 466 |
+
\pgf@xa=#2pt
|
| 467 |
+
\pgf@xb=#3pt
|
| 468 |
+
\edef\pgfpath@startangle{#2pt}%
|
| 469 |
+
\edef\pgfpath@endangle{\pgf@sys@tonumber\pgf@xb}%
|
| 470 |
+
\pgf@ya=\pgf@xb
|
| 471 |
+
\advance\pgf@ya by-\pgf@xa
|
| 472 |
+
\ifx\pgfpatharctomaxstepsize\pgfutil@empty
|
| 473 |
+
\def\pgfpath@N{1}%
|
| 474 |
+
\pgf@xc=\pgf@ya
|
| 475 |
+
\else
|
| 476 |
+
\pgf@xc=\pgf@ya%
|
| 477 |
+
\ifdim\pgf@xc<0pt
|
| 478 |
+
\multiply\pgf@xc by-1
|
| 479 |
+
\fi
|
| 480 |
+
\divide\pgf@xc by\pgfpatharctomaxstepsize\relax
|
| 481 |
+
\afterassignment\pgfutil@gobble@until@relax
|
| 482 |
+
\c@pgf@counta=\the\pgf@xc\relax
|
| 483 |
+
\advance\c@pgf@counta by1
|
| 484 |
+
\edef\pgfpath@N{\the\c@pgf@counta}%
|
| 485 |
+
\pgf@xc=\pgf@ya
|
| 486 |
+
\divide\pgf@xc by\c@pgf@counta
|
| 487 |
+
\fi
|
| 488 |
+
\edef\pgfpath@h{\pgf@sys@tonumber\pgf@xc}%
|
| 489 |
+
\pgf@xc=0.116355283466289\pgf@xc %
|
| 490 |
+
\divide\pgf@xc by20
|
| 491 |
+
\pgf@xa=#7\pgf@xc
|
| 492 |
+
\edef\pgfpath@scale@A{\pgf@sys@tonumber\pgf@xa}%
|
| 493 |
+
\pgf@xa=#8\pgf@xc
|
| 494 |
+
\edef\pgfpath@scale@B{\pgf@sys@tonumber\pgf@xa}%
|
| 495 |
+
\c@pgf@countd=1
|
| 496 |
+
\pgfutil@loop
|
| 497 |
+
\ifnum\c@pgf@countd<\pgfpath@N\relax
|
| 498 |
+
\pgf@xa=\pgfpath@startangle %
|
| 499 |
+
\pgf@xb=\pgfpath@h pt
|
| 500 |
+
\multiply\pgf@xb by\c@pgf@countd
|
| 501 |
+
\advance\pgf@xa by\pgf@xb
|
| 502 |
+
\edef\pgfpath@angle@i{\pgf@sys@tonumber\pgf@xa}%
|
| 503 |
+
\pgfpatharcofellipse@{%
|
| 504 |
+
\pgfpoint
|
| 505 |
+
{\pgfpath@center@x + #5*cos(\pgfpath@angle@i)}
|
| 506 |
+
{\pgfpath@center@y + #6*sin(\pgfpath@angle@i)}%
|
| 507 |
+
}%
|
| 508 |
+
\advance\c@pgf@countd by1
|
| 509 |
+
\pgfutil@repeat
|
| 510 |
+
\pgfpatharcofellipse@{\pgfpath@completearcend}%
|
| 511 |
+
\endgroup
|
| 512 |
+
}%
|
| 513 |
+
\def\pgfpatharcofellipse@#1{%
|
| 514 |
+
\begingroup
|
| 515 |
+
\pgf@process{#1}%
|
| 516 |
+
\edef\pgfpath@endpt{\global\pgf@x=\the\pgf@x\space\global\pgf@y=\the\pgf@y\space}%
|
| 517 |
+
\pgfpathcurveto{
|
| 518 |
+
\begingroup
|
| 519 |
+
\global\pgf@x=\pgf@path@lastx
|
| 520 |
+
\global\pgf@y=\pgf@path@lasty
|
| 521 |
+
\pgf@xa=\pgf@x \advance\pgf@xa by-\pgfpath@center@x
|
| 522 |
+
\pgf@ya=\pgf@y \advance\pgf@ya by-\pgfpath@center@y
|
| 523 |
+
\global\advance\pgf@x by-\pgfpath@scale@A\pgf@ya
|
| 524 |
+
\global\advance\pgf@y by \pgfpath@scale@B\pgf@xa
|
| 525 |
+
\endgroup
|
| 526 |
+
}{%
|
| 527 |
+
\begingroup
|
| 528 |
+
\pgfpath@endpt
|
| 529 |
+
\pgf@xa=\pgf@x \advance\pgf@xa by-\pgfpath@center@x
|
| 530 |
+
\pgf@ya=\pgf@y \advance\pgf@ya by-\pgfpath@center@y
|
| 531 |
+
\global\advance\pgf@x by \pgfpath@scale@A\pgf@ya
|
| 532 |
+
\global\advance\pgf@y by-\pgfpath@scale@B\pgf@xa
|
| 533 |
+
\endgroup
|
| 534 |
+
}{%
|
| 535 |
+
\pgfpath@endpt
|
| 536 |
+
}%
|
| 537 |
+
\endgroup
|
| 538 |
+
}
|
| 539 |
+
|
| 540 |
+
|
| 541 |
+
|
| 542 |
+
|
| 543 |
+
|
| 544 |
+
|
| 545 |
+
|
| 546 |
+
|
| 547 |
+
|
| 548 |
+
|
| 549 |
+
\def\pgfpathellipse#1#2#3{%
|
| 550 |
+
\pgfpointtransformed{#1}%
|
| 551 |
+
\pgf@xc=\pgf@x%
|
| 552 |
+
\pgf@yc=\pgf@y%
|
| 553 |
+
\pgfpointtransformed{#2}%
|
| 554 |
+
\pgf@xa=\pgf@x%
|
| 555 |
+
\pgf@ya=\pgf@y%
|
| 556 |
+
\advance\pgf@xa by-\pgf@pt@x%
|
| 557 |
+
\advance\pgf@ya by-\pgf@pt@y%
|
| 558 |
+
\pgfpointtransformed{#3}%
|
| 559 |
+
\pgf@xb=\pgf@x%
|
| 560 |
+
\pgf@yb=\pgf@y%
|
| 561 |
+
\advance\pgf@xb by-\pgf@pt@x%
|
| 562 |
+
\advance\pgf@yb by-\pgf@pt@y%
|
| 563 |
+
{%
|
| 564 |
+
\advance\pgf@xa by\pgf@xc%
|
| 565 |
+
\advance\pgf@ya by\pgf@yc%
|
| 566 |
+
\pgf@nlt@moveto{\pgf@xa}{\pgf@ya}%
|
| 567 |
+
}%
|
| 568 |
+
\pgf@x=0.55228475\pgf@xb%
|
| 569 |
+
\pgf@y=0.55228475\pgf@yb%
|
| 570 |
+
\advance\pgf@x by\pgf@xa%
|
| 571 |
+
\advance\pgf@y by\pgf@ya%
|
| 572 |
+
\advance\pgf@x by\pgf@xc%
|
| 573 |
+
\advance\pgf@y by\pgf@yc%
|
| 574 |
+
\edef\pgf@temp{\pgf@xc\the\pgf@x\pgf@yc\the\pgf@y}%
|
| 575 |
+
\pgf@x=0.55228475\pgf@xa%
|
| 576 |
+
\pgf@y=0.55228475\pgf@ya%
|
| 577 |
+
\advance\pgf@x by\pgf@xb%
|
| 578 |
+
\advance\pgf@y by\pgf@yb%
|
| 579 |
+
{%
|
| 580 |
+
\advance\pgf@x by\pgf@xc%
|
| 581 |
+
\advance\pgf@y by\pgf@yc%
|
| 582 |
+
\advance\pgf@xb by\pgf@xc%
|
| 583 |
+
\advance\pgf@yb by\pgf@yc%
|
| 584 |
+
\pgf@temp%
|
| 585 |
+
\pgf@nlt@curveto{\pgf@xc}{\pgf@yc}{\pgf@x}{\pgf@y}{\pgf@xb}{\pgf@yb}%
|
| 586 |
+
}%
|
| 587 |
+
\pgf@xa=-\pgf@xa%
|
| 588 |
+
\pgf@ya=-\pgf@ya%
|
| 589 |
+
\pgf@x=0.55228475\pgf@xa%
|
| 590 |
+
\pgf@y=0.55228475\pgf@ya%
|
| 591 |
+
\advance\pgf@x by\pgf@xb%
|
| 592 |
+
\advance\pgf@y by\pgf@yb%
|
| 593 |
+
\advance\pgf@x by\pgf@xc%
|
| 594 |
+
\advance\pgf@y by\pgf@yc%
|
| 595 |
+
\edef\pgf@temp{\pgf@xc\the\pgf@x\pgf@yc\the\pgf@y}%
|
| 596 |
+
\pgf@x=0.55228475\pgf@xb%
|
| 597 |
+
\pgf@y=0.55228475\pgf@yb%
|
| 598 |
+
\advance\pgf@x by\pgf@xa%
|
| 599 |
+
\advance\pgf@y by\pgf@ya%
|
| 600 |
+
{%
|
| 601 |
+
\advance\pgf@x by\pgf@xc%
|
| 602 |
+
\advance\pgf@y by\pgf@yc%
|
| 603 |
+
\advance\pgf@xa by\pgf@xc%
|
| 604 |
+
\advance\pgf@ya by\pgf@yc%
|
| 605 |
+
\pgf@temp%
|
| 606 |
+
\pgf@nlt@curveto{\pgf@xc}{\pgf@yc}{\pgf@x}{\pgf@y}{\pgf@xa}{\pgf@ya}%
|
| 607 |
+
}%
|
| 608 |
+
\pgf@xb=-\pgf@xb%
|
| 609 |
+
\pgf@yb=-\pgf@yb%
|
| 610 |
+
\pgf@x=0.55228475\pgf@xb%
|
| 611 |
+
\pgf@y=0.55228475\pgf@yb%
|
| 612 |
+
\advance\pgf@x by\pgf@xa%
|
| 613 |
+
\advance\pgf@y by\pgf@ya%
|
| 614 |
+
\advance\pgf@x by\pgf@xc%
|
| 615 |
+
\advance\pgf@y by\pgf@yc%
|
| 616 |
+
\edef\pgf@temp{\pgf@xc\the\pgf@x\pgf@yc\the\pgf@y}%
|
| 617 |
+
\pgf@x=0.55228475\pgf@xa%
|
| 618 |
+
\pgf@y=0.55228475\pgf@ya%
|
| 619 |
+
\advance\pgf@x by\pgf@xb%
|
| 620 |
+
\advance\pgf@y by\pgf@yb%
|
| 621 |
+
{%
|
| 622 |
+
\advance\pgf@x by\pgf@xc%
|
| 623 |
+
\advance\pgf@y by\pgf@yc%
|
| 624 |
+
\advance\pgf@xb by\pgf@xc%
|
| 625 |
+
\advance\pgf@yb by\pgf@yc%
|
| 626 |
+
\pgf@temp%
|
| 627 |
+
\pgf@nlt@curveto{\pgf@xc}{\pgf@yc}{\pgf@x}{\pgf@y}{\pgf@xb}{\pgf@yb}%
|
| 628 |
+
}%
|
| 629 |
+
\pgf@xa=-\pgf@xa%
|
| 630 |
+
\pgf@ya=-\pgf@ya%
|
| 631 |
+
\pgf@x=0.55228475\pgf@xa%
|
| 632 |
+
\pgf@y=0.55228475\pgf@ya%
|
| 633 |
+
\advance\pgf@x by\pgf@xb%
|
| 634 |
+
\advance\pgf@y by\pgf@yb%
|
| 635 |
+
\advance\pgf@x by\pgf@xc%
|
| 636 |
+
\advance\pgf@y by\pgf@yc%
|
| 637 |
+
\edef\pgf@temp{\pgf@xc\the\pgf@x\pgf@yc\the\pgf@y}%
|
| 638 |
+
\pgf@x=0.55228475\pgf@xb%
|
| 639 |
+
\pgf@y=0.55228475\pgf@yb%
|
| 640 |
+
\advance\pgf@x by\pgf@xa%
|
| 641 |
+
\advance\pgf@y by\pgf@ya%
|
| 642 |
+
{%
|
| 643 |
+
\advance\pgf@x by\pgf@xc%
|
| 644 |
+
\advance\pgf@y by\pgf@yc%
|
| 645 |
+
\advance\pgf@xa by\pgf@xc%
|
| 646 |
+
\advance\pgf@ya by\pgf@yc%
|
| 647 |
+
\pgf@temp%
|
| 648 |
+
\pgf@nlt@curveto{\pgf@xc}{\pgf@yc}{\pgf@x}{\pgf@y}{\pgf@xa}{\pgf@ya}%
|
| 649 |
+
}%
|
| 650 |
+
\pgf@nlt@closepath%
|
| 651 |
+
\pgf@nlt@moveto{\pgf@xc}{\pgf@yc}%
|
| 652 |
+
}
|
| 653 |
+
|
| 654 |
+
|
| 655 |
+
|
| 656 |
+
|
| 657 |
+
\def\pgfpathcircle#1#2{\pgfpathellipse{#1}{\pgfpoint{#2}{0pt}}{\pgfpoint{0pt}{#2}}}
|
| 658 |
+
|
| 659 |
+
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
|
| 663 |
+
\def\pgfpathrectangle{%
|
| 664 |
+
\let\pgfrect@next=\pgf@specialrect%
|
| 665 |
+
\ifpgf@pt@identity%
|
| 666 |
+
\ifpgf@arccorners%
|
| 667 |
+
\else%
|
| 668 |
+
\ifx\pgf@nlt@list\pgfutil@empty%
|
| 669 |
+
\let\pgfrect@next=\pgf@normalrect%
|
| 670 |
+
\fi%
|
| 671 |
+
\fi%
|
| 672 |
+
\fi%
|
| 673 |
+
\pgfrect@next%
|
| 674 |
+
}
|
| 675 |
+
|
| 676 |
+
\def\pgf@normalrect#1#2{%
|
| 677 |
+
\pgf@process{#2}%
|
| 678 |
+
\pgf@xa=\pgf@x%
|
| 679 |
+
\pgf@ya=\pgf@y%
|
| 680 |
+
\pgfpointtransformed{#1}%
|
| 681 |
+
\pgfsyssoftpath@rect{\the\pgf@x}{\the\pgf@y}{\the\pgf@xa}{\the\pgf@ya}%
|
| 682 |
+
\pgf@protocolsizes{\pgf@x}{\pgf@y}%
|
| 683 |
+
\advance\pgf@x by\pgf@xa\relax%
|
| 684 |
+
\advance\pgf@y by\pgf@ya\relax%
|
| 685 |
+
\pgf@protocolsizes{\pgf@x}{\pgf@y}%
|
| 686 |
+
}
|
| 687 |
+
|
| 688 |
+
\def\pgf@specialrect#1#2{%
|
| 689 |
+
\pgf@process{#2}%
|
| 690 |
+
\pgf@xa=\pgf@x%
|
| 691 |
+
\pgf@ya=\pgf@y%
|
| 692 |
+
\pgf@process{#1}%
|
| 693 |
+
\pgf@xb=\pgf@x%
|
| 694 |
+
\pgf@yb=\pgf@y%
|
| 695 |
+
\advance\pgf@xa by\pgf@xb%
|
| 696 |
+
\advance\pgf@ya by\pgf@yb%
|
| 697 |
+
\pgfpathmoveto{\pgfqpoint{\pgf@xa}{\pgf@ya}}%
|
| 698 |
+
\pgfpathlineto{\pgfqpoint{\pgf@xb}{\pgf@ya}}%
|
| 699 |
+
\pgfpathlineto{\pgfqpoint{\pgf@xb}{\pgf@yb}}%
|
| 700 |
+
\pgfpathlineto{\pgfqpoint{\pgf@xa}{\pgf@yb}}%
|
| 701 |
+
\pgfpathclose%
|
| 702 |
+
\pgfpathmoveto{\pgfqpoint{\pgf@xb}{\pgf@yb}}%
|
| 703 |
+
}
|
| 704 |
+
|
| 705 |
+
|
| 706 |
+
\def\pgfpathrectanglecorners#1#2{%
|
| 707 |
+
\pgf@process{#2}%
|
| 708 |
+
\pgf@xc=\pgf@x%
|
| 709 |
+
\pgf@yc=\pgf@y%
|
| 710 |
+
\pgf@process{#1}%
|
| 711 |
+
\advance\pgf@xc by-\pgf@x%
|
| 712 |
+
\advance\pgf@yc by-\pgf@y%
|
| 713 |
+
\pgfpathrectangle{#1}{\pgfqpoint{\pgf@xc}{\pgf@yc}}%
|
| 714 |
+
}
|
| 715 |
+
|
| 716 |
+
|
| 717 |
+
|
| 718 |
+
\pgfkeys{
|
| 719 |
+
/pgf/stepx/.initial=1cm,
|
| 720 |
+
/pgf/stepy/.initial=1cm,
|
| 721 |
+
/pgf/step/.code={\pgf@process{#1}\pgfkeysalso{/pgf/stepx/.expanded=\the\pgf@x,/pgf/stepy/.expanded=\the\pgf@y}},
|
| 722 |
+
/pgf/step/.value required
|
| 723 |
+
}
|
| 724 |
+
|
| 725 |
+
\def\pgfpathgrid{\pgfutil@ifnextchar[{\pgf@pathgrid}{\pgf@pathgrid[]}}
|
| 726 |
+
\def\pgf@pathgrid[#1]#2#3{%
|
| 727 |
+
\pgfset{#1}%
|
| 728 |
+
\pgfmathsetlength\pgf@xc{\pgfkeysvalueof{/pgf/stepx}}%
|
| 729 |
+
\pgfmathsetlength\pgf@yc{\pgfkeysvalueof{/pgf/stepy}}%
|
| 730 |
+
\pgf@process{#3}%
|
| 731 |
+
\pgf@xb=\pgf@x%
|
| 732 |
+
\pgf@yb=\pgf@y%
|
| 733 |
+
\pgf@process{#2}%
|
| 734 |
+
\pgf@xa=\pgf@x%
|
| 735 |
+
\pgf@ya=\pgf@y%
|
| 736 |
+
\ifdim\pgf@xa>\pgf@xb%
|
| 737 |
+
\pgf@x=\pgf@xb%
|
| 738 |
+
\pgf@xb=\pgf@xa%
|
| 739 |
+
\pgf@xa=\pgf@x%
|
| 740 |
+
\fi%
|
| 741 |
+
\ifdim\pgf@ya>\pgf@yb%
|
| 742 |
+
\pgf@y=\pgf@yb%
|
| 743 |
+
\pgf@yb=\pgf@ya%
|
| 744 |
+
\pgf@ya=\pgf@y%
|
| 745 |
+
\fi%
|
| 746 |
+
\ifdim \pgf@yc > .01pt\relax%
|
| 747 |
+
\c@pgf@counta=\pgf@ya\relax%
|
| 748 |
+
\c@pgf@countb=\pgf@yc\relax%
|
| 749 |
+
\divide\c@pgf@counta by\c@pgf@countb\relax%
|
| 750 |
+
\pgfutil@tempdima=\c@pgf@counta\pgf@yc\relax%
|
| 751 |
+
\ifdim\pgfutil@tempdima<\pgf@ya%
|
| 752 |
+
\advance\pgfutil@tempdima by\pgf@yc%
|
| 753 |
+
\fi%
|
| 754 |
+
\pgfutil@tempdimb\pgf@x
|
| 755 |
+
\pgfutil@loop%
|
| 756 |
+
{%
|
| 757 |
+
\pgf@xa=\pgfutil@tempdimb%
|
| 758 |
+
\pgf@ya=\pgfutil@tempdima%
|
| 759 |
+
\pgf@pos@transform{\pgf@xa}{\pgf@ya}
|
| 760 |
+
\pgf@nlt@moveto{\pgf@xa}{\pgf@ya}%
|
| 761 |
+
\pgf@xa=\pgf@xb%
|
| 762 |
+
\pgf@ya=\pgfutil@tempdima%
|
| 763 |
+
\pgf@pos@transform{\pgf@xa}{\pgf@ya}
|
| 764 |
+
\pgf@nlt@lineto{\pgf@xa}{\pgf@ya}%
|
| 765 |
+
}%
|
| 766 |
+
\advance\pgfutil@tempdima by\pgf@yc%
|
| 767 |
+
\ifdim\pgfutil@tempdima<\pgf@yb%
|
| 768 |
+
\pgfutil@repeat%
|
| 769 |
+
\advance\pgfutil@tempdima by-0.01pt\relax%
|
| 770 |
+
\ifdim\pgfutil@tempdima<\pgf@yb%
|
| 771 |
+
{%
|
| 772 |
+
\pgf@xa=\pgfutil@tempdimb%
|
| 773 |
+
\pgf@ya=\pgfutil@tempdima%
|
| 774 |
+
\pgf@pos@transform{\pgf@xa}{\pgf@ya}
|
| 775 |
+
\pgf@nlt@moveto{\pgf@xa}{\pgf@ya}%
|
| 776 |
+
\pgf@xa=\pgf@xb%
|
| 777 |
+
\pgf@ya=\pgfutil@tempdima%
|
| 778 |
+
\pgf@pos@transform{\pgf@xa}{\pgf@ya}
|
| 779 |
+
\pgf@nlt@lineto{\pgf@xa}{\pgf@ya}%
|
| 780 |
+
}%
|
| 781 |
+
\fi%
|
| 782 |
+
\fi%
|
| 783 |
+
\ifdim \pgf@xc > .01pt\relax%
|
| 784 |
+
\c@pgf@counta=\pgf@xa\relax%
|
| 785 |
+
\c@pgf@countb=\pgf@xc\relax%
|
| 786 |
+
\divide\c@pgf@counta by\c@pgf@countb\relax%
|
| 787 |
+
\pgfutil@tempdimb=\c@pgf@counta\pgf@xc\relax%
|
| 788 |
+
\ifdim\pgfutil@tempdimb<\pgf@xa%
|
| 789 |
+
\advance\pgfutil@tempdimb by\pgf@xc%
|
| 790 |
+
\fi%
|
| 791 |
+
\pgfutil@loop%
|
| 792 |
+
{%
|
| 793 |
+
\pgf@xc=\pgfutil@tempdimb%
|
| 794 |
+
\pgf@yc=\pgf@ya%
|
| 795 |
+
\pgf@pos@transform{\pgf@xc}{\pgf@yc}
|
| 796 |
+
\pgf@nlt@moveto{\pgf@xc}{\pgf@yc}%
|
| 797 |
+
\pgf@xc=\pgfutil@tempdimb%
|
| 798 |
+
\pgf@yc=\pgf@yb%
|
| 799 |
+
\pgf@pos@transform{\pgf@xc}{\pgf@yc}
|
| 800 |
+
\pgf@nlt@lineto{\pgf@xc}{\pgf@yc}%
|
| 801 |
+
}%
|
| 802 |
+
\advance\pgfutil@tempdimb by\pgf@xc%
|
| 803 |
+
\ifdim\pgfutil@tempdimb<\pgf@xb%
|
| 804 |
+
\pgfutil@repeat%
|
| 805 |
+
\advance\pgfutil@tempdimb by-0.01pt\relax%
|
| 806 |
+
\ifdim\pgfutil@tempdimb<\pgf@xb%
|
| 807 |
+
{%
|
| 808 |
+
\pgf@xc=\pgfutil@tempdimb%
|
| 809 |
+
\pgf@yc=\pgf@ya%
|
| 810 |
+
\pgf@pos@transform{\pgf@xc}{\pgf@yc}
|
| 811 |
+
\pgf@nlt@moveto{\pgf@xc}{\pgf@yc}%
|
| 812 |
+
\pgf@xc=\pgfutil@tempdimb%
|
| 813 |
+
\pgf@yc=\pgf@yb%
|
| 814 |
+
\pgf@pos@transform{\pgf@xc}{\pgf@yc}
|
| 815 |
+
\pgf@nlt@lineto{\pgf@xc}{\pgf@yc}%
|
| 816 |
+
}%
|
| 817 |
+
\fi%
|
| 818 |
+
\fi%
|
| 819 |
+
\pgf@process{#3}%
|
| 820 |
+
\pgf@pos@transform{\pgf@x}{\pgf@y}%
|
| 821 |
+
\pgf@nlt@moveto{\pgf@x}{\pgf@y}%
|
| 822 |
+
}
|
| 823 |
+
|
| 824 |
+
|
| 825 |
+
|
| 826 |
+
|
| 827 |
+
\def\pgfpathparabola#1#2{%
|
| 828 |
+
{%
|
| 829 |
+
\pgf@process{#2}%
|
| 830 |
+
\pgf@xb=\pgf@x%
|
| 831 |
+
\pgf@yb=\pgf@y%
|
| 832 |
+
\pgf@process{#1}%
|
| 833 |
+
\pgf@xc=\pgf@x%
|
| 834 |
+
\pgf@yc=\pgf@y%
|
| 835 |
+
\pgfutil@tempswatrue%
|
| 836 |
+
\ifdim\pgf@xb=0pt\relax%
|
| 837 |
+
\ifdim\pgf@yb=0pt\relax%
|
| 838 |
+
\pgfutil@tempswafalse%
|
| 839 |
+
\fi%
|
| 840 |
+
\fi%
|
| 841 |
+
{%
|
| 842 |
+
\ifpgfutil@tempswa%
|
| 843 |
+
\pgf@arccornersfalse
|
| 844 |
+
\else%
|
| 845 |
+
\fi%
|
| 846 |
+
\pgfutil@tempswatrue%
|
| 847 |
+
\ifdim\pgf@xc=0pt\relax%
|
| 848 |
+
\ifdim\pgf@yc=0pt\relax%
|
| 849 |
+
\pgfutil@tempswafalse%
|
| 850 |
+
\fi%
|
| 851 |
+
\fi%
|
| 852 |
+
\ifpgfutil@tempswa
|
| 853 |
+
{%
|
| 854 |
+
\pgf@pt@x=\pgf@path@lastx%
|
| 855 |
+
\pgf@pt@y=\pgf@path@lasty%
|
| 856 |
+
\pgfpathcurveto%
|
| 857 |
+
{\pgfqpoint{.1125\pgf@xc}{.225\pgf@yc}}%
|
| 858 |
+
{\pgfqpoint{.5\pgf@xc}{\pgf@yc}}%
|
| 859 |
+
{\pgfqpoint{\pgf@xc}{\pgf@yc}}%
|
| 860 |
+
}%
|
| 861 |
+
\fi%
|
| 862 |
+
}%
|
| 863 |
+
\ifpgfutil@tempswa%
|
| 864 |
+
\pgf@xc=\pgf@xb%
|
| 865 |
+
\pgf@yc=\pgf@yb%
|
| 866 |
+
{%
|
| 867 |
+
\pgf@pt@x=\pgf@path@lastx%
|
| 868 |
+
\pgf@pt@y=\pgf@path@lasty%
|
| 869 |
+
\pgfpathcurveto%
|
| 870 |
+
{\pgfqpoint{.5\pgf@xc}{0\pgf@yc}}%
|
| 871 |
+
{\pgfqpoint{.8875\pgf@xc}{.775\pgf@yc}}%
|
| 872 |
+
{\pgfqpoint{\pgf@xc}{\pgf@yc}}%
|
| 873 |
+
}%
|
| 874 |
+
\fi%
|
| 875 |
+
}%
|
| 876 |
+
}
|
| 877 |
+
|
| 878 |
+
|
| 879 |
+
|
| 880 |
+
|
| 881 |
+
|
| 882 |
+
\def\pgfpathsine#1{%
|
| 883 |
+
{%
|
| 884 |
+
\pgf@process{#1}%
|
| 885 |
+
\pgf@xc=\pgf@x%
|
| 886 |
+
\pgf@yc=\pgf@y%
|
| 887 |
+
\pgf@pt@x=\pgf@path@lastx%
|
| 888 |
+
\pgf@pt@y=\pgf@path@lasty%
|
| 889 |
+
\pgfpathcurveto%
|
| 890 |
+
{\pgfqpoint{.3260\pgf@xc}{.5120\pgf@yc}}%
|
| 891 |
+
{\pgfqpoint{.6380\pgf@xc}{\pgf@yc}}%
|
| 892 |
+
{\pgfqpoint{\pgf@xc}{\pgf@yc}}%
|
| 893 |
+
}%
|
| 894 |
+
}
|
| 895 |
+
|
| 896 |
+
|
| 897 |
+
\def\pgfpathcosine#1{%
|
| 898 |
+
{%
|
| 899 |
+
\pgf@process{#1}%
|
| 900 |
+
\pgf@xc=\pgf@x%
|
| 901 |
+
\pgf@yc=\pgf@y%
|
| 902 |
+
\pgf@pt@x=\pgf@path@lastx%
|
| 903 |
+
\pgf@pt@y=\pgf@path@lasty%
|
| 904 |
+
\pgfpathcurveto%
|
| 905 |
+
{\pgfqpoint{.3620\pgf@xc}{0pt}}%
|
| 906 |
+
{\pgfqpoint{.6740\pgf@xc}{.4880\pgf@yc}}%
|
| 907 |
+
{\pgfqpoint{\pgf@xc}{\pgf@yc}}%
|
| 908 |
+
}%
|
| 909 |
+
}
|
| 910 |
+
|
| 911 |
+
|
| 912 |
+
|
| 913 |
+
\def\pgfpathcurvebetweentime{\pgf@ignoremovetofalse\pgf@@pathcurvebetweentime}
|
| 914 |
+
\def\pgfpathcurvebetweentimecontinue{\pgf@ignoremovetotrue\pgf@@pathcurvebetweentime}
|
| 915 |
+
\newif\ifpgf@ignoremoveto
|
| 916 |
+
|
| 917 |
+
\def\pgf@@pathcurvebetweentime#1#2#3#4#5#6{%
|
| 918 |
+
\pgfmathparse{#1}%
|
| 919 |
+
\let\pgf@time@s=\pgfmathresult%
|
| 920 |
+
\pgfmathparse{#2}%
|
| 921 |
+
\let\pgf@time@t=\pgfmathresult%
|
| 922 |
+
\ifdim\pgf@time@s pt>\pgf@time@t pt\relax%
|
| 923 |
+
\pgfmathsetmacro\pgf@time@s{1-#1}%
|
| 924 |
+
\pgfmathsetmacro\pgf@time@t{1-#2}%
|
| 925 |
+
\pgf@@@pathcurvebetweentime{\pgf@time@t}{#6}{#5}{#4}{#3}%
|
| 926 |
+
\else%
|
| 927 |
+
\pgf@@@pathcurvebetweentime{\pgf@time@t}{#3}{#4}{#5}{#6}%
|
| 928 |
+
\fi%
|
| 929 |
+
}
|
| 930 |
+
|
| 931 |
+
\def\pgf@@@pathcurvebetweentime#1#2#3#4#5{%
|
| 932 |
+
\pgf@process{#2}%
|
| 933 |
+
\pgf@xc=\pgf@x%
|
| 934 |
+
\pgf@yc=\pgf@y%
|
| 935 |
+
\pgf@process{%
|
| 936 |
+
\pgf@process{#3}%
|
| 937 |
+
\pgf@xa=#1\pgf@x%
|
| 938 |
+
\pgf@ya=#1\pgf@y%
|
| 939 |
+
\pgf@process{#2}%
|
| 940 |
+
\pgf@xb=\pgf@x%
|
| 941 |
+
\pgf@yb=\pgf@y%
|
| 942 |
+
\advance\pgf@x by-#1\pgf@xb%
|
| 943 |
+
\advance\pgf@y by-#1\pgf@yb%
|
| 944 |
+
\advance\pgf@x by\pgf@xa%
|
| 945 |
+
\advance\pgf@y by\pgf@ya%
|
| 946 |
+
}%
|
| 947 |
+
\pgf@xb=\pgf@x%
|
| 948 |
+
\pgf@yb=\pgf@y%
|
| 949 |
+
\pgf@process{%
|
| 950 |
+
\pgf@process{#4}%
|
| 951 |
+
\pgf@xa=#1\pgf@x%
|
| 952 |
+
\pgf@ya=#1\pgf@y%
|
| 953 |
+
\pgf@process{#3}%
|
| 954 |
+
\pgf@xc=\pgf@x%
|
| 955 |
+
\pgf@yc=\pgf@y%
|
| 956 |
+
\advance\pgf@xc by-#1\pgf@x%
|
| 957 |
+
\advance\pgf@yc by-#1\pgf@y%
|
| 958 |
+
\pgf@x=\pgf@xb%
|
| 959 |
+
\pgf@y=\pgf@yb%
|
| 960 |
+
\advance\pgf@x by#1\pgf@xa%
|
| 961 |
+
\advance\pgf@y by#1\pgf@ya%
|
| 962 |
+
\advance\pgf@x by-#1\pgf@xb%
|
| 963 |
+
\advance\pgf@y by-#1\pgf@yb%
|
| 964 |
+
\advance\pgf@x by#1\pgf@xc%
|
| 965 |
+
\advance\pgf@y by#1\pgf@yc%
|
| 966 |
+
}%
|
| 967 |
+
\pgf@xa=\pgf@x%
|
| 968 |
+
\pgf@ya=\pgf@y%
|
| 969 |
+
\pgf@process{\pgfpointcurveattime{#1}{#2}{#3}{#4}{#5}}%
|
| 970 |
+
\ifx#1\pgf@time@t%
|
| 971 |
+
\pgfmathdivide@{\pgf@time@s}{\pgf@time@t}%
|
| 972 |
+
\pgfmathadd@{-\pgfmathresult}{1}%
|
| 973 |
+
\let\pgf@time@s=\pgfmathresult%
|
| 974 |
+
\edef\pgf@marshal{%
|
| 975 |
+
\noexpand\pgf@@@pathcurvebetweentime{\noexpand\pgf@time@s}%
|
| 976 |
+
{\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}}{\noexpand\pgfqpoint{\the\pgf@xa}{\the\pgf@ya}}%
|
| 977 |
+
{\noexpand\pgfqpoint{\the\pgf@xb}{\the\pgf@yb}}{\noexpand\pgfqpoint{\the\pgf@xc}{\the\pgf@yc}}%
|
| 978 |
+
}%
|
| 979 |
+
\else%
|
| 980 |
+
\ifpgf@ignoremoveto%
|
| 981 |
+
\edef\pgf@marshal{%
|
| 982 |
+
\noexpand\pgfpathcurveto{\noexpand\pgfqpoint{\the\pgf@xa}{\the\pgf@ya}}%
|
| 983 |
+
{\noexpand\pgfqpoint{\the\pgf@xb}{\the\pgf@yb}}{\noexpand\pgfqpoint{\the\pgf@xc}{\the\pgf@yc}}%
|
| 984 |
+
}%
|
| 985 |
+
\else%
|
| 986 |
+
\edef\pgf@marshal{%
|
| 987 |
+
\noexpand\pgfpathmoveto{\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}}%
|
| 988 |
+
\noexpand\pgfpathcurveto{\noexpand\pgfqpoint{\the\pgf@xa}{\the\pgf@ya}}%
|
| 989 |
+
{\noexpand\pgfqpoint{\the\pgf@xb}{\the\pgf@yb}}{\noexpand\pgfqpoint{\the\pgf@xc}{\the\pgf@yc}}%
|
| 990 |
+
}%
|
| 991 |
+
\fi%
|
| 992 |
+
\fi%
|
| 993 |
+
\pgf@marshal%
|
| 994 |
+
}
|
| 995 |
+
|
| 996 |
+
|
| 997 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorepathprocessing.code.tex
ADDED
|
@@ -0,0 +1,417 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{pgfcorepathprocessing.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
\def\pgfprocesssplitpath#1{%
|
| 7 |
+
\let\pgfprocessresultpathprefix\pgfutil@empty%
|
| 8 |
+
\let\pgfprocessresultpathsuffix\pgfutil@empty%
|
| 9 |
+
\let\pgf@next\pgf@process@split%
|
| 10 |
+
\expandafter\pgf@process@split#1\pgfsyssoftpath@movetotoken{}{}\pgf@stop%
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
\def\pgf@process@split#1\pgfsyssoftpath@movetotoken#2#3#4{%
|
| 14 |
+
\ifx#4\pgf@stop%
|
| 15 |
+
\expandafter\def\expandafter\pgfprocessresultpathsuffix\expandafter{\pgfprocessresultpathsuffix#1}%
|
| 16 |
+
\let\pgf@next\pgfutil@gobble%
|
| 17 |
+
\else%
|
| 18 |
+
\expandafter\expandafter\expandafter\def%
|
| 19 |
+
\expandafter\expandafter\expandafter\pgfprocessresultpathprefix%
|
| 20 |
+
\expandafter\expandafter\expandafter{\expandafter\pgfprocessresultpathprefix\pgfprocessresultpathsuffix#1}%
|
| 21 |
+
\def\pgfprocessresultpathsuffix{\pgfsyssoftpath@movetotoken{#2}{#3}}%
|
| 22 |
+
\fi%
|
| 23 |
+
\pgf@next#4%
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
\def\pgfprocesssplitsubpath#1{%
|
| 30 |
+
\let\pgf@tempa\pgfutil@emtpy%
|
| 31 |
+
\let\pgf@tempb\pgfutil@emtpy%
|
| 32 |
+
\let\pgf@tempc\pgfutil@emtpy%
|
| 33 |
+
\let\pgf@tempd\pgfutil@emtpy%
|
| 34 |
+
\let\pgfprocessresultsubpathprefix\pgfutil@empty%
|
| 35 |
+
\let\pgfprocessresultsubpathsuffix\pgfutil@empty%
|
| 36 |
+
\let\pgf@next\pgf@split@subpath%
|
| 37 |
+
\expandafter\pgf@split@subpath#1\pgf@stop%
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
\newif\ifpgf@split@move
|
| 41 |
+
|
| 42 |
+
\def\pgf@split@subpath#1#2#3#4{%
|
| 43 |
+
\ifx#4\pgf@stop%
|
| 44 |
+
\expandafter\def\expandafter\pgfprocessresultsubpathsuffix\expandafter{\pgfprocessresultsubpathsuffix#1{#2}{#3}}%
|
| 45 |
+
\let\pgf@next\pgfutil@gobble%
|
| 46 |
+
\else%
|
| 47 |
+
\pgf@split@movetrue%
|
| 48 |
+
\ifx#1\pgfsyssoftpath@curvetosupportatoken%
|
| 49 |
+
\pgf@split@movefalse%
|
| 50 |
+
\else
|
| 51 |
+
\ifx#1\pgfsyssoftpath@curvetosupportbtoken%
|
| 52 |
+
\pgf@split@movefalse%
|
| 53 |
+
\fi%
|
| 54 |
+
\fi%
|
| 55 |
+
\ifpgf@split@move%
|
| 56 |
+
\expandafter\expandafter\expandafter\def%
|
| 57 |
+
\expandafter\expandafter\expandafter\pgfprocessresultsubpathprefix%
|
| 58 |
+
\expandafter\expandafter\expandafter{%
|
| 59 |
+
\expandafter\pgfprocessresultsubpathprefix\pgfprocessresultsubpathsuffix}%
|
| 60 |
+
\def\pgfprocessresultsubpathsuffix{#1{#2}{#3}}%
|
| 61 |
+
\else%
|
| 62 |
+
\expandafter\def\expandafter\pgfprocessresultsubpathsuffix\expandafter{\pgfprocessresultsubpathsuffix#1{#2}{#3}}%
|
| 63 |
+
\fi%
|
| 64 |
+
\fi%
|
| 65 |
+
\pgf@next#4%
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
\def\pgfprocesspathextractpoints#1{%
|
| 73 |
+
\ifx#1\pgfutil@empty%
|
| 74 |
+
\let\pgfpointfirstonpath=\pgfpointorigin%
|
| 75 |
+
\let\pgfpointsecondonpath=\pgfpointorigin%
|
| 76 |
+
\let\pgfpointsecondlastonpath=\pgfpointorigin%
|
| 77 |
+
\let\pgfpointlastonpath=\pgfpointorigin%
|
| 78 |
+
\else%
|
| 79 |
+
\expandafter\pgf@extractprocessorfirst#1\pgf@stop%
|
| 80 |
+
\fi%
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
\def\pgf@extractprocessorfirst#1#2#3#4{%
|
| 84 |
+
\def\pgfpointfirstonpath{\pgfqpoint{#2}{#3}}%
|
| 85 |
+
\ifx#4\pgf@stop%
|
| 86 |
+
\let\pgfpointsecondonpath=\pgfpointfirstonpath%
|
| 87 |
+
\let\pgfpointsecondlastonpath=\pgfpointfirstonpath%
|
| 88 |
+
\let\pgfpointlastonpath=\pgfpointfirstonpath%
|
| 89 |
+
\let\next=\pgfutil@gobble%
|
| 90 |
+
\else
|
| 91 |
+
\let\next=\pgf@extractprocessorsecond%
|
| 92 |
+
\fi%
|
| 93 |
+
\next#4%
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
\def\pgf@extractprocessorsecond#1{%
|
| 97 |
+
\ifx#1\pgfsyssoftpath@movetotoken%
|
| 98 |
+
\let\pgf@next=\pgf@extractprocessorfirst%
|
| 99 |
+
\else%
|
| 100 |
+
\let\pgf@next=\pgf@@extractprocessorsecond%
|
| 101 |
+
\fi%
|
| 102 |
+
\pgf@next#1%
|
| 103 |
+
}
|
| 104 |
+
\def\pgf@@extractprocessorsecond#1#2#3#4{%
|
| 105 |
+
\def\pgfpointsecondonpath{\pgfqpoint{#2}{#3}}%
|
| 106 |
+
\let\pgfpointsecondlastonpath=\pgfpointfirstonpath%
|
| 107 |
+
\let\pgfpointlastonpath=\pgfpointsecondonpath%
|
| 108 |
+
\ifx#4\pgf@stop%
|
| 109 |
+
\let\next=\pgfutil@gobble%
|
| 110 |
+
\else
|
| 111 |
+
\let\next=\pgf@extractprocessorother%
|
| 112 |
+
\fi%
|
| 113 |
+
\next#4%
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
\def\pgf@extractprocessorother#1{%
|
| 117 |
+
\ifx#1\pgfsyssoftpath@movetotoken%
|
| 118 |
+
\let\pgf@next=\pgf@extractprocessorfirst%
|
| 119 |
+
\else%
|
| 120 |
+
\let\pgf@next=\pgf@@extractprocessorother%
|
| 121 |
+
\fi%
|
| 122 |
+
\pgf@next#1%
|
| 123 |
+
}
|
| 124 |
+
\def\pgf@@extractprocessorother#1#2#3#4{%
|
| 125 |
+
\let\pgfpointsecondlastonpath=\pgfpointlastonpath%
|
| 126 |
+
\def\pgfpointlastonpath{\pgfqpoint{#2}{#3}}%
|
| 127 |
+
\ifx#4\pgf@stop%
|
| 128 |
+
\let\next=\pgfutil@gobble%
|
| 129 |
+
\fi%
|
| 130 |
+
\next#4%
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
\def\pgfprocesscheckclosed#1#2{%
|
| 137 |
+
{%
|
| 138 |
+
\global\let\pgf@proc@todo=\relax%
|
| 139 |
+
\let\pgfsyssoftpath@movetotoken=\pgfutil@gobbletwo%
|
| 140 |
+
\let\pgfsyssoftpath@linetotoken=\pgfutil@gobbletwo%
|
| 141 |
+
\let\pgfsyssoftpath@curvetosupportatoken=\pgfutil@gobbletwo%
|
| 142 |
+
\let\pgfsyssoftpath@curvetosupportbtoken=\pgfutil@gobbletwo%
|
| 143 |
+
\let\pgfsyssoftpath@curvetotoken=\pgfutil@gobbletwo%
|
| 144 |
+
\def\pgfsyssoftpath@rectcornertoken{\gdef\pgf@proc@todo{#2}\pgfutil@gobbletwo}%
|
| 145 |
+
\def\pgfsyssoftpath@rectsizetoken{\gdef\pgf@proc@todo{#2}\pgfutil@gobbletwo}%
|
| 146 |
+
\def\pgfsyssoftpath@closepathtoken{\gdef\pgf@proc@todo{#2}\pgfutil@gobbletwo}%
|
| 147 |
+
#1%
|
| 148 |
+
}%
|
| 149 |
+
\pgf@proc@todo%
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
\def\pgfprocessround#1#2{%
|
| 155 |
+
\expandafter\pgf@processroundcheck\expandafter#1\expandafter#2#1\pgfsyssoftpath@specialroundtoken\pgf@stop%
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
\def\pgf@processroundcheck#1#2#3\pgfsyssoftpath@specialroundtoken#4\pgf@stop{%
|
| 159 |
+
\def\pgf@test{#4}%
|
| 160 |
+
\ifx\pgf@test\pgfutil@empty%
|
| 161 |
+
\let#2=#1%
|
| 162 |
+
\else%
|
| 163 |
+
\pgf@@processround#1#2%
|
| 164 |
+
\fi%
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
\def\pgf@@processround#1#2{%
|
| 169 |
+
\let\pgfprocess@newpath\pgfutil@empty%
|
| 170 |
+
\let\pgfprocess@moveto\pgfutil@empty%
|
| 171 |
+
\let\pgfprocess@firstto\pgfutil@empty%
|
| 172 |
+
\let\pgfprocess@segment\pgfutil@empty%
|
| 173 |
+
\pgf@xa=0pt%
|
| 174 |
+
\pgf@ya=0pt%
|
| 175 |
+
\expandafter\pgfprocess@round#1\pgf@stop{0pt}{0pt}%
|
| 176 |
+
\expandafter\pgfutil@g@addto@macro\expandafter\pgfprocess@newpath\expandafter{\pgfprocess@moveto}%
|
| 177 |
+
\expandafter\pgfutil@g@addto@macro\expandafter\pgfprocess@newpath\expandafter{\pgfprocess@segment}%
|
| 178 |
+
\let#2=\pgfprocess@newpath%
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
\def\pgfprocess@round#1#2#3{%
|
| 182 |
+
\ifx#1\pgf@stop%
|
| 183 |
+
\let\next=\relax%
|
| 184 |
+
\else%
|
| 185 |
+
\ifx#1\pgfsyssoftpath@specialroundtoken%
|
| 186 |
+
\def\pgfprocess@savex{#2}%
|
| 187 |
+
\def\pgfprocess@savey{#3}%
|
| 188 |
+
\let\next=\pgfprocess@specialround%
|
| 189 |
+
\ifdim#2=0pt%
|
| 190 |
+
\ifdim#3=0pt%
|
| 191 |
+
\let\next=\pgfprocess@round%
|
| 192 |
+
\fi%
|
| 193 |
+
\fi%
|
| 194 |
+
\else%
|
| 195 |
+
\ifx\pgfprocess@firstto\pgfutil@empty%
|
| 196 |
+
\def\pgfprocess@firstto{{#2}{#3}}%
|
| 197 |
+
\fi%
|
| 198 |
+
\pgf@xa=#2%
|
| 199 |
+
\pgf@ya=#3%
|
| 200 |
+
\ifx#1\pgfsyssoftpath@movetotoken%
|
| 201 |
+
\expandafter\pgfutil@g@addto@macro\expandafter\pgfprocess@newpath\expandafter{\pgfprocess@moveto}%
|
| 202 |
+
\expandafter\pgfutil@g@addto@macro\expandafter\pgfprocess@newpath\expandafter{\pgfprocess@segment}%
|
| 203 |
+
\def\pgfprocess@moveto{#1{#2}{#3}}%
|
| 204 |
+
\let\pgfprocess@firstto=\pgfutil@empty%
|
| 205 |
+
\let\pgfprocess@segment=\pgfutil@empty%
|
| 206 |
+
\else%
|
| 207 |
+
\pgfutil@g@addto@macro\pgfprocess@segment{#1{#2}{#3}}%
|
| 208 |
+
\fi%
|
| 209 |
+
\let\next=\pgfprocess@round%
|
| 210 |
+
\fi%
|
| 211 |
+
\fi%
|
| 212 |
+
\next%
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
\def\pgfprocess@specialround#1#2#3{%
|
| 216 |
+
\ifx\pgfprocess@firstto\pgfutil@empty%
|
| 217 |
+
\def\pgfprocess@firstto{{#2}{#3}}%
|
| 218 |
+
\fi%
|
| 219 |
+
\let\next=\pgfprocess@round%
|
| 220 |
+
\ifx#1\pgfsyssoftpath@linetotoken%
|
| 221 |
+
\let\next=\pgfprocess@specialroundcope%
|
| 222 |
+
\else%
|
| 223 |
+
\ifx#1\pgfsyssoftpath@curvetosupportatoken%
|
| 224 |
+
\let\next=\pgfprocess@specialroundcurveto%
|
| 225 |
+
\else%
|
| 226 |
+
\ifx#1\pgfsyssoftpath@closepathtoken%
|
| 227 |
+
\let\next=\pgfprocess@specialroundclose%
|
| 228 |
+
\fi%
|
| 229 |
+
\fi%
|
| 230 |
+
\fi%
|
| 231 |
+
\next#1{#2}{#3}%
|
| 232 |
+
}%
|
| 233 |
+
|
| 234 |
+
\def\pgfprocess@specialroundcope#1#2#3#4#5#6{%
|
| 235 |
+
\let\next=\pgfprocess@round%
|
| 236 |
+
\let\pgfprocess@continueafterrounding=\pgfprocess@round%
|
| 237 |
+
\ifx#4\pgfsyssoftpath@linetotoken%
|
| 238 |
+
\pgf@xc=#5%
|
| 239 |
+
\pgf@yc=#6%
|
| 240 |
+
\let\next=\pgfprocess@@specialround%
|
| 241 |
+
\else%
|
| 242 |
+
\ifx#4\pgfsyssoftpath@curvetosupportatoken%
|
| 243 |
+
\pgf@xc=#5%
|
| 244 |
+
\pgf@yc=#6%
|
| 245 |
+
\let\next=\pgfprocess@@specialround%
|
| 246 |
+
\else%
|
| 247 |
+
\ifx#4\pgfsyssoftpath@closepathtoken%
|
| 248 |
+
\pgf@xc=#5%
|
| 249 |
+
\pgf@yc=#6%
|
| 250 |
+
\let\next=\pgfprocess@@specialround%
|
| 251 |
+
\else
|
| 252 |
+
\ifx#4\pgfsyssoftpath@specialroundtoken%
|
| 253 |
+
\let\next=\pgfprocess@@findrightcoordinates%
|
| 254 |
+
\fi%
|
| 255 |
+
\fi%
|
| 256 |
+
\fi%
|
| 257 |
+
\fi%
|
| 258 |
+
\next#1{#2}{#3}#4{#5}{#6}%
|
| 259 |
+
}
|
| 260 |
+
|
| 261 |
+
\def\pgfprocess@@findrightcoordinates#1#2#3#4#5#6#7#8#9{%
|
| 262 |
+
\pgf@xc=#8%
|
| 263 |
+
\pgf@yc=#9%
|
| 264 |
+
\pgfprocess@@specialround#1{#2}{#3}#4{#5}{#6}#7{#8}{#9}%
|
| 265 |
+
}
|
| 266 |
+
|
| 267 |
+
\def\pgfprocess@@specialround#1#2#3{%
|
| 268 |
+
\pgfutil@g@addto@macro\pgfprocess@segment{#1}%
|
| 269 |
+
\pgf@xb=#2%
|
| 270 |
+
\pgf@yb=#3%
|
| 271 |
+
\edef\pgf@marshal%
|
| 272 |
+
{\noexpand\pgfpointlineatdistance{\pgfprocess@savex}%
|
| 273 |
+
{\noexpand\pgfqpoint{\the\pgf@xb}{\the\pgf@yb}}%
|
| 274 |
+
{\noexpand\pgfqpoint{\the\pgf@xa}{\the\pgf@ya}}}%
|
| 275 |
+
\pgf@process{\pgf@marshal}%
|
| 276 |
+
\pgf@xa=\pgf@x%
|
| 277 |
+
\pgf@ya=\pgf@y%
|
| 278 |
+
\edef\pgfprocess@addition{{\the\pgf@x}{\the\pgf@y}}%
|
| 279 |
+
\expandafter\pgfutil@g@addto@macro\expandafter\pgfprocess@segment\expandafter{\pgfprocess@addition}%
|
| 280 |
+
\edef\pgf@marshal%
|
| 281 |
+
{\noexpand\pgfpointlineatdistance{\pgfprocess@savey}%
|
| 282 |
+
{\noexpand\pgfqpoint{\the\pgf@xb}{\the\pgf@yb}}%
|
| 283 |
+
{\noexpand\pgfqpoint{\the\pgf@xc}{\the\pgf@yc}}}%
|
| 284 |
+
\pgf@process{\pgf@marshal}%
|
| 285 |
+
\pgf@xc=\pgf@x%
|
| 286 |
+
\pgf@yc=\pgf@y%
|
| 287 |
+
{%
|
| 288 |
+
\pgf@x=\pgf@xb%
|
| 289 |
+
\pgf@y=\pgf@yb%
|
| 290 |
+
\advance\pgf@x by-\pgf@xa%
|
| 291 |
+
\advance\pgf@y by-\pgf@ya%
|
| 292 |
+
\advance\pgf@xa by 0.5522847\pgf@x%
|
| 293 |
+
\advance\pgf@ya by 0.5522847\pgf@y%
|
| 294 |
+
\edef\pgfprocess@addition{\noexpand\pgfsyssoftpath@curvetosupportatoken{\the\pgf@xa}{\the\pgf@ya}}%
|
| 295 |
+
\expandafter\pgfutil@g@addto@macro\expandafter\pgfprocess@segment\expandafter{\pgfprocess@addition}%
|
| 296 |
+
}%
|
| 297 |
+
{%
|
| 298 |
+
\pgf@x=\pgf@xb%
|
| 299 |
+
\pgf@y=\pgf@yb%
|
| 300 |
+
\advance\pgf@x by-\pgf@xc%
|
| 301 |
+
\advance\pgf@y by-\pgf@yc%
|
| 302 |
+
\advance\pgf@xc by 0.5522847\pgf@x%
|
| 303 |
+
\advance\pgf@yc by 0.5522847\pgf@y%
|
| 304 |
+
\edef\pgfprocess@addition{\noexpand\pgfsyssoftpath@curvetosupportbtoken{\the\pgf@xc}{\the\pgf@yc}}%
|
| 305 |
+
\expandafter\pgfutil@g@addto@macro\expandafter\pgfprocess@segment\expandafter{\pgfprocess@addition}%
|
| 306 |
+
}%
|
| 307 |
+
\edef\pgfprocess@addition{\noexpand\pgfsyssoftpath@curvetotoken{\the\pgf@xc}{\the\pgf@yc}}%
|
| 308 |
+
\expandafter\pgfutil@g@addto@macro\expandafter\pgfprocess@segment\expandafter{\pgfprocess@addition}%
|
| 309 |
+
\pgf@xa=#2%
|
| 310 |
+
\pgf@ya=#3%
|
| 311 |
+
\pgfprocess@continueafterrounding%
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
\def\pgfprocess@specialroundcurveto#1#2#3#4#5#6{%
|
| 315 |
+
\pgfutil@g@addto@macro\pgfprocess@segment{#1{#2}{#3}#4{#5}{#6}}%
|
| 316 |
+
\pgf@xa=#5%
|
| 317 |
+
\pgf@ya=#6%
|
| 318 |
+
\pgfprocess@specialroundcope}
|
| 319 |
+
|
| 320 |
+
\def\pgfprocess@specialroundclose{%
|
| 321 |
+
\let\next=\pgfprocess@round%
|
| 322 |
+
\ifx\pgfprocess@moveto\pgfutil@empty%
|
| 323 |
+
\else%
|
| 324 |
+
\ifx\pgfprocess@firstto\pgfutil@empty%
|
| 325 |
+
\else%
|
| 326 |
+
\expandafter\pgfprocess@@specialclosetarget\pgfprocess@firstto%
|
| 327 |
+
\let\pgfprocess@continueafterrounding=\pgfprocess@cleanupafterclose%
|
| 328 |
+
\edef\next{%
|
| 329 |
+
\noexpand\pgfprocess@@specialround%
|
| 330 |
+
\expandafter\expandafter\expandafter\noexpand\expandafter\pgfprocess@@specialclosemoveto\pgfprocess@moveto%
|
| 331 |
+
}%
|
| 332 |
+
\fi%
|
| 333 |
+
\fi%
|
| 334 |
+
\next%
|
| 335 |
+
}
|
| 336 |
+
|
| 337 |
+
\def\pgfprocess@@specialclosetarget#1#2{%
|
| 338 |
+
\pgf@xc=#1%
|
| 339 |
+
\pgf@yc=#2%
|
| 340 |
+
}
|
| 341 |
+
|
| 342 |
+
\def\pgfprocess@@specialclosemoveto#1#2#3{%
|
| 343 |
+
\pgfsyssoftpath@linetotoken{#2}{#3}%
|
| 344 |
+
}
|
| 345 |
+
|
| 346 |
+
|
| 347 |
+
\def\pgfprocess@cleanupafterclose#1#2#3{%
|
| 348 |
+
\edef\pgfprocess@moveto{\noexpand\pgfsyssoftpath@movetotoken{\the\pgf@xc}{\the\pgf@yc}}%
|
| 349 |
+
\edef\pgf@marshal{\noexpand\pgfprocess@round\noexpand\pgfsyssoftpath@closepathtoken{\the\pgf@xc}{\the\pgf@yc}}%
|
| 350 |
+
\pgf@marshal%
|
| 351 |
+
}
|
| 352 |
+
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
\def\pgfprocesspathreplacestartandend#1#2#3{%
|
| 356 |
+
\ifx#1\pgfutil@empty%
|
| 357 |
+
\else%
|
| 358 |
+
{%
|
| 359 |
+
\pgfsyssoftpath@getcurrentpath\pgf@replace@origpath%
|
| 360 |
+
\let\pgf@prepath=\pgfutil@empty%
|
| 361 |
+
\pgf@process{#3}%
|
| 362 |
+
\pgf@xa=\pgf@x%
|
| 363 |
+
\pgf@ya=\pgf@y%
|
| 364 |
+
\pgf@process{#2}%
|
| 365 |
+
\expandafter\pgf@replaceprocessfirst#1\pgf@stop%
|
| 366 |
+
\pgfsyssoftpath@getcurrentpath\pgf@restpath%
|
| 367 |
+
\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\gdef%
|
| 368 |
+
\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter#1%
|
| 369 |
+
\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter{%
|
| 370 |
+
\expandafter\expandafter\expandafter\pgf@prepath%
|
| 371 |
+
\expandafter\pgf@newstart\pgf@restpath}%
|
| 372 |
+
\pgfsyssoftpath@setcurrentpath\pgf@replace@origpath%
|
| 373 |
+
}%
|
| 374 |
+
\fi%
|
| 375 |
+
}
|
| 376 |
+
|
| 377 |
+
\def\pgf@replaceprocessfirst#1#2#3#4{%
|
| 378 |
+
\def\pgf@origstart{#1{#2}{#3}}%
|
| 379 |
+
\edef\pgf@newstart{\noexpand#1{\the\pgf@x}{\the\pgf@y}}%
|
| 380 |
+
\pgfsyssoftpath@setcurrentpath\pgfutil@empty%
|
| 381 |
+
\ifx#4\pgf@stop%
|
| 382 |
+
\let\pgf@next=\pgfutil@gobble%
|
| 383 |
+
\else%
|
| 384 |
+
\let\pgf@next=\pgf@replaceprocessother%
|
| 385 |
+
\let\pgf@@next=\pgf@@replaceprocessother%
|
| 386 |
+
\fi%
|
| 387 |
+
\pgf@next#4%
|
| 388 |
+
}
|
| 389 |
+
|
| 390 |
+
\def\pgf@replaceprocessother#1{%
|
| 391 |
+
\ifx#1\pgfsyssoftpath@movetotoken%
|
| 392 |
+
\pgf@replace@handle@move%
|
| 393 |
+
\fi%
|
| 394 |
+
\pgf@@next#1%
|
| 395 |
+
}
|
| 396 |
+
\def\pgf@@replaceprocessother#1#2#3#4{%
|
| 397 |
+
\ifx#4\pgf@stop%
|
| 398 |
+
\edef\pgf@restpathaddition{{\noexpand#1{\the\pgf@xa}{\the\pgf@ya}}}%
|
| 399 |
+
\expandafter\pgfsyssoftpath@addtocurrentpath\pgf@restpathaddition%
|
| 400 |
+
\let\pgf@next=\pgfutil@gobble%
|
| 401 |
+
\else%
|
| 402 |
+
\pgfsyssoftpath@addtocurrentpath{#1{#2}{#3}}%
|
| 403 |
+
\fi%
|
| 404 |
+
\pgf@next#4%
|
| 405 |
+
}
|
| 406 |
+
|
| 407 |
+
\def\pgf@replace@handle@move{%
|
| 408 |
+
\pgfsyssoftpath@getcurrentpath\pgf@restpath%
|
| 409 |
+
\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\gdef%
|
| 410 |
+
\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\pgf@prepath%
|
| 411 |
+
\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter{%
|
| 412 |
+
\expandafter\expandafter\expandafter\pgf@prepath%
|
| 413 |
+
\expandafter\pgf@origstart\pgf@restpath}%
|
| 414 |
+
\let\pgf@@next=\pgf@replaceprocessfirst%
|
| 415 |
+
}
|
| 416 |
+
|
| 417 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorepathusage.code.tex
ADDED
|
@@ -0,0 +1,510 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{pgfcorepathusage.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
\pgfkeys{
|
| 7 |
+
/pgf/stroke/.code=\let\pgf@up@stroke\pgf@up@stroke@text\pgf@up@path@neededtrue,
|
| 8 |
+
/pgf/draw/.code=\let\pgf@up@stroke\pgf@up@stroke@text\pgf@up@path@neededtrue,
|
| 9 |
+
/pgf/fill/.code=\let\pgf@up@fill\pgf@up@fill@text\pgf@up@path@neededtrue,
|
| 10 |
+
/pgf/clip/.code=\let\pgf@up@clip\pgf@up@clip@text\pgf@up@path@neededtrue,
|
| 11 |
+
/pgf/discard/.code=,
|
| 12 |
+
/pgf/use as bounding box/.code=\let\pgf@up@bb\pgf@do@up@bb,
|
| 13 |
+
/pgf/arrow keys/flex/.code=\pgferror{You need to say \string\usetikzlibrary{bending} for flexing and bending arrows},
|
| 14 |
+
/pgf/arrow keys/flex'/.code=\pgferror{You need to say \string\usetikzlibrary{bending} for flexing and bending arrows},
|
| 15 |
+
/pgf/arrow keys/bend/.code=\pgferror{You need to say \string\usetikzlibrary{bending} for flexing and bending arrows},
|
| 16 |
+
/pgf/arrow keys/quick/.code=\pgfarrowsaddtooptions{\let\pgf@arrow@flex@mode\pgf@arrow@mode@is@quick},
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
\pgfkeys{
|
| 20 |
+
/pgf/.cd,
|
| 21 |
+
tips/.is choice,
|
| 22 |
+
tips/.default=true,
|
| 23 |
+
tips/proper/.code=\let\pgf@tips@mode\pgf@tips@mode@onproper,
|
| 24 |
+
tips/on proper draw/.code=\let\pgf@tips@mode\pgf@tips@mode@onproperdraw,
|
| 25 |
+
tips/true/.code=\let\pgf@tips@mode\pgf@tips@mode@true,
|
| 26 |
+
tips/on draw/.code=\let\pgf@tips@mode\pgf@tips@mode@ondraw,
|
| 27 |
+
tips/never/.code=\let\pgf@tips@mode\pgf@tips@mode@false,
|
| 28 |
+
tips/false/.code=\let\pgf@tips@mode\pgf@tips@mode@false,
|
| 29 |
+
}
|
| 30 |
+
\def\pgf@tips@mode@onproper{4}
|
| 31 |
+
\def\pgf@tips@mode@onproperdraw{3}
|
| 32 |
+
\def\pgf@tips@mode@true{2}
|
| 33 |
+
\def\pgf@tips@mode@ondraw{1}
|
| 34 |
+
\def\pgf@tips@mode@false{0}
|
| 35 |
+
\let\pgf@tips@mode\pgf@tips@mode@ondraw
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
\newif\ifpgf@precise@shortening
|
| 39 |
+
\def\pgf@arrow@mode@is@quick{0}
|
| 40 |
+
\let\pgf@arrow@flex@mode\pgf@arrow@mode@is@quick
|
| 41 |
+
|
| 42 |
+
\newif\ifpgf@up@path@needed
|
| 43 |
+
\newif\ifpgf@up@draw@arrows
|
| 44 |
+
\def\pgf@up@stroke@text{stroke}
|
| 45 |
+
\def\pgf@up@fill@text{fill}
|
| 46 |
+
\def\pgf@up@clip@text{clip}
|
| 47 |
+
\def\pgf@do@up@bb{\pgf@relevantforpicturesizefalse}
|
| 48 |
+
|
| 49 |
+
\def\pgfusepath#1{%
|
| 50 |
+
\pgf@up@path@neededfalse%
|
| 51 |
+
\pgf@up@draw@arrowsfalse%
|
| 52 |
+
\let\pgf@up@stroke\pgfutil@empty%
|
| 53 |
+
\let\pgf@up@fill\pgfutil@empty%
|
| 54 |
+
\let\pgf@up@clip\pgfutil@empty%
|
| 55 |
+
\let\pgf@up@bb\pgfutil@empty%
|
| 56 |
+
\pgfset{#1}%
|
| 57 |
+
\expandafter\def\expandafter\pgf@up@action\expandafter{\csname pgfsys@\pgf@up@fill\pgf@up@stroke\endcsname}%
|
| 58 |
+
\ifnum\pgf@tips@mode=2\relax%
|
| 59 |
+
\pgf@up@path@neededtrue%
|
| 60 |
+
\fi%
|
| 61 |
+
\ifnum\pgf@tips@mode=4\relax%
|
| 62 |
+
\pgf@up@path@neededtrue%
|
| 63 |
+
\fi%
|
| 64 |
+
\ifpgf@up@path@needed%
|
| 65 |
+
\else%
|
| 66 |
+
\pgfsyssoftpath@setcurrentpath\pgfutil@empty%
|
| 67 |
+
\fi%
|
| 68 |
+
\ifx\pgf@up@stroke\pgfutil@empty%
|
| 69 |
+
\ifx\pgf@up@fill\pgfutil@empty%
|
| 70 |
+
\let\pgf@up@action=\pgfutil@empty%
|
| 71 |
+
\ifx\pgf@up@clip\pgfutil@empty%
|
| 72 |
+
\else%
|
| 73 |
+
\let\pgf@up@action=\pgfsys@discardpath%
|
| 74 |
+
\fi%
|
| 75 |
+
\fi%
|
| 76 |
+
\fi%
|
| 77 |
+
\pgfsyssoftpath@getcurrentpath\pgf@last@processed@path
|
| 78 |
+
\pgfprocessround{\pgf@last@processed@path}{\pgf@last@processed@path}%
|
| 79 |
+
\pgfsyssoftpath@setcurrentpath\pgf@last@processed@path%
|
| 80 |
+
\ifpgf@relevantforpicturesize%
|
| 81 |
+
\ifx\pgf@up@stroke\pgfutil@empty%
|
| 82 |
+
\else%
|
| 83 |
+
\ifdim\pgf@picmaxx=-16000pt\relax%
|
| 84 |
+
\else%
|
| 85 |
+
\pgf@x=\pgf@pathminx\advance\pgf@x by-.5\pgflinewidth%
|
| 86 |
+
\ifdim\pgf@x<\pgf@picminx\global\pgf@picminx\pgf@x\fi%
|
| 87 |
+
\pgf@y=\pgf@pathminy\advance\pgf@y by-.5\pgflinewidth%
|
| 88 |
+
\ifdim\pgf@y<\pgf@picminy\global\pgf@picminy\pgf@y\fi%
|
| 89 |
+
\pgf@x=\pgf@pathmaxx\advance\pgf@x by.5\pgflinewidth%
|
| 90 |
+
\ifdim\pgf@x>\pgf@picmaxx\global\pgf@picmaxx\pgf@x\fi%
|
| 91 |
+
\pgf@y=\pgf@pathmaxy\advance\pgf@y by.5\pgflinewidth%
|
| 92 |
+
\ifdim\pgf@y>\pgf@picmaxy\global\pgf@picmaxy\pgf@y\fi%
|
| 93 |
+
\fi%
|
| 94 |
+
\fi%
|
| 95 |
+
\fi%
|
| 96 |
+
\ifx\pgf@up@clip\pgfutil@empty%
|
| 97 |
+
\ifx\pgf@up@stroke\pgfutil@empty%
|
| 98 |
+
\ifx\pgf@up@action\pgfutil@empty%
|
| 99 |
+
\ifnum\pgf@tips@mode=2\relax%
|
| 100 |
+
\pgf@up@draw@arrows@only%
|
| 101 |
+
\fi%
|
| 102 |
+
\ifnum\pgf@tips@mode=4\relax%
|
| 103 |
+
\pgf@up@draw@arrows@only%
|
| 104 |
+
\fi%
|
| 105 |
+
\else%
|
| 106 |
+
\pgfsyssoftpath@invokecurrentpath%
|
| 107 |
+
\pgf@up@action%
|
| 108 |
+
\fi%
|
| 109 |
+
\else%
|
| 110 |
+
\pgfgetpath\pgf@arrowpath%
|
| 111 |
+
\pgf@path@setup@tempswa%
|
| 112 |
+
\pgfprocesscheckclosed{\pgf@arrowpath}{\pgfutil@tempswafalse}%
|
| 113 |
+
\pgf@path@check@proper%
|
| 114 |
+
\ifpgfutil@tempswa%
|
| 115 |
+
\pgf@check@for@arrow@and@animation%
|
| 116 |
+
\pgf@prepare@end@of@path%
|
| 117 |
+
\begingroup%
|
| 118 |
+
\pgf@prepare@start@of@path%
|
| 119 |
+
\fi%
|
| 120 |
+
\pgfsyssoftpath@invokecurrentpath%
|
| 121 |
+
\pgf@up@action%
|
| 122 |
+
\ifdim\pgfinnerlinewidth>0pt\relax%
|
| 123 |
+
\pgf@stroke@inner@line%
|
| 124 |
+
\fi%
|
| 125 |
+
\ifpgfutil@tempswa%
|
| 126 |
+
\pgf@add@arrow@at@start%
|
| 127 |
+
\endgroup%
|
| 128 |
+
\pgf@add@arrow@at@end%
|
| 129 |
+
\fi%
|
| 130 |
+
\fi%
|
| 131 |
+
\else%
|
| 132 |
+
\pgfsyssoftpath@invokecurrentpath%
|
| 133 |
+
\pgfsys@clipnext%
|
| 134 |
+
\pgf@up@action%
|
| 135 |
+
\pgf@relevantforpicturesizefalse%
|
| 136 |
+
\fi%
|
| 137 |
+
\pgf@up@bb%
|
| 138 |
+
\pgfsyssoftpath@setcurrentpath\pgfutil@empty%
|
| 139 |
+
\pgf@resetpathsizes%
|
| 140 |
+
\ignorespaces%
|
| 141 |
+
}
|
| 142 |
+
\def\pgf@path@setup@tempswa{%
|
| 143 |
+
\ifnum\pgf@tips@mode>0\relax
|
| 144 |
+
\pgfutil@tempswatrue%
|
| 145 |
+
\else
|
| 146 |
+
\pgfutil@tempswafalse%
|
| 147 |
+
\fi%
|
| 148 |
+
}
|
| 149 |
+
\def\pgf@up@draw@arrows@only{%
|
| 150 |
+
\pgfgetpath\pgf@arrowpath%
|
| 151 |
+
\pgfutil@tempswatrue%
|
| 152 |
+
\pgfprocesscheckclosed{\pgf@arrowpath}{\pgfutil@tempswafalse}%
|
| 153 |
+
\pgf@path@check@proper%
|
| 154 |
+
\ifpgfutil@tempswa%
|
| 155 |
+
\pgf@check@for@arrow@and@animation%
|
| 156 |
+
\pgf@prepare@end@of@path%
|
| 157 |
+
\begingroup%
|
| 158 |
+
\pgf@prepare@start@of@path%
|
| 159 |
+
\pgf@add@arrow@at@start%
|
| 160 |
+
\endgroup%
|
| 161 |
+
\pgf@add@arrow@at@end%
|
| 162 |
+
\fi%
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
\def\pgf@check@for@arrow@and@animation{\pgfsys@if@fresh@currentid{\pgf@check@for@arrow@and@animation@}{}}%
|
| 166 |
+
\def\pgf@check@for@arrow@and@animation@{%
|
| 167 |
+
\expandafter\ifx\csname pgfsysanim@path@is@animated@\pgf@sys@id@current@id @\pgfsys@current@type\endcsname\pgfutil@empty%
|
| 168 |
+
\ifx\pgf@end@tip@sequence\pgfutil@empty%
|
| 169 |
+
\ifx\pgf@start@tip@sequence\pgfutil@empty%
|
| 170 |
+
\else%
|
| 171 |
+
\pgf@check@for@arrow@and@animation@error%
|
| 172 |
+
\fi%
|
| 173 |
+
\else%
|
| 174 |
+
\pgf@check@for@arrow@and@animation@error%
|
| 175 |
+
\fi%
|
| 176 |
+
\fi%
|
| 177 |
+
}
|
| 178 |
+
\def\pgf@check@for@arrow@and@animation@error{\pgferror{Animated path may not have normal arrow tips. Use a base path with arrow tips}}
|
| 179 |
+
|
| 180 |
+
\def\pgf@path@check@proper{%
|
| 181 |
+
\ifpgfutil@tempswa%
|
| 182 |
+
\ifnum\pgf@tips@mode>2\relax%
|
| 183 |
+
\pgf@path@check@proper@%
|
| 184 |
+
\fi%
|
| 185 |
+
\fi%
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
\def\pgf@path@check@proper@{%
|
| 189 |
+
{%
|
| 190 |
+
\pgf@x0pt\pgf@y\pgf@x%
|
| 191 |
+
\pgfutil@tempswatrue%
|
| 192 |
+
\let\pgfsyssoftpath@movetotoken\pgf@path@proper@init%
|
| 193 |
+
\let\pgfsyssoftpath@linetotoken\pgf@path@proper@test%
|
| 194 |
+
\let\pgfsyssoftpath@curvetosupportatoken\pgf@path@proper@test%
|
| 195 |
+
\let\pgfsyssoftpath@curvetosupportbtoken=\pgf@path@proper@test%
|
| 196 |
+
\let\pgfsyssoftpath@curvetotoken\pgf@path@proper@test%
|
| 197 |
+
\let\pgfsyssoftpath@rectcornertoken\pgf@path@proper@test%
|
| 198 |
+
\let\pgfsyssoftpath@rectsizetoken\pgf@path@proper@zero@test%
|
| 199 |
+
\let\pgfsyssoftpath@closepathtoken\pgf@path@proper@test%
|
| 200 |
+
\pgf@arrowpath%
|
| 201 |
+
\expandafter
|
| 202 |
+
}%
|
| 203 |
+
\ifpgfutil@tempswa\pgfutil@tempswafalse\else\pgfutil@tempswatrue\fi%
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
\def\pgf@path@proper@init#1#2{\pgfutil@tempswatrue\pgf@x#1\pgf@y#2}%
|
| 207 |
+
\def\pgf@path@proper@test#1#2{%
|
| 208 |
+
\ifdim\pgf@x=#1\relax\else\pgfutil@tempswafalse\fi%
|
| 209 |
+
\ifdim\pgf@y=#2\relax\else\pgfutil@tempswafalse\fi}
|
| 210 |
+
\def\pgf@path@proper@zero@test#1#2{%
|
| 211 |
+
\ifdim\pgf@x=0pt\relax\else\pgfutil@tempswafalse\fi%
|
| 212 |
+
\ifdim\pgf@y=0pt\relax\else\pgfutil@tempswafalse\fi}
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
\def\pgf@stroke@inner@line{%
|
| 218 |
+
\let\pgf@temp@save=\pgf@strokecolor@global
|
| 219 |
+
\pgfsys@beginscope%
|
| 220 |
+
{%
|
| 221 |
+
\pgfsys@setlinewidth{\pgfinnerlinewidth}%
|
| 222 |
+
\pgfsetstrokecolor{\pgfinnerstrokecolor}%
|
| 223 |
+
\pgfsyssoftpath@invokecurrentpath%
|
| 224 |
+
\pgfsys@stroke%
|
| 225 |
+
}%
|
| 226 |
+
\pgfsys@endscope%
|
| 227 |
+
\global\let\pgf@strokecolor@global=\pgf@temp@save
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
\let\pgf@prepare@start@of@path\relax%
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
|
| 235 |
+
|
| 236 |
+
\def\pgfsetshortenstart#1{\pgfmathsetlength\pgf@shorten@start@additional{#1}}
|
| 237 |
+
\def\pgfsetshortenend#1{\pgfmathsetlength\pgf@shorten@end@additional{#1}}
|
| 238 |
+
|
| 239 |
+
\newdimen\pgf@shorten@end@additional
|
| 240 |
+
\newdimen\pgf@shorten@start@additional
|
| 241 |
+
|
| 242 |
+
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
\newif\ifpgf@worry
|
| 246 |
+
|
| 247 |
+
|
| 248 |
+
|
| 249 |
+
\def\pgf@prepare@end@of@path{%
|
| 250 |
+
\let\pgfprocessresultpathsuffix\relax%
|
| 251 |
+
\let\pgfprocessresultsubpathsuffix\relax%
|
| 252 |
+
\pgfsyssoftpath@getcurrentpath\pgf@arrowpath%
|
| 253 |
+
\ifx\pgf@arrowpath\pgfutil@empty\else%
|
| 254 |
+
\pgf@worryfalse%
|
| 255 |
+
\ifx\pgf@end@tip@sequence\pgfutil@empty%
|
| 256 |
+
\else%
|
| 257 |
+
\pgf@worrytrue%
|
| 258 |
+
\fi%
|
| 259 |
+
\pgf@precise@shorteningfalse%
|
| 260 |
+
\pgf@arrow@compute@shortening\pgf@end@tip@sequence%
|
| 261 |
+
\advance\pgf@xa by\pgf@shorten@end@additional%
|
| 262 |
+
\advance\pgf@xb by\pgf@shorten@end@additional%
|
| 263 |
+
\ifdim\pgf@xa=0pt\relax\else\pgf@worrytrue\fi%
|
| 264 |
+
\edef\pgf@path@shortening@distance{\the\pgf@xa}%
|
| 265 |
+
\edef\pgf@arrow@tip@total@length{\the\pgf@xb}%
|
| 266 |
+
\ifpgf@worry%
|
| 267 |
+
\pgfprocesssplitpath{\pgf@arrowpath}%
|
| 268 |
+
\pgfprocesssplitsubpath{\pgfprocessresultpathsuffix}%
|
| 269 |
+
\expandafter\pgf@parse@end\pgfprocessresultsubpathsuffix\pgf@stop\pgf@stop\pgf@stop%
|
| 270 |
+
\pgf@prep@end%
|
| 271 |
+
\ifdim\pgf@path@shortening@distance=0pt\else\pgf@do@shorten@end\fi%
|
| 272 |
+
\expandafter\expandafter\expandafter\def%
|
| 273 |
+
\expandafter\expandafter\expandafter\pgf@arrowpath%
|
| 274 |
+
\expandafter\expandafter\expandafter{\expandafter\pgfprocessresultpathprefix\pgfprocessresultpathsuffix}%
|
| 275 |
+
\pgfsyssoftpath@setcurrentpath\pgf@arrowpath%
|
| 276 |
+
\fi%
|
| 277 |
+
\fi%
|
| 278 |
+
}
|
| 279 |
+
|
| 280 |
+
\def\pgf@parse@end#1#2#3#4#5#6{%
|
| 281 |
+
\ifx#4\pgf@stop%
|
| 282 |
+
\def\pgfpointlastonpath{\pgfqpoint{#2}{#3}}%
|
| 283 |
+
\let\pgf@next\relax%
|
| 284 |
+
\let\pgf@do@shorten@end\relax%
|
| 285 |
+
\let\pgf@do@draw@end\pgf@do@draw@straightend%
|
| 286 |
+
\let\pgf@prep@end\pgf@prep@movetoend%
|
| 287 |
+
\else\ifx#4\pgfsyssoftpath@curvetosupportatoken%
|
| 288 |
+
\def\pgfsubpathfourthlasttoken{#1}%
|
| 289 |
+
\def\pgfpointfourthlastonpath{\pgfqpoint{#2}{#3}}%
|
| 290 |
+
\def\pgfpointthirdlastonpath{\pgfqpoint{#5}{#6}}%
|
| 291 |
+
\ifpgf@precise@shortening%
|
| 292 |
+
\let\pgf@do@shorten@end\pgf@do@shorten@curvedend%
|
| 293 |
+
\let\pgf@do@draw@end\pgf@do@draw@curvedend%
|
| 294 |
+
\let\pgf@prep@end\pgf@prep@curveend%
|
| 295 |
+
\else%
|
| 296 |
+
\def\pgfsubpathstart{\noexpand#1{#2}{#3}\noexpand#4{#5}{#6}}%
|
| 297 |
+
\let\pgf@do@shorten@end\pgf@do@shorten@straightend%
|
| 298 |
+
\let\pgf@do@draw@end\pgf@do@draw@straightend%
|
| 299 |
+
\let\pgf@prep@end\pgf@prep@straightend%
|
| 300 |
+
\fi%
|
| 301 |
+
\let\pgf@next\pgf@parse@end@curve@cont%
|
| 302 |
+
\else%
|
| 303 |
+
\def\pgfsubpathstart{\noexpand#1{#2}{#3}\noexpand#4}%
|
| 304 |
+
\def\pgfpointsecondlastonpath{\pgfqpoint{#2}{#3}}%
|
| 305 |
+
\def\pgfpointlastonpath{\pgfqpoint{#5}{#6}}%
|
| 306 |
+
\let\pgfpointfourthlastonpath\relax%
|
| 307 |
+
\let\pgfpointthirdlastonpath\relax%
|
| 308 |
+
\let\pgf@next\pgf@parse@end@gobble@three%
|
| 309 |
+
\let\pgf@do@shorten@end\pgf@do@shorten@straightend%
|
| 310 |
+
\let\pgf@do@draw@end\pgf@do@draw@straightend%
|
| 311 |
+
\let\pgf@prep@end\pgf@prep@straightend%
|
| 312 |
+
\fi\fi%
|
| 313 |
+
\pgf@next%
|
| 314 |
+
}
|
| 315 |
+
|
| 316 |
+
\def\pgf@parse@end@gobble@three#1#2#3{}%
|
| 317 |
+
\def\pgf@parse@end@curve@cont#1#2#3#4#5#6#7#8#9{%
|
| 318 |
+
\def\pgfpointsecondlastonpath{\pgfqpoint{#2}{#3}}%
|
| 319 |
+
\def\pgfpointlastonpath{\pgfqpoint{#5}{#6}}%
|
| 320 |
+
\ifpgf@precise@shortening%
|
| 321 |
+
\else%
|
| 322 |
+
\expandafter\def\expandafter\pgfsubpathstart\expandafter{\pgfsubpathstart\noexpand#1{#2}{#3}\noexpand#4}%
|
| 323 |
+
\fi%
|
| 324 |
+
}
|
| 325 |
+
|
| 326 |
+
\def\pgf@prep@movetoend{%
|
| 327 |
+
\pgf@process{\pgfpointlastonpath}%
|
| 328 |
+
\pgf@xb\pgf@x
|
| 329 |
+
\pgf@yb\pgf@y
|
| 330 |
+
\pgf@xc\pgf@x
|
| 331 |
+
\pgf@yc\pgf@y
|
| 332 |
+
}
|
| 333 |
+
\def\pgf@prep@straightend{%
|
| 334 |
+
\let\pgf@ref\pgfpointsecondlastonpath
|
| 335 |
+
\ifx\pgfpointlastonpath\pgfpointsecondlastonpath%
|
| 336 |
+
\ifx\pgfpointthirdlastonpath\relax%
|
| 337 |
+
\else%
|
| 338 |
+
\ifx\pgfpointlastonpath\pgfpointthirdlastonpath%
|
| 339 |
+
\let\pgf@ref\pgfpointfourthlastonpath%
|
| 340 |
+
\else
|
| 341 |
+
\let\pgf@ref\pgfpointthirdlastonpath%
|
| 342 |
+
\fi%
|
| 343 |
+
\fi%
|
| 344 |
+
\fi%
|
| 345 |
+
\pgfpointlineatdistance{\pgf@path@shortening@distance}{\pgfpointlastonpath}{\pgf@ref}%
|
| 346 |
+
\pgf@xa\pgf@x%
|
| 347 |
+
\pgf@ya\pgf@y%
|
| 348 |
+
}
|
| 349 |
+
|
| 350 |
+
|
| 351 |
+
\def\pgf@do@shorten@straightend{%
|
| 352 |
+
\edef\pgfprocessresultsubpathsuffix{\pgfsubpathstart{\the\pgf@xa}{\the\pgf@ya}}%
|
| 353 |
+
\expandafter\expandafter\expandafter\def%
|
| 354 |
+
\expandafter\expandafter\expandafter\pgfprocessresultpathsuffix%
|
| 355 |
+
\expandafter\expandafter\expandafter{\expandafter\pgfprocessresultsubpathprefix\pgfprocessresultsubpathsuffix}%
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
|
| 360 |
+
\def\pgf@add@arrow@at@end{%
|
| 361 |
+
\ifx\pgf@arrowpath\pgfutil@empty\else%
|
| 362 |
+
\ifx\pgf@end@tip@sequence\pgfutil@empty\else%
|
| 363 |
+
\pgf@do@draw@end%
|
| 364 |
+
\fi%
|
| 365 |
+
\fi%
|
| 366 |
+
}
|
| 367 |
+
|
| 368 |
+
\def\pgf@do@draw@straightend{%
|
| 369 |
+
{%
|
| 370 |
+
\pgftransformreset%
|
| 371 |
+
\pgftransformarrow{\pgfqpoint{\pgf@xc}{\pgf@yc}}{\pgfqpoint{\pgf@xb}{\pgf@yb}}%
|
| 372 |
+
\pgf@arrow@draw@arrow\pgf@end@tip@sequence\pgf@arrow@tip@total@length%
|
| 373 |
+
}%
|
| 374 |
+
}
|
| 375 |
+
|
| 376 |
+
|
| 377 |
+
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
|
| 381 |
+
|
| 382 |
+
\def\pgf@prepare@start@of@path{%
|
| 383 |
+
\ifx\pgf@arrowpath\pgfutil@empty\else%
|
| 384 |
+
\pgf@worryfalse%
|
| 385 |
+
\ifx\pgf@start@tip@sequence\pgfutil@empty\else\pgf@worrytrue\fi%
|
| 386 |
+
\pgf@precise@shorteningfalse%
|
| 387 |
+
\pgf@arrow@compute@shortening\pgf@start@tip@sequence%
|
| 388 |
+
\advance\pgf@xa by\pgf@shorten@start@additional%
|
| 389 |
+
\advance\pgf@xb by\pgf@shorten@start@additional%
|
| 390 |
+
\ifdim\pgf@xa=0pt\relax\else\pgf@worrytrue\fi%
|
| 391 |
+
\edef\pgf@path@shortening@distance{\the\pgf@xa}%
|
| 392 |
+
\edef\pgf@arrow@tip@total@length{\the\pgf@xb}%
|
| 393 |
+
\ifpgf@worry%
|
| 394 |
+
\ifx\pgfprocessresultpathsuffix\relax%
|
| 395 |
+
\pgfprocesssplitpath{\pgf@arrowpath}%
|
| 396 |
+
\fi%
|
| 397 |
+
\expandafter\pgf@parse@start\pgfprocessresultpathsuffix\pgf@stop\pgf@stop\pgf@stop%
|
| 398 |
+
\pgf@prep@start%
|
| 399 |
+
\ifdim\pgf@path@shortening@distance=0pt\else\pgf@do@shorten@start\fi%
|
| 400 |
+
\expandafter\expandafter\expandafter\def%
|
| 401 |
+
\expandafter\expandafter\expandafter\pgf@arrowpath%
|
| 402 |
+
\expandafter\expandafter\expandafter{\expandafter\pgfprocessresultpathprefix\pgfprocessresultpathsuffix}%
|
| 403 |
+
\pgfsyssoftpath@setcurrentpath\pgf@arrowpath%
|
| 404 |
+
\fi%
|
| 405 |
+
\fi%
|
| 406 |
+
}
|
| 407 |
+
|
| 408 |
+
\def\pgf@parse@start#1#2#3#4#5#6{%
|
| 409 |
+
\def\pgfpointfirstonpath{\pgfqpoint{#2}{#3}}%
|
| 410 |
+
\def\pgfpointsecondonpath{\pgfqpoint{#5}{#6}}%
|
| 411 |
+
\let\pgfpointthirdonpath\relax%
|
| 412 |
+
\let\pgfpointfourthonpath\relax%
|
| 413 |
+
\def\pgfsubpathfirsttoken{\noexpand#1}%
|
| 414 |
+
\def\pgfsubpathsecondtoken{\noexpand#4}%
|
| 415 |
+
\ifx#4\pgf@stop%
|
| 416 |
+
\let\pgf@next\relax%
|
| 417 |
+
\let\pgf@do@shorten@start\relax%
|
| 418 |
+
\let\pgf@prep@start\pgf@prep@movetostart%
|
| 419 |
+
\let\pgf@do@draw@start\pgf@do@draw@straightstart%
|
| 420 |
+
\else\ifx#4\pgfsyssoftpath@curvetosupportatoken%
|
| 421 |
+
\ifpgf@precise@shortening%
|
| 422 |
+
\let\pgf@next\pgf@parse@start@curve@cont%
|
| 423 |
+
\let\pgf@do@shorten@start\pgf@do@shorten@curvedstart%
|
| 424 |
+
\let\pgf@do@draw@start\pgf@do@draw@curvedstart%
|
| 425 |
+
\let\pgf@prep@start\pgf@prep@curvedstart%
|
| 426 |
+
\else%
|
| 427 |
+
\let\pgf@next\pgf@parse@start@curve@cont@straight%
|
| 428 |
+
\let\pgf@do@shorten@start\pgf@do@shorten@straightstart%
|
| 429 |
+
\let\pgf@do@draw@start\pgf@do@draw@straightstart%
|
| 430 |
+
\let\pgf@prep@start\pgf@prep@straightstart%
|
| 431 |
+
\fi%
|
| 432 |
+
\else%
|
| 433 |
+
\let\pgf@next\pgf@parse@start@till@stop%
|
| 434 |
+
\let\pgf@do@shorten@start\pgf@do@shorten@straightstart%
|
| 435 |
+
\let\pgf@do@draw@start\pgf@do@draw@straightstart%
|
| 436 |
+
\let\pgf@prep@start\pgf@prep@straightstart%
|
| 437 |
+
\fi\fi%
|
| 438 |
+
\pgf@next%
|
| 439 |
+
}
|
| 440 |
+
|
| 441 |
+
\def\pgf@parse@start@till@stop#1\pgf@stop\pgf@stop\pgf@stop{\def\pgfsubpathend{#1}}%
|
| 442 |
+
|
| 443 |
+
\def\pgf@parse@start@curve@cont#1#2#3#4#5#6#7\pgf@stop\pgf@stop\pgf@stop{%
|
| 444 |
+
\def\pgfpointthirdonpath{\pgfqpoint{#2}{#3}}%
|
| 445 |
+
\def\pgfpointfourthonpath{\pgfqpoint{#5}{#6}}%
|
| 446 |
+
\def\pgfsubpathend{#7}%
|
| 447 |
+
}
|
| 448 |
+
|
| 449 |
+
\def\pgf@parse@start@curve@cont@straight#1#2#3#4#5#6#7\pgf@stop\pgf@stop\pgf@stop{%
|
| 450 |
+
\def\pgfpointthirdonpath{\pgfqpoint{#2}{#3}}%
|
| 451 |
+
\def\pgfpointfourthonpath{\pgfqpoint{#5}{#6}}%
|
| 452 |
+
\def\pgfsubpathend{#1{#2}{#3}#4{#5}{#6}#7}%
|
| 453 |
+
}
|
| 454 |
+
|
| 455 |
+
\def\pgf@prep@movetostart{%
|
| 456 |
+
\pgf@process{\pgfpointfirstonpath}%
|
| 457 |
+
\pgf@xb\pgf@x
|
| 458 |
+
\pgf@yb\pgf@y
|
| 459 |
+
\pgf@xc\pgf@x
|
| 460 |
+
\pgf@yc\pgf@y
|
| 461 |
+
}
|
| 462 |
+
\def\pgf@prep@straightstart{%
|
| 463 |
+
\let\pgf@ref\pgfpointsecondonpath
|
| 464 |
+
\ifx\pgfpointfirstonpath\pgfpointsecondonpath%
|
| 465 |
+
\ifx\pgfpointthirdonpath\relax%
|
| 466 |
+
\else%
|
| 467 |
+
\ifx\pgfpointfirstonpath\pgfpointthirdonpath%
|
| 468 |
+
\let\pgf@ref\pgfpointfourthonpath%
|
| 469 |
+
\else
|
| 470 |
+
\let\pgf@ref\pgfpointthirdonpath%
|
| 471 |
+
\fi%
|
| 472 |
+
\fi%
|
| 473 |
+
\fi%
|
| 474 |
+
\pgfpointlineatdistance{\pgf@path@shortening@distance}{\pgfpointfirstonpath}{\pgf@ref}%
|
| 475 |
+
\pgf@xa\pgf@x%
|
| 476 |
+
\pgf@ya\pgf@y%
|
| 477 |
+
}
|
| 478 |
+
|
| 479 |
+
\def\pgf@do@shorten@straightstart{%
|
| 480 |
+
\edef\pgfprocessresultpathsuffix{\pgfsubpathfirsttoken{\the\pgf@xa}{\the\pgf@ya}\pgfsubpathsecondtoken{\the\pgf@xc}{\the\pgf@yc}}%
|
| 481 |
+
\expandafter\expandafter\expandafter\def%
|
| 482 |
+
\expandafter\expandafter\expandafter\pgfprocessresultpathsuffix%
|
| 483 |
+
\expandafter\expandafter\expandafter{\expandafter\pgfprocessresultpathsuffix\pgfsubpathend}%
|
| 484 |
+
}
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
|
| 488 |
+
\def\pgf@add@arrow@at@start{%
|
| 489 |
+
\ifx\pgf@arrowpath\pgfutil@empty\else%
|
| 490 |
+
\ifx\pgf@start@tip@sequence\pgfutil@empty\else%
|
| 491 |
+
\pgf@do@draw@start%
|
| 492 |
+
\fi%
|
| 493 |
+
\fi%
|
| 494 |
+
}
|
| 495 |
+
|
| 496 |
+
\def\pgf@do@draw@straightstart{%
|
| 497 |
+
{%
|
| 498 |
+
\pgftransformreset%
|
| 499 |
+
\pgftransformarrow{\pgfqpoint{\pgf@xc}{\pgf@yc}}{\pgfqpoint{\pgf@xb}{\pgf@yb}}%
|
| 500 |
+
\pgf@arrow@draw@arrow\pgf@start@tip@sequence\pgf@arrow@tip@total@length%
|
| 501 |
+
}%
|
| 502 |
+
}
|
| 503 |
+
|
| 504 |
+
|
| 505 |
+
|
| 506 |
+
\let\pgf@shorten@end=\pgfutil@empty
|
| 507 |
+
\let\pgf@shorten@start=\pgfutil@empty
|
| 508 |
+
|
| 509 |
+
|
| 510 |
+
\endinput%
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{pgfcorepatterns.code.tex}
|
| 3 |
+
|
| 4 |
+
\def\pgfdeclarepatternformonly{%
|
| 5 |
+
\def\pgf@pattern@type{formonly}%
|
| 6 |
+
\pgfutil@ifnextchar[{\pgf@declarepattern@checkarg}{\pgf@declarepattern@checkarg[]}%
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
\def\pgfdeclarepatterninherentlycolored{%
|
| 11 |
+
\def\pgf@pattern@type{inherentlycolored}%
|
| 12 |
+
\pgfutil@ifnextchar[{\pgf@declarepattern@checkarg}{\pgf@declarepattern@checkarg[]}%
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
\def\pgf@declarepattern@checkarg[#1]{%
|
| 20 |
+
\def\pgf@pattern@tempvars{#1}%
|
| 21 |
+
\ifx\pgf@pattern@tempvars\pgfutil@empty%
|
| 22 |
+
\expandafter\let\expandafter\pgf@next\csname pgf@declarepattern\pgf@pattern@type\endcsname%
|
| 23 |
+
\else%
|
| 24 |
+
\expandafter\let\expandafter\pgf@next\csname pgf@declarepattern\pgf@pattern@type @mutable\endcsname%
|
| 25 |
+
\fi%
|
| 26 |
+
\pgf@next}
|
| 27 |
+
|
| 28 |
+
\long\def\pgf@declarepatternformonly#1#2#3#4#5{\pgf@declarepattern{#1}{#2}{#3}{#4}{#5}{0}}
|
| 29 |
+
|
| 30 |
+
\long\def\pgf@declarepatterninherentlycolored#1#2#3#4#5{\pgf@declarepattern{#1}{#2}{#3}{#4}{#5}{1}}
|
| 31 |
+
|
| 32 |
+
\long\def\pgf@declarepatternformonly@mutable#1#2#3#4#5{%
|
| 33 |
+
\def\pgf@marshal{\pgf@declarepatternmutable{#1}}%
|
| 34 |
+
\expandafter\pgf@marshal\expandafter{\pgf@pattern@tempvars}{#2}{#3}{#4}{#5}{2}%
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
\long\def\pgf@declarepatterninherentlycolored@mutable#1#2#3#4#5#6{%
|
| 38 |
+
\def\pgf@marshal{\pgf@declarepatternmutable{#1}}%
|
| 39 |
+
\expandafter\pgf@marshal\expandafter{\pgf@pattern@tempvars}{#2}{#3}{#4}{#5}{3}%
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
\def\pgfsys@patternmatrix{{1.0}{0.0}{0.0}{1.0}{0.0pt}{0.0pt}}
|
| 43 |
+
\def\pgf@declarepattern#1#2#3#4#5#6{%
|
| 44 |
+
\pgfutil@ifundefined{pgf@pattern@name@#1}{%
|
| 45 |
+
\pgfsysprotocol@getcurrentprotocol\pgf@pattern@temp%
|
| 46 |
+
{%
|
| 47 |
+
\pgfinterruptpath%
|
| 48 |
+
\pgfpicturetrue%
|
| 49 |
+
\pgf@relevantforpicturesizefalse%
|
| 50 |
+
\pgftransformreset%
|
| 51 |
+
\pgfsysprotocol@setcurrentprotocol\pgfutil@empty%
|
| 52 |
+
\pgfsysprotocol@bufferedtrue%
|
| 53 |
+
\pgfsys@beginscope%
|
| 54 |
+
\pgfsetarrows{-}%
|
| 55 |
+
#5%
|
| 56 |
+
\pgfsys@endscope%
|
| 57 |
+
\pgfsysprotocol@getcurrentprotocol\pgf@pattern@code%
|
| 58 |
+
\global\let\pgf@pattern@code=\pgf@pattern@code%
|
| 59 |
+
\endpgfinterruptpath%
|
| 60 |
+
\pgf@process{#2}%
|
| 61 |
+
\pgf@xa=\pgf@x%
|
| 62 |
+
\pgf@ya=\pgf@y%
|
| 63 |
+
\pgf@process{#3}%
|
| 64 |
+
\pgf@xb=\pgf@x%
|
| 65 |
+
\pgf@yb=\pgf@y%
|
| 66 |
+
\pgf@process{#4}%
|
| 67 |
+
\pgf@xc=\pgf@x%
|
| 68 |
+
\pgf@yc=\pgf@y%
|
| 69 |
+
\pgfutil@tempcnta=\pgf@pattern@number%
|
| 70 |
+
\advance\pgfutil@tempcnta by1\relax%
|
| 71 |
+
\xdef\pgf@pattern@number{\the\pgfutil@tempcnta}%
|
| 72 |
+
\expandafter\xdef\csname pgf@pattern@name@#1\endcsname{\the\pgfutil@tempcnta}%
|
| 73 |
+
\expandafter\gdef\csname pgf@pattern@type@#1\endcsname{#6}%
|
| 74 |
+
\xdef\pgf@marshal{\noexpand\pgfsys@declarepattern
|
| 75 |
+
{\csname pgf@pattern@name@#1\endcsname}%
|
| 76 |
+
{\the\pgf@xa}{\the\pgf@ya}{\the\pgf@xb}{\the\pgf@yb}%
|
| 77 |
+
{\the\pgf@xc}{\the\pgf@yc}%
|
| 78 |
+
\pgfsys@patternmatrix%
|
| 79 |
+
{\pgf@pattern@code}{#6}}%
|
| 80 |
+
}%
|
| 81 |
+
\pgfsysprotocol@setcurrentprotocol\pgf@pattern@temp%
|
| 82 |
+
\expandafter\global\expandafter\let\csname pgf@pattern@instantiate@#1\endcsname=\pgf@marshal%
|
| 83 |
+
}
|
| 84 |
+
{%
|
| 85 |
+
\pgferror{Pattern `#1' already defined}%
|
| 86 |
+
}%
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
\def\pgf@pattern@number{0}%
|
| 90 |
+
|
| 91 |
+
\def\pgf@declarepatternmutable#1#2#3#4#5#6#7{%
|
| 92 |
+
\pgfutil@ifundefined{pgf@pattern@name@#1}{%
|
| 93 |
+
\expandafter\gdef\csname pgf@pattern@name@#1\endcsname{#1}%
|
| 94 |
+
\expandafter\gdef\csname pgf@pattern@variables@#1\endcsname{#2}%
|
| 95 |
+
\expandafter\gdef\csname pgf@pattern@lowerleft@#1\endcsname{#3}%
|
| 96 |
+
\expandafter\gdef\csname pgf@pattern@upperright@#1\endcsname{#4}%
|
| 97 |
+
\expandafter\gdef\csname pgf@pattern@tilesize@#1\endcsname{#5}%
|
| 98 |
+
\expandafter\long\expandafter\gdef\csname pgf@pattern@code@#1\endcsname{#6}%
|
| 99 |
+
\expandafter\gdef\csname pgf@pattern@type@#1\endcsname{#7}%
|
| 100 |
+
}{\pgferror{The pattern `#1' is already defined}}%
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
\def\pgf@ifpatternisinherentlycolored#1#2#3{%
|
| 104 |
+
\expandafter\ifodd\csname pgf@pattern@type@#1\endcsname\relax#2\else#3\fi%
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
\def\pgf@ifpatternismutable#1#2#3{%
|
| 108 |
+
\expandafter\ifnum\csname pgf@pattern@type@#1\endcsname>1\relax#2\else#3\fi%
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
\def\pgfpatternreleasename#1{\expandafter\let\csname pgf@pattern@name@#1\endcsname\relax}
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
\def\pgfsetfillpattern#1#2{%
|
| 119 |
+
\pgfutil@ifundefined{pgf@pattern@name@#1}%
|
| 120 |
+
{%
|
| 121 |
+
\pgferror{Undefined pattern `#1'}%
|
| 122 |
+
}%
|
| 123 |
+
{%
|
| 124 |
+
\pgf@ifpatternismutable{#1}%
|
| 125 |
+
{%
|
| 126 |
+
\let\pgf@pattern@tempvars\pgfutil@empty%
|
| 127 |
+
\expandafter\expandafter\expandafter\pgf@pattern@check@vars%
|
| 128 |
+
\csname pgf@pattern@variables@#1\endcsname,\pgf@stop,%
|
| 129 |
+
\edef\pgf@pattern@nametemp{pgf@pattern@#1@\pgf@pattern@tempvars}%
|
| 130 |
+
\expandafter\pgfutil@ifundefined\expandafter{\pgf@pattern@nametemp}%
|
| 131 |
+
{%
|
| 132 |
+
\pgf@ifpatternisinherentlycolored{#1}%
|
| 133 |
+
{\let\pgf@set@fillpattern@declare\pgfdeclarepatterninherentlycolored}%
|
| 134 |
+
{\let\pgf@set@fillpattern@declare\pgfdeclarepatternformonly}%
|
| 135 |
+
\pgf@set@fillpattern@declare%
|
| 136 |
+
{\pgf@pattern@nametemp}%
|
| 137 |
+
{\csname pgf@pattern@lowerleft@#1\endcsname}%
|
| 138 |
+
{\csname pgf@pattern@upperright@#1\endcsname}%
|
| 139 |
+
{\csname pgf@pattern@tilesize@#1\endcsname}%
|
| 140 |
+
{\csname pgf@pattern@code@#1\endcsname}%
|
| 141 |
+
}%
|
| 142 |
+
{%
|
| 143 |
+
}%
|
| 144 |
+
\expandafter\pgf@set@fillpattern\expandafter{\pgf@pattern@nametemp}{#2}%
|
| 145 |
+
\expandafter\gdef\csname\pgf@pattern@nametemp\endcsname{#1}%
|
| 146 |
+
}%
|
| 147 |
+
{%
|
| 148 |
+
\pgf@set@fillpattern{#1}{#2}%
|
| 149 |
+
}%
|
| 150 |
+
}%
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
\def\pgf@set@fillpattern#1#2{%
|
| 155 |
+
\pgfutil@ifundefined{pgf@pattern@name@#1}{%
|
| 156 |
+
\pgferror{Undefined pattern `#1'}}
|
| 157 |
+
{%
|
| 158 |
+
\csname pgf@pattern@instantiate@#1\endcsname%
|
| 159 |
+
\expandafter\global\expandafter\let\csname pgf@pattern@instantiate@#1\endcsname=\relax%
|
| 160 |
+
\pgf@ifpatternisinherentlycolored{#1}{%
|
| 161 |
+
\pgfsys@setpatterncolored{\csname pgf@pattern@name@#1\endcsname}%
|
| 162 |
+
}{%
|
| 163 |
+
\pgfutil@colorlet{pgf@tempcolor}{#2}%
|
| 164 |
+
\pgfutil@ifundefined{applycolormixins}{}{\applycolormixins{pgf@tempcolor}}%
|
| 165 |
+
\pgfutil@extractcolorspec{pgf@tempcolor}{\pgf@tempcolor}%
|
| 166 |
+
\expandafter\pgfutil@convertcolorspec\pgf@tempcolor{rgb}{\pgf@rgbcolor}%
|
| 167 |
+
\expandafter\pgf@set@fill@patternuncolored\pgf@rgbcolor\relax{#1}%
|
| 168 |
+
}%
|
| 169 |
+
}%
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
\def\pgf@set@fill@patternuncolored#1,#2,#3\relax#4{%
|
| 173 |
+
\pgfsys@setpatternuncolored{\csname pgf@pattern@name@#4\endcsname}{#1}{#2}{#3}%
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
\def\pgf@pattern@check@vars#1,{%
|
| 177 |
+
\ifx#1\pgf@stop%
|
| 178 |
+
\let\pgf@next\relax%
|
| 179 |
+
\else%
|
| 180 |
+
\afterassignment\pgfmath@gobbletilpgfmath@%
|
| 181 |
+
\expandafter\let\expandafter\pgf@pattern@char#1#1\pgfmath@%
|
| 182 |
+
\ifx\pgf@pattern@char/%
|
| 183 |
+
\edef\pgf@pattern@tempvar{(\pgfkeysvalueof{#1})}%
|
| 184 |
+
\else%
|
| 185 |
+
\expandafter\ifcat\pgf@pattern@char\relax%
|
| 186 |
+
\edef\pgf@pattern@tempvar{(\the#1)}%
|
| 187 |
+
\else%
|
| 188 |
+
\edef\pgf@pattern@tempvar{(#1)}%
|
| 189 |
+
\fi%
|
| 190 |
+
\fi%
|
| 191 |
+
\edef\pgf@pattern@tempvars{\pgf@pattern@tempvars\pgf@pattern@tempvar}%
|
| 192 |
+
\let\pgf@next\pgf@pattern@check@vars%
|
| 193 |
+
\fi%
|
| 194 |
+
\pgf@next%
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex
ADDED
|
@@ -0,0 +1,724 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 2 |
+
\ProvidesFileRCS{pgfcorepoints.code.tex}
|
| 3 |
+
|
| 4 |
+
\newdimen\pgf@picminx
|
| 5 |
+
\newdimen\pgf@picmaxx
|
| 6 |
+
\newdimen\pgf@picminy
|
| 7 |
+
\newdimen\pgf@picmaxy
|
| 8 |
+
|
| 9 |
+
\newdimen\pgf@pathminx
|
| 10 |
+
\newdimen\pgf@pathmaxx
|
| 11 |
+
\newdimen\pgf@pathminy
|
| 12 |
+
\newdimen\pgf@pathmaxy
|
| 13 |
+
|
| 14 |
+
\newif\ifpgf@relevantforpicturesize
|
| 15 |
+
|
| 16 |
+
\def\pgf@process#1{{#1\global\pgf@x=\pgf@x\global\pgf@y=\pgf@y}}
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
\def\pgfextract@process#1#2{%
|
| 20 |
+
\pgf@process{#2}%
|
| 21 |
+
\edef#1{\noexpand\global\pgf@x=\the\pgf@x\noexpand\relax\noexpand\global\pgf@y=\the\pgf@y\noexpand\relax}%
|
| 22 |
+
}
|
| 23 |
+
\let\pgfsavepgf@process\pgfextract@process%
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
\def\pgfpoint#1#2{%
|
| 28 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 29 |
+
\pgfmathsetlength\pgf@y{#2}\ignorespaces}
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
\def\pgfqpoint#1#2{\global\pgf@x=#1\relax\global\pgf@y=#2\relax}
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
\def\pgfpointorigin{\global\pgf@x=0pt \global\pgf@y=\pgf@x\ignorespaces}
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
\def\pgfpointtransformed#1{%
|
| 44 |
+
\pgf@process{%
|
| 45 |
+
#1%
|
| 46 |
+
\pgf@pos@transform@glob%
|
| 47 |
+
}%
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
\def\pgfpointdiff#1#2{%
|
| 53 |
+
\pgf@process{#1}%
|
| 54 |
+
\pgf@xa=\pgf@x%
|
| 55 |
+
\pgf@ya=\pgf@y%
|
| 56 |
+
\pgf@process{#2}%
|
| 57 |
+
\global\advance\pgf@x by-\pgf@xa\relax%
|
| 58 |
+
\global\advance\pgf@y by-\pgf@ya\relax\ignorespaces}
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
\def\pgfpointadd#1#2{%
|
| 62 |
+
\pgf@process{#1}%
|
| 63 |
+
\pgf@xa=\pgf@x%
|
| 64 |
+
\pgf@ya=\pgf@y%
|
| 65 |
+
\pgf@process{#2}%
|
| 66 |
+
\global\advance\pgf@x by\pgf@xa%
|
| 67 |
+
\global\advance\pgf@y by\pgf@ya}
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
\def\pgfpointscale#1#2{%
|
| 73 |
+
\pgf@process{#2}%
|
| 74 |
+
\pgfmathparse{#1}%
|
| 75 |
+
\global\pgf@x=\pgfmathresult\pgf@x%
|
| 76 |
+
\global\pgf@y=\pgfmathresult\pgf@y%
|
| 77 |
+
}
|
| 78 |
+
\def\pgfqpointscale#1#2{%
|
| 79 |
+
\pgf@process{#2}%
|
| 80 |
+
\global\pgf@x=#1\pgf@x%
|
| 81 |
+
\global\pgf@y=#1\pgf@y%
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
\def\pgfpointintersectionoflines#1#2#3#4{%
|
| 87 |
+
{%
|
| 88 |
+
\pgf@process{#2}%
|
| 89 |
+
\pgf@xa=\pgf@x%
|
| 90 |
+
\pgf@ya=\pgf@y%
|
| 91 |
+
\pgf@process{#1}%
|
| 92 |
+
\advance\pgf@xa by-\pgf@x%
|
| 93 |
+
\advance\pgf@ya by-\pgf@y%
|
| 94 |
+
\pgf@ya=-\pgf@ya%
|
| 95 |
+
\c@pgf@counta=\pgf@xa%
|
| 96 |
+
\ifnum\c@pgf@counta<0\relax%
|
| 97 |
+
\c@pgf@counta=-\c@pgf@counta\relax%
|
| 98 |
+
\fi%
|
| 99 |
+
\c@pgf@countb=\pgf@ya%
|
| 100 |
+
\ifnum\c@pgf@countb<0\relax%
|
| 101 |
+
\c@pgf@countb=-\c@pgf@countb\relax%
|
| 102 |
+
\fi%
|
| 103 |
+
\advance\c@pgf@counta by\c@pgf@countb\relax%
|
| 104 |
+
\divide\c@pgf@counta by 65536\relax%
|
| 105 |
+
\ifnum\c@pgf@counta>0\relax%
|
| 106 |
+
\divide\pgf@xa by\c@pgf@counta\relax%
|
| 107 |
+
\divide\pgf@ya by\c@pgf@counta\relax%
|
| 108 |
+
\fi%
|
| 109 |
+
\pgf@xc=\pgf@sys@tonumber{\pgf@ya}\pgf@x%
|
| 110 |
+
\advance\pgf@xc by\pgf@sys@tonumber{\pgf@xa}\pgf@y%
|
| 111 |
+
\pgf@process{#4}%
|
| 112 |
+
\pgf@xb=\pgf@x%
|
| 113 |
+
\pgf@yb=\pgf@y%
|
| 114 |
+
\pgf@process{#3}%
|
| 115 |
+
\advance\pgf@xb by-\pgf@x%
|
| 116 |
+
\advance\pgf@yb by-\pgf@y%
|
| 117 |
+
\pgf@yb=-\pgf@yb%
|
| 118 |
+
\c@pgf@counta=\pgf@xb%
|
| 119 |
+
\ifnum\c@pgf@counta<0\relax%
|
| 120 |
+
\c@pgf@counta=-\c@pgf@counta\relax%
|
| 121 |
+
\fi%
|
| 122 |
+
\c@pgf@countb=\pgf@yb%
|
| 123 |
+
\ifnum\c@pgf@countb<0\relax%
|
| 124 |
+
\c@pgf@countb=-\c@pgf@countb\relax%
|
| 125 |
+
\fi%
|
| 126 |
+
\advance\c@pgf@counta by\c@pgf@countb\relax%
|
| 127 |
+
\divide\c@pgf@counta by 65536\relax%
|
| 128 |
+
\ifnum\c@pgf@counta>0\relax%
|
| 129 |
+
\divide\pgf@xb by\c@pgf@counta\relax%
|
| 130 |
+
\divide\pgf@yb by\c@pgf@counta\relax%
|
| 131 |
+
\fi%
|
| 132 |
+
\pgf@yc=\pgf@sys@tonumber{\pgf@yb}\pgf@x%
|
| 133 |
+
\advance\pgf@yc by\pgf@sys@tonumber{\pgf@xb}\pgf@y%
|
| 134 |
+
\pgfsettransform{{\pgf@sys@tonumber\pgf@ya}{\pgf@sys@tonumber\pgf@yb}{\pgf@sys@tonumber\pgf@xa}{\pgf@sys@tonumber\pgf@xb}{0pt}{0pt}}%
|
| 135 |
+
\pgftransforminvert%
|
| 136 |
+
\pgf@process{\pgfpointtransformed{\pgfpoint{\pgf@xc}{\pgf@yc}}}%
|
| 137 |
+
}%
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
\def\pgfpointintersectionofcircles#1#2#3#4#5{%
|
| 143 |
+
{%
|
| 144 |
+
\pgf@process{#1}%
|
| 145 |
+
\pgf@xa=\pgf@x%
|
| 146 |
+
\pgf@ya=\pgf@y%
|
| 147 |
+
\pgfmathsetlength{\pgf@xc}{#3}%
|
| 148 |
+
\pgf@process{#2}%
|
| 149 |
+
\pgf@xb=\pgf@x%
|
| 150 |
+
\pgf@yb=\pgf@y%
|
| 151 |
+
\pgfmathsetlength{\pgf@yc}{#4}%
|
| 152 |
+
\c@pgf@counta=1\relax%
|
| 153 |
+
\loop%
|
| 154 |
+
\pgf@scale@downfalse%
|
| 155 |
+
\ifdim\pgf@xc>50pt\relax%
|
| 156 |
+
\pgf@scale@downtrue%
|
| 157 |
+
\fi%
|
| 158 |
+
\ifdim\pgf@yc>50pt\relax%
|
| 159 |
+
\pgf@scale@downtrue%
|
| 160 |
+
\fi%
|
| 161 |
+
\ifpgf@scale@down%
|
| 162 |
+
\multiply\c@pgf@counta by2\relax%
|
| 163 |
+
\divide\pgf@xa by2\relax%
|
| 164 |
+
\divide\pgf@ya by2\relax%
|
| 165 |
+
\divide\pgf@xb by2\relax%
|
| 166 |
+
\divide\pgf@yb by2\relax%
|
| 167 |
+
\divide\pgf@xc by2\relax%
|
| 168 |
+
\divide\pgf@yc by2\relax%
|
| 169 |
+
\repeat%
|
| 170 |
+
\dimen0=\pgf@xb%
|
| 171 |
+
\advance\dimen0 by-\pgf@xa%
|
| 172 |
+
\dimen1=\pgf@yb%
|
| 173 |
+
\advance\dimen1 by-\pgf@ya%
|
| 174 |
+
\pgf@x=\dimen0\relax%
|
| 175 |
+
\pgf@x=\pgf@sys@tonumber{\pgf@x}\pgf@x%
|
| 176 |
+
\dimen3=\pgf@x%
|
| 177 |
+
\pgf@x=\dimen1\relax%
|
| 178 |
+
\advance\dimen3 by\pgf@sys@tonumber{\pgf@x}\pgf@x%
|
| 179 |
+
\pgfmathparse{sqrt(\the\dimen3)}%
|
| 180 |
+
\dimen2=\pgfmathresult pt%
|
| 181 |
+
\pgfmathreciprocal@{\pgfmathresult}%
|
| 182 |
+
\dimen5=\pgfmathresult pt%
|
| 183 |
+
\dimen4=\dimen3\relax%
|
| 184 |
+
\pgf@x=\pgf@xc%
|
| 185 |
+
\advance\dimen4 by\pgf@sys@tonumber{\pgf@x}\pgf@x\relax%
|
| 186 |
+
\pgf@x=\pgf@yc%
|
| 187 |
+
\advance\dimen4 by-\pgf@sys@tonumber{\pgf@x}\pgf@x\relax%
|
| 188 |
+
\dimen4=.5\dimen4%
|
| 189 |
+
\dimen4=\pgf@sys@tonumber{\dimen5}\dimen4%
|
| 190 |
+
\dimen7=\pgf@sys@tonumber{\dimen4}\dimen4\relax%
|
| 191 |
+
\pgfmathparse{sqrt(\pgf@sys@tonumber{\pgf@xc}\pgf@xc-\the\dimen7)}%
|
| 192 |
+
\dimen6=\pgfmathresult pt%
|
| 193 |
+
\dimen8=\pgf@sys@tonumber{\dimen4}\dimen5\relax%
|
| 194 |
+
\dimen9=\pgf@sys@tonumber{\dimen6}\dimen5\relax%
|
| 195 |
+
\ifnum#5=1\relax%
|
| 196 |
+
\pgf@x=\pgf@xa%
|
| 197 |
+
\advance\pgf@x by\pgf@sys@tonumber{\dimen0}\dimen8\relax%
|
| 198 |
+
\advance\pgf@x by\pgf@sys@tonumber{\dimen1}\dimen9\relax%
|
| 199 |
+
\pgf@y=\pgf@ya%
|
| 200 |
+
\advance\pgf@y by\pgf@sys@tonumber{\dimen1}\dimen8\relax%
|
| 201 |
+
\pgf@xb=\pgf@sys@tonumber{\dimen0}\dimen9%
|
| 202 |
+
\pgf@xb=-\pgf@xb%
|
| 203 |
+
\advance\pgf@y by\pgf@xb\relax%
|
| 204 |
+
\else%
|
| 205 |
+
\pgf@x=\pgf@xa%
|
| 206 |
+
\advance\pgf@x by\pgf@sys@tonumber{\dimen0}\dimen8\relax%
|
| 207 |
+
\pgf@xb=\pgf@sys@tonumber{\dimen1}\dimen9%
|
| 208 |
+
\pgf@xb=-\pgf@xb%
|
| 209 |
+
\advance\pgf@x by\pgf@xb\relax%
|
| 210 |
+
\pgf@y=\pgf@ya%
|
| 211 |
+
\advance\pgf@y by\pgf@sys@tonumber{\dimen1}\dimen8\relax%
|
| 212 |
+
\advance\pgf@y by\pgf@sys@tonumber{\dimen0}\dimen9\relax%
|
| 213 |
+
\fi%
|
| 214 |
+
\pgf@x=\c@pgf@counta\pgf@x%
|
| 215 |
+
\pgf@y=\c@pgf@counta\pgf@y%
|
| 216 |
+
\pgf@process{}%
|
| 217 |
+
}%
|
| 218 |
+
}
|
| 219 |
+
\newif\ifpgf@scale@down
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
|
| 223 |
+
\def\pgfpointlineattime#1#2#3{%
|
| 224 |
+
\pgf@process{#3}%
|
| 225 |
+
\pgf@xa\pgf@x%
|
| 226 |
+
\pgf@ya\pgf@y%
|
| 227 |
+
\pgf@xc\pgf@x%
|
| 228 |
+
\pgf@yc\pgf@y%
|
| 229 |
+
\pgf@process{#2}%
|
| 230 |
+
\pgf@xb\pgf@x%
|
| 231 |
+
\pgf@yb\pgf@y%
|
| 232 |
+
\pgfmathsetmacro\pgf@temp{#1}%
|
| 233 |
+
\advance\pgf@xa by-\pgf@x%
|
| 234 |
+
\advance\pgf@ya by-\pgf@y%
|
| 235 |
+
\global\advance\pgf@x by\pgf@temp\pgf@xa%
|
| 236 |
+
\global\advance\pgf@y by\pgf@temp\pgf@ya%
|
| 237 |
+
}
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
\def\pgfpointlineatdistance#1#2#3{%
|
| 242 |
+
\pgfmathsetlength\pgf@xa{#1}%
|
| 243 |
+
\pgf@process{#2}%
|
| 244 |
+
\pgf@xb\pgf@x%
|
| 245 |
+
\pgf@yb\pgf@y%
|
| 246 |
+
\pgf@process{#3}%
|
| 247 |
+
\pgf@xc\pgf@x%
|
| 248 |
+
\pgf@yc\pgf@y%
|
| 249 |
+
\global\advance\pgf@x by-\pgf@xb\relax%
|
| 250 |
+
\global\advance\pgf@y by-\pgf@yb\relax%
|
| 251 |
+
\pgf@process{\pgfpointnormalised{}}%
|
| 252 |
+
\pgf@ya=\pgf@xa\relax%
|
| 253 |
+
\pgf@xa=\pgf@sys@tonumber{\pgf@x}\pgf@xa%
|
| 254 |
+
\pgf@ya=\pgf@sys@tonumber{\pgf@y}\pgf@ya%
|
| 255 |
+
\global\pgf@x=\pgf@xb\relax%
|
| 256 |
+
\global\pgf@y=\pgf@yb\relax%
|
| 257 |
+
\global\advance\pgf@x by\pgf@xa\relax%
|
| 258 |
+
\global\advance\pgf@y by\pgf@ya\relax%
|
| 259 |
+
}
|
| 260 |
+
|
| 261 |
+
|
| 262 |
+
|
| 263 |
+
\def\pgfpointcurveattime#1#2#3#4#5{%
|
| 264 |
+
\pgfmathparse{#1}%
|
| 265 |
+
\let\pgf@time@s=\pgfmathresult%
|
| 266 |
+
\global\pgf@x=\pgfmathresult pt%
|
| 267 |
+
\global\pgf@x=-\pgf@x%
|
| 268 |
+
\advance\pgf@x by 1pt%
|
| 269 |
+
\edef\pgf@time@t{\pgf@sys@tonumber{\pgf@x}}%
|
| 270 |
+
\pgf@process{#5}%
|
| 271 |
+
\pgf@xc=\pgf@x%
|
| 272 |
+
\pgf@yc=\pgf@y%
|
| 273 |
+
\pgf@process{#4}%
|
| 274 |
+
\pgf@xb=\pgf@x%
|
| 275 |
+
\pgf@yb=\pgf@y%
|
| 276 |
+
\pgf@process{#3}%
|
| 277 |
+
\pgf@xa=\pgf@x%
|
| 278 |
+
\pgf@ya=\pgf@y%
|
| 279 |
+
\pgf@process{#2}%
|
| 280 |
+
\global\pgf@x=\pgf@time@t\pgf@x\global\advance\pgf@x by\pgf@time@s\pgf@xa%
|
| 281 |
+
\global\pgf@y=\pgf@time@t\pgf@y\global\advance\pgf@y by\pgf@time@s\pgf@ya%
|
| 282 |
+
\pgf@xa=\pgf@time@t\pgf@xa\advance\pgf@xa by\pgf@time@s\pgf@xb%
|
| 283 |
+
\pgf@ya=\pgf@time@t\pgf@ya\advance\pgf@ya by\pgf@time@s\pgf@yb%
|
| 284 |
+
\pgf@xb=\pgf@time@t\pgf@xb\advance\pgf@xb by\pgf@time@s\pgf@xc%
|
| 285 |
+
\pgf@yb=\pgf@time@t\pgf@yb\advance\pgf@yb by\pgf@time@s\pgf@yc%
|
| 286 |
+
\global\pgf@x=\pgf@time@t\pgf@x\global\advance\pgf@x by\pgf@time@s\pgf@xa%
|
| 287 |
+
\global\pgf@y=\pgf@time@t\pgf@y\global\advance\pgf@y by\pgf@time@s\pgf@ya%
|
| 288 |
+
\pgf@xa=\pgf@time@t\pgf@xa\advance\pgf@xa by\pgf@time@s\pgf@xb%
|
| 289 |
+
\pgf@ya=\pgf@time@t\pgf@ya\advance\pgf@ya by\pgf@time@s\pgf@yb%
|
| 290 |
+
\pgf@xb=\pgf@x%
|
| 291 |
+
\pgf@yb=\pgf@y%
|
| 292 |
+
\global\pgf@x=\pgf@time@t\pgf@x\global\advance\pgf@x by\pgf@time@s\pgf@xa%
|
| 293 |
+
\global\pgf@y=\pgf@time@t\pgf@y\global\advance\pgf@y by\pgf@time@s\pgf@ya%
|
| 294 |
+
}
|
| 295 |
+
|
| 296 |
+
|
| 297 |
+
|
| 298 |
+
|
| 299 |
+
\def\pgfpointarcaxesattime#1#2#3#4#5#6{%
|
| 300 |
+
\pgfmathsetmacro\pgf@angle@start{#5}%
|
| 301 |
+
\pgfmathsetmacro\pgf@angle@end{#6}%
|
| 302 |
+
\pgfmathparse{#1}%
|
| 303 |
+
\global\pgf@x=\pgfmathresult pt%
|
| 304 |
+
\global\pgf@x=-\pgf@x%
|
| 305 |
+
\advance\pgf@x by 1pt%
|
| 306 |
+
\pgfmathsetmacro\pgf@angle@mid{\pgf@angle@end*\pgfmathresult+\pgf@angle@start*\pgf@sys@tonumber{\pgf@x}}%
|
| 307 |
+
\pgfmathcos@{\pgf@angle@mid}%
|
| 308 |
+
\let\pgf@angle@cos\pgfmathresult%
|
| 309 |
+
\pgfmathsin@{\pgf@angle@mid}%
|
| 310 |
+
\let\pgf@angle@sin\pgfmathresult%
|
| 311 |
+
\pgf@process{#3}%
|
| 312 |
+
\edef\pgf@angle@zero@axis{\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}}
|
| 313 |
+
\pgf@process{#4}%
|
| 314 |
+
\edef\pgf@angle@ninety@axis{\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}}
|
| 315 |
+
\pgf@process{\pgfpointadd{\pgfpointscale{\pgf@angle@sin}{\pgf@angle@zero@axis}}%
|
| 316 |
+
{\pgfpointscale{-\pgf@angle@cos}{\pgf@angle@ninety@axis}}}%
|
| 317 |
+
\ifdim\pgf@angle@start pt>\pgf@angle@end pt%
|
| 318 |
+
\pgf@xa=\pgf@x%
|
| 319 |
+
\pgf@ya=\pgf@y%
|
| 320 |
+
\else%
|
| 321 |
+
\pgf@xa=-\pgf@x%
|
| 322 |
+
\pgf@ya=-\pgf@y%
|
| 323 |
+
\fi%
|
| 324 |
+
\pgf@process{\pgfpointadd{#2}{%
|
| 325 |
+
\pgfpointadd{\pgfpointscale{\pgf@angle@cos}{\pgf@angle@zero@axis}}%
|
| 326 |
+
{\pgfpointscale{\pgf@angle@sin}{\pgf@angle@ninety@axis}}}}%
|
| 327 |
+
}
|
| 328 |
+
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
\newdimen\pgf@xx
|
| 332 |
+
\newdimen\pgf@xy
|
| 333 |
+
\newdimen\pgf@yx
|
| 334 |
+
\newdimen\pgf@yy
|
| 335 |
+
\newdimen\pgf@zx
|
| 336 |
+
\newdimen\pgf@zy
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
\def\pgfpointpolar#1#2{%
|
| 342 |
+
\pgfutil@in@{and }{#2}%
|
| 343 |
+
\ifpgfutil@in@%
|
| 344 |
+
\pgf@polar@#2\@@%
|
| 345 |
+
\else%
|
| 346 |
+
\pgf@polar@#2 and #2\@@%
|
| 347 |
+
\fi%
|
| 348 |
+
\pgfmathparse{#1}%
|
| 349 |
+
\let\pgfpoint@angle=\pgfmathresult%
|
| 350 |
+
\pgfmathcos@{\pgfpoint@angle}%
|
| 351 |
+
\global\pgf@x=\pgfmathresult\pgf@x%
|
| 352 |
+
\pgfmathsin@{\pgfpoint@angle}%
|
| 353 |
+
\global\pgf@y=\pgfmathresult\pgf@y%
|
| 354 |
+
}
|
| 355 |
+
|
| 356 |
+
\def\pgf@polar@#1and #2\@@{%
|
| 357 |
+
\pgfmathsetlength{\pgf@y}{#2}%
|
| 358 |
+
\pgfmathsetlength{\pgf@x}{#1}%
|
| 359 |
+
}
|
| 360 |
+
|
| 361 |
+
|
| 362 |
+
\def\pgfqpointpolar#1#2{%
|
| 363 |
+
\global\pgf@x=#2%
|
| 364 |
+
\global\pgf@y=\pgf@x%
|
| 365 |
+
\pgfmathcos@{#1}%
|
| 366 |
+
\global\pgf@x=\pgfmathresult\pgf@x%
|
| 367 |
+
\pgfmathsin@{#1}%
|
| 368 |
+
\global\pgf@y=\pgfmathresult\pgf@y\relax%
|
| 369 |
+
}
|
| 370 |
+
|
| 371 |
+
|
| 372 |
+
|
| 373 |
+
|
| 374 |
+
|
| 375 |
+
\def\pgfpointpolarxy#1#2{%
|
| 376 |
+
\pgfutil@in@{and }{#2}%
|
| 377 |
+
\ifpgfutil@in@%
|
| 378 |
+
\pgf@polarxy@#2\@@%
|
| 379 |
+
\else%
|
| 380 |
+
\pgf@polarxy@#2and #2\@@%
|
| 381 |
+
\fi%
|
| 382 |
+
\pgfmathparse{#1}%
|
| 383 |
+
\let\pgfpoint@angle=\pgfmathresult%
|
| 384 |
+
\pgfmathcos@{\pgfpoint@angle}%
|
| 385 |
+
\pgf@xa=\pgfmathresult\pgf@xa%
|
| 386 |
+
\pgfmathsin@{\pgfpoint@angle}%
|
| 387 |
+
\pgf@ya=\pgfmathresult\pgf@ya%
|
| 388 |
+
\global\pgf@x=\pgf@sys@tonumber{\pgf@xa}\pgf@xx%
|
| 389 |
+
\global\advance\pgf@x by \pgf@sys@tonumber{\pgf@ya}\pgf@yx%
|
| 390 |
+
\global\pgf@y=\pgf@sys@tonumber{\pgf@xa}\pgf@xy%
|
| 391 |
+
\global\advance\pgf@y by \pgf@sys@tonumber{\pgf@ya}\pgf@yy}
|
| 392 |
+
|
| 393 |
+
\def\pgf@polarxy@#1and #2\@@{%
|
| 394 |
+
\pgfmathsetlength{\pgf@xa}{#1}%
|
| 395 |
+
\pgfmathsetlength{\pgf@ya}{#2}%
|
| 396 |
+
}
|
| 397 |
+
|
| 398 |
+
|
| 399 |
+
|
| 400 |
+
|
| 401 |
+
\def\pgfpointcylindrical#1#2#3{%
|
| 402 |
+
\pgfpointpolarxy{#1}{#2}%
|
| 403 |
+
\pgfmathparse{#3}%
|
| 404 |
+
\global\advance\pgf@x by \pgfmathresult\pgf@zx%
|
| 405 |
+
\global\advance\pgf@y by \pgfmathresult\pgf@zy}
|
| 406 |
+
|
| 407 |
+
|
| 408 |
+
|
| 409 |
+
\def\pgfpointspherical#1#2#3{%
|
| 410 |
+
\pgfmathparse{#1}%
|
| 411 |
+
\let\pgfpoint@angle=\pgfmathresult%
|
| 412 |
+
\pgfmathsin@{\pgfpoint@angle}%
|
| 413 |
+
\pgf@xb=\pgfmathresult\pgf@xx%
|
| 414 |
+
\pgf@yb=\pgfmathresult\pgf@xy%
|
| 415 |
+
\pgfmathcos@{\pgfpoint@angle}%
|
| 416 |
+
\advance\pgf@xb by \pgfmathresult\pgf@yx%
|
| 417 |
+
\advance\pgf@yb by \pgfmathresult\pgf@yy%
|
| 418 |
+
\pgfmathparse{#2}%
|
| 419 |
+
\let\pgfpoint@angle=\pgfmathresult%
|
| 420 |
+
\pgfmathcos@{\pgfpoint@angle}%
|
| 421 |
+
\pgf@xc=\pgfmathresult\pgf@xb%
|
| 422 |
+
\pgf@yc=\pgfmathresult\pgf@yb%
|
| 423 |
+
\pgfmathsin@{\pgfpoint@angle}%
|
| 424 |
+
\advance\pgf@xc by \pgfmathresult\pgf@zx%
|
| 425 |
+
\advance\pgf@yc by \pgfmathresult\pgf@zy%
|
| 426 |
+
\pgfmathparse{#3}%
|
| 427 |
+
\global\pgf@x=\pgfmathresult\pgf@xc%
|
| 428 |
+
\global\pgf@y=\pgfmathresult\pgf@yc\relax%
|
| 429 |
+
}
|
| 430 |
+
|
| 431 |
+
|
| 432 |
+
|
| 433 |
+
\def\pgfpointxy#1#2{%
|
| 434 |
+
\pgfmathparse{#1}%
|
| 435 |
+
\let\pgftemp@x=\pgfmathresult%
|
| 436 |
+
\pgfmathparse{#2}%
|
| 437 |
+
\let\pgftemp@y=\pgfmathresult%
|
| 438 |
+
\global\pgf@x=\pgftemp@x\pgf@xx%
|
| 439 |
+
\global\advance\pgf@x by \pgftemp@y\pgf@yx%
|
| 440 |
+
\global\pgf@y=\pgftemp@x\pgf@xy%
|
| 441 |
+
\global\advance\pgf@y by \pgftemp@y\pgf@yy}
|
| 442 |
+
|
| 443 |
+
|
| 444 |
+
\def\pgfqpointxy#1#2{%
|
| 445 |
+
\global\pgf@x=#1\pgf@xx%
|
| 446 |
+
\global\advance\pgf@x by #2\pgf@yx%
|
| 447 |
+
\global\pgf@y=#1\pgf@xy%
|
| 448 |
+
\global\advance\pgf@y by #2\pgf@yy}
|
| 449 |
+
|
| 450 |
+
|
| 451 |
+
\def\pgfpointxyz#1#2#3{%
|
| 452 |
+
\pgfmathparse{#1}%
|
| 453 |
+
\let\pgftemp@x=\pgfmathresult%
|
| 454 |
+
\pgfmathparse{#2}%
|
| 455 |
+
\let\pgftemp@y=\pgfmathresult%
|
| 456 |
+
\pgfmathparse{#3}%
|
| 457 |
+
\let\pgftemp@z=\pgfmathresult%
|
| 458 |
+
\global\pgf@x=\pgftemp@x\pgf@xx%
|
| 459 |
+
\global\advance\pgf@x by \pgftemp@y\pgf@yx%
|
| 460 |
+
\global\advance\pgf@x by \pgftemp@z\pgf@zx%
|
| 461 |
+
\global\pgf@y=\pgftemp@x\pgf@xy%
|
| 462 |
+
\global\advance\pgf@y by \pgftemp@y\pgf@yy%
|
| 463 |
+
\global\advance\pgf@y by \pgftemp@z\pgf@zy}
|
| 464 |
+
|
| 465 |
+
\def\pgfqpointxyz#1#2#3{%
|
| 466 |
+
\global\pgf@x=#1\pgf@xx%
|
| 467 |
+
\global\advance\pgf@x by #2\pgf@yx%
|
| 468 |
+
\global\advance\pgf@x by #3\pgf@zx%
|
| 469 |
+
\global\pgf@y=#1\pgf@xy%
|
| 470 |
+
\global\advance\pgf@y by #2\pgf@yy%
|
| 471 |
+
\global\advance\pgf@y by #3\pgf@zy}
|
| 472 |
+
|
| 473 |
+
|
| 474 |
+
|
| 475 |
+
|
| 476 |
+
\def\pgfsetxvec#1{%
|
| 477 |
+
\pgf@process{#1}%
|
| 478 |
+
\pgf@xx=\pgf@x%
|
| 479 |
+
\pgf@xy=\pgf@y%
|
| 480 |
+
\ignorespaces}
|
| 481 |
+
|
| 482 |
+
|
| 483 |
+
|
| 484 |
+
\def\pgfsetyvec#1{%
|
| 485 |
+
\pgf@process{#1}%
|
| 486 |
+
\pgf@yx=\pgf@x%
|
| 487 |
+
\pgf@yy=\pgf@y%
|
| 488 |
+
\ignorespaces}
|
| 489 |
+
|
| 490 |
+
|
| 491 |
+
|
| 492 |
+
\def\pgfsetzvec#1{%
|
| 493 |
+
\pgf@process{#1}%
|
| 494 |
+
\pgf@zx=\pgf@x%
|
| 495 |
+
\pgf@zy=\pgf@y%
|
| 496 |
+
\ignorespaces}
|
| 497 |
+
|
| 498 |
+
|
| 499 |
+
|
| 500 |
+
\pgfsetxvec{\pgfpoint{1cm}{0cm}}
|
| 501 |
+
\pgfsetyvec{\pgfpoint{0cm}{1cm}}
|
| 502 |
+
\pgfsetzvec{\pgfpoint{-0.385cm}{-0.385cm}}
|
| 503 |
+
|
| 504 |
+
|
| 505 |
+
|
| 506 |
+
|
| 507 |
+
|
| 508 |
+
\def\pgfpointnormalised#1{%
|
| 509 |
+
\pgf@process{#1}%
|
| 510 |
+
\pgfmathatantwo{\the\pgf@y}{\the\pgf@x}%
|
| 511 |
+
\let\pgf@tmp=\pgfmathresult%
|
| 512 |
+
\pgfmathcos@{\pgf@tmp}%
|
| 513 |
+
\pgf@x=\pgfmathresult pt\relax%
|
| 514 |
+
\pgfmathsin@{\pgf@tmp}%
|
| 515 |
+
\pgf@y=\pgfmathresult pt\relax%
|
| 516 |
+
}
|
| 517 |
+
|
| 518 |
+
|
| 519 |
+
|
| 520 |
+
|
| 521 |
+
|
| 522 |
+
|
| 523 |
+
\def\pgfpointborderrectangle#1#2{%
|
| 524 |
+
\pgf@process{#2}%
|
| 525 |
+
\pgf@xb=\pgf@x%
|
| 526 |
+
\pgf@yb=\pgf@y%
|
| 527 |
+
\pgf@process{#1}%
|
| 528 |
+
\pgf@xa=\pgf@x%
|
| 529 |
+
\pgf@ya=\pgf@y%
|
| 530 |
+
\ifnum\pgf@xa<0\relax%
|
| 531 |
+
\global\pgf@x=-\pgf@x%
|
| 532 |
+
\fi%
|
| 533 |
+
\ifnum\pgf@ya<0\relax%
|
| 534 |
+
\global\pgf@y=-\pgf@y%
|
| 535 |
+
\fi%
|
| 536 |
+
\pgf@xc=.125\pgf@x%
|
| 537 |
+
\pgf@yc=.125\pgf@y%
|
| 538 |
+
\c@pgf@counta=\pgf@xc%
|
| 539 |
+
\c@pgf@countb=\pgf@yc%
|
| 540 |
+
\ifnum\c@pgf@countb<\c@pgf@counta%
|
| 541 |
+
\ifnum\c@pgf@counta<255\relax%
|
| 542 |
+
\global\pgf@y=\pgf@yb\relax%
|
| 543 |
+
\global\pgf@x=0pt\relax%
|
| 544 |
+
\else%
|
| 545 |
+
\pgf@xc=8192pt%
|
| 546 |
+
\divide\pgf@xc by\c@pgf@counta%
|
| 547 |
+
\global\pgf@y=\pgf@sys@tonumber{\pgf@xc}\pgf@y%
|
| 548 |
+
\global\pgf@y=\pgf@sys@tonumber{\pgf@xb}\pgf@y%
|
| 549 |
+
\ifnum\pgf@y<\pgf@yb%
|
| 550 |
+
\global\pgf@x=\pgf@xb%
|
| 551 |
+
\else%
|
| 552 |
+
\ifnum\c@pgf@countb<255\relax%
|
| 553 |
+
\global\pgf@x=\pgf@xb\relax%
|
| 554 |
+
\global\pgf@y=0pt\relax%
|
| 555 |
+
\else%
|
| 556 |
+
\pgf@yc=8192pt%
|
| 557 |
+
\divide\pgf@yc by\c@pgf@countb%
|
| 558 |
+
\global\pgf@x=\pgf@sys@tonumber{\pgf@yc}\pgf@x%
|
| 559 |
+
\global\pgf@x=\pgf@sys@tonumber{\pgf@yb}\pgf@x%
|
| 560 |
+
\global\pgf@y=\pgf@yb%
|
| 561 |
+
\fi%
|
| 562 |
+
\fi%
|
| 563 |
+
\fi%
|
| 564 |
+
\else%
|
| 565 |
+
\ifnum\c@pgf@countb<255\relax%
|
| 566 |
+
\global\pgf@x=\pgf@xb\relax%
|
| 567 |
+
\global\pgf@y=0pt\relax%
|
| 568 |
+
\else%
|
| 569 |
+
\pgf@yc=8192pt%
|
| 570 |
+
\divide\pgf@yc by\c@pgf@countb%
|
| 571 |
+
\global\pgf@x=\pgf@sys@tonumber{\pgf@yc}\pgf@x%
|
| 572 |
+
\global\pgf@x=\pgf@sys@tonumber{\pgf@yb}\pgf@x%
|
| 573 |
+
\ifnum\pgf@x<\pgf@xb%
|
| 574 |
+
\global\pgf@y=\pgf@yb%
|
| 575 |
+
\else%
|
| 576 |
+
\ifnum\c@pgf@counta<255\relax%
|
| 577 |
+
\global\pgf@y=\pgf@yb\relax%
|
| 578 |
+
\global\pgf@x=0pt\relax%
|
| 579 |
+
\else%
|
| 580 |
+
\pgf@xc=8192pt%
|
| 581 |
+
\divide\pgf@xc by\c@pgf@counta%
|
| 582 |
+
\global\pgf@y=\pgf@sys@tonumber{\pgf@xc}\pgf@y%
|
| 583 |
+
\global\pgf@y=\pgf@sys@tonumber{\pgf@xb}\pgf@y%
|
| 584 |
+
\global\pgf@x=\pgf@xb%
|
| 585 |
+
\fi%
|
| 586 |
+
\fi%
|
| 587 |
+
\fi%
|
| 588 |
+
\fi%
|
| 589 |
+
\ifnum\pgf@xa<0\relax\global\pgf@x=-\pgf@x\fi%
|
| 590 |
+
\ifnum\pgf@ya<0\relax\global\pgf@y=-\pgf@y\fi%
|
| 591 |
+
}
|
| 592 |
+
|
| 593 |
+
|
| 594 |
+
|
| 595 |
+
|
| 596 |
+
|
| 597 |
+
\def\pgfpointborderellipse#1#2{%
|
| 598 |
+
\pgf@process{#2}%
|
| 599 |
+
\pgf@xa=\pgf@x%
|
| 600 |
+
\pgf@ya=\pgf@y%
|
| 601 |
+
\ifdim\pgf@xa=\pgf@ya%
|
| 602 |
+
\pgf@process{\pgfpointnormalised{#1}}%
|
| 603 |
+
\global\pgf@x=\pgf@sys@tonumber{\pgf@xa}\pgf@x%
|
| 604 |
+
\global\pgf@y=\pgf@sys@tonumber{\pgf@xa}\pgf@y%
|
| 605 |
+
\else%
|
| 606 |
+
\ifdim\pgf@xa<\pgf@ya%
|
| 607 |
+
\c@pgf@countb=\pgf@ya%
|
| 608 |
+
\divide\c@pgf@countb by65536\relax%
|
| 609 |
+
\global\divide\pgf@x by\c@pgf@countb%
|
| 610 |
+
\global\divide\pgf@y by\c@pgf@countb%
|
| 611 |
+
\pgf@xc=\pgf@x%
|
| 612 |
+
\pgf@yc=8192pt%
|
| 613 |
+
\global\pgf@y=.125\pgf@y%
|
| 614 |
+
\c@pgf@countb=\pgf@y%
|
| 615 |
+
\divide\pgf@yc by\c@pgf@countb%
|
| 616 |
+
\pgf@process{#1}%
|
| 617 |
+
\global\pgf@y=\pgf@sys@tonumber{\pgf@yc}\pgf@y%
|
| 618 |
+
\global\pgf@y=\pgf@sys@tonumber{\pgf@xc}\pgf@y%
|
| 619 |
+
\pgf@process{\pgfpointnormalised{}}%
|
| 620 |
+
\global\pgf@x=\pgf@sys@tonumber{\pgf@xa}\pgf@x%
|
| 621 |
+
\global\pgf@y=\pgf@sys@tonumber{\pgf@ya}\pgf@y%
|
| 622 |
+
\else%
|
| 623 |
+
\c@pgf@countb=\pgf@xa%
|
| 624 |
+
\divide\c@pgf@countb by65536\relax%
|
| 625 |
+
\global\divide\pgf@x by\c@pgf@countb%
|
| 626 |
+
\global\divide\pgf@y by\c@pgf@countb%
|
| 627 |
+
\pgf@yc=\pgf@y%
|
| 628 |
+
\pgf@xc=8192pt%
|
| 629 |
+
\global\pgf@x=.125\pgf@x%
|
| 630 |
+
\c@pgf@countb=\pgf@x%
|
| 631 |
+
\divide\pgf@xc by\c@pgf@countb%
|
| 632 |
+
\pgf@process{#1}%
|
| 633 |
+
\global\pgf@x=\pgf@sys@tonumber{\pgf@yc}\pgf@x%
|
| 634 |
+
\global\pgf@x=\pgf@sys@tonumber{\pgf@xc}\pgf@x%
|
| 635 |
+
\pgf@process{\pgfpointnormalised{}}%
|
| 636 |
+
\global\pgf@x=\pgf@sys@tonumber{\pgf@xa}\pgf@x%
|
| 637 |
+
\global\pgf@y=\pgf@sys@tonumber{\pgf@ya}\pgf@y%
|
| 638 |
+
\fi%
|
| 639 |
+
\fi%
|
| 640 |
+
}
|
| 641 |
+
|
| 642 |
+
|
| 643 |
+
|
| 644 |
+
|
| 645 |
+
|
| 646 |
+
|
| 647 |
+
\def\pgfextractx#1#2{%
|
| 648 |
+
\pgf@process{#2}%
|
| 649 |
+
#1=\pgf@x\relax}
|
| 650 |
+
|
| 651 |
+
|
| 652 |
+
|
| 653 |
+
\def\pgfextracty#1#2{%
|
| 654 |
+
\pgf@process{#2}%
|
| 655 |
+
#1=\pgf@y\relax}
|
| 656 |
+
|
| 657 |
+
|
| 658 |
+
\def\pgfgetlastxy#1#2{%
|
| 659 |
+
\edef#1{\the\pgf@x}%
|
| 660 |
+
\edef#2{\the\pgf@y}%
|
| 661 |
+
}%
|
| 662 |
+
|
| 663 |
+
|
| 664 |
+
\def\pgf@def#1#2#3{\expandafter\def\csname pgf@#1#2\endcsname{#3}}
|
| 665 |
+
\pgf@def{cosfrac}{0}{1}
|
| 666 |
+
\pgf@def{cosfrac}{1}{0.99995} \pgf@def{cosfrac}{2}{0.9998}
|
| 667 |
+
\pgf@def{cosfrac}{3}{0.99955} \pgf@def{cosfrac}{4}{0.999201}
|
| 668 |
+
\pgf@def{cosfrac}{5}{0.998752} \pgf@def{cosfrac}{6}{0.998205}
|
| 669 |
+
\pgf@def{cosfrac}{7}{0.997559} \pgf@def{cosfrac}{8}{0.996815}
|
| 670 |
+
\pgf@def{cosfrac}{9}{0.995974} \pgf@def{cosfrac}{10}{0.995037}
|
| 671 |
+
\pgf@def{cosfrac}{11}{0.994004} \pgf@def{cosfrac}{12}{0.992877}
|
| 672 |
+
\pgf@def{cosfrac}{13}{0.991656} \pgf@def{cosfrac}{14}{0.990342}
|
| 673 |
+
\pgf@def{cosfrac}{15}{0.988936} \pgf@def{cosfrac}{16}{0.987441}
|
| 674 |
+
\pgf@def{cosfrac}{17}{0.985856} \pgf@def{cosfrac}{18}{0.984183}
|
| 675 |
+
\pgf@def{cosfrac}{19}{0.982424} \pgf@def{cosfrac}{20}{0.980581}
|
| 676 |
+
\pgf@def{cosfrac}{21}{0.978653} \pgf@def{cosfrac}{22}{0.976644}
|
| 677 |
+
\pgf@def{cosfrac}{23}{0.974555} \pgf@def{cosfrac}{24}{0.972387}
|
| 678 |
+
\pgf@def{cosfrac}{25}{0.970143} \pgf@def{cosfrac}{26}{0.967823}
|
| 679 |
+
\pgf@def{cosfrac}{27}{0.965429} \pgf@def{cosfrac}{28}{0.962964}
|
| 680 |
+
\pgf@def{cosfrac}{29}{0.960429} \pgf@def{cosfrac}{30}{0.957826}
|
| 681 |
+
\pgf@def{cosfrac}{31}{0.955157} \pgf@def{cosfrac}{32}{0.952424}
|
| 682 |
+
\pgf@def{cosfrac}{33}{0.949629} \pgf@def{cosfrac}{34}{0.946773}
|
| 683 |
+
\pgf@def{cosfrac}{35}{0.943858} \pgf@def{cosfrac}{36}{0.940887}
|
| 684 |
+
\pgf@def{cosfrac}{37}{0.937862} \pgf@def{cosfrac}{38}{0.934784}
|
| 685 |
+
\pgf@def{cosfrac}{39}{0.931655} \pgf@def{cosfrac}{40}{0.928477}
|
| 686 |
+
\pgf@def{cosfrac}{41}{0.925252} \pgf@def{cosfrac}{42}{0.921982}
|
| 687 |
+
\pgf@def{cosfrac}{43}{0.918669} \pgf@def{cosfrac}{44}{0.915315}
|
| 688 |
+
\pgf@def{cosfrac}{45}{0.911922} \pgf@def{cosfrac}{46}{0.90849}
|
| 689 |
+
\pgf@def{cosfrac}{47}{0.905024} \pgf@def{cosfrac}{48}{0.901523}
|
| 690 |
+
\pgf@def{cosfrac}{49}{0.89799} \pgf@def{cosfrac}{50}{0.894427}
|
| 691 |
+
\pgf@def{cosfrac}{51}{0.890835} \pgf@def{cosfrac}{52}{0.887217}
|
| 692 |
+
\pgf@def{cosfrac}{53}{0.883573} \pgf@def{cosfrac}{54}{0.879905}
|
| 693 |
+
\pgf@def{cosfrac}{55}{0.876216} \pgf@def{cosfrac}{56}{0.872506}
|
| 694 |
+
\pgf@def{cosfrac}{57}{0.868777} \pgf@def{cosfrac}{58}{0.865031}
|
| 695 |
+
\pgf@def{cosfrac}{59}{0.861269} \pgf@def{cosfrac}{60}{0.857493}
|
| 696 |
+
\pgf@def{cosfrac}{61}{0.853704} \pgf@def{cosfrac}{62}{0.849903}
|
| 697 |
+
\pgf@def{cosfrac}{63}{0.846092} \pgf@def{cosfrac}{64}{0.842271}
|
| 698 |
+
\pgf@def{cosfrac}{65}{0.838444} \pgf@def{cosfrac}{66}{0.834609}
|
| 699 |
+
\pgf@def{cosfrac}{67}{0.83077} \pgf@def{cosfrac}{68}{0.826927}
|
| 700 |
+
\pgf@def{cosfrac}{69}{0.82308} \pgf@def{cosfrac}{70}{0.819232}
|
| 701 |
+
\pgf@def{cosfrac}{71}{0.815383} \pgf@def{cosfrac}{72}{0.811534}
|
| 702 |
+
\pgf@def{cosfrac}{73}{0.807687} \pgf@def{cosfrac}{74}{0.803842}
|
| 703 |
+
\pgf@def{cosfrac}{75}{0.8} \pgf@def{cosfrac}{76}{0.796162}
|
| 704 |
+
\pgf@def{cosfrac}{77}{0.792329} \pgf@def{cosfrac}{78}{0.788502}
|
| 705 |
+
\pgf@def{cosfrac}{79}{0.784682} \pgf@def{cosfrac}{80}{0.780869}
|
| 706 |
+
\pgf@def{cosfrac}{81}{0.777064} \pgf@def{cosfrac}{82}{0.773268}
|
| 707 |
+
\pgf@def{cosfrac}{83}{0.769481} \pgf@def{cosfrac}{84}{0.765705}
|
| 708 |
+
\pgf@def{cosfrac}{85}{0.761939} \pgf@def{cosfrac}{86}{0.758185}
|
| 709 |
+
\pgf@def{cosfrac}{87}{0.754443} \pgf@def{cosfrac}{88}{0.750714}
|
| 710 |
+
\pgf@def{cosfrac}{89}{0.746997} \pgf@def{cosfrac}{90}{0.743294}
|
| 711 |
+
\pgf@def{cosfrac}{91}{0.739605} \pgf@def{cosfrac}{92}{0.735931}
|
| 712 |
+
\pgf@def{cosfrac}{93}{0.732272} \pgf@def{cosfrac}{94}{0.728628}
|
| 713 |
+
\pgf@def{cosfrac}{95}{0.724999} \pgf@def{cosfrac}{96}{0.721387}
|
| 714 |
+
\pgf@def{cosfrac}{97}{0.717792} \pgf@def{cosfrac}{98}{0.714213}
|
| 715 |
+
\pgf@def{cosfrac}{99}{0.710651} \pgf@def{cosfrac}{100}{0.707107}
|
| 716 |
+
|
| 717 |
+
|
| 718 |
+
|
| 719 |
+
|
| 720 |
+
|
| 721 |
+
\let\pgfpointtransformednonlinear\pgfpointtransformed
|
| 722 |
+
|
| 723 |
+
|
| 724 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorequick.code.tex
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{pgfcorequick.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
\def\pgfpathqmoveto#1#2{\pgfsyssoftpath@moveto{#1}{#2}}
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
\def\pgfpathqlineto#1#2{\pgfsyssoftpath@lineto{#1}{#2}}
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
\def\pgfpathqcurveto#1#2#3#4#5#6{\pgfsyssoftpath@curveto{#1}{#2}{#3}{#4}{#5}{#6}}
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
\def\pgfpathqcircle#1{%
|
| 21 |
+
{%
|
| 22 |
+
\pgf@x=#1%
|
| 23 |
+
\pgf@y=0.5522847\pgf@x%
|
| 24 |
+
\pgfsyssoftpath@moveto{\the\pgf@x}{0pt}%
|
| 25 |
+
\pgfsyssoftpath@curveto{\the\pgf@x}{\the\pgf@y}{\the\pgf@y}{\the\pgf@x}{0pt}{\the\pgf@x}%
|
| 26 |
+
\pgfsyssoftpath@curveto{-\the\pgf@y}{\the\pgf@x}{-\the\pgf@x}{\the\pgf@y}{-\the\pgf@x}{0pt}%
|
| 27 |
+
\pgfsyssoftpath@curveto{-\the\pgf@x}{-\the\pgf@y}{-\the\pgf@y}{-\the\pgf@x}{0pt}{-\the\pgf@x}%
|
| 28 |
+
\pgfsyssoftpath@curveto{\the\pgf@y}{-\the\pgf@x}{\the\pgf@x}{-\the\pgf@y}{\the\pgf@x}{0pt}%
|
| 29 |
+
\pgfsyssoftpath@closepath%
|
| 30 |
+
}%
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
\def\pgfusepathqstroke{%
|
| 37 |
+
\pgfsyssoftpath@flushcurrentpath%
|
| 38 |
+
\pgfsys@stroke%
|
| 39 |
+
\pgf@resetpathsizes%
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
\def\pgfusepathqfill{%
|
| 45 |
+
\pgfsyssoftpath@flushcurrentpath%
|
| 46 |
+
\pgfsys@fill%
|
| 47 |
+
\pgf@resetpathsizes%
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
\def\pgfusepathqfillstroke{%
|
| 53 |
+
\pgfsyssoftpath@flushcurrentpath%
|
| 54 |
+
\pgfsys@fillstroke%
|
| 55 |
+
\pgf@resetpathsizes%
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
\def\pgfusepathqclip{%
|
| 60 |
+
\pgfsyssoftpath@flushcurrentpath%
|
| 61 |
+
\pgfsys@clipnext%
|
| 62 |
+
\pgfsys@discardpath%
|
| 63 |
+
\pgf@resetpathsizes%
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcorerdf.code.tex
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{pgfcorerdf.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
\def\pgfrdfabout#1{\pgfsys@rdf@about{#1}}
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
\def\pgfrdfcontent#1{\pgfsys@rdf@content{#1}}
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
\def\pgfrdfdatatype#1{\pgfsys@rdf@datatype{#1}}
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
\def\pgfrdfhref#1{\pgfsys@rdf@href{#1}}
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
\def\pgfrdfinlist{\pgfsys@rdf@inlist}
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
\def\pgfrdfprefix#1{\pgfsys@rdf@prefix{#1}}
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
\def\pgfrdfproperty#1{\pgfsys@rdf@property{#1}}
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
\def\pgfrdfrel#1{\pgfsys@rdf@rel{#1}}
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
\def\pgfrdfresource#1{\pgfsys@rdf@resource{#1}}
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
\def\pgfrdfrev#1{\pgfsys@rdf@rev{#1}}
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
\def\pgfrdfsrc#1{\pgfsys@rdf@src{#1}}
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
\def\pgfrdftypeof#1{\pgfsys@rdf@typeof{#1}}
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
\def\pgfrdfvocab#1{\pgfsys@rdf@vocab{#1}}
|
| 78 |
+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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{pgfcorescopes.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
\newbox\pgfpic
|
| 6 |
+
\newbox\pgf@hbox
|
| 7 |
+
|
| 8 |
+
\newbox\pgf@layerbox@main
|
| 9 |
+
|
| 10 |
+
\newcount\pgf@picture@serial@count
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
\newif\ifpgfrememberpicturepositiononpage
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
\def\pgfscope{%
|
| 23 |
+
\pgfsyssoftpath@setcurrentpath\pgfutil@empty%
|
| 24 |
+
\pgfsys@beginscope%
|
| 25 |
+
\pgf@resetpathsizes%
|
| 26 |
+
\edef\pgfscope@linewidth{\the\pgflinewidth}%
|
| 27 |
+
\let\pgfscope@stroke@color=\pgf@strokecolor@global%
|
| 28 |
+
\let\pgfscope@fill@color=\pgf@fillcolor@global%
|
| 29 |
+
\begingroup}
|
| 30 |
+
\def\endpgfscope{%
|
| 31 |
+
\endgroup%
|
| 32 |
+
\global\pgflinewidth=\pgfscope@linewidth%
|
| 33 |
+
\global\let\pgf@strokecolor@global=\pgfscope@stroke@color%
|
| 34 |
+
\global\let\pgf@fillcolor@global=\pgfscope@fill@color%
|
| 35 |
+
\pgfsys@endscope}
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
\def\pgfqbox#1{%
|
| 42 |
+
\pgfsys@hbox#1%
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
\def\pgfqboxsynced#1{%
|
| 48 |
+
\pgfsys@hboxsynced#1%
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
\def\pgftext{\pgfutil@ifnextchar[\pgf@text{\pgf@text[]}}%
|
| 54 |
+
\def\pgf@text[#1]{%
|
| 55 |
+
\def\pgf@text@options{#1}%
|
| 56 |
+
\pgf@maketext\pgf@after@text}
|
| 57 |
+
\def\pgf@after@text{%
|
| 58 |
+
{%
|
| 59 |
+
\def\pgf@text@hshift{center}%
|
| 60 |
+
\def\pgf@text@vshift{center}%
|
| 61 |
+
\expandafter\pgf@text@setkeys\expandafter{\pgf@text@options}%
|
| 62 |
+
\csname pgf@halign\pgf@text@hshift\endcsname%
|
| 63 |
+
\csname pgf@valign\pgf@text@vshift\endcsname%
|
| 64 |
+
\pgfapproximatenonlineartransformation%
|
| 65 |
+
\pgf@process{\pgfpointtransformed{\pgfqpoint{0pt}{\dp\pgf@hbox}}}%
|
| 66 |
+
\pgf@protocolsizes{\pgf@x}{\pgf@y}%
|
| 67 |
+
\pgf@process{\pgfpointtransformed{\pgfqpoint{\wd\pgf@hbox}{\dp\pgf@hbox}}}%
|
| 68 |
+
\pgf@protocolsizes{\pgf@x}{\pgf@y}%
|
| 69 |
+
\pgf@process{\pgfpointtransformed{\pgfqpoint{0pt}{\ht\pgf@hbox}}}%
|
| 70 |
+
\pgf@protocolsizes{\pgf@x}{\pgf@y}%
|
| 71 |
+
\pgf@process{\pgfpointtransformed{\pgfqpoint{\wd\pgf@hbox}{\ht\pgf@hbox}}}%
|
| 72 |
+
\pgf@protocolsizes{\pgf@x}{\pgf@y}%
|
| 73 |
+
\pgfqboxsynced{\pgf@hbox}%
|
| 74 |
+
}%
|
| 75 |
+
}
|
| 76 |
+
\def\pgf@text@setkeys{\pgfqkeys{/pgf/text}}%
|
| 77 |
+
|
| 78 |
+
\pgfkeys{/pgf/text/left/.code=\def\pgf@text@hshift{left}}
|
| 79 |
+
\pgfkeys{/pgf/text/center/.code=}
|
| 80 |
+
\pgfkeys{/pgf/text/right/.code=\def\pgf@text@hshift{right}}
|
| 81 |
+
\pgfkeys{/pgf/text/top/.code=\def\pgf@text@vshift{top}}
|
| 82 |
+
\pgfkeys{/pgf/text/bottom/.code=\def\pgf@text@vshift{bottom}}
|
| 83 |
+
\pgfkeys{/pgf/text/base/.code=\def\pgf@text@vshift{base}}
|
| 84 |
+
\pgfkeys{/pgf/text/at/.cd,.code=\pgftransformshift{#1},.value required}
|
| 85 |
+
\pgfkeys{/pgf/text/x/.cd,.code=\pgftransformxshift{#1},.value required}
|
| 86 |
+
\pgfkeys{/pgf/text/y/.cd,.code=\pgftransformyshift{#1},.value required}
|
| 87 |
+
\pgfkeys{/pgf/text/rotate/.cd,.code=\pgftransformrotate{#1},.value required}
|
| 88 |
+
|
| 89 |
+
\def\pgf@halignleft{}%
|
| 90 |
+
\def\pgf@haligncenter{\pgftransformxshift{+-.5\wd\pgf@hbox}}
|
| 91 |
+
\def\pgf@halignright{\pgftransformxshift{+-\wd\pgf@hbox}}%
|
| 92 |
+
\def\pgf@valignbase{}%
|
| 93 |
+
\def\pgf@valignbottom{\pgftransformyshift{+\dp\pgf@hbox}}%
|
| 94 |
+
\def\pgf@valigncenter{\pgftransformyshift{+.5\dp\pgf@hbox}\pgftransformyshift{+-.5\ht\pgf@hbox}}%
|
| 95 |
+
\def\pgf@valigntop{\pgftransformyshift{+-\ht\pgf@hbox}}%
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
\def\pgf@maketext#1{%
|
| 99 |
+
\def\pgf@@maketextafter{#1}%
|
| 100 |
+
\setbox\pgf@hbox=\hbox\bgroup%
|
| 101 |
+
\pgfinterruptpicture%
|
| 102 |
+
\bgroup%
|
| 103 |
+
\aftergroup\pgf@collectresetcolor%
|
| 104 |
+
\let\next=%
|
| 105 |
+
}
|
| 106 |
+
\def\pgf@collectresetcolor{%
|
| 107 |
+
\pgfutil@ifnextchar\reset@color%
|
| 108 |
+
{\reset@color\afterassignment\pgf@collectresetcolor\let\pgf@temp=}%
|
| 109 |
+
{\pgf@textdone}%
|
| 110 |
+
}
|
| 111 |
+
\def\pgf@textdone{%
|
| 112 |
+
\endpgfinterruptpicture%
|
| 113 |
+
\egroup%
|
| 114 |
+
\pgf@@maketextafter%
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
\long\def\pgf@makehbox#1{%
|
| 118 |
+
\setbox\pgf@hbox=\hbox{{%
|
| 119 |
+
\pgfinterruptpicture%
|
| 120 |
+
#1%
|
| 121 |
+
\endpgfinterruptpicture%
|
| 122 |
+
}}}
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
\def\pgfresetboundingbox{%
|
| 128 |
+
\global\pgf@picmaxx=-16000pt\relax%
|
| 129 |
+
\global\pgf@picminx=16000pt\relax%
|
| 130 |
+
\global\pgf@picmaxy=-16000pt\relax%
|
| 131 |
+
\global\pgf@picminy=16000pt\relax%
|
| 132 |
+
}%
|
| 133 |
+
|
| 134 |
+
\def\pgfpicture{%
|
| 135 |
+
\begingroup%
|
| 136 |
+
\pgfpicturetrue%
|
| 137 |
+
\global\advance\pgf@picture@serial@count by1\relax%
|
| 138 |
+
\edef\pgfpictureid{pgfid\the\pgf@picture@serial@count}%
|
| 139 |
+
\let\pgf@nodecallback=\pgfutil@gobble%
|
| 140 |
+
\pgf@picmaxx=-16000pt\relax%
|
| 141 |
+
\pgf@picminx=16000pt\relax%
|
| 142 |
+
\pgf@picmaxy=-16000pt\relax%
|
| 143 |
+
\pgf@picminy=16000pt\relax%
|
| 144 |
+
\pgf@relevantforpicturesizetrue%
|
| 145 |
+
\pgf@resetpathsizes%
|
| 146 |
+
\pgfutil@ifnextchar\bgroup\pgf@oldpicture\pgf@picture}
|
| 147 |
+
\def\pgf@oldpicture#1#2#3#4{%
|
| 148 |
+
\pgfmathsetlength\pgf@picminx{#1}%
|
| 149 |
+
\pgfmathsetlength\pgf@picminy{#2}%
|
| 150 |
+
\pgfmathsetlength\pgf@picmaxx{#3}%
|
| 151 |
+
\pgfmathsetlength\pgf@picmaxy{#4}%
|
| 152 |
+
\pgf@relevantforpicturesizefalse%
|
| 153 |
+
\pgf@picture}
|
| 154 |
+
|
| 155 |
+
\def\pgf@picture{%
|
| 156 |
+
\setbox\pgfpic\hbox to0pt\bgroup%
|
| 157 |
+
\begingroup%
|
| 158 |
+
\pgfsys@beginpicture%
|
| 159 |
+
\pgfsys@beginscope%
|
| 160 |
+
\begingroup%
|
| 161 |
+
\pgfsetcolor{.}%
|
| 162 |
+
\pgfsetlinewidth{0.4pt}%
|
| 163 |
+
\pgftransformreset%
|
| 164 |
+
\pgfsyssoftpath@setcurrentpath\pgfutil@empty%
|
| 165 |
+
\begingroup%
|
| 166 |
+
\let\pgf@setlengthorig=\setlength%
|
| 167 |
+
\let\pgf@addtolengthorig=\addtolength%
|
| 168 |
+
\let\pgf@selectfontorig=\selectfont%
|
| 169 |
+
\let\setlength=\pgf@setlength%
|
| 170 |
+
\let\addtolength=\pgf@addtolength%
|
| 171 |
+
\let\selectfont=\pgf@selectfont%
|
| 172 |
+
\nullfont\spaceskip0pt\xspaceskip0pt%
|
| 173 |
+
\tracinglostchars=%
|
| 174 |
+
\ifnum\tracinglostchars>2 2\else\tracinglostchars\fi
|
| 175 |
+
\setbox\pgf@layerbox@main\hbox to0pt\bgroup%
|
| 176 |
+
\begingroup%
|
| 177 |
+
}
|
| 178 |
+
\def\endpgfpicture{%
|
| 179 |
+
\ifpgfrememberpicturepositiononpage%
|
| 180 |
+
\hbox to0pt{\pgfsys@markposition{\pgfpictureid}}%
|
| 181 |
+
\fi%
|
| 182 |
+
\ifdim\pgf@picmaxx=-16000pt\relax%
|
| 183 |
+
\global\pgf@picmaxx=0pt\relax%
|
| 184 |
+
\global\pgf@picminx=0pt\relax%
|
| 185 |
+
\global\pgf@picmaxy=0pt\relax%
|
| 186 |
+
\global\pgf@picminy=0pt\relax%
|
| 187 |
+
\fi%
|
| 188 |
+
\pgf@relevantforpicturesizefalse%
|
| 189 |
+
\pgf@process{\pgf@baseline}%
|
| 190 |
+
\xdef\pgf@shift@baseline{\the\pgf@y}%
|
| 191 |
+
\pgf@process{\pgf@trimleft}%
|
| 192 |
+
\global\advance\pgf@x by-\pgf@picminx
|
| 193 |
+
\xdef\pgf@trimleft@final{-\the\pgf@x}%
|
| 194 |
+
\pgf@process{\pgf@trimright}%
|
| 195 |
+
\global\advance\pgf@x by-\pgf@picmaxx
|
| 196 |
+
\xdef\pgf@trimright@final{\the\pgf@x}%
|
| 197 |
+
\pgf@remember@layerlist@globally
|
| 198 |
+
\endgroup%
|
| 199 |
+
\hss%
|
| 200 |
+
\egroup%
|
| 201 |
+
\pgf@restore@layerlist@from@global
|
| 202 |
+
\pgf@insertlayers%
|
| 203 |
+
\endgroup%
|
| 204 |
+
\pgfsys@discardpath%
|
| 205 |
+
\endgroup%
|
| 206 |
+
\pgfsys@endscope%
|
| 207 |
+
\pgfsys@endpicture%
|
| 208 |
+
\endgroup%
|
| 209 |
+
\hss
|
| 210 |
+
\egroup%
|
| 211 |
+
\pgfsys@typesetpicturebox\pgfpic%
|
| 212 |
+
\endgroup%
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
\def\pgf@remember@layerlist@globally{%
|
| 216 |
+
\global\let\pgf@layerlist@=\pgf@layerlist
|
| 217 |
+
}%
|
| 218 |
+
\def\pgf@restore@layerlist@from@global{%
|
| 219 |
+
\let\pgf@layerlist=\pgf@layerlist@
|
| 220 |
+
}%
|
| 221 |
+
\def\pgf@insertlayers{%
|
| 222 |
+
\box\pgf@layerbox@main%
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
\def\pgf@selectfont{\pgf@selectfontorig\nullfont}
|
| 226 |
+
|
| 227 |
+
\def\pgf@setlength#1#2{%
|
| 228 |
+
\begingroup%
|
| 229 |
+
\pgfutil@selectfont%
|
| 230 |
+
\pgf@setlengthorig#1{#2}%
|
| 231 |
+
\expandafter%
|
| 232 |
+
\endgroup%
|
| 233 |
+
\expandafter#1\expandafter=\the#1\relax}
|
| 234 |
+
\def\pgf@addtolength#1#2{%
|
| 235 |
+
\begingroup%
|
| 236 |
+
\pgfutil@selectfont%
|
| 237 |
+
\pgf@addtolengthorig#1{#2}%
|
| 238 |
+
\expandafter%
|
| 239 |
+
\endgroup%
|
| 240 |
+
\expandafter#1\expandafter=\the#1\relax}
|
| 241 |
+
|
| 242 |
+
|
| 243 |
+
|
| 244 |
+
\def\pgfsetbaselinepointlater#1{\def\pgf@baseline{#1}}
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
|
| 248 |
+
\def\pgfsetbaselinepointnow#1{%
|
| 249 |
+
\pgf@process{#1}%
|
| 250 |
+
\edef\pgf@setter@baseline{\noexpand\pgfpoint{\the\pgf@x}{\the\pgf@y}}%
|
| 251 |
+
\pgfsetbaselinepointlater{\pgf@setter@baseline}%
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
\def\pgf@default@text{default}%
|
| 255 |
+
|
| 256 |
+
|
| 257 |
+
\def\pgfsetbaseline#1{%
|
| 258 |
+
\def\pgf@temp{#1}%
|
| 259 |
+
\ifx\pgf@temp\pgf@default@text
|
| 260 |
+
\pgfsetbaseline{\pgf@picminy}%
|
| 261 |
+
\else
|
| 262 |
+
\pgfsetbaselinepointlater{\pgfpoint{0pt}{#1}}%
|
| 263 |
+
\fi
|
| 264 |
+
}
|
| 265 |
+
\pgfsetbaseline{\pgf@picminy}
|
| 266 |
+
|
| 267 |
+
\newif\ifpgf@trim@lowlevel
|
| 268 |
+
\pgfkeys{
|
| 269 |
+
/pgf/trim lowlevel/.is if=pgf@trim@lowlevel,
|
| 270 |
+
/pgf/trim lowlevel/.default=true,
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
\def\pgfsettrimleftpointlater#1{\def\pgf@trimleft{#1}}
|
| 274 |
+
\def\pgfsettrimleftpointnow#1{%
|
| 275 |
+
\pgf@process{#1}%
|
| 276 |
+
\edef\pgf@setter@baseline{\noexpand\pgfpoint{\the\pgf@x}{\the\pgf@y}}%
|
| 277 |
+
\pgfsettrimleftpointlater{\pgf@setter@baseline}%
|
| 278 |
+
}
|
| 279 |
+
\def\pgfsettrimleft#1{%
|
| 280 |
+
\def\pgf@temp{#1}%
|
| 281 |
+
\ifx\pgf@temp\pgf@default@text
|
| 282 |
+
\pgfsettrimleft{\pgf@picminx}
|
| 283 |
+
\else
|
| 284 |
+
\pgfsettrimleftpointlater{\pgfpoint{#1}{0pt}}%
|
| 285 |
+
\fi
|
| 286 |
+
}
|
| 287 |
+
\pgfsettrimleft{\pgf@picminx}
|
| 288 |
+
|
| 289 |
+
\def\pgfsettrimrightpointlater#1{\def\pgf@trimright{#1}}
|
| 290 |
+
\def\pgfsettrimrightpointnow#1{%
|
| 291 |
+
\pgf@process{#1}%
|
| 292 |
+
\edef\pgf@setter@baseline{\noexpand\pgfpoint{\the\pgf@x}{\the\pgf@y}}%
|
| 293 |
+
\pgfsettrimrightpointlater{\pgf@setter@baseline}%
|
| 294 |
+
}
|
| 295 |
+
\def\pgfsettrimright#1{%
|
| 296 |
+
\def\pgf@temp{#1}%
|
| 297 |
+
\ifx\pgf@temp\pgf@default@text
|
| 298 |
+
\pgfsettrimright{\pgf@picmaxx}%
|
| 299 |
+
\else
|
| 300 |
+
\pgfsettrimrightpointlater{\pgfpoint{#1}{0pt}}%
|
| 301 |
+
\fi
|
| 302 |
+
}
|
| 303 |
+
\pgfsettrimright{\pgf@picmaxx}
|
| 304 |
+
|
| 305 |
+
|
| 306 |
+
|
| 307 |
+
\def\pgfinterruptpath
|
| 308 |
+
{%
|
| 309 |
+
\begingroup%
|
| 310 |
+
\edef\pgf@interrupt@savex{\the\pgf@path@lastx}%
|
| 311 |
+
\edef\pgf@interrupt@savey{\the\pgf@path@lasty}%
|
| 312 |
+
\pgf@getpathsizes\pgf@interrupt@pathsizes%
|
| 313 |
+
\pgfsyssoftpath@getcurrentpath\pgf@interrupt@path%
|
| 314 |
+
\pgfsyssoftpath@setcurrentpath\pgfutil@empty%
|
| 315 |
+
\let\pgf@interrupt@lastmoveto=\pgfsyssoftpath@lastmoveto%
|
| 316 |
+
\begingroup%
|
| 317 |
+
}
|
| 318 |
+
\def\endpgfinterruptpath
|
| 319 |
+
{%
|
| 320 |
+
\endgroup%
|
| 321 |
+
\pgfsyssoftpath@setcurrentpath\pgf@interrupt@path%
|
| 322 |
+
\pgf@setpathsizes\pgf@interrupt@pathsizes%
|
| 323 |
+
\global\pgf@path@lastx\pgf@interrupt@savex%
|
| 324 |
+
\global\pgf@path@lasty\pgf@interrupt@savey%
|
| 325 |
+
\global\let\pgfsyssoftpath@lastmoveto\pgf@interrupt@lastmoveto%
|
| 326 |
+
\endgroup%
|
| 327 |
+
}
|
| 328 |
+
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
|
| 332 |
+
\def\pgfinterruptboundingbox
|
| 333 |
+
{%
|
| 334 |
+
\begingroup%
|
| 335 |
+
\edef\pgf@interrupt@savemaxx{\the\pgf@picmaxx}%
|
| 336 |
+
\edef\pgf@interrupt@saveminx{\the\pgf@picminx}%
|
| 337 |
+
\edef\pgf@interrupt@savemaxy{\the\pgf@picmaxy}%
|
| 338 |
+
\edef\pgf@interrupt@saveminy{\the\pgf@picminy}%
|
| 339 |
+
\pgf@picmaxx=-16000pt\relax%
|
| 340 |
+
\pgf@picminx=16000pt\relax%
|
| 341 |
+
\pgf@picmaxy=-16000pt\relax%
|
| 342 |
+
\pgf@picminy=16000pt\relax%
|
| 343 |
+
\pgf@size@hookedfalse%
|
| 344 |
+
\let\pgf@path@size@hook=\pgfutil@empty%
|
| 345 |
+
}
|
| 346 |
+
\def\endpgfinterruptboundingbox
|
| 347 |
+
{%
|
| 348 |
+
\global\pgf@picmaxx=\pgf@interrupt@savemaxx%
|
| 349 |
+
\global\pgf@picmaxy=\pgf@interrupt@savemaxy%
|
| 350 |
+
\global\pgf@picminx=\pgf@interrupt@saveminx%
|
| 351 |
+
\global\pgf@picminy=\pgf@interrupt@saveminy%
|
| 352 |
+
\endgroup%
|
| 353 |
+
}
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
\def\pgfidscope{\pgfsys@begin@idscope}
|
| 360 |
+
\def\endpgfidscope{\pgfsys@end@idscope}
|
| 361 |
+
|
| 362 |
+
\let\startpgfidscope\pgfidscope
|
| 363 |
+
\let\stoppgfidscope\pgfendidscope
|
| 364 |
+
|
| 365 |
+
|
| 366 |
+
|
| 367 |
+
|
| 368 |
+
|
| 369 |
+
\def\pgfuseid#1{%
|
| 370 |
+
\edef\pgf@temp{#1}%
|
| 371 |
+
\ifx\pgf@temp\pgfutil@empty%
|
| 372 |
+
\else%
|
| 373 |
+
\pgf@lookup@id{#1}%
|
| 374 |
+
\pgfsys@use@id{\pgf@next@id}%
|
| 375 |
+
\expandafter\xdef\csname pgf@id@names@#1\endcsname{{\pgf@next@id}{}}%
|
| 376 |
+
\fi%
|
| 377 |
+
}
|
| 378 |
+
|
| 379 |
+
\def\pgf@lookup@id#1{%
|
| 380 |
+
\expandafter\let\expandafter\pgf@id@name\csname pgf@id@names@#1\endcsname%
|
| 381 |
+
\ifx\pgf@id@name\relax%
|
| 382 |
+
\let\pgf@prev@id\pgfutil@empty%
|
| 383 |
+
\let\pgf@next@id\pgfutil@empty%
|
| 384 |
+
\else%
|
| 385 |
+
\expandafter\pgf@id@parse\pgf@id@name%
|
| 386 |
+
\fi%
|
| 387 |
+
\ifx\pgf@next@id\pgfutil@empty%
|
| 388 |
+
\pgfsys@new@id\pgf@next@id%
|
| 389 |
+
\expandafter\xdef\csname pgf@id@names@#1\endcsname{{\pgf@prev@id}{\pgf@next@id}}%
|
| 390 |
+
\fi%
|
| 391 |
+
}
|
| 392 |
+
\def\pgf@id@parse#1#2{%
|
| 393 |
+
\def\pgf@prev@id{#1}%
|
| 394 |
+
\def\pgf@next@id{#2}%
|
| 395 |
+
}
|
| 396 |
+
|
| 397 |
+
|
| 398 |
+
|
| 399 |
+
|
| 400 |
+
\def\pgfclearid{%
|
| 401 |
+
\pgfsys@clear@id%
|
| 402 |
+
}
|
| 403 |
+
|
| 404 |
+
|
| 405 |
+
|
| 406 |
+
\def\pgfidrefnextuse#1#2{%
|
| 407 |
+
\edef\pgf@temp{#2}\ifx\pgf@temp\pgfutil@empty\pgferror{Missing name reference for ``\string#1''}\fi%
|
| 408 |
+
\pgf@lookup@id{#2}%
|
| 409 |
+
\let#1\pgf@next@id%
|
| 410 |
+
}
|
| 411 |
+
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
\def\pgfidrefprevuse#1#2{%
|
| 415 |
+
\edef\pgf@temp{#2}\ifx\pgf@temp\pgfutil@empty\pgferror{Missing name reference for ``\string#1''}\fi%
|
| 416 |
+
\pgf@lookup@id{#2}%
|
| 417 |
+
\let#1\pgf@prev@id%
|
| 418 |
+
}
|
| 419 |
+
|
| 420 |
+
|
| 421 |
+
|
| 422 |
+
\def\pgfusetype#1{%
|
| 423 |
+
\edef\pgf@temp{#1}%
|
| 424 |
+
\expandafter\pgfutil@ifnextchar\expandafter.\expandafter\pgf@id@use@type@add\expandafter\pgf@id@use@type@replace\pgf@temp\pgf@stop
|
| 425 |
+
}
|
| 426 |
+
\def\pgf@id@use@type@add.#1\pgf@stop{\pgfsys@append@type{#1}}
|
| 427 |
+
\def\pgf@id@use@type@replace#1\pgf@stop{\pgfsys@use@type{#1}}
|
| 428 |
+
|
| 429 |
+
|
| 430 |
+
\def\pgfpushtype{\pgfsys@push@type}
|
| 431 |
+
|
| 432 |
+
|
| 433 |
+
|
| 434 |
+
\def\pgfpoptype{\pgfsys@pop@type}
|
| 435 |
+
|
| 436 |
+
|
| 437 |
+
|
| 438 |
+
|
| 439 |
+
|
| 440 |
+
\def\pgfaliasid#1#2{%
|
| 441 |
+
\expandafter\let\expandafter\pgf@temp\csname pgf@id@names@#2\endcsname%
|
| 442 |
+
\expandafter\let\csname pgf@id@names@#1\endcsname\pgf@temp%
|
| 443 |
+
}
|
| 444 |
+
\def\pgfgaliasid#1#2{%
|
| 445 |
+
\expandafter\let\expandafter\pgf@temp\csname pgf@id@names@#2\endcsname%
|
| 446 |
+
\expandafter\global\expandafter\let\csname pgf@id@names@#1\endcsname\pgf@temp%
|
| 447 |
+
}
|
| 448 |
+
|
| 449 |
+
|
| 450 |
+
|
| 451 |
+
\def\pgfifidreferenced#1#2#3{%
|
| 452 |
+
\expandafter\let\expandafter\pgf@id@name\csname pgf@id@names@#1\endcsname%
|
| 453 |
+
\ifx\pgf@id@name\relax%
|
| 454 |
+
#3%
|
| 455 |
+
\else
|
| 456 |
+
\expandafter\pgf@id@parse\pgf@id@name%
|
| 457 |
+
\ifx\pgf@next@id\pgfutil@empty%
|
| 458 |
+
#3%
|
| 459 |
+
\else%
|
| 460 |
+
#2%
|
| 461 |
+
\fi%
|
| 462 |
+
\fi%
|
| 463 |
+
}
|
| 464 |
+
|
| 465 |
+
|
| 466 |
+
|
| 467 |
+
\def\pgfinterruptpicture
|
| 468 |
+
{%
|
| 469 |
+
\begingroup%
|
| 470 |
+
\csname tikz@inside@picturefalse\endcsname%
|
| 471 |
+
\pgfinterruptboundingbox%
|
| 472 |
+
\pgftransformreset%
|
| 473 |
+
\pgfinterruptpath%
|
| 474 |
+
\ifx\pgf@selectfontorig\@undefined%
|
| 475 |
+
\else%
|
| 476 |
+
\let\setlength\pgf@setlengthorig%
|
| 477 |
+
\let\addtolength\pgf@addtolengthorig%
|
| 478 |
+
\let\selectfont\pgf@selectfontorig%
|
| 479 |
+
\fi%
|
| 480 |
+
\pgfutil@selectfont%
|
| 481 |
+
\pgfpicturefalse%
|
| 482 |
+
\let\pgf@positionnodelater@macro\relax%
|
| 483 |
+
\pgf@savelayers%
|
| 484 |
+
}
|
| 485 |
+
\def\endpgfinterruptpicture
|
| 486 |
+
{%
|
| 487 |
+
\pgf@restorelayers%
|
| 488 |
+
\endpgfinterruptpath%
|
| 489 |
+
\endpgfinterruptboundingbox%
|
| 490 |
+
\endgroup%
|
| 491 |
+
}
|
| 492 |
+
|
| 493 |
+
\let\pgf@savelayers=\relax
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{pgfcoreshade.code.tex}
|
| 3 |
+
|
| 4 |
+
\newdimen\pgf@max
|
| 5 |
+
\newcount\pgf@sys@shading@range@num
|
| 6 |
+
\def\pgf@parsefunc#1{%
|
| 7 |
+
\edef\temp{{#1}}%
|
| 8 |
+
\expandafter\pgf@convertstring\temp%
|
| 9 |
+
\edef\temp{{\pgf@conv}}%
|
| 10 |
+
\expandafter\pgf@@parsefunc\temp}
|
| 11 |
+
\def\pgf@@parsefunc#1{%
|
| 12 |
+
\let\pgf@bounds=\pgfutil@empty%
|
| 13 |
+
\let\pgf@funcs=\pgfutil@empty%
|
| 14 |
+
\let\pgf@psfuncs=\pgfutil@empty%
|
| 15 |
+
\let\pgf@encode=\pgfutil@empty%
|
| 16 |
+
\let\pgf@sys@shading@ranges=\pgfutil@empty%
|
| 17 |
+
\pgf@sys@shading@range@num=0\relax%
|
| 18 |
+
\csname pgf@parsefirst\pgf@shading@model\endcsname[#1; ]%
|
| 19 |
+
\csname pgf@parselastdom\pgf@shading@model\endcsname[#1; ]%
|
| 20 |
+
\csname pgf@parsemid\pgf@shading@model\endcsname[#1; ]%
|
| 21 |
+
\ifx\pgf@bounds\pgfutil@empty%
|
| 22 |
+
\edef\pgf@pdfparseddomain{0 1}%
|
| 23 |
+
\edef\pgf@pdfparsedfunction{\pgf@singlefunc\space}%
|
| 24 |
+
\else%
|
| 25 |
+
\edef\pgf@pdfparseddomain{\pgf@doma\space\pgf@domb}%
|
| 26 |
+
\edef\pgf@pdfparsedfunction{%
|
| 27 |
+
<< /FunctionType 3 /Domain [\pgf@doma\space\pgf@domb] /Functions
|
| 28 |
+
[\pgf@funcs\space] /Bounds [\pgf@bounds] /Encode [0 1 \pgf@encode]
|
| 29 |
+
>> }%
|
| 30 |
+
\fi%
|
| 31 |
+
\xdef\pgf@psfuncs{\pgf@psfuncs}%
|
| 32 |
+
}
|
| 33 |
+
\def\pgf@parsefirstrgb[rgb(#1)=(#2,#3,#4)#5]{%
|
| 34 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 35 |
+
\edef\pgf@sys@shading@start@pos{\the\pgf@x}%
|
| 36 |
+
\pgf@sys@bp@correct\pgf@x%
|
| 37 |
+
\edef\pgf@doma{\pgf@sys@tonumber{\pgf@x}}%
|
| 38 |
+
\edef\pgf@prevx{\pgf@sys@tonumber{\pgf@x}}%
|
| 39 |
+
\pgf@getrgbtuplewithmixin{#2}{#3}{#4}%
|
| 40 |
+
\edef\pgf@sys@shading@start@rgb{\pgf@sys@rgb}%
|
| 41 |
+
\let\pgf@sys@prevcolor=\pgf@sys@shading@start@rgb%
|
| 42 |
+
\let\pgf@sys@prevpos=\pgf@sys@shading@start@pos%
|
| 43 |
+
\edef\pgf@prevcolor{\pgf@rgb}%
|
| 44 |
+
\edef\pgf@firstcolor{\pgf@rgb}}
|
| 45 |
+
\def\pgf@parselastdomrgb[rgb(#1)=(#2,#3,#4); {%
|
| 46 |
+
\pgfutil@ifnextchar]{%
|
| 47 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 48 |
+
\edef\pgf@sys@shading@end@pos{\the\pgf@x}%
|
| 49 |
+
\pgf@max=\pgf@x\relax%
|
| 50 |
+
\pgf@sys@bp@correct\pgf@x%
|
| 51 |
+
\edef\pgf@domb{\pgf@sys@tonumber{\pgf@x}}%
|
| 52 |
+
\pgf@getrgbtuplewithmixin{#2}{#3}{#4}%
|
| 53 |
+
\edef\pgf@sys@shading@end@rgb{\pgf@sys@rgb}%
|
| 54 |
+
\pgfutil@gobble}{\pgf@parselastdomrgb[}}
|
| 55 |
+
\def\pgf@parsemidrgb[rgb(#1)=(#2,#3,#4); {\pgf@parserestrgb[}
|
| 56 |
+
\def\pgf@parserestrgb[rgb(#1)=(#2,#3,#4); {%
|
| 57 |
+
\advance\pgf@sys@shading@range@num by1\relax%
|
| 58 |
+
\pgfutil@ifnextchar]{%
|
| 59 |
+
\pgf@getrgbtuplewithmixin{#2}{#3}{#4}%
|
| 60 |
+
\edef\pgf@singlefunc{\space%
|
| 61 |
+
<< /FunctionType 2 /Domain [0 1] /C0
|
| 62 |
+
[\pgf@prevcolor] /C1 [\pgf@rgb] /N 1 >> }%
|
| 63 |
+
\edef\pgf@funcs{\pgf@funcs\space%
|
| 64 |
+
<< /FunctionType 2 /Domain [\pgf@doma\space\pgf@domb] /C0
|
| 65 |
+
[\pgf@prevcolor] /C1 [\pgf@rgb] /N 1 >> }%
|
| 66 |
+
\edef\pgf@psfuncs{\pgf@prevx\space \pgf@rgb\space \pgf@prevcolor\space pgfshade \pgf@psfuncs}%
|
| 67 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 68 |
+
\edef\pgf@sys@shading@ranges{\pgf@sys@shading@ranges{{\pgf@sys@prevpos}{\the\pgf@x}{\pgf@sys@prevcolor}{\pgf@sys@rgb}}}%
|
| 69 |
+
\edef\pgf@sys@prevpos{\the\pgf@x}%
|
| 70 |
+
\let\pgf@sys@prevcolor=\pgf@sys@rgb%
|
| 71 |
+
\pgfutil@gobble}{%
|
| 72 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 73 |
+
\pgf@getrgbtuplewithmixin{#2}{#3}{#4}%
|
| 74 |
+
\edef\pgf@sys@shading@ranges{\pgf@sys@shading@ranges{{\pgf@sys@prevpos}{\the\pgf@x}{\pgf@sys@prevcolor}{\pgf@sys@rgb}}}%
|
| 75 |
+
\edef\pgf@sys@prevpos{\the\pgf@x}%
|
| 76 |
+
\let\pgf@sys@prevcolor=\pgf@sys@rgb%
|
| 77 |
+
\edef\pgf@psfuncs{\pgf@prevx\space \pgf@rgb\space \pgf@prevcolor\space pgfshade \pgf@psfuncs}%
|
| 78 |
+
\pgf@sys@bp@correct\pgf@x%
|
| 79 |
+
\edef\pgf@prevx{\pgf@sys@tonumber{\pgf@x}}%
|
| 80 |
+
\edef\pgf@bounds{\pgf@bounds\space\pgf@sys@tonumber{\pgf@x}}%
|
| 81 |
+
\edef\pgf@encode{\pgf@encode\space0 1}%
|
| 82 |
+
\edef\pgf@singlefunc{\space%
|
| 83 |
+
<< /FunctionType 2 /Domain [0 1] /C0
|
| 84 |
+
[\pgf@prevcolor] /C1 [\pgf@rgb] /N 1 >> }%
|
| 85 |
+
\edef\pgf@funcs{\pgf@funcs\space%
|
| 86 |
+
<< /FunctionType 2 /Domain [\pgf@doma\space\pgf@domb] /C0
|
| 87 |
+
[\pgf@prevcolor] /C1 [\pgf@rgb] /N 1 >> }%
|
| 88 |
+
\edef\pgf@prevcolor{\pgf@rgb}%
|
| 89 |
+
\pgf@parserestrgb[}}
|
| 90 |
+
|
| 91 |
+
\def\pgf@getrgbtuplewithmixin#1#2#3{%
|
| 92 |
+
\pgfutil@definecolor{pgfshadetemp}{rgb}{#1,#2,#3}%
|
| 93 |
+
\pgfutil@ifundefined{applycolormixins}{}{\applycolormixins{pgfshadetemp}}%
|
| 94 |
+
\pgfutil@extractcolorspec{pgfshadetemp}{\pgf@tempcolor}%
|
| 95 |
+
\expandafter\pgfutil@convertcolorspec\pgf@tempcolor{rgb}{\pgf@rgbcolor}%
|
| 96 |
+
\expandafter\pgf@getrgb@@\pgf@rgbcolor!}
|
| 97 |
+
\def\pgf@getrgb@@#1,#2,#3!{%
|
| 98 |
+
\def\pgf@rgb{#1 #2 #3}%
|
| 99 |
+
\def\pgf@sys@rgb{{#1}{#2}{#3}}%
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
\def\pgf@parsefirstcmyk[cmyk(#1)=(#2,#3,#4,#5)#6]{%
|
| 103 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 104 |
+
\edef\pgf@sys@shading@start@pos{\the\pgf@x}%
|
| 105 |
+
\pgf@sys@bp@correct\pgf@x%
|
| 106 |
+
\edef\pgf@doma{\pgf@sys@tonumber{\pgf@x}}%
|
| 107 |
+
\edef\pgf@prevx{\pgf@sys@tonumber{\pgf@x}}%
|
| 108 |
+
\pgf@getcmyktuplewithmixin{#2}{#3}{#4}{#5}%
|
| 109 |
+
\edef\pgf@sys@shading@start@cmyk{\pgf@sys@cmyk}%
|
| 110 |
+
\let\pgf@sys@prevcolor=\pgf@sys@shading@start@cmyk%
|
| 111 |
+
\let\pgf@sys@prevpos=\pgf@sys@shading@start@pos%
|
| 112 |
+
\edef\pgf@prevcolor{\pgf@cmyk}%
|
| 113 |
+
\edef\pgf@firstcolor{\pgf@cmyk}}
|
| 114 |
+
\def\pgf@parselastdomcmyk[cmyk(#1)=(#2,#3,#4,#5); {%
|
| 115 |
+
\pgfutil@ifnextchar]{%
|
| 116 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 117 |
+
\edef\pgf@sys@shading@end@pos{\the\pgf@x}%
|
| 118 |
+
\pgf@max=\pgf@x\relax%
|
| 119 |
+
\pgf@sys@bp@correct\pgf@x%
|
| 120 |
+
\edef\pgf@domb{\pgf@sys@tonumber{\pgf@x}}%
|
| 121 |
+
\pgf@getcmyktuplewithmixin{#2}{#3}{#4}{#5}%
|
| 122 |
+
\edef\pgf@sys@shading@end@cmyk{\pgf@sys@cmyk}%
|
| 123 |
+
\pgfutil@gobble}{\pgf@parselastdomcmyk[}}
|
| 124 |
+
\def\pgf@parsemidcmyk[cmyk(#1)=(#2,#3,#4,#5); {\pgf@parserestcmyk[}
|
| 125 |
+
\def\pgf@parserestcmyk[cmyk(#1)=(#2,#3,#4,#5); {%
|
| 126 |
+
\advance\pgf@sys@shading@range@num by1\relax%
|
| 127 |
+
\pgfutil@ifnextchar]{%
|
| 128 |
+
\pgf@getcmyktuplewithmixin{#2}{#3}{#4}{#5}%
|
| 129 |
+
\edef\pgf@singlefunc{\space%
|
| 130 |
+
<< /FunctionType 2 /Domain [0 1] /C0
|
| 131 |
+
[\pgf@prevcolor] /C1 [\pgf@cmyk] /N 1 >> }%
|
| 132 |
+
\edef\pgf@funcs{\pgf@funcs\space%
|
| 133 |
+
<< /FunctionType 2 /Domain [\pgf@doma\space\pgf@domb] /C0
|
| 134 |
+
[\pgf@prevcolor] /C1 [\pgf@cmyk] /N 1 >> }%
|
| 135 |
+
\edef\pgf@psfuncs{\pgf@prevx\space
|
| 136 |
+
\pgf@cmyk\space \pgf@prevcolor\space pgfshade \pgf@psfuncs}%
|
| 137 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 138 |
+
\edef\pgf@sys@shading@ranges{\pgf@sys@shading@ranges{%
|
| 139 |
+
{\pgf@sys@prevpos}{\the\pgf@x}{\pgf@sys@prevcolor}{\pgf@sys@cmyk}}}%
|
| 140 |
+
\edef\pgf@sys@prevpos{\the\pgf@x}%
|
| 141 |
+
\let\pgf@sys@prevcolor=\pgf@sys@cmyk%
|
| 142 |
+
\pgfutil@gobble}{%
|
| 143 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 144 |
+
\pgf@getcmyktuplewithmixin{#2}{#3}{#4}{#5}%
|
| 145 |
+
\edef\pgf@sys@shading@ranges{\pgf@sys@shading@ranges{%
|
| 146 |
+
{\pgf@sys@prevpos}{\the\pgf@x}{\pgf@sys@prevcolor}{\pgf@sys@cmyk}}}%
|
| 147 |
+
\edef\pgf@sys@prevpos{\the\pgf@x}%
|
| 148 |
+
\let\pgf@sys@prevcolor=\pgf@sys@cmyk%
|
| 149 |
+
\edef\pgf@psfuncs{\pgf@prevx\space \pgf@cmyk\space
|
| 150 |
+
\pgf@prevcolor\space pgfshade \pgf@psfuncs}%
|
| 151 |
+
\pgf@sys@bp@correct\pgf@x%
|
| 152 |
+
\edef\pgf@prevx{\pgf@sys@tonumber{\pgf@x}}%
|
| 153 |
+
\edef\pgf@bounds{\pgf@bounds\space\pgf@sys@tonumber{\pgf@x}}%
|
| 154 |
+
\edef\pgf@encode{\pgf@encode\space0 1}%
|
| 155 |
+
\edef\pgf@singlefunc{\space%
|
| 156 |
+
<< /FunctionType 2 /Domain [0 1] /C0
|
| 157 |
+
[\pgf@prevcolor] /C1 [\pgf@cmyk] /N 1 >> }%
|
| 158 |
+
\edef\pgf@funcs{\pgf@funcs\space%
|
| 159 |
+
<< /FunctionType 2 /Domain [\pgf@doma\space\pgf@domb] /C0
|
| 160 |
+
[\pgf@prevcolor] /C1 [\pgf@cmyk] /N 1 >> }%
|
| 161 |
+
\edef\pgf@prevcolor{\pgf@cmyk}%
|
| 162 |
+
\pgf@parserestcmyk[}}
|
| 163 |
+
|
| 164 |
+
\def\pgf@getcmyktuplewithmixin#1#2#3#4{%
|
| 165 |
+
\pgfutil@definecolor{pgfshadetemp}{cmyk}{#1,#2,#3,#4}%
|
| 166 |
+
\pgfutil@ifundefined{applycolormixins}{}{\applycolormixins{pgfshadetemp}}%
|
| 167 |
+
\pgfutil@extractcolorspec{pgfshadetemp}{\pgf@tempcolor}%
|
| 168 |
+
\expandafter\pgfutil@convertcolorspec\pgf@tempcolor{cmyk}{\pgf@cmykcolor}%
|
| 169 |
+
\expandafter\pgf@getcmyk@@\pgf@cmykcolor!}
|
| 170 |
+
\def\pgf@getcmyk@@#1,#2,#3,#4!{%
|
| 171 |
+
\def\pgf@cmyk{#1 #2 #3 #4}%
|
| 172 |
+
\def\pgf@sys@cmyk{{#1}{#2}{#3}{#4}}%
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
\def\pgf@parsefirstgray[gray(#1)=(#2)#3]{%
|
| 176 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 177 |
+
\edef\pgf@sys@shading@start@pos{\the\pgf@x}%
|
| 178 |
+
\pgf@sys@bp@correct\pgf@x%
|
| 179 |
+
\edef\pgf@doma{\pgf@sys@tonumber{\pgf@x}}%
|
| 180 |
+
\edef\pgf@prevx{\pgf@sys@tonumber{\pgf@x}}%
|
| 181 |
+
\pgf@getgraytuplewithmixin{#2}%
|
| 182 |
+
\edef\pgf@sys@shading@start@gray{\pgf@sys@gray}%
|
| 183 |
+
\let\pgf@sys@prevcolor=\pgf@sys@shading@start@gray%
|
| 184 |
+
\let\pgf@sys@prevpos=\pgf@sys@shading@start@pos%
|
| 185 |
+
\edef\pgf@prevcolor{\pgf@gray}%
|
| 186 |
+
\edef\pgf@firstcolor{\pgf@gray}}
|
| 187 |
+
\def\pgf@parselastdomgray[gray(#1)=(#2); {%
|
| 188 |
+
\pgfutil@ifnextchar]{%
|
| 189 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 190 |
+
\edef\pgf@sys@shading@end@pos{\the\pgf@x}%
|
| 191 |
+
\pgf@max=\pgf@x\relax%
|
| 192 |
+
\pgf@sys@bp@correct\pgf@x%
|
| 193 |
+
\edef\pgf@domb{\pgf@sys@tonumber{\pgf@x}}%
|
| 194 |
+
\pgf@getgraytuplewithmixin{#2}%
|
| 195 |
+
\edef\pgf@sys@shading@end@gray{\pgf@sys@gray}%
|
| 196 |
+
\pgfutil@gobble}{\pgf@parselastdomgray[}}
|
| 197 |
+
\def\pgf@parsemidgray[gray(#1)=(#2); {\pgf@parserestgray[}
|
| 198 |
+
\def\pgf@parserestgray[gray(#1)=(#2); {%
|
| 199 |
+
\advance\pgf@sys@shading@range@num by1\relax%
|
| 200 |
+
\pgfutil@ifnextchar]{%
|
| 201 |
+
\pgf@getgraytuplewithmixin{#2}%
|
| 202 |
+
\edef\pgf@singlefunc{\space%
|
| 203 |
+
<< /FunctionType 2 /Domain [0 1] /C0
|
| 204 |
+
[\pgf@prevcolor] /C1 [\pgf@gray] /N 1 >> }%
|
| 205 |
+
\edef\pgf@funcs{\pgf@funcs\space%
|
| 206 |
+
<< /FunctionType 2 /Domain [\pgf@doma\space\pgf@domb] /C0
|
| 207 |
+
[\pgf@prevcolor] /C1 [\pgf@gray] /N 1 >> }%
|
| 208 |
+
\edef\pgf@psfuncs{\pgf@prevx\space \pgf@gray\space
|
| 209 |
+
\pgf@prevcolor\space pgfshade \pgf@psfuncs}%
|
| 210 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 211 |
+
\edef\pgf@sys@shading@ranges{\pgf@sys@shading@ranges{%
|
| 212 |
+
{\pgf@sys@prevpos}{\the\pgf@x}{\pgf@sys@prevcolor}{\pgf@sys@gray}}}%
|
| 213 |
+
\edef\pgf@sys@prevpos{\the\pgf@x}%
|
| 214 |
+
\let\pgf@sys@prevcolor=\pgf@sys@gray%
|
| 215 |
+
\pgfutil@gobble}{%
|
| 216 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 217 |
+
\pgf@getgraytuplewithmixin{#2}%
|
| 218 |
+
\edef\pgf@sys@shading@ranges{\pgf@sys@shading@ranges{%
|
| 219 |
+
{\pgf@sys@prevpos}{\the\pgf@x}{\pgf@sys@prevcolor}{\pgf@sys@gray}}}%
|
| 220 |
+
\edef\pgf@sys@prevpos{\the\pgf@x}%
|
| 221 |
+
\let\pgf@sys@prevcolor=\pgf@sys@gray%
|
| 222 |
+
\edef\pgf@psfuncs{\pgf@prevx\space \pgf@gray\space
|
| 223 |
+
\pgf@prevcolor\space pgfshade \pgf@psfuncs}%
|
| 224 |
+
\pgf@sys@bp@correct\pgf@x%
|
| 225 |
+
\edef\pgf@prevx{\pgf@sys@tonumber{\pgf@x}}%
|
| 226 |
+
\edef\pgf@bounds{\pgf@bounds\space\pgf@sys@tonumber{\pgf@x}}%
|
| 227 |
+
\edef\pgf@encode{\pgf@encode\space0 1}%
|
| 228 |
+
\edef\pgf@singlefunc{\space%
|
| 229 |
+
<< /FunctionType 2 /Domain [0 1] /C0
|
| 230 |
+
[\pgf@prevcolor] /C1 [\pgf@gray] /N 1 >> }%
|
| 231 |
+
\edef\pgf@funcs{\pgf@funcs\space%
|
| 232 |
+
<< /FunctionType 2 /Domain [\pgf@doma\space\pgf@domb] /C0
|
| 233 |
+
[\pgf@prevcolor] /C1 [\pgf@gray] /N 1 >> }%
|
| 234 |
+
\edef\pgf@prevcolor{\pgf@gray}%
|
| 235 |
+
\pgf@parserestgray[}}
|
| 236 |
+
|
| 237 |
+
\def\pgf@getgraytuplewithmixin#1{%
|
| 238 |
+
\pgfutil@definecolor{pgfshadetemp}{gray}{#1}%
|
| 239 |
+
\pgfutil@ifundefined{applycolormixins}{}{\applycolormixins{pgfshadetemp}}%
|
| 240 |
+
\pgfutil@extractcolorspec{pgfshadetemp}{\pgf@tempcolor}%
|
| 241 |
+
\expandafter\pgfutil@convertcolorspec\pgf@tempcolor{gray}{\pgf@graycolor}%
|
| 242 |
+
\expandafter\pgf@getgray@@\pgf@graycolor!}
|
| 243 |
+
\def\pgf@getgray@@#1!{%
|
| 244 |
+
\def\pgf@gray{#1}%
|
| 245 |
+
\def\pgf@sys@gray{{#1}}%
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
\def\pgf@convertstring#1{%
|
| 249 |
+
\def\pgf@conv{}%
|
| 250 |
+
\pgf@convert#1]%
|
| 251 |
+
}
|
| 252 |
+
\def\pgf@convert{%
|
| 253 |
+
\pgfutil@ifnextchar]{\pgfutil@gobble}%
|
| 254 |
+
{%
|
| 255 |
+
\pgfutil@ifnextchar;{\pgf@grabsemicolor}%
|
| 256 |
+
{%
|
| 257 |
+
\pgfutil@ifnextchar c{\pgf@gobblec}%
|
| 258 |
+
{%
|
| 259 |
+
\pgfutil@ifnextchar g{\pgf@grabgray}%
|
| 260 |
+
{%
|
| 261 |
+
\pgfutil@ifnextchar o{\pgf@grabcolor}%
|
| 262 |
+
{%
|
| 263 |
+
\pgfutil@ifnextchar m{\pgf@grabcmyk}%
|
| 264 |
+
{%
|
| 265 |
+
\pgfutil@ifnextchar r{\pgf@grabrgb}%
|
| 266 |
+
{\pgferror{Illformed shading
|
| 267 |
+
specification}\pgf@convert}%
|
| 268 |
+
}%
|
| 269 |
+
}%
|
| 270 |
+
}%
|
| 271 |
+
}%
|
| 272 |
+
}%
|
| 273 |
+
}%
|
| 274 |
+
}
|
| 275 |
+
\def\pgf@savecolor#1{%
|
| 276 |
+
\pgfutil@extractcolorspec{pgf@tempcol}{\pgf@tempcolor}%
|
| 277 |
+
\expandafter\pgfutil@convertcolorspec\pgf@tempcolor
|
| 278 |
+
{\pgf@shading@model}{\pgf@color}%
|
| 279 |
+
\expandafter\pgf@convget@\expandafter{\pgf@color}{#1}%
|
| 280 |
+
}
|
| 281 |
+
\def\pgf@grabsemicolor;{%
|
| 282 |
+
\edef\pgf@conv{\pgf@conv; }\pgf@convert}
|
| 283 |
+
\def\pgf@gobblec c{\pgf@convert}
|
| 284 |
+
\def\pgf@grabrgb rgb(#1)=(#2,#3,#4){%
|
| 285 |
+
\pgfutil@definecolor{pgf@tempcol}{rgb}{#2,#3,#4}%
|
| 286 |
+
\pgf@savecolor{#1}%
|
| 287 |
+
}
|
| 288 |
+
\def\pgf@grabcmyk myk(#1)=(#2,#3,#4,#5){%
|
| 289 |
+
\pgfutil@definecolor{pgf@tempcol}{cmyk}{#2,#3,#4,#5}%
|
| 290 |
+
\pgf@savecolor{#1}%
|
| 291 |
+
}
|
| 292 |
+
\def\pgf@grabgray gray(#1)=(#2){%
|
| 293 |
+
\pgfutil@definecolor{pgf@tempcol}{gray}{#2}%
|
| 294 |
+
\pgf@savecolor{#1}%
|
| 295 |
+
}
|
| 296 |
+
\def\pgf@grabcolor olor(#1)=(#2){%
|
| 297 |
+
\pgfutil@colorlet{pgf@tempcol}{#2}%
|
| 298 |
+
\pgf@savecolor{#1}%
|
| 299 |
+
}
|
| 300 |
+
\def\pgf@convget@#1#2{%
|
| 301 |
+
\edef\pgf@conv{\pgf@conv \pgf@shading@model(#2)=(#1)}\pgf@convert}
|
| 302 |
+
|
| 303 |
+
|
| 304 |
+
\newcount\pgf@shadingcount
|
| 305 |
+
\pgf@shadingcount=0
|
| 306 |
+
{
|
| 307 |
+
\catcode`\/=0
|
| 308 |
+
\catcode`\\=12
|
| 309 |
+
/gdef/pgf@shadingnum{\/the/pgf@shadingcount\}
|
| 310 |
+
}
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
\newif\ifpgfshadingmodelrgb
|
| 314 |
+
\newif\ifpgfshadingmodelcmyk
|
| 315 |
+
\newif\ifpgfshadingmodelgray
|
| 316 |
+
\def\pgf@setup@shading@model{%
|
| 317 |
+
\pgfshadingmodelrgbtrue
|
| 318 |
+
\pgfshadingmodelcmykfalse
|
| 319 |
+
\pgfshadingmodelgrayfalse
|
| 320 |
+
\XC@sdef\pgf@mod@test{\XC@tgt@mod{natural}}%
|
| 321 |
+
\def\pgf@shading@device{/DeviceRGB}%
|
| 322 |
+
\def\pgf@shading@ps@device{setrgbcolor}%
|
| 323 |
+
\def\pgf@shading@functional@range{0 1 0 1 0 1}%
|
| 324 |
+
\def\pgf@shading@model{rgb}%
|
| 325 |
+
\ifx\pgf@mod@test\XC@mod@cmyk
|
| 326 |
+
\def\pgf@shading@device{/DeviceCMYK}%
|
| 327 |
+
\def\pgf@shading@ps@device{setcmykcolor}%
|
| 328 |
+
\def\pgf@shading@functional@range{0 1 0 1 0 1 0 1}%
|
| 329 |
+
\def\pgf@shading@model{cmyk}%
|
| 330 |
+
\pgfshadingmodelrgbfalse
|
| 331 |
+
\pgfshadingmodelcmyktrue
|
| 332 |
+
\fi
|
| 333 |
+
\ifx\pgf@mod@test\XC@mod@gray
|
| 334 |
+
\def\pgf@shading@device{/DeviceGray}%
|
| 335 |
+
\def\pgf@shading@ps@device{setgray}%
|
| 336 |
+
\def\pgf@shading@functional@range{0 1}%
|
| 337 |
+
\def\pgf@shading@model{gray}%
|
| 338 |
+
\pgfshadingmodelrgbfalse
|
| 339 |
+
\pgfshadingmodelgraytrue
|
| 340 |
+
\fi
|
| 341 |
+
\edef\pgf@sys@driver@dvisvgm{pgfsys-dvisvgm.def}%
|
| 342 |
+
\ifx\pgfsysdriver\pgf@sys@driver@dvisvgm
|
| 343 |
+
\def\pgf@shading@model{rgb}%
|
| 344 |
+
\fi
|
| 345 |
+
\edef\pgf@sys@driver@texforht{pgfsys-tex4ht.def}%
|
| 346 |
+
\ifx\pgfsysdriver\pgf@sys@driver@texforht
|
| 347 |
+
\def\pgf@shading@model{rgb}%
|
| 348 |
+
\fi
|
| 349 |
+
}
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
|
| 353 |
+
\def\pgfdeclarehorizontalshading{%
|
| 354 |
+
\pgf@setup@shading@model
|
| 355 |
+
\pgfutil@ifnextchar[%
|
| 356 |
+
\pgf@declarehorizontalshading{\pgf@declarehorizontalshading[]}}
|
| 357 |
+
\def\pgf@declarehorizontalshading[#1]#2#3#4{%
|
| 358 |
+
\expandafter\def\csname pgf@deps@pgfshading#2!\endcsname{#1}%
|
| 359 |
+
\expandafter\ifx\csname pgf@deps@pgfshading#2!\endcsname\pgfutil@empty%
|
| 360 |
+
\global\expandafter\let\csname pgf@num@pgfshading#2!\endcsname\pgfutil@empty
|
| 361 |
+
\pgfsys@horishading{#2}{#3}{#4}%
|
| 362 |
+
\else%
|
| 363 |
+
\global\advance\pgf@shadingcount 1\relax
|
| 364 |
+
\global\expandafter\edef\csname pgf@num@pgfshading#2!\endcsname{\pgf@shadingnum}%
|
| 365 |
+
\expandafter\def\csname pgf@func@pgfshading#2!\endcsname{\pgfsys@horishading}%
|
| 366 |
+
\expandafter\def\csname pgf@args@pgfshading#2!\endcsname{{#3}{#4}}%
|
| 367 |
+
\expandafter\let\csname @pgfshading#2!\endcsname=\pgfutil@empty%
|
| 368 |
+
\fi}
|
| 369 |
+
|
| 370 |
+
|
| 371 |
+
|
| 372 |
+
\def\pgfdeclareverticalshading{%
|
| 373 |
+
\pgf@setup@shading@model
|
| 374 |
+
\pgfutil@ifnextchar[%
|
| 375 |
+
\pgf@declareverticalshading{\pgf@declareverticalshading[]}}
|
| 376 |
+
\def\pgf@declareverticalshading[#1]#2#3#4{%
|
| 377 |
+
\expandafter\def\csname pgf@deps@pgfshading#2!\endcsname{#1}%
|
| 378 |
+
\expandafter\ifx\csname pgf@deps@pgfshading#2!\endcsname\pgfutil@empty%
|
| 379 |
+
\global\expandafter\let\csname pgf@num@pgfshading#2!\endcsname=\pgfutil@empty
|
| 380 |
+
\pgfsys@vertshading{#2}{#3}{#4}%
|
| 381 |
+
\else%
|
| 382 |
+
\global\advance\pgf@shadingcount 1\relax
|
| 383 |
+
\global\expandafter\edef\csname pgf@num@pgfshading#2!\endcsname{\pgf@shadingnum}%
|
| 384 |
+
\expandafter\def\csname pgf@func@pgfshading#2!\endcsname{\pgfsys@vertshading}%
|
| 385 |
+
\expandafter\def\csname pgf@args@pgfshading#2!\endcsname{{#3}{#4}}%
|
| 386 |
+
\expandafter\let\csname @pgfshading#2!\endcsname=\pgfutil@empty%
|
| 387 |
+
\fi}
|
| 388 |
+
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
\def\pgfdeclareradialshading{%
|
| 392 |
+
\pgf@setup@shading@model
|
| 393 |
+
\pgfutil@ifnextchar[%
|
| 394 |
+
\pgf@declareradialshading{\pgf@declareradialshading[]}}
|
| 395 |
+
\def\pgf@declareradialshading[#1]#2#3#4{%
|
| 396 |
+
\expandafter\def\csname pgf@deps@pgfshading#2!\endcsname{#1}%
|
| 397 |
+
\expandafter\ifx\csname pgf@deps@pgfshading#2!\endcsname\pgfutil@empty%
|
| 398 |
+
\global\expandafter\let\csname pgf@num@pgfshading#2!\endcsname=\pgfutil@empty
|
| 399 |
+
\pgfsys@radialshading{#2}{#3}{#4}%
|
| 400 |
+
\else%
|
| 401 |
+
\global\advance\pgf@shadingcount 1\relax
|
| 402 |
+
\global\expandafter\edef\csname pgf@num@pgfshading#2!\endcsname{\pgf@shadingnum}%
|
| 403 |
+
\expandafter\def\csname pgf@func@pgfshading#2!\endcsname{\pgfsys@radialshading}%
|
| 404 |
+
\expandafter\def\csname pgf@args@pgfshading#2!\endcsname{{#3}{#4}}%
|
| 405 |
+
\expandafter\let\csname @pgfshading#2!\endcsname=\pgfutil@empty%
|
| 406 |
+
\fi}
|
| 407 |
+
|
| 408 |
+
|
| 409 |
+
|
| 410 |
+
|
| 411 |
+
|
| 412 |
+
\def\pgfdeclarefunctionalshading{%
|
| 413 |
+
\pgf@setup@shading@model
|
| 414 |
+
\pgfutil@ifnextchar[%
|
| 415 |
+
\pgf@declarefunctionalshading{\pgf@declarefunctionalshading[]}}
|
| 416 |
+
\def\pgf@declarefunctionalshading[#1]#2#3#4#5#6{%
|
| 417 |
+
\expandafter\def\csname pgf@deps@pgfshading#2!\endcsname{#1}%
|
| 418 |
+
\expandafter\ifx\csname pgf@deps@pgfshading#2!\endcsname\pgfutil@empty%
|
| 419 |
+
\global\expandafter\let\csname pgf@num@pgfshading#2!\endcsname=\pgfutil@empty
|
| 420 |
+
\pgfshade@functionaldo{#2}{#3}{#4}{#5}{#6}%
|
| 421 |
+
\else%
|
| 422 |
+
\global\advance\pgf@shadingcount 1\relax
|
| 423 |
+
\global\expandafter\edef\csname pgf@num@pgfshading#2!\endcsname{\pgf@shadingnum}%
|
| 424 |
+
\expandafter\def\csname pgf@func@pgfshading#2!\endcsname{\pgfshade@functionaldo}%
|
| 425 |
+
\expandafter\def\csname pgf@args@pgfshading#2!\endcsname{{#3}{#4}{#5}{#6}}%
|
| 426 |
+
\expandafter\let\csname @pgfshading#2!\endcsname=\pgfutil@empty%
|
| 427 |
+
\fi}
|
| 428 |
+
\def\pgfshade@functionaldo#1#2#3#4#5{%
|
| 429 |
+
\begingroup
|
| 430 |
+
#4%
|
| 431 |
+
\pgfsys@functionalshading{#1}{#2}{#3}{#5}%
|
| 432 |
+
\expandafter\pgfmath@smuggleone\csname @pgfshading#1!\endcsname
|
| 433 |
+
\endgroup
|
| 434 |
+
}
|
| 435 |
+
|
| 436 |
+
\def\pgfshadecolortorgb#1#2{%
|
| 437 |
+
\pgfutil@colorlet{pgf@tempcol}{#1}%
|
| 438 |
+
\pgfutil@extractcolorspec{pgf@tempcol}{\pgf@tempcolor}%
|
| 439 |
+
\expandafter\pgfutil@convertcolorspec\pgf@tempcolor{rgb}{\pgf@rgbcolor}%
|
| 440 |
+
\expandafter\pgfshading@rgb\pgf@rgbcolor\relax%
|
| 441 |
+
\edef#2{\pgf@sys@tonumber{\pgf@xa}\space\pgf@sys@tonumber{\pgf@xb}\space\pgf@sys@tonumber{\pgf@xc}\space}%
|
| 442 |
+
\c@pgf@counta\escapechar%
|
| 443 |
+
\escapechar-1\relax%
|
| 444 |
+
\expandafter\edef\csname\string#2red\endcsname{\pgf@sys@tonumber{\pgf@xa}\space}%
|
| 445 |
+
\expandafter\edef\csname\string#2green\endcsname{\pgf@sys@tonumber{\pgf@xb}\space}%
|
| 446 |
+
\expandafter\edef\csname\string#2blue\endcsname{\pgf@sys@tonumber{\pgf@xc}\space}%
|
| 447 |
+
\escapechar\c@pgf@counta%
|
| 448 |
+
}
|
| 449 |
+
\def\pgfshading@rgb#1,#2,#3\relax{%
|
| 450 |
+
\pgf@xa=#1pt%
|
| 451 |
+
\pgf@xb=#2pt%
|
| 452 |
+
\pgf@xc=#3pt%
|
| 453 |
+
}
|
| 454 |
+
|
| 455 |
+
\def\pgfshadecolortocmyk#1#2{%
|
| 456 |
+
\pgfutil@colorlet{pgf@tempcol}{#1}%
|
| 457 |
+
\pgfutil@extractcolorspec{pgf@tempcol}{\pgf@tempcolor}%
|
| 458 |
+
\expandafter\pgfutil@convertcolorspec\pgf@tempcolor{cmyk}{\pgf@cmykcolor}%
|
| 459 |
+
\expandafter\pgfshading@cmyk\pgf@cmykcolor\relax%
|
| 460 |
+
\edef#2{\pgf@sys@tonumber{\pgf@xa}\space\pgf@sys@tonumber{\pgf@xb}\space
|
| 461 |
+
\pgf@sys@tonumber{\pgf@xc}\space\pgf@sys@tonumber{\pgf@xd}\space}%
|
| 462 |
+
\c@pgf@counta\escapechar%
|
| 463 |
+
\escapechar-1\relax%
|
| 464 |
+
\expandafter\edef\csname\string#2cyan\endcsname{%
|
| 465 |
+
\pgf@sys@tonumber{\pgf@xa}\space}%
|
| 466 |
+
\expandafter\edef\csname\string#2magenta\endcsname{%
|
| 467 |
+
\pgf@sys@tonumber{\pgf@xb}\space}%
|
| 468 |
+
\expandafter\edef\csname\string#2yellow\endcsname{%
|
| 469 |
+
\pgf@sys@tonumber{\pgf@xc}\space}%
|
| 470 |
+
\expandafter\edef\csname\string#2black\endcsname{%
|
| 471 |
+
\pgf@sys@tonumber{\pgf@xd}\space}%
|
| 472 |
+
\escapechar\c@pgf@counta
|
| 473 |
+
}
|
| 474 |
+
\def\pgfshading@cmyk#1,#2,#3,#4\relax{%
|
| 475 |
+
\pgf@xa=#1pt%
|
| 476 |
+
\pgf@xb=#2pt%
|
| 477 |
+
\pgf@xc=#3pt%
|
| 478 |
+
\pgf@xd=#4pt%
|
| 479 |
+
}
|
| 480 |
+
|
| 481 |
+
\def\pgfshadecolortogray#1#2{%
|
| 482 |
+
\pgfutil@colorlet{pgf@tempcol}{#1}%
|
| 483 |
+
\pgfutil@extractcolorspec{pgf@tempcol}{\pgf@tempcolor}%
|
| 484 |
+
\expandafter\pgfutil@convertcolorspec\pgf@tempcolor{gray}{\pgf@graycolor}%
|
| 485 |
+
\expandafter\pgfshading@gray\pgf@graycolor\relax
|
| 486 |
+
\edef#2{\pgf@sys@tonumber{\pgf@xa}\space}%
|
| 487 |
+
\c@pgf@counta\escapechar
|
| 488 |
+
\escapechar-1\relax
|
| 489 |
+
\expandafter\edef\csname\string#2gray\endcsname{%
|
| 490 |
+
\pgf@sys@tonumber{\pgf@xa}\space}%
|
| 491 |
+
\escapechar\c@pgf@counta
|
| 492 |
+
}
|
| 493 |
+
\def\pgfshading@gray#1\relax{%
|
| 494 |
+
\pgf@xa=#1pt%
|
| 495 |
+
}
|
| 496 |
+
|
| 497 |
+
|
| 498 |
+
\def\pgffuncshadingrgbtocmyk{%
|
| 499 |
+
1.0 exch sub 3 1 roll
|
| 500 |
+
1.0 exch sub 3 1 roll
|
| 501 |
+
1.0 exch sub 3 1 roll
|
| 502 |
+
3 copy
|
| 503 |
+
2 copy gt { exch } if pop
|
| 504 |
+
2 copy gt { exch } if pop
|
| 505 |
+
dup 3 1 roll sub
|
| 506 |
+
0.0 2 copy lt { exch } if pop
|
| 507 |
+
1.0 2 copy gt { exch } if pop
|
| 508 |
+
4 1 roll
|
| 509 |
+
dup 3 1 roll sub
|
| 510 |
+
0.0 2 copy lt { exch } if pop
|
| 511 |
+
1.0 2 copy gt { exch } if pop
|
| 512 |
+
4 1 roll
|
| 513 |
+
dup 3 1 roll sub
|
| 514 |
+
0.0 2 copy lt { exch } if pop
|
| 515 |
+
1.0 2 copy gt { exch } if pop
|
| 516 |
+
4 1 roll
|
| 517 |
+
}
|
| 518 |
+
|
| 519 |
+
\def\pgffuncshadingrgbtogray{%
|
| 520 |
+
0.11 mul exch 0.59 mul add exch 0.3 mul add
|
| 521 |
+
}
|
| 522 |
+
|
| 523 |
+
\def\pgffuncshadingcmyktorgb{%
|
| 524 |
+
dup 3 1 roll add
|
| 525 |
+
1.0 2 copy gt { exch } if pop
|
| 526 |
+
4 1 roll
|
| 527 |
+
dup 3 1 roll add
|
| 528 |
+
1.0 2 copy gt { exch } if pop
|
| 529 |
+
4 1 roll
|
| 530 |
+
add
|
| 531 |
+
1.0 2 copy gt { exch } if pop
|
| 532 |
+
3 1 roll
|
| 533 |
+
1.0 exch sub
|
| 534 |
+
3 1 roll
|
| 535 |
+
1.0 exch sub
|
| 536 |
+
3 1 roll
|
| 537 |
+
1.0 exch sub
|
| 538 |
+
3 1 roll
|
| 539 |
+
}
|
| 540 |
+
|
| 541 |
+
\def\pgffuncshadingcmyktogray{%
|
| 542 |
+
exch 0.11 mul add exch 0.59 mul add exch 0.3 mul add
|
| 543 |
+
1.0 2 copy gt { exch } if pop
|
| 544 |
+
1.0 exch sub
|
| 545 |
+
}
|
| 546 |
+
|
| 547 |
+
\def\pgffuncshadinggraytorgb{%
|
| 548 |
+
dup dup
|
| 549 |
+
}
|
| 550 |
+
|
| 551 |
+
\def\pgffuncshadinggraytocmyk{%
|
| 552 |
+
0.0 0.0 0.0
|
| 553 |
+
4 3 roll
|
| 554 |
+
}
|
| 555 |
+
|
| 556 |
+
|
| 557 |
+
\def\pgfuseshading#1{%
|
| 558 |
+
\edef\pgf@shadingname{@pgfshading#1}%
|
| 559 |
+
\pgf@tryextensions{\pgf@shadingname}{\pgfalternateextension}%
|
| 560 |
+
\expandafter\pgfutil@ifundefined\expandafter{\pgf@shadingname}%
|
| 561 |
+
{\pgferror{Undefined shading "#1"}}%
|
| 562 |
+
{%
|
| 563 |
+
\edef\pgf@shade@adds{\csname pgf@num\pgf@shadingname\endcsname}%
|
| 564 |
+
\pgfutil@ifundefined{pgf@deps\pgf@shadingname}%
|
| 565 |
+
{}%
|
| 566 |
+
{%
|
| 567 |
+
\pgf@setup@shading@model
|
| 568 |
+
\begingroup
|
| 569 |
+
\pgfutil@globalcolorsfalse
|
| 570 |
+
\edef\@list{\csname pgf@deps\pgf@shadingname\endcsname}%
|
| 571 |
+
\pgfutil@for\@temp:=\@list\do{%
|
| 572 |
+
\pgfutil@ifundefined{applycolormixins}{}{\applycolormixins{\@temp}}%
|
| 573 |
+
\pgfutil@extractcolorspec{\@temp}{\pgf@tempcolor}%
|
| 574 |
+
\expandafter\pgfutil@convertcolorspec\pgf@tempcolor{\pgf@shading@model}{\pgf@color}%
|
| 575 |
+
\edef\pgf@shade@adds{\pgf@shade@adds,\pgf@color}%
|
| 576 |
+
}%
|
| 577 |
+
\pgfmath@smuggleone\pgf@shade@adds
|
| 578 |
+
\endgroup
|
| 579 |
+
}%
|
| 580 |
+
\expandafter\pgf@strip@shadename\pgf@shadingname!!%
|
| 581 |
+
\edef\pgf@shadingxname{@pgfshading\pgf@basename\pgf@shade@adds!}%
|
| 582 |
+
\pgfutil@ifundefined{\pgf@shadingxname}%
|
| 583 |
+
{%
|
| 584 |
+
\begingroup
|
| 585 |
+
\edef\@temp{\expandafter\noexpand\csname pgf@func\pgf@shadingname\endcsname}%
|
| 586 |
+
\edef\@args{{\pgf@basename\pgf@shade@adds}}%
|
| 587 |
+
\expandafter\expandafter\expandafter\def
|
| 588 |
+
\expandafter\expandafter\expandafter\@@args
|
| 589 |
+
\expandafter\expandafter\expandafter{\csname pgf@args\pgf@shadingname\endcsname}%
|
| 590 |
+
\expandafter\expandafter\expandafter\@temp\expandafter\@args\@@args
|
| 591 |
+
\expandafter\pgfmath@smuggleone\csname\pgf@shadingxname\endcsname
|
| 592 |
+
\endgroup
|
| 593 |
+
}%
|
| 594 |
+
{}%
|
| 595 |
+
\pgf@invokeshading{\csname\pgf@shadingxname\endcsname}%
|
| 596 |
+
}%
|
| 597 |
+
}
|
| 598 |
+
|
| 599 |
+
\def\pgf@strip@shadename @pgfshading#1!!!{\def\pgf@basename{#1}}
|
| 600 |
+
|
| 601 |
+
\def\pgf@invokeshading#1{%
|
| 602 |
+
\ifpgfpicture%
|
| 603 |
+
\pgfsys@shadinginsidepgfpicture{#1}%
|
| 604 |
+
\else%
|
| 605 |
+
\pgfsys@shadingoutsidepgfpicture{#1}%
|
| 606 |
+
\fi%
|
| 607 |
+
}
|
| 608 |
+
|
| 609 |
+
|
| 610 |
+
|
| 611 |
+
\def\pgfaliasshading#1#2{%
|
| 612 |
+
\expandafter\let\expandafter\pgf@temp\expandafter=\csname @pgfshading#2!\endcsname%
|
| 613 |
+
\expandafter\let\csname @pgfshading#1!\endcsname=\pgf@temp%
|
| 614 |
+
\expandafter\let\expandafter\pgf@temp\expandafter=\csname pgf@num@pgfshading#2!\endcsname%
|
| 615 |
+
\expandafter\let\csname pgf@num@pgfshading#1!\endcsname=\pgf@temp%
|
| 616 |
+
\expandafter\let\expandafter\pgf@temp\expandafter=\csname pgf@deps@pgfshading#2!\endcsname%
|
| 617 |
+
\expandafter\let\csname pgf@deps@pgfshading#1!\endcsname=\pgf@temp%
|
| 618 |
+
\expandafter\let\expandafter\pgf@temp\expandafter=\csname pgf@func@pgfshading#2!\endcsname%
|
| 619 |
+
\expandafter\let\csname pgf@func@pgfshading#1!\endcsname=\pgf@temp%
|
| 620 |
+
\expandafter\let\expandafter\pgf@temp\expandafter=\csname pgf@args@pgfshading#2!\endcsname%
|
| 621 |
+
\expandafter\let\csname pgf@args@pgfshading#1!\endcsname=\pgf@temp%
|
| 622 |
+
}
|
| 623 |
+
|
| 624 |
+
|
| 625 |
+
|
| 626 |
+
|
| 627 |
+
|
| 628 |
+
\def\pgfshadepath#1#2{%
|
| 629 |
+
\ifdim\pgf@pathminx=16000pt%
|
| 630 |
+
\pgfwarning{No path specified that can be filled}%
|
| 631 |
+
\else%
|
| 632 |
+
\begingroup%
|
| 633 |
+
\pgf@xb=.5\pgf@pathmaxx%
|
| 634 |
+
\advance\pgf@xb by.5\pgf@pathminx%
|
| 635 |
+
\pgf@yb=.5\pgf@pathmaxy%
|
| 636 |
+
\advance\pgf@yb by.5\pgf@pathminy%
|
| 637 |
+
\pgfmathparse{#2}%
|
| 638 |
+
\let\pgfshade@angle=\pgfmathresult
|
| 639 |
+
\pgfmathsin@\pgfshade@angle
|
| 640 |
+
\let\pgfshade@sin=\pgfmathresult
|
| 641 |
+
\pgfmathcos@\pgfshade@angle
|
| 642 |
+
\let\pgfshade@cos=\pgfmathresult
|
| 643 |
+
\pgf@xa=\pgf@pathmaxx
|
| 644 |
+
\advance\pgf@xa by-\pgf@pathminx
|
| 645 |
+
\pgf@ya=\pgf@pathmaxy
|
| 646 |
+
\advance\pgf@ya by-\pgf@pathminy
|
| 647 |
+
\pgfmathabs@\pgfshade@sin
|
| 648 |
+
\let\pgfshade@abssin=\pgfmathresult
|
| 649 |
+
\pgfmathabs@\pgfshade@cos
|
| 650 |
+
\let\pgfshade@abscos=\pgfmathresult
|
| 651 |
+
\pgf@xc=\pgfshade@abscos\pgf@xa
|
| 652 |
+
\advance\pgf@xc by\pgfshade@abssin\pgf@ya
|
| 653 |
+
\pgf@yc=\pgfshade@abssin\pgf@xa
|
| 654 |
+
\advance\pgf@yc by\pgfshade@abscos\pgf@ya
|
| 655 |
+
\pgfmathadd@\pgfshade@abscos\pgfshade@abssin
|
| 656 |
+
\pgfmathdivide@{.01992528}{\pgfmathresult}%
|
| 657 |
+
\pgf@xc=\pgfmathresult\pgf@xc
|
| 658 |
+
\pgf@yc=\pgfmathresult\pgf@yc
|
| 659 |
+
\ifdim\pgf@xc<0.0001pt
|
| 660 |
+
\ifdim\pgf@xc>-0.0001pt
|
| 661 |
+
\pgf@no@shadetrue
|
| 662 |
+
\fi
|
| 663 |
+
\fi
|
| 664 |
+
\ifdim\pgf@yc<0.0001pt
|
| 665 |
+
\ifdim\pgf@yc>-0.0001pt
|
| 666 |
+
\pgf@no@shadetrue
|
| 667 |
+
\fi
|
| 668 |
+
\fi
|
| 669 |
+
\ifpgf@no@shade\else
|
| 670 |
+
\pgfsys@beginscope
|
| 671 |
+
\pgfsyssoftpath@invokecurrentpath
|
| 672 |
+
\pgfsys@clipnext
|
| 673 |
+
\pgfsys@discardpath
|
| 674 |
+
\pgfsys@transformcm{1}{0}{0}{1}{\the\pgf@xb}{\the\pgf@yb}%
|
| 675 |
+
\pgf@x=\pgfshade@sin pt%
|
| 676 |
+
\pgf@xa=-\pgf@x%
|
| 677 |
+
\pgfsys@transformcm{\pgfshade@cos}{\pgfshade@sin}{\pgf@sys@tonumber{\pgf@xa}}{\pgfshade@cos}{0pt}{0pt}%
|
| 678 |
+
\pgfsys@transformcm{\pgf@sys@tonumber{\pgf@xc}}{0}{0}{\pgf@sys@tonumber{\pgf@yc}}{0pt}{0pt}%
|
| 679 |
+
\ifx\pgf@shade@extra@transform\pgfutil@empty%
|
| 680 |
+
\else%
|
| 681 |
+
\pgflowlevel{\pgf@shade@extra@transform}%
|
| 682 |
+
\fi%
|
| 683 |
+
\pgfuseshading{#1}%
|
| 684 |
+
\pgfsys@endscope%
|
| 685 |
+
\fi%
|
| 686 |
+
\endgroup%
|
| 687 |
+
\fi%
|
| 688 |
+
}
|
| 689 |
+
|
| 690 |
+
\newif\ifpgf@no@shade
|
| 691 |
+
|
| 692 |
+
|
| 693 |
+
\def\pgfsetadditionalshadetransform#1{\def\pgf@shade@extra@transform{#1}}
|
| 694 |
+
\let\pgf@shade@extra@transform=\pgfutil@empty
|
| 695 |
+
|
| 696 |
+
|
| 697 |
+
|
| 698 |
+
|
| 699 |
+
|
| 700 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcoretransformations.code.tex
ADDED
|
@@ -0,0 +1,503 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{pgfcoretransformations.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
\newdimen\pgf@pt@x
|
| 7 |
+
\newdimen\pgf@pt@y
|
| 8 |
+
|
| 9 |
+
\newdimen\pgf@pt@temp
|
| 10 |
+
|
| 11 |
+
\newif\ifpgf@pt@identity
|
| 12 |
+
\pgf@pt@identitytrue
|
| 13 |
+
|
| 14 |
+
\def\pgf@pt@aa{1.0} \def\pgf@pt@ab{0.0}
|
| 15 |
+
\def\pgf@pt@ba{0.0} \def\pgf@pt@bb{1.0}
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
\def\pgfgettransform#1{%
|
| 21 |
+
\edef#1{{\pgf@pt@aa}{\pgf@pt@ab}{\pgf@pt@ba}{\pgf@pt@bb}{\the\pgf@pt@x}{\the\pgf@pt@y}}%
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
\def\pgfgettransformentries#1#2#3#4#5#6{%
|
| 25 |
+
\edef#1{\pgf@pt@aa}%
|
| 26 |
+
\edef#2{\pgf@pt@ab}%
|
| 27 |
+
\edef#3{\pgf@pt@ba}%
|
| 28 |
+
\edef#4{\pgf@pt@bb}%
|
| 29 |
+
\edef#5{\the\pgf@pt@x}%
|
| 30 |
+
\edef#6{\the\pgf@pt@y}%
|
| 31 |
+
}%
|
| 32 |
+
\def\pgfsettransformentries#1#2#3#4#5#6{%
|
| 33 |
+
\pgfsettransform{{#1}{#2}{#3}{#4}{#5}{#6}}%
|
| 34 |
+
}%
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
\def\pgfsettransform#1{%
|
| 38 |
+
\edef\pgf@temp{#1}%
|
| 39 |
+
\expandafter\pgf@settransform\pgf@temp%
|
| 40 |
+
}
|
| 41 |
+
\def\pgf@settransform#1#2#3#4#5#6{%
|
| 42 |
+
\def\pgf@pt@aa{#1}%
|
| 43 |
+
\def\pgf@pt@ab{#2}%
|
| 44 |
+
\def\pgf@pt@ba{#3}%
|
| 45 |
+
\def\pgf@pt@bb{#4}%
|
| 46 |
+
\pgf@pt@x=#5%
|
| 47 |
+
\pgf@pt@y=#6%
|
| 48 |
+
\edef\pgf@idtest{#1,#2,#3,#4}%
|
| 49 |
+
\ifx\pgf@idtest\pgf@idmatrixtext%
|
| 50 |
+
\pgf@pt@identitytrue%
|
| 51 |
+
\else%
|
| 52 |
+
\pgf@pt@identityfalse%
|
| 53 |
+
\fi%
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
\def\pgf@idmatrixtext{1.0,0.0,0.0,1.0}
|
| 57 |
+
\def\pgf@zerozerotext{0.0,0.0}
|
| 58 |
+
\def\pgf@one@text{1.0}
|
| 59 |
+
\def\pgf@zero@text{0.0}
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
\def\pgf@pos@transform#1#2{%
|
| 63 |
+
\ifpgf@pt@identity%
|
| 64 |
+
\else%
|
| 65 |
+
\pgf@pt@temp=#1%
|
| 66 |
+
#1=\pgf@pt@aa#1%
|
| 67 |
+
\advance#1 by\pgf@pt@ba#2%
|
| 68 |
+
#2=\pgf@pt@bb#2%
|
| 69 |
+
\advance#2 by\pgf@pt@ab\pgf@pt@temp%
|
| 70 |
+
\fi%
|
| 71 |
+
\advance#1 by\pgf@pt@x%
|
| 72 |
+
\advance#2 by\pgf@pt@y%
|
| 73 |
+
}
|
| 74 |
+
\def\pgf@pos@transform@glob{%
|
| 75 |
+
\ifpgf@pt@identity%
|
| 76 |
+
\else%
|
| 77 |
+
\pgf@pt@temp=\pgf@x%
|
| 78 |
+
\global\pgf@x=\pgf@pt@aa\pgf@x%
|
| 79 |
+
\global\advance\pgf@x by\pgf@pt@ba\pgf@y%
|
| 80 |
+
\global\pgf@y=\pgf@pt@bb\pgf@y%
|
| 81 |
+
\global\advance\pgf@y by\pgf@pt@ab\pgf@pt@temp%
|
| 82 |
+
\fi%
|
| 83 |
+
\global\advance\pgf@x by\pgf@pt@x%
|
| 84 |
+
\global\advance\pgf@y by\pgf@pt@y%
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
\def\pgftransforminvert{%
|
| 90 |
+
\pgf@pt@x=-\pgf@pt@x
|
| 91 |
+
\pgf@pt@y=-\pgf@pt@y
|
| 92 |
+
\ifpgf@pt@identity%
|
| 93 |
+
\else%
|
| 94 |
+
\edef\pgf@zerotest{\pgf@pt@ab,\pgf@pt@ba}%
|
| 95 |
+
\ifx\pgf@zerotest\pgf@zerozerotext%
|
| 96 |
+
\pgfmathreciprocal@{\pgf@pt@aa}%
|
| 97 |
+
\let\pgf@pt@aa\pgfmathresult%
|
| 98 |
+
\pgfmathreciprocal@{\pgf@pt@bb}%
|
| 99 |
+
\let\pgf@pt@bb\pgfmathresult%
|
| 100 |
+
\else%
|
| 101 |
+
{%
|
| 102 |
+
\pgfutil@tempdima=\pgf@pt@aa pt%
|
| 103 |
+
\pgfutil@tempdima=\pgf@pt@bb\pgfutil@tempdima%
|
| 104 |
+
\pgfutil@tempdimb=\pgf@pt@ba pt%
|
| 105 |
+
\pgfutil@tempdimb=\pgf@pt@ab\pgfutil@tempdimb%
|
| 106 |
+
\advance\pgfutil@tempdima by -\pgfutil@tempdimb%
|
| 107 |
+
\pgfmathreciprocal@{\pgf@sys@tonumber{\pgfutil@tempdima}}%
|
| 108 |
+
\pgfutil@tempdima=\pgfmathresult pt%
|
| 109 |
+
\pgf@x=\pgf@pt@bb\pgfutil@tempdima%
|
| 110 |
+
\xdef\pgf@new@pt@aa{\pgf@sys@tonumber{\pgf@x}}%
|
| 111 |
+
\pgf@x=\pgf@pt@aa\pgfutil@tempdima%
|
| 112 |
+
\xdef\pgf@new@pt@bb{\pgf@sys@tonumber{\pgf@x}}%
|
| 113 |
+
\pgfutil@tempdima=-\pgfutil@tempdima%
|
| 114 |
+
\pgf@x=\pgf@pt@ba\pgfutil@tempdima%
|
| 115 |
+
\xdef\pgf@new@pt@ba{\pgf@sys@tonumber{\pgf@x}}%
|
| 116 |
+
\pgf@x=\pgf@pt@ab\pgfutil@tempdima%
|
| 117 |
+
\xdef\pgf@new@pt@ab{\pgf@sys@tonumber{\pgf@x}}%
|
| 118 |
+
}%
|
| 119 |
+
\let\pgf@pt@aa\pgf@new@pt@aa%
|
| 120 |
+
\let\pgf@pt@ab\pgf@new@pt@ab%
|
| 121 |
+
\let\pgf@pt@ba\pgf@new@pt@ba%
|
| 122 |
+
\let\pgf@pt@bb\pgf@new@pt@bb%
|
| 123 |
+
\fi%
|
| 124 |
+
\pgf@pt@temp=\pgf@pt@x%
|
| 125 |
+
\pgf@pt@x=\pgf@pt@aa\pgf@pt@x%
|
| 126 |
+
\advance\pgf@pt@x by\pgf@pt@ba\pgf@pt@y%
|
| 127 |
+
\pgf@pt@y=\pgf@pt@bb\pgf@pt@y%
|
| 128 |
+
\advance\pgf@pt@y by\pgf@pt@ab\pgf@pt@temp%
|
| 129 |
+
\fi%
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
\def\pgftransformcm#1#2#3#4#5{%
|
| 137 |
+
\edef\pgf@marshal{\noexpand\pgf@transformcm{#1}{#2}{#3}{#4}}%
|
| 138 |
+
\pgf@marshal{#5}%
|
| 139 |
+
}
|
| 140 |
+
\def\pgf@transformcm#1#2#3#4#5{%
|
| 141 |
+
{%
|
| 142 |
+
\pgf@process{#5}%
|
| 143 |
+
\pgf@xc=\pgf@x%
|
| 144 |
+
\pgf@yc=\pgf@y%
|
| 145 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 146 |
+
\pgfmathsetlength\pgf@y{#2}%
|
| 147 |
+
\pgf@xa=\pgf@pt@aa\pgf@x%
|
| 148 |
+
\advance\pgf@xa by \pgf@pt@ba\pgf@y%
|
| 149 |
+
\pgf@ya=\pgf@pt@ab\pgf@x%
|
| 150 |
+
\advance\pgf@ya by \pgf@pt@bb\pgf@y%
|
| 151 |
+
\pgfmathsetlength\pgf@x{#3}%
|
| 152 |
+
\pgfmathsetlength\pgf@y{#4}%
|
| 153 |
+
\pgf@xb=\pgf@pt@aa\pgf@x%
|
| 154 |
+
\advance\pgf@xb by \pgf@pt@ba\pgf@y%
|
| 155 |
+
\pgf@yb=\pgf@pt@ab\pgf@x%
|
| 156 |
+
\advance\pgf@yb by \pgf@pt@bb\pgf@y%
|
| 157 |
+
\pgf@x=\pgf@pt@aa\pgf@xc%
|
| 158 |
+
\advance\pgf@x by\pgf@pt@ba\pgf@yc%
|
| 159 |
+
\advance\pgf@x by\pgf@pt@x%
|
| 160 |
+
\pgf@y=\pgf@pt@ab\pgf@xc%
|
| 161 |
+
\advance\pgf@y by\pgf@pt@bb\pgf@yc%
|
| 162 |
+
\advance\pgf@y by\pgf@pt@y%
|
| 163 |
+
\global\pgf@x=\pgf@x%
|
| 164 |
+
\global\pgf@y=\pgf@y%
|
| 165 |
+
\xdef\pgf@tempaa{\pgf@sys@tonumber{\pgf@xa}}%
|
| 166 |
+
\xdef\pgf@tempab{\pgf@sys@tonumber{\pgf@ya}}%
|
| 167 |
+
\xdef\pgf@tempba{\pgf@sys@tonumber{\pgf@xb}}%
|
| 168 |
+
\xdef\pgf@tempbb{\pgf@sys@tonumber{\pgf@yb}}%
|
| 169 |
+
}%
|
| 170 |
+
\pgf@pt@x=\pgf@x%
|
| 171 |
+
\pgf@pt@y=\pgf@y%
|
| 172 |
+
\let\pgf@pt@aa=\pgf@tempaa%
|
| 173 |
+
\let\pgf@pt@ba=\pgf@tempba%
|
| 174 |
+
\let\pgf@pt@ab=\pgf@tempab%
|
| 175 |
+
\let\pgf@pt@bb=\pgf@tempbb%
|
| 176 |
+
\edef\pgf@idtest{\pgf@pt@aa,\pgf@pt@ba,\pgf@pt@ab,\pgf@pt@bb}%
|
| 177 |
+
\ifx\pgf@idtest\pgf@idmatrixtext%
|
| 178 |
+
\pgf@pt@identitytrue%
|
| 179 |
+
\else%
|
| 180 |
+
\pgf@pt@identityfalse%
|
| 181 |
+
\fi%
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
|
| 187 |
+
\def\pgftransformtriangle#1#2#3{%
|
| 188 |
+
\pgf@process{#2}%
|
| 189 |
+
\pgf@xa=\pgf@x%
|
| 190 |
+
\pgf@ya=\pgf@y%
|
| 191 |
+
\pgf@process{#3}%
|
| 192 |
+
\pgf@xb=\pgf@x%
|
| 193 |
+
\pgf@yb=\pgf@y%
|
| 194 |
+
\pgf@process{#1}%
|
| 195 |
+
\advance\pgf@xa by-\pgf@x%
|
| 196 |
+
\advance\pgf@ya by-\pgf@y%
|
| 197 |
+
\advance\pgf@xb by-\pgf@x%
|
| 198 |
+
\advance\pgf@yb by-\pgf@y%
|
| 199 |
+
\pgftransformcm%
|
| 200 |
+
{\pgf@sys@tonumber\pgf@xa}{\pgf@sys@tonumber\pgf@ya}%
|
| 201 |
+
{\pgf@sys@tonumber\pgf@xb}{\pgf@sys@tonumber\pgf@yb}%
|
| 202 |
+
{\pgfpoint{\pgf@x}{\pgf@y}}%
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
\def\pgftransformreset{%
|
| 209 |
+
\pgf@pt@x=0pt%
|
| 210 |
+
\pgf@pt@y=0pt%
|
| 211 |
+
\let\pgf@pt@aa\pgf@one@text%
|
| 212 |
+
\let\pgf@pt@ba\pgf@zero@text%
|
| 213 |
+
\let\pgf@pt@ab\pgf@zero@text%
|
| 214 |
+
\let\pgf@pt@bb\pgf@one@text%
|
| 215 |
+
\pgf@pt@identitytrue%
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
\def\pgftransformresetnontranslations{%
|
| 221 |
+
\let\pgf@pt@aa\pgf@one@text%
|
| 222 |
+
\let\pgf@pt@ba\pgf@zero@text%
|
| 223 |
+
\let\pgf@pt@ab\pgf@zero@text%
|
| 224 |
+
\let\pgf@pt@bb\pgf@one@text%
|
| 225 |
+
\pgf@pt@identitytrue%
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
|
| 230 |
+
|
| 231 |
+
|
| 232 |
+
\def\pgftransformshift#1{\pgftransformcm{1}{0}{0}{1}{#1}}
|
| 233 |
+
\def\pgftransformxshift#1{\pgftransformcm{1}{0}{0}{1}{\pgfpoint{#1}{+0pt}}}
|
| 234 |
+
\def\pgftransformyshift#1{\pgftransformcm{1}{0}{0}{1}{\pgfpoint{+0pt}{#1}}}
|
| 235 |
+
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
\def\pgftransformscale#1{\pgftransformcm{#1}{0}{0}{#1}{\pgfpointorigin}}
|
| 241 |
+
\def\pgftransformxscale#1{\pgftransformcm{#1}{0}{0}{1.0}{\pgfpointorigin}}
|
| 242 |
+
\def\pgftransformyscale#1{\pgftransformcm{1.0}{0}{0}{#1}{\pgfpointorigin}}
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
\def\pgftransformxslant#1{\pgftransformcm{1.0}{0}{#1}{1.0}{\pgfpointorigin}}
|
| 248 |
+
\def\pgftransformyslant#1{\pgftransformcm{1.0}{#1}{0}{1.0}{\pgfpointorigin}}
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
\def\pgftransformrotate#1{%
|
| 254 |
+
\pgfmathparse{#1}%
|
| 255 |
+
\let\pgftransform@angle=\pgfmathresult%
|
| 256 |
+
\pgfmathsin@{\pgftransform@angle}%
|
| 257 |
+
\let\pgftransform@sin=\pgfmathresult%
|
| 258 |
+
\pgfmathcos@{\pgftransform@angle}%
|
| 259 |
+
\let\pgftransform@cos=\pgfmathresult%
|
| 260 |
+
\pgf@x=\pgftransform@sin pt%
|
| 261 |
+
\pgf@xa=-\pgf@x%
|
| 262 |
+
\pgftransformcm{\pgftransform@cos}{\pgftransform@sin}{\pgf@sys@tonumber{\pgf@xa}}{\pgftransform@cos}{\pgfpointorigin}%
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
|
| 268 |
+
\newif\ifpgfslopedattime
|
| 269 |
+
\newif\ifpgfallowupsidedownattime
|
| 270 |
+
\newif\ifpgfresetnontranslationattime
|
| 271 |
+
|
| 272 |
+
|
| 273 |
+
\def\pgftransformlineattime#1#2#3{%
|
| 274 |
+
\pgf@process{#2}%
|
| 275 |
+
\pgf@xb=\pgf@x%
|
| 276 |
+
\pgf@yb=\pgf@y%
|
| 277 |
+
\pgf@process{#3}%
|
| 278 |
+
\pgf@xc=\pgf@x%
|
| 279 |
+
\pgf@yc=\pgf@y%
|
| 280 |
+
\pgftransformshift{\pgfpointlineattime{#1}{\pgfqpoint{\pgf@xb}{\pgf@yb}}{\pgfqpoint{\pgf@xc}{\pgf@yc}}}%
|
| 281 |
+
\ifpgfresetnontranslationattime%
|
| 282 |
+
\pgftransformresetnontranslations%
|
| 283 |
+
\fi%
|
| 284 |
+
\ifpgfslopedattime%
|
| 285 |
+
\advance\pgf@xc by-\pgf@xb%
|
| 286 |
+
\advance\pgf@yc by-\pgf@yb%
|
| 287 |
+
\ifpgfallowupsidedownattime%
|
| 288 |
+
\else%
|
| 289 |
+
\ifdim\pgf@xc<0pt%
|
| 290 |
+
\pgf@xc=-\pgf@xc%
|
| 291 |
+
\pgf@yc=-\pgf@yc%
|
| 292 |
+
\fi%
|
| 293 |
+
\fi%
|
| 294 |
+
\pgf@x=\pgf@xc%
|
| 295 |
+
\pgf@y=\pgf@yc%
|
| 296 |
+
\pgfpointnormalised{}%
|
| 297 |
+
\pgf@ya=-\pgf@y%
|
| 298 |
+
\pgftransformcm%
|
| 299 |
+
{\pgf@sys@tonumber{\pgf@x}}{\pgf@sys@tonumber{\pgf@y}}%
|
| 300 |
+
{\pgf@sys@tonumber{\pgf@ya}}{\pgf@sys@tonumber{\pgf@x}}{\pgfpointorigin}%
|
| 301 |
+
\fi%
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
|
| 305 |
+
|
| 306 |
+
\def\pgftransformarcaxesattime#1#2#3#4#5#6{%
|
| 307 |
+
\pgfpointarcaxesattime{#1}{#2}{#3}{#4}{#5}{#6}%
|
| 308 |
+
\pgftransformshift{\pgfqpoint{\pgf@x}{\pgf@y}}%
|
| 309 |
+
\ifpgfresetnontranslationattime%
|
| 310 |
+
\pgftransformresetnontranslations%
|
| 311 |
+
\fi%
|
| 312 |
+
\ifpgfslopedattime%
|
| 313 |
+
\pgf@x=\pgf@xa%
|
| 314 |
+
\pgf@y=\pgf@ya%
|
| 315 |
+
\pgf@process{\pgfpointnormalised{}}%
|
| 316 |
+
\ifpgfallowupsidedownattime%
|
| 317 |
+
\else%
|
| 318 |
+
\ifdim\pgf@x<0pt%
|
| 319 |
+
\pgf@x=-\pgf@x%
|
| 320 |
+
\pgf@y=-\pgf@y%
|
| 321 |
+
\fi%
|
| 322 |
+
\fi%
|
| 323 |
+
\pgf@ya=-\pgf@y%
|
| 324 |
+
\pgftransformcm%
|
| 325 |
+
{\pgf@sys@tonumber{\pgf@x}}{\pgf@sys@tonumber{\pgf@y}}%
|
| 326 |
+
{\pgf@sys@tonumber{\pgf@ya}}{\pgf@sys@tonumber{\pgf@x}}{\pgfpointorigin}%
|
| 327 |
+
\fi%
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
|
| 332 |
+
|
| 333 |
+
\def\pgftransformcurveattime#1#2#3#4#5{%
|
| 334 |
+
\pgfpointcurveattime{#1}{#2}{#3}{#4}{#5}%
|
| 335 |
+
\pgftransformshift{\pgfqpoint{\pgf@x}{\pgf@y}}%
|
| 336 |
+
\ifpgfresetnontranslationattime%
|
| 337 |
+
\pgftransformresetnontranslations%
|
| 338 |
+
\fi%
|
| 339 |
+
\ifpgfslopedattime%
|
| 340 |
+
\pgf@x=\pgf@xa%
|
| 341 |
+
\pgf@y=\pgf@ya%
|
| 342 |
+
\advance\pgf@x by-\pgf@xb%
|
| 343 |
+
\advance\pgf@y by-\pgf@yb%
|
| 344 |
+
\ifpgfallowupsidedownattime%
|
| 345 |
+
\else%
|
| 346 |
+
\ifdim\pgf@x<0pt%
|
| 347 |
+
\pgf@x=-\pgf@x%
|
| 348 |
+
\pgf@y=-\pgf@y%
|
| 349 |
+
\fi%
|
| 350 |
+
\fi%
|
| 351 |
+
\pgfpointnormalised{}%
|
| 352 |
+
\pgf@ya=-\pgf@y%
|
| 353 |
+
\pgftransformcm%
|
| 354 |
+
{\pgf@sys@tonumber{\pgf@x}}{\pgf@sys@tonumber{\pgf@y}}%
|
| 355 |
+
{\pgf@sys@tonumber{\pgf@ya}}{\pgf@sys@tonumber{\pgf@x}}{\pgfpointorigin}%
|
| 356 |
+
\fi%
|
| 357 |
+
}
|
| 358 |
+
|
| 359 |
+
|
| 360 |
+
|
| 361 |
+
|
| 362 |
+
|
| 363 |
+
|
| 364 |
+
\def\pgftransformarrow#1#2{%
|
| 365 |
+
\pgf@process{#2}%
|
| 366 |
+
\pgftransformshift{}%
|
| 367 |
+
\pgf@xa=\pgf@x%
|
| 368 |
+
\pgf@ya=\pgf@y%
|
| 369 |
+
\pgf@process{#1}%
|
| 370 |
+
\advance\pgf@xa by-\pgf@x%
|
| 371 |
+
\advance\pgf@ya by-\pgf@y%
|
| 372 |
+
\pgf@x=\pgf@xa%
|
| 373 |
+
\pgf@y=\pgf@ya%
|
| 374 |
+
\pgfpointnormalised{}%
|
| 375 |
+
\pgf@ya=-\pgf@y%
|
| 376 |
+
\pgftransformcm%
|
| 377 |
+
{\pgf@sys@tonumber{\pgf@x}}{\pgf@sys@tonumber{\pgf@y}}%
|
| 378 |
+
{\pgf@sys@tonumber{\pgf@ya}}{\pgf@sys@tonumber{\pgf@x}}{\pgfqpoint{0pt}{0pt}}%
|
| 379 |
+
}
|
| 380 |
+
|
| 381 |
+
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
|
| 385 |
+
\def\pgftransformationadjustments{%
|
| 386 |
+
\ifpgf@pt@identity%
|
| 387 |
+
\let\pgfhorizontaltransformationadjustment\pgf@one@text%
|
| 388 |
+
\let\pgfverticaltransformationadjustment\pgf@one@text%
|
| 389 |
+
\else%
|
| 390 |
+
{%
|
| 391 |
+
\pgf@pt@x0pt%
|
| 392 |
+
\pgf@pt@y0pt%
|
| 393 |
+
\pgfpointtransformed{\pgfqpoint{1pt}{0pt}}%
|
| 394 |
+
\pgfmathveclen@{\pgf@sys@tonumber\pgf@x}{\pgf@sys@tonumber\pgf@y}%
|
| 395 |
+
\pgfmathreciprocal@{\pgfmathresult}%
|
| 396 |
+
\global\let\pgf@temp@hori\pgfmathresult
|
| 397 |
+
\pgfpointtransformed{\pgfqpoint{0pt}{1pt}}%
|
| 398 |
+
\pgfmathveclen@{\pgf@sys@tonumber\pgf@x}{\pgf@sys@tonumber\pgf@y}%
|
| 399 |
+
\pgfmathreciprocal@{\pgfmathresult}%
|
| 400 |
+
\global\let\pgf@temp@vert\pgfmathresult
|
| 401 |
+
\xdef\pgf@marshal@b{\def\noexpand\pgfverticaltransformationadjustment{\pgfmathresult}}
|
| 402 |
+
}%
|
| 403 |
+
\let\pgfhorizontaltransformationadjustment\pgf@temp@hori%
|
| 404 |
+
\let\pgfverticaltransformationadjustment\pgf@temp@vert%
|
| 405 |
+
\fi%
|
| 406 |
+
}
|
| 407 |
+
|
| 408 |
+
\let\pgfhorizontaltransformationadjustment\pgf@one@text
|
| 409 |
+
\let\pgfverticaltransformationadjustment\pgf@one@text
|
| 410 |
+
|
| 411 |
+
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
\def\pgflowlevelsynccm{%
|
| 415 |
+
\pgfsys@transformcm%
|
| 416 |
+
{\pgf@pt@aa}{\pgf@pt@ab}%
|
| 417 |
+
{\pgf@pt@ba}{\pgf@pt@bb}%
|
| 418 |
+
{\pgf@pt@x}{\pgf@pt@y}%
|
| 419 |
+
\pgftransformreset%
|
| 420 |
+
\pgf@relevantforpicturesizefalse%
|
| 421 |
+
}
|
| 422 |
+
|
| 423 |
+
|
| 424 |
+
|
| 425 |
+
|
| 426 |
+
\def\pgflowlevel#1{%
|
| 427 |
+
{%
|
| 428 |
+
\pgftransformreset%
|
| 429 |
+
#1%
|
| 430 |
+
\pgflowlevelsynccm%
|
| 431 |
+
}%
|
| 432 |
+
\pgf@relevantforpicturesizefalse%
|
| 433 |
+
}
|
| 434 |
+
|
| 435 |
+
\def\pgflowlevelscope#1{\pgfscope\pgflowlevel{#1}}
|
| 436 |
+
\def\endpgflowlevelscope{\endpgfscope}
|
| 437 |
+
|
| 438 |
+
\long\def\pgflowlevelobj#1#2{\pgfscope{\pgflowlevel{#1}#2}\endpgfscope}
|
| 439 |
+
|
| 440 |
+
|
| 441 |
+
|
| 442 |
+
|
| 443 |
+
|
| 444 |
+
\def\pgfviewboxscope#1#2#3#4#5{%
|
| 445 |
+
{%
|
| 446 |
+
\pgf@process{#1}%
|
| 447 |
+
\pgf@pos@transform@glob
|
| 448 |
+
\pgf@xa=\pgf@x%
|
| 449 |
+
\pgf@ya=\pgf@y%
|
| 450 |
+
\pgf@process{#2}%
|
| 451 |
+
\pgf@pos@transform@glob
|
| 452 |
+
\ifdim\pgf@x<\pgf@xa%
|
| 453 |
+
\pgf@xb\pgf@x%
|
| 454 |
+
\pgf@xc\pgf@xa%
|
| 455 |
+
\else%
|
| 456 |
+
\pgf@xb\pgf@xa%
|
| 457 |
+
\pgf@xc\pgf@x%
|
| 458 |
+
\fi%
|
| 459 |
+
\ifdim\pgf@y<\pgf@ya%
|
| 460 |
+
\pgf@yb\pgf@y%
|
| 461 |
+
\pgf@yc\pgf@ya%
|
| 462 |
+
\else%
|
| 463 |
+
\pgf@yb\pgf@ya%
|
| 464 |
+
\pgf@yc\pgf@y%
|
| 465 |
+
\fi%
|
| 466 |
+
\pgf@process{#3}%
|
| 467 |
+
\pgf@pos@transform@glob
|
| 468 |
+
\pgf@xa=\pgf@x%
|
| 469 |
+
\pgf@ya=\pgf@y%
|
| 470 |
+
\pgf@process{#4}%
|
| 471 |
+
\pgf@pos@transform@glob
|
| 472 |
+
\ifdim\pgf@x<\pgf@xa%
|
| 473 |
+
\else%
|
| 474 |
+
\pgfutil@tempdima\pgf@x
|
| 475 |
+
\pgf@x\pgf@xa%
|
| 476 |
+
\pgf@xa\pgfutil@tempdima%
|
| 477 |
+
\fi%
|
| 478 |
+
\ifdim\pgf@y<\pgf@ya%
|
| 479 |
+
\else%
|
| 480 |
+
\pgfutil@tempdima\pgf@y
|
| 481 |
+
\pgf@y\pgf@ya%
|
| 482 |
+
\pgf@ya\pgfutil@tempdima%
|
| 483 |
+
\fi%
|
| 484 |
+
\pgfusetype{.view}%
|
| 485 |
+
\edef\pgf@marshal{\expandafter\noexpand\csname pgfsys@viewbox#5\endcsname{\the\pgf@x}{\the\pgf@y}{\the\pgf@xa}{\the\pgf@ya}{\the\pgf@xb}{\the\pgf@yb}{\the\pgf@xc}{\the\pgf@yc}}%
|
| 486 |
+
\pgf@marshal%
|
| 487 |
+
}%
|
| 488 |
+
\pgf@relevantforpicturesizefalse%
|
| 489 |
+
}
|
| 490 |
+
|
| 491 |
+
\def\endpgfviewboxscope{\pgfsys@endviewbox}
|
| 492 |
+
|
| 493 |
+
\let\startpgfviewboxscope=\pgfviewboxscope
|
| 494 |
+
\let\stoppgfviewboxscope=\endpgfviewboxscope
|
| 495 |
+
|
| 496 |
+
|
| 497 |
+
\let\pgfapproximatenonlineartranslation\relax
|
| 498 |
+
\let\pgfapproximatenonlineartransformation\relax
|
| 499 |
+
\def\pgftransformnonlinear#1{\pgferror{You need to say
|
| 500 |
+
\string\usepgfmodule{nonlineartransformations} to use nonlinear transformations}}
|
| 501 |
+
|
| 502 |
+
|
| 503 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/basiclayer/pgfcoretransparency.code.tex
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{pgfcoretransparency.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
\def\pgfsetstrokeopacity#1{%
|
| 7 |
+
\pgfmathparse{#1}%
|
| 8 |
+
\expandafter\pgfsys@stroke@opacity\expandafter{\pgfmathresult}}
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
\def\pgfsetfillopacity#1{%
|
| 13 |
+
\pgfmathparse{#1}%
|
| 14 |
+
\expandafter\pgfsys@fill@opacity\expandafter{\pgfmathresult}}
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
\def\pgfsetblendmode#1{\pgfsys@blend@mode{#1}}
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
\def\pgfdeclarefading#1#2{%
|
| 24 |
+
\setbox\pgfutil@tempboxa=\hbox{{\pgfsys@beginscope\pgfutil@color{white}\ignorespaces#2\pgfsys@endscope}}%
|
| 25 |
+
\pgfsys@fadingfrombox{#1}\pgfutil@tempboxa%
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
\pgfutil@colorlet{pgftransparent}{black}
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
\def\pgfsetfading#1#2{%
|
| 33 |
+
{%
|
| 34 |
+
\pgftransformreset%
|
| 35 |
+
#2%
|
| 36 |
+
\pgfgettransform{\pgftrans@temp}%
|
| 37 |
+
\edef\pgf@marshal{\noexpand\pgfsys@usefading{#1}\pgftrans@temp}%
|
| 38 |
+
\pgf@marshal%
|
| 39 |
+
}%
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
\def\pgfsetfadingforcurrentpath#1#2{%
|
| 46 |
+
\ifdim\pgf@pathminx=16000pt%
|
| 47 |
+
\pgfsetfading{#1}{#2}%
|
| 48 |
+
\else%
|
| 49 |
+
\pgfsetfading{#1}{%
|
| 50 |
+
\pgf@xb=.5\pgf@pathmaxx%
|
| 51 |
+
\advance\pgf@xb by.5\pgf@pathminx%
|
| 52 |
+
\pgf@yb=.5\pgf@pathmaxy%
|
| 53 |
+
\advance\pgf@yb by.5\pgf@pathminy%
|
| 54 |
+
\pgf@xc=\pgf@pathmaxx%
|
| 55 |
+
\advance\pgf@xc by-\pgf@pathminx%
|
| 56 |
+
\ifdim\pgf@xc<0.1pt\pgf@xc=0.1pt\fi%
|
| 57 |
+
\pgf@yc=\pgf@pathmaxy%
|
| 58 |
+
\advance\pgf@yc by-\pgf@pathminy%
|
| 59 |
+
\ifdim\pgf@yc<0.1pt\pgf@yc=0.1pt\fi%
|
| 60 |
+
\pgf@xc=.02\pgf@xc%
|
| 61 |
+
\pgf@yc=.02\pgf@yc%
|
| 62 |
+
\pgftransformcm{1}{0}{0}{1}{\pgfqpoint{\pgf@xb}{\pgf@yb}}%
|
| 63 |
+
\pgftransformcm{\pgf@sys@tonumber{\pgf@xc}}{0}{0}{\pgf@sys@tonumber{\pgf@yc}}{\pgfpointorigin}%
|
| 64 |
+
\pgfsys@clipfading%
|
| 65 |
+
#2%
|
| 66 |
+
}%
|
| 67 |
+
\fi%
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
\def\pgfsetfadingforcurrentpathstroked#1#2{%
|
| 75 |
+
\ifdim\pgf@pathminx=16000pt%
|
| 76 |
+
\pgfsetfading{#1}{#2}%
|
| 77 |
+
\else%
|
| 78 |
+
\pgfsetfading{#1}{%
|
| 79 |
+
\pgf@xb=.5\pgf@pathmaxx%
|
| 80 |
+
\advance\pgf@xb by.5\pgf@pathminx%
|
| 81 |
+
\pgf@yb=.5\pgf@pathmaxy%
|
| 82 |
+
\advance\pgf@yb by.5\pgf@pathminy%
|
| 83 |
+
\pgf@xc=\pgf@pathmaxx%
|
| 84 |
+
\advance\pgf@xc by-\pgf@pathminx%
|
| 85 |
+
\advance\pgf@xc by\pgflinewidth%
|
| 86 |
+
\ifdim\pgf@xc<0.1pt\pgf@xc=0.1pt\fi%
|
| 87 |
+
\pgf@yc=\pgf@pathmaxy%
|
| 88 |
+
\advance\pgf@yc by-\pgf@pathminy%
|
| 89 |
+
\advance\pgf@yc by\pgflinewidth%
|
| 90 |
+
\ifdim\pgf@yc<0.1pt\pgf@yc=0.1pt\fi%
|
| 91 |
+
\pgf@xc=.02\pgf@xc%
|
| 92 |
+
\pgf@yc=.02\pgf@yc%
|
| 93 |
+
\pgftransformcm{1}{0}{0}{1}{\pgfqpoint{\pgf@xb}{\pgf@yb}}%
|
| 94 |
+
\pgftransformcm{\pgf@sys@tonumber{\pgf@xc}}{0}{0}{\pgf@sys@tonumber{\pgf@yc}}{\pgfpointorigin}%
|
| 95 |
+
\pgfsys@clipfading%
|
| 96 |
+
#2%
|
| 97 |
+
}%
|
| 98 |
+
\fi%
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
\def\pgftransparencygroup{%
|
| 104 |
+
\pgfutil@ifnextchar[{\pgftransparencygroup@}{\pgftransparencygroup@[]}%
|
| 105 |
+
}
|
| 106 |
+
\def\pgftransparencygroup@[#1]{%
|
| 107 |
+
\begingroup%
|
| 108 |
+
\pgfkeys{/pgf/transparency group options/.cd,%
|
| 109 |
+
isolated=false,
|
| 110 |
+
knockout=false,
|
| 111 |
+
#1}%
|
| 112 |
+
\setbox\pgfutil@tempboxa=\hbox\bgroup%
|
| 113 |
+
}
|
| 114 |
+
\pgfkeys{
|
| 115 |
+
/pgf/transparency group options/.cd,
|
| 116 |
+
isolated/.is if=pgfsys@transparency@group@isolated,
|
| 117 |
+
knockout/.is if=pgfsys@transparency@group@knockout
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
\def\endpgftransparencygroup{%
|
| 121 |
+
\egroup%
|
| 122 |
+
\ifdim\pgf@picminx=16000pt%
|
| 123 |
+
\else%
|
| 124 |
+
\advance\pgf@picminx by-1cm%
|
| 125 |
+
\advance\pgf@picmaxx by1cm%
|
| 126 |
+
\advance\pgf@picminy by-1cm%
|
| 127 |
+
\advance\pgf@picmaxy by1cm%
|
| 128 |
+
\setbox\pgfutil@tempboxa=\hbox{%
|
| 129 |
+
\vrule width0pt height\pgf@picmaxy depth-\pgf@picminy%
|
| 130 |
+
\hskip-\pgf@picminx%
|
| 131 |
+
\box\pgfutil@tempboxa%
|
| 132 |
+
\hskip\pgf@picmaxx%
|
| 133 |
+
}%
|
| 134 |
+
\pgfsys@transparencygroupfrombox\pgfutil@tempboxa%
|
| 135 |
+
\wd\pgfutil@tempboxa=0pt%
|
| 136 |
+
\ht\pgfutil@tempboxa=0pt%
|
| 137 |
+
\dp\pgfutil@tempboxa=0pt%
|
| 138 |
+
\hskip\pgf@picminx\box\pgfutil@tempboxa\hskip-\pgf@picminx%
|
| 139 |
+
\fi%
|
| 140 |
+
\endgroup%
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
\let\startpgftransparencygroup=\pgftransparencygroup
|
| 144 |
+
\let\stoppgftransparencygroup=\endpgftransparencygroup
|
| 145 |
+
|
| 146 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.code.tex
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
| 1 |
+
|
| 2 |
+
\usetikzlibrary{calc,decorations.markings}%
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
\tikzset{
|
| 6 |
+
circuit/.style={
|
| 7 |
+
every circuit/.try,
|
| 8 |
+
/utils/exec=\tikz@lib@circ@on@tofalse,
|
| 9 |
+
execute at begin to={
|
| 10 |
+
\tikz@lib@circ@on@totrue
|
| 11 |
+
\let\tikz@lib@circ@start@node\pgfutil@empty
|
| 12 |
+
\def\tikz@lib@circ@end{-- (\tikztotarget) \tikztonodes}
|
| 13 |
+
}
|
| 14 |
+
}
|
| 15 |
+
}%
|
| 16 |
+
|
| 17 |
+
\newif\iftikz@lib@circ@on@to
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
\tikzset{
|
| 22 |
+
circuit handle symbol/.code={%
|
| 23 |
+
\global\advance\tikz@lib@circ@count by1\relax%
|
| 24 |
+
\iftikz@lib@circ@on@to
|
| 25 |
+
{%
|
| 26 |
+
\pgfkeys{
|
| 27 |
+
/pgf/key filters/active families or no family/.install key filter={/pgf/key filters/false}{/pgf/key filters/false},
|
| 28 |
+
/tikz/circuits/pos grabber/.activate family}
|
| 29 |
+
\pgfqkeysfiltered{/tikz}{pos=.5,#1}%
|
| 30 |
+
\expandafter%
|
| 31 |
+
}%
|
| 32 |
+
\expandafter\def\expandafter\tikz@lib@circ@pos\expandafter{\tikz@time}%
|
| 33 |
+
\pgfkeysalso{to path={
|
| 34 |
+
\pgfextra{\tikz@lib@circ@on@tofalse}
|
| 35 |
+
decorate [decoration={markings,mark connection node=mark node}]
|
| 36 |
+
{
|
| 37 |
+
\tikz@lib@circ@start@node
|
| 38 |
+
\tikz@lib@circ@end
|
| 39 |
+
}
|
| 40 |
+
}}
|
| 41 |
+
\ifdim\tikz@lib@circ@pos pt=0pt\relax%
|
| 42 |
+
\def\tikz@lib@circ@start@node{%
|
| 43 |
+
{\pgfextra{\tikz@lib@circ@compute@direction{\tikz@lib@circ@start}}%
|
| 44 |
+
node[alias=tikz@lib@circ@node@start,at={(0,0)},#1,pos=]{}}(tikz@lib@circ@node@start)}%
|
| 45 |
+
\else%
|
| 46 |
+
\ifdim\tikz@lib@circ@pos pt=1pt\relax%
|
| 47 |
+
\def\tikz@lib@circ@end{
|
| 48 |
+
{\pgfextra{\tikz@lib@circ@compute@direction{\tikz@lib@circ@target}}%
|
| 49 |
+
node[alias=tikz@lib@circ@node\the\tikz@lib@circ@count,at={(0,0)},#1,pos=]{}}
|
| 50 |
+
--(tikz@lib@circ@node\the\tikz@lib@circ@count)\tikztonodes
|
| 51 |
+
}%
|
| 52 |
+
\else%
|
| 53 |
+
\edef\tikz@marshal{mark=at position \tikz@lib@circ@pos\space with}%
|
| 54 |
+
\def\tikz@marshala{decoration=}%
|
| 55 |
+
\expandafter\expandafter\expandafter\tikzset%
|
| 56 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@marshala\expandafter{\tikz@marshal{\node[alias=mark node,#1,pos=]{};}}}
|
| 57 |
+
\fi%
|
| 58 |
+
\fi%
|
| 59 |
+
\else
|
| 60 |
+
\pgfkeysalso{#1}
|
| 61 |
+
\fi
|
| 62 |
+
}
|
| 63 |
+
}%
|
| 64 |
+
\newcount\tikz@lib@circ@count
|
| 65 |
+
|
| 66 |
+
\def\tikz@lib@circ@compute@direction#1{%
|
| 67 |
+
\tikz@scan@one@point\tikz@lib@circ@save@start(\tikztostart)%
|
| 68 |
+
\tikz@scan@one@point\tikz@lib@circ@save@target(\tikztotarget)%
|
| 69 |
+
\pgf@process{\pgfpointnormalised{\pgfpointdiff{\tikz@lib@circ@start}{\tikz@lib@circ@target}}}%
|
| 70 |
+
\pgf@ya=-\pgf@y%
|
| 71 |
+
\pgftransformcm{\the\pgf@x}{\the\pgf@y}{\the\pgf@ya}{\the\pgf@x}{#1}%
|
| 72 |
+
}%
|
| 73 |
+
\def\tikz@lib@circ@save@start#1{\def\tikz@lib@circ@start{#1}}%
|
| 74 |
+
\def\tikz@lib@circ@save@target#1{\def\tikz@lib@circ@target{#1}}%
|
| 75 |
+
|
| 76 |
+
\tikzset{
|
| 77 |
+
circuits/pos grabber/.is family,
|
| 78 |
+
pos/.belongs to family=/tikz/circuits/pos grabber,
|
| 79 |
+
at start/.belongs to family=/tikz/circuits/pos grabber,
|
| 80 |
+
very near start/.belongs to family=/tikz/circuits/pos grabber,
|
| 81 |
+
near start/.belongs to family=/tikz/circuits/pos grabber,
|
| 82 |
+
midway/.belongs to family=/tikz/circuits/pos grabber,
|
| 83 |
+
near end/.belongs to family=/tikz/circuits/pos grabber,
|
| 84 |
+
very near end/.belongs to family=/tikz/circuits/pos grabber,
|
| 85 |
+
at end/.belongs to family=/tikz/circuits/pos grabber
|
| 86 |
+
}%
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
\tikzset{
|
| 90 |
+
circuit declare symbol/.style args={#1}{
|
| 91 |
+
#1/.style={circuit handle symbol={
|
| 92 |
+
inner sep=0.5pt,
|
| 93 |
+
every circuit symbol,
|
| 94 |
+
#1/graphic,
|
| 95 |
+
every #1/.try,
|
| 96 |
+
##1}
|
| 97 |
+
},
|
| 98 |
+
#1/graphic/.style={},
|
| 99 |
+
set #1 graphic/.style={#1/graphic/.style={##1}}
|
| 100 |
+
},
|
| 101 |
+
circuit symbol unit/.code=\pgfmathsetlength\tikzcircuitssizeunit{#1},
|
| 102 |
+
circuit symbol size/.style args={width #1 height #2}{
|
| 103 |
+
minimum width={(#1)*\tikzcircuitssizeunit},
|
| 104 |
+
minimum height={(#2)*\tikzcircuitssizeunit}
|
| 105 |
+
},
|
| 106 |
+
huge circuit symbols/.style={circuit symbol unit=10pt},
|
| 107 |
+
large circuit symbols/.style={circuit symbol unit=8pt},
|
| 108 |
+
medium circuit symbols/.style={circuit symbol unit=7pt},
|
| 109 |
+
small circuit symbols/.style={circuit symbol unit=6pt},
|
| 110 |
+
tiny circuit symbols/.style={circuit symbol unit=5pt},
|
| 111 |
+
}%
|
| 112 |
+
|
| 113 |
+
\newdimen\tikzcircuitssizeunit
|
| 114 |
+
\tikzcircuitssizeunit=7pt
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
\tikzset{
|
| 119 |
+
circuit declare annotation/.style args={#1#2#3}{%
|
| 120 |
+
#1/.style={
|
| 121 |
+
append after command={%
|
| 122 |
+
\bgroup
|
| 123 |
+
[current point is local=true]
|
| 124 |
+
[every circuit annotation/.try]
|
| 125 |
+
[every #1/.try]
|
| 126 |
+
[shift={(\tikzlastnode.north)}]
|
| 127 |
+
[annotation arrow,->]
|
| 128 |
+
[label distance=#2,##1]
|
| 129 |
+
#3
|
| 130 |
+
\tikz@after@path%
|
| 131 |
+
\egroup%
|
| 132 |
+
}
|
| 133 |
+
},
|
| 134 |
+
#1'/.style={
|
| 135 |
+
append after command={%
|
| 136 |
+
\bgroup
|
| 137 |
+
[current point is local=true]
|
| 138 |
+
[every circuit annotation/.try]
|
| 139 |
+
[every #1/.try]
|
| 140 |
+
[shift={(\tikzlastnode.south)},yscale=-1]
|
| 141 |
+
[annotation arrow,->]
|
| 142 |
+
[label distance=#2,##1]
|
| 143 |
+
#3
|
| 144 |
+
\tikz@after@path%
|
| 145 |
+
\egroup%
|
| 146 |
+
}
|
| 147 |
+
}
|
| 148 |
+
},
|
| 149 |
+
annotation arrow/.style = {
|
| 150 |
+
/utils/exec={\pgfsetarrowoptions{direction ee}{.4*\the\tikzcircuitssizeunit+.3*\the\pgflinewidth}},
|
| 151 |
+
>=direction ee
|
| 152 |
+
}
|
| 153 |
+
}%
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
\tikzset{
|
| 158 |
+
point up/.style={rotate=90},
|
| 159 |
+
point down/.style={rotate=-90},
|
| 160 |
+
point left/.style={rotate=180},
|
| 161 |
+
point right/.style={}
|
| 162 |
+
}%
|
| 163 |
+
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
\tikzset{
|
| 168 |
+
every circuit symbol/.style={},
|
| 169 |
+
circuit symbol open/.style={draw},
|
| 170 |
+
circuit symbol filled/.style={draw,fill=black},
|
| 171 |
+
circuit symbol lines/.style={draw},
|
| 172 |
+
circuit symbol wires/.style={draw},
|
| 173 |
+
}%
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
\tikzset{
|
| 181 |
+
info/.code={\pgfutil@ifnextchar[\tikz@lib@circ@lab@plain{\tikz@lib@circ@lab@plain[]}#1\pgf@stop},%
|
| 182 |
+
info'/.code={\pgfutil@ifnextchar[\tikz@lib@circ@labp@plain{\tikz@lib@circ@labp@plain[]}#1\pgf@stop},%
|
| 183 |
+
info sloped/.code={\pgfutil@ifnextchar[\tikz@lib@circ@lab@sloped@plain{\tikz@lib@circ@lab@sloped@plain[]}#1\pgf@stop},%
|
| 184 |
+
info' sloped/.code={\pgfutil@ifnextchar[\tikz@lib@circ@lab@slopedp@plain{\tikz@lib@circ@lab@slopedp@plain[]}#1\pgf@stop},%
|
| 185 |
+
circuit declare unit/.style 2 args={
|
| 186 |
+
#1/.code={\pgfutil@ifnextchar[\tikz@lib@circ@lab{\tikz@lib@circ@lab[]}##1\pgf@stop{#2}{#1}},%
|
| 187 |
+
#1 sloped/.code={\pgfutil@ifnextchar[\tikz@lib@circ@lab@sloped{\tikz@lib@circ@lab@sloped[]}##1\pgf@stop{#2}{#1}},%
|
| 188 |
+
#1'/.code={\pgfutil@ifnextchar[\tikz@lib@circ@labp{\tikz@lib@circ@labp[]}##1\pgf@stop{#2}{#1}},%
|
| 189 |
+
#1' sloped/.code={\pgfutil@ifnextchar[\tikz@lib@circ@lab@slopedp{\tikz@lib@circ@lab@slopedp[]}##1\pgf@stop{#2}{#1}}%
|
| 190 |
+
}
|
| 191 |
+
}%
|
| 192 |
+
|
| 193 |
+
\def\tikz@lib@circ@lab[#1]#2\pgf@stop#3#4{\tikzset{label={[every info/.try,every #4/.try,#1]$\mathrm{#2#3}$}}}%
|
| 194 |
+
\def\tikz@lib@circ@lab@sloped[#1]#2\pgf@stop#3#4{\tikzset{label={[every info/.try,every #4/.try,transform shape,#1]$\mathrm{#2#3}$}}}%
|
| 195 |
+
\def\tikz@lib@circ@labp[#1]#2\pgf@stop#3#4{\tikzset{label={[label position=below,every info/.try,every #4/.try,#1]$\mathrm{#2#3}$}}}%
|
| 196 |
+
\def\tikz@lib@circ@lab@slopedp[#1]#2\pgf@stop#3#4{\tikzset{label={[label position=below,every info/.try,every #4/.try,transform shape,#1]$\mathrm{#2#3}$}}}%
|
| 197 |
+
|
| 198 |
+
\def\tikz@lib@circ@lab@plain[#1]#2\pgf@stop{\tikzset{label={[every info/.try,#1]#2}}}%
|
| 199 |
+
\def\tikz@lib@circ@lab@sloped@plain[#1]#2\pgf@stop{\tikzset{label={[every info/.try,transform shape,#1]#2}}}%
|
| 200 |
+
\def\tikz@lib@circ@labp@plain[#1]#2\pgf@stop{\tikzset{label={[label position=below,every info/.try,#1]#2}}}%
|
| 201 |
+
\def\tikz@lib@circ@lab@slopedp@plain[#1]#2\pgf@stop{\tikzset{label={[label position=below,every info/.try,transform shape,#1]#2}}}%
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.ee.IEC.code.tex
ADDED
|
@@ -0,0 +1,371 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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\usepgflibrary{shapes.gates.ee.IEC}%
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
\tikzset{
|
| 10 |
+
circuit ee IEC/.style=
|
| 11 |
+
{
|
| 12 |
+
circuit ee,
|
| 13 |
+
set resistor graphic = resistor IEC graphic,
|
| 14 |
+
set inductor graphic = inductor IEC graphic,
|
| 15 |
+
set capacitor graphic = capacitor IEC graphic,
|
| 16 |
+
set contact graphic = contact IEC graphic,
|
| 17 |
+
set ground graphic = ground IEC graphic,
|
| 18 |
+
set battery graphic = battery IEC graphic,
|
| 19 |
+
set diode graphic = diode IEC graphic,
|
| 20 |
+
set Zener diode graphic = Zener diode IEC graphic,
|
| 21 |
+
set tunnel diode graphic = tunnel diode IEC graphic,
|
| 22 |
+
set backward diode graphic = backward diode IEC graphic,
|
| 23 |
+
set Schottky diode graphic = Schottky diode IEC graphic,
|
| 24 |
+
set breakdown diode graphic = breakdown diode IEC graphic,
|
| 25 |
+
set bulb graphic = bulb IEC graphic,
|
| 26 |
+
set voltage source graphic = voltage source IEC graphic,
|
| 27 |
+
set current source graphic = current source IEC graphic,
|
| 28 |
+
set make contact graphic = make contact IEC graphic,
|
| 29 |
+
set break contact graphic = break contact IEC graphic,
|
| 30 |
+
set amperemeter graphic = amperemeter graphic,
|
| 31 |
+
set voltmeter graphic = voltmeter graphic,
|
| 32 |
+
set ohmmeter graphic = ohmmeter graphic,
|
| 33 |
+
set ac source graphic = ac source graphic,
|
| 34 |
+
set dc source graphic = dc source graphic,
|
| 35 |
+
},
|
| 36 |
+
}%
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
\tikzset{
|
| 41 |
+
resistor IEC graphic/.style={
|
| 42 |
+
circuit symbol open,
|
| 43 |
+
circuit symbol size=width 4 height 1,
|
| 44 |
+
shape=rectangle ee,
|
| 45 |
+
transform shape,
|
| 46 |
+
},
|
| 47 |
+
var resistor IEC graphic/.style={
|
| 48 |
+
circuit symbol lines,
|
| 49 |
+
circuit symbol size=width 4.8 height 0.8,
|
| 50 |
+
shape=var resistor IEC,
|
| 51 |
+
transform shape,
|
| 52 |
+
outer sep=0pt,
|
| 53 |
+
cap=round,
|
| 54 |
+
},
|
| 55 |
+
}%
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
\tikzset{
|
| 61 |
+
inductor IEC graphic/.style={
|
| 62 |
+
circuit symbol lines,
|
| 63 |
+
circuit symbol size=width 4 height .5,
|
| 64 |
+
transform shape,
|
| 65 |
+
shape=inductor IEC,
|
| 66 |
+
outer sep=0pt,
|
| 67 |
+
cap=round,
|
| 68 |
+
},
|
| 69 |
+
var inductor IEC graphic/.style={
|
| 70 |
+
circuit symbol filled,
|
| 71 |
+
circuit symbol size=width 4 height 1,
|
| 72 |
+
transform shape,
|
| 73 |
+
shape=rectangle ee,
|
| 74 |
+
},
|
| 75 |
+
}%
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
\tikzset{
|
| 81 |
+
capacitor IEC graphic/.style={
|
| 82 |
+
circuit symbol lines,
|
| 83 |
+
circuit symbol size=width .5 height 2,
|
| 84 |
+
transform shape,
|
| 85 |
+
shape=capacitor IEC,
|
| 86 |
+
},
|
| 87 |
+
}%
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
\tikzset{
|
| 93 |
+
ground IEC graphic/.style={
|
| 94 |
+
circuit symbol lines,
|
| 95 |
+
circuit symbol size=width .75 height 2,
|
| 96 |
+
transform shape,
|
| 97 |
+
shape=ground IEC,
|
| 98 |
+
},
|
| 99 |
+
}%
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
\tikzset{
|
| 106 |
+
battery IEC graphic/.style={
|
| 107 |
+
circuit symbol lines,
|
| 108 |
+
circuit symbol size=width .5 height 2.5,
|
| 109 |
+
transform shape,
|
| 110 |
+
shape=battery IEC,
|
| 111 |
+
transform shape,
|
| 112 |
+
},
|
| 113 |
+
}%
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
\tikzset{
|
| 119 |
+
diode IEC graphic/.style={
|
| 120 |
+
circuit symbol open,
|
| 121 |
+
circuit symbol size=width 1.25 height 1.25,
|
| 122 |
+
transform shape,
|
| 123 |
+
shape=generic diode IEC,
|
| 124 |
+
/pgf/generic diode IEC/before background={
|
| 125 |
+
\pgfpathmoveto{\pgfqpoint{0pt}{-1pt}}
|
| 126 |
+
\pgfpathlineto{\pgfqpoint{0pt}{1pt}}
|
| 127 |
+
\pgfusepathqstroke
|
| 128 |
+
},
|
| 129 |
+
},
|
| 130 |
+
var diode IEC graphic/.style={
|
| 131 |
+
diode IEC graphic,
|
| 132 |
+
circuit symbol filled,
|
| 133 |
+
},
|
| 134 |
+
}%
|
| 135 |
+
|
| 136 |
+
\tikzset{
|
| 137 |
+
Zener diode IEC graphic/.style={
|
| 138 |
+
diode IEC graphic,
|
| 139 |
+
/pgf/generic diode IEC/before background={
|
| 140 |
+
\pgfpathmoveto{\pgfqpoint{-.5pt}{-1pt}}
|
| 141 |
+
\pgfpathlineto{\pgfqpoint{0pt}{-1pt}}
|
| 142 |
+
\pgfpathlineto{\pgfqpoint{0pt}{1pt}}
|
| 143 |
+
\pgfusepathqstroke
|
| 144 |
+
},
|
| 145 |
+
},
|
| 146 |
+
var Zener diode IEC graphic/.style={
|
| 147 |
+
Zener diode IEC graphic,
|
| 148 |
+
circuit symbol filled,
|
| 149 |
+
},
|
| 150 |
+
}%
|
| 151 |
+
|
| 152 |
+
\tikzset{
|
| 153 |
+
Schottky diode IEC graphic/.style={
|
| 154 |
+
diode IEC graphic,
|
| 155 |
+
/pgf/generic diode IEC/before background={
|
| 156 |
+
\pgfpathmoveto{\pgfqpoint{-.4pt}{-.6pt}}
|
| 157 |
+
\pgfpathlineto{\pgfqpoint{-.4pt}{-1pt}}
|
| 158 |
+
\pgfpathlineto{\pgfqpoint{0pt}{-1pt}}
|
| 159 |
+
\pgfpathlineto{\pgfqpoint{0pt}{1pt}}
|
| 160 |
+
\pgfpathlineto{\pgfqpoint{.4pt}{1pt}}
|
| 161 |
+
\pgfpathlineto{\pgfqpoint{.4pt}{.6pt}}
|
| 162 |
+
\pgfusepathqstroke
|
| 163 |
+
},
|
| 164 |
+
},
|
| 165 |
+
var Schottky diode IEC graphic/.style={
|
| 166 |
+
Schottky diode IEC graphic,
|
| 167 |
+
circuit symbol filled,
|
| 168 |
+
},
|
| 169 |
+
}%
|
| 170 |
+
|
| 171 |
+
\tikzset{
|
| 172 |
+
tunnel diode IEC graphic/.style={
|
| 173 |
+
diode IEC graphic,
|
| 174 |
+
/pgf/generic diode IEC/before background={
|
| 175 |
+
\pgfpathmoveto{\pgfqpoint{-.5pt}{-1pt}}
|
| 176 |
+
\pgfpathlineto{\pgfqpoint{0pt}{-1pt}}
|
| 177 |
+
\pgfpathlineto{\pgfqpoint{0pt}{1pt}}
|
| 178 |
+
\pgfpathlineto{\pgfqpoint{-.5pt}{1pt}}
|
| 179 |
+
\pgfusepathqstroke
|
| 180 |
+
},
|
| 181 |
+
},
|
| 182 |
+
var tunnel diode IEC graphic/.style={
|
| 183 |
+
tunnel diode IEC graphic,
|
| 184 |
+
circuit symbol filled,
|
| 185 |
+
},
|
| 186 |
+
}%
|
| 187 |
+
|
| 188 |
+
\tikzset{
|
| 189 |
+
backward diode IEC graphic/.style={
|
| 190 |
+
diode IEC graphic,
|
| 191 |
+
/pgf/generic diode IEC/before background={
|
| 192 |
+
\pgfpathmoveto{\pgfqpoint{-.5pt}{-1pt}}
|
| 193 |
+
\pgfpathlineto{\pgfqpoint{.5pt}{-1pt}}
|
| 194 |
+
\pgfpathmoveto{\pgfqpoint{0pt}{-1pt}}
|
| 195 |
+
\pgfpathlineto{\pgfqpoint{0pt}{1pt}}
|
| 196 |
+
\pgfpathmoveto{\pgfqpoint{-.5pt}{1pt}}
|
| 197 |
+
\pgfpathlineto{\pgfqpoint{.5pt}{1pt}}
|
| 198 |
+
\pgfusepathqstroke
|
| 199 |
+
},
|
| 200 |
+
},
|
| 201 |
+
var backward diode IEC graphic/.style={
|
| 202 |
+
backward diode IEC graphic,
|
| 203 |
+
circuit symbol filled,
|
| 204 |
+
},
|
| 205 |
+
}%
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
\tikzset{
|
| 209 |
+
breakdown diode IEC graphic/.style={
|
| 210 |
+
circuit symbol open,
|
| 211 |
+
circuit symbol size=width 2.5 height 1.25,
|
| 212 |
+
transform shape,
|
| 213 |
+
shape=breakdown diode IEC,
|
| 214 |
+
},
|
| 215 |
+
var breakdown diode IEC graphic/.style={
|
| 216 |
+
breakdown diode IEC graphic,
|
| 217 |
+
circuit symbol filled,
|
| 218 |
+
},
|
| 219 |
+
}%
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
\tikzset{
|
| 225 |
+
contact IEC graphic/.style={
|
| 226 |
+
circuit symbol filled,
|
| 227 |
+
circuit symbol size=width .5 height .5,
|
| 228 |
+
shape=circle ee,
|
| 229 |
+
outer sep=.25\pgflinewidth,
|
| 230 |
+
},
|
| 231 |
+
}%
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
|
| 235 |
+
\tikzset{
|
| 236 |
+
bulb IEC graphic/.style={
|
| 237 |
+
circuit symbol lines,
|
| 238 |
+
circuit symbol size=width 1.5 height 1.5,
|
| 239 |
+
shape=generic circle IEC,
|
| 240 |
+
/pgf/generic circle IEC/before background={
|
| 241 |
+
\pgfpathmoveto{\pgfpointpolar{-135}{1pt}}
|
| 242 |
+
\pgfpathlineto{\pgfpointpolar{45}{1pt}}
|
| 243 |
+
\pgfpathmoveto{\pgfpointpolar{-45}{1pt}}
|
| 244 |
+
\pgfpathlineto{\pgfpointpolar{135}{1pt}}
|
| 245 |
+
\pgfusepathqstroke
|
| 246 |
+
},
|
| 247 |
+
transform shape,
|
| 248 |
+
},
|
| 249 |
+
}%
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
\tikzset{
|
| 254 |
+
current source IEC graphic/.style={
|
| 255 |
+
circuit symbol lines,
|
| 256 |
+
circuit symbol size=width 2 height 2,
|
| 257 |
+
shape=generic circle IEC,
|
| 258 |
+
/pgf/generic circle IEC/before background={
|
| 259 |
+
\pgfpathmoveto{\pgfqpoint{0pt}{-1pt}}
|
| 260 |
+
\pgfpathlineto{\pgfqpoint{0pt}{1pt}}
|
| 261 |
+
\pgfusepathqstroke
|
| 262 |
+
},
|
| 263 |
+
transform shape,
|
| 264 |
+
},
|
| 265 |
+
voltage source IEC graphic/.style={
|
| 266 |
+
circuit symbol lines,
|
| 267 |
+
circuit symbol size=width 2 height 2,
|
| 268 |
+
shape=generic circle IEC,
|
| 269 |
+
/pgf/generic circle IEC/before background={
|
| 270 |
+
\pgfpathmoveto{\pgfqpoint{-1pt}{0pt}}
|
| 271 |
+
\pgfpathlineto{\pgfqpoint{1pt}{0pt}}
|
| 272 |
+
\pgfusepathqstroke
|
| 273 |
+
},
|
| 274 |
+
transform shape,
|
| 275 |
+
},
|
| 276 |
+
}%
|
| 277 |
+
|
| 278 |
+
|
| 279 |
+
|
| 280 |
+
|
| 281 |
+
\tikzset{
|
| 282 |
+
make contact IEC graphic/.style={
|
| 283 |
+
circuit symbol wires,
|
| 284 |
+
circuit symbol size=width 2 height 1,
|
| 285 |
+
transform shape,
|
| 286 |
+
shape=make contact IEC,
|
| 287 |
+
outer sep=0pt,
|
| 288 |
+
cap=round,
|
| 289 |
+
},
|
| 290 |
+
var make contact IEC graphic/.style={
|
| 291 |
+
circuit symbol wires,
|
| 292 |
+
circuit symbol size=width 2.4 height 1,
|
| 293 |
+
transform shape,
|
| 294 |
+
shape=var make contact IEC,
|
| 295 |
+
outer sep=0pt,
|
| 296 |
+
cap=round,
|
| 297 |
+
},
|
| 298 |
+
}%
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
\tikzset{
|
| 302 |
+
break contact IEC graphic/.style={
|
| 303 |
+
circuit symbol wires,
|
| 304 |
+
circuit symbol size=width 2 height 1,
|
| 305 |
+
transform shape,
|
| 306 |
+
shape=break contact IEC,
|
| 307 |
+
outer sep=0pt,
|
| 308 |
+
cap=round,
|
| 309 |
+
},
|
| 310 |
+
}%
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
|
| 314 |
+
|
| 315 |
+
\tikzset{
|
| 316 |
+
amperemeter graphic/.style={
|
| 317 |
+
circuit symbol open,
|
| 318 |
+
circuit symbol size=width 2 height 2,
|
| 319 |
+
transform shape,
|
| 320 |
+
shape=generic circle IEC,
|
| 321 |
+
info=center:A,
|
| 322 |
+
},
|
| 323 |
+
voltmeter graphic/.style={
|
| 324 |
+
circuit symbol open,
|
| 325 |
+
circuit symbol size=width 2 height 2,
|
| 326 |
+
transform shape,
|
| 327 |
+
shape=generic circle IEC,
|
| 328 |
+
info=center:V,
|
| 329 |
+
},
|
| 330 |
+
ohmmeter graphic/.style={
|
| 331 |
+
circuit symbol open,
|
| 332 |
+
circuit symbol size=width 2 height 2,
|
| 333 |
+
transform shape,
|
| 334 |
+
shape=generic circle IEC,
|
| 335 |
+
info=center:$\Omega$,
|
| 336 |
+
},
|
| 337 |
+
}%
|
| 338 |
+
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
|
| 342 |
+
\tikzset{
|
| 343 |
+
ac source graphic/.style={
|
| 344 |
+
circuit symbol lines,
|
| 345 |
+
circuit symbol size=width 2 height 2,
|
| 346 |
+
shape=generic circle IEC,
|
| 347 |
+
/pgf/generic circle IEC/before background={
|
| 348 |
+
\pgfpathmoveto{\pgfqpoint{0.7pt}{0pt}}
|
| 349 |
+
\pgfpathquadraticcurveto{\pgfqpoint{ 0.35pt}{-0.5pt}}{\pgfqpoint{0pt}{0pt}}
|
| 350 |
+
\pgfpathquadraticcurveto{\pgfqpoint{-0.35pt}{ 0.5pt}}{\pgfqpoint{-0.7pt}{0pt}}
|
| 351 |
+
\pgfusepathqstroke
|
| 352 |
+
},
|
| 353 |
+
transform shape,
|
| 354 |
+
},
|
| 355 |
+
dc source graphic/.style={
|
| 356 |
+
circuit symbol lines,
|
| 357 |
+
circuit symbol size=width 2 height 2,
|
| 358 |
+
shape=generic circle IEC,
|
| 359 |
+
/pgf/generic circle IEC/before background={
|
| 360 |
+
\pgfpathmoveto{\pgfqpoint{ 0.7pt}{ 0.2pt}}
|
| 361 |
+
\pgfpathlineto{\pgfqpoint{-0.7pt}{ 0.2pt}}
|
| 362 |
+
\pgfusepathqstroke
|
| 363 |
+
\pgfpathmoveto{\pgfqpoint{ 0.7pt}{-0.2pt}}
|
| 364 |
+
\pgfpathlineto{\pgfqpoint{-0.7pt}{-0.2pt}}
|
| 365 |
+
\pgfusepathqstroke
|
| 366 |
+
},
|
| 367 |
+
transform shape,
|
| 368 |
+
},
|
| 369 |
+
}%
|
| 370 |
+
|
| 371 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.ee.code.tex
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
\usetikzlibrary{circuits}%
|
| 4 |
+
\usepgflibrary{shapes.gates.ee}%
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
\tikzset{
|
| 8 |
+
circuit ee/.style={
|
| 9 |
+
circuit,
|
| 10 |
+
every circuit ee/.try
|
| 11 |
+
}
|
| 12 |
+
}%
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
\tikzset{
|
| 17 |
+
circuit declare symbol = resistor,
|
| 18 |
+
circuit declare symbol = inductor,
|
| 19 |
+
circuit declare symbol = capacitor,
|
| 20 |
+
circuit declare symbol = contact,
|
| 21 |
+
circuit declare symbol = ground,
|
| 22 |
+
circuit declare symbol = battery,
|
| 23 |
+
circuit declare symbol = diode,
|
| 24 |
+
circuit declare symbol = Zener diode,
|
| 25 |
+
circuit declare symbol = Schottky diode,
|
| 26 |
+
circuit declare symbol = tunnel diode,
|
| 27 |
+
circuit declare symbol = backward diode,
|
| 28 |
+
circuit declare symbol = breakdown diode,
|
| 29 |
+
circuit declare symbol = bulb,
|
| 30 |
+
circuit declare symbol = current source,
|
| 31 |
+
circuit declare symbol = voltage source,
|
| 32 |
+
circuit declare symbol = current direction,
|
| 33 |
+
circuit declare symbol = current direction',
|
| 34 |
+
circuit declare symbol = make contact,
|
| 35 |
+
circuit declare symbol = break contact,
|
| 36 |
+
circuit declare symbol = amperemeter,
|
| 37 |
+
circuit declare symbol = voltmeter,
|
| 38 |
+
circuit declare symbol = ohmmeter,
|
| 39 |
+
circuit declare symbol = ac source,
|
| 40 |
+
circuit declare symbol = dc source,
|
| 41 |
+
set current direction graphic = current direction ee graphic,
|
| 42 |
+
set current direction' graphic = current direction' ee graphic,
|
| 43 |
+
}%
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
\tikzset{
|
| 48 |
+
circuit declare unit={ampere}{A},
|
| 49 |
+
circuit declare unit={volt}{V},
|
| 50 |
+
circuit declare unit={ohm}{\Omega},
|
| 51 |
+
circuit declare unit={siemens}{S},
|
| 52 |
+
circuit declare unit={henry}{H},
|
| 53 |
+
circuit declare unit={farad}{F},
|
| 54 |
+
circuit declare unit={coulomb}{C},
|
| 55 |
+
circuit declare unit={voltampere}{VA},
|
| 56 |
+
circuit declare unit={watt}{W},
|
| 57 |
+
circuit declare unit={hertz}{Hz},
|
| 58 |
+
}%
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
\tikzset{
|
| 64 |
+
current direction arrow/.style = {
|
| 65 |
+
/utils/exec={\pgfsetarrowoptions{direction ee}{1.3065*.5*\the\tikzcircuitssizeunit+1.3065*.3*\the\pgflinewidth}},
|
| 66 |
+
>=direction ee,
|
| 67 |
+
direction ee arrow = direction ee,
|
| 68 |
+
}
|
| 69 |
+
}%
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
\tikzset{
|
| 75 |
+
current direction ee graphic/.style = {
|
| 76 |
+
shape=direction ee,
|
| 77 |
+
circuit symbol filled,
|
| 78 |
+
current direction arrow,
|
| 79 |
+
minimum width = .5*\the\tikzcircuitssizeunit+.3*\the\pgflinewidth,
|
| 80 |
+
minimum height = .5*\the\tikzcircuitssizeunit+.3*\the\pgflinewidth,
|
| 81 |
+
transform shape
|
| 82 |
+
},
|
| 83 |
+
current direction' ee graphic/.style = {
|
| 84 |
+
current direction ee graphic,
|
| 85 |
+
rotate=180
|
| 86 |
+
}
|
| 87 |
+
}%
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
\tikzset{
|
| 93 |
+
circuit declare annotation={direction info}{.5\tikzcircuitssizeunit}
|
| 94 |
+
{
|
| 95 |
+
(-1.25\tikzcircuitssizeunit,.3333\tikzcircuitssizeunit) edge[line to] (1.25\tikzcircuitssizeunit,.3333\tikzcircuitssizeunit)
|
| 96 |
+
},
|
| 97 |
+
circuit declare annotation={light emitting}{1.75\tikzcircuitssizeunit}
|
| 98 |
+
{
|
| 99 |
+
(-.2\tikzcircuitssizeunit,.65\tikzcircuitssizeunit) edge[line to] ++(45:1.25\tikzcircuitssizeunit)
|
| 100 |
+
(.2\tikzcircuitssizeunit,.25\tikzcircuitssizeunit) edge[line to] ++(45:1.25\tikzcircuitssizeunit)
|
| 101 |
+
},
|
| 102 |
+
circuit declare annotation={light dependent}{1.75\tikzcircuitssizeunit}
|
| 103 |
+
{
|
| 104 |
+
[shift=(135:1.25\tikzcircuitssizeunit)]
|
| 105 |
+
(.2\tikzcircuitssizeunit,.65\tikzcircuitssizeunit) edge[line to] ++(-45:1.25\tikzcircuitssizeunit)
|
| 106 |
+
(-.2\tikzcircuitssizeunit,.25\tikzcircuitssizeunit) edge[line to] ++(-45:1.25\tikzcircuitssizeunit)
|
| 107 |
+
},
|
| 108 |
+
circuit declare annotation={adjustable}{1.5\tikzcircuitssizeunit}
|
| 109 |
+
{
|
| 110 |
+
[shift=(\tikzlastnode.center)]
|
| 111 |
+
(-1.5\tikzcircuitssizeunit,-1.5\tikzcircuitssizeunit) edge[line to] (1.5\tikzcircuitssizeunit,1.5\tikzcircuitssizeunit)
|
| 112 |
+
},
|
| 113 |
+
circuit declare annotation={adjustable'}{1.5\tikzcircuitssizeunit}
|
| 114 |
+
{
|
| 115 |
+
[shift=(\tikzlastnode.center)]
|
| 116 |
+
(-1.5\tikzcircuitssizeunit,1.5\tikzcircuitssizeunit) edge[line to] (1.5\tikzcircuitssizeunit,-1.5\tikzcircuitssizeunit)
|
| 117 |
+
}
|
| 118 |
+
}%
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.logic.CDH.code.tex
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\usetikzlibrary{circuits.logic.US}%
|
| 3 |
+
|
| 4 |
+
\tikzset{
|
| 5 |
+
circuit logic CDH/.style =
|
| 6 |
+
{
|
| 7 |
+
circuit logic US,
|
| 8 |
+
set and gate graphic = and gate CDH graphic,
|
| 9 |
+
set nand gate graphic = nand gate CDH graphic,
|
| 10 |
+
}
|
| 11 |
+
}%
|
| 12 |
+
|
| 13 |
+
\tikzset{
|
| 14 |
+
circuit logic US make graphic=and gate CDH,
|
| 15 |
+
circuit logic US make graphic=nand gate CDH,
|
| 16 |
+
}%
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.logic.IEC.code.tex
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\usetikzlibrary{circuits.logic}%
|
| 3 |
+
\usepgflibrary{shapes.gates.logic.IEC}%
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
\tikzset{
|
| 8 |
+
circuit logic IEC/.style=
|
| 9 |
+
{
|
| 10 |
+
circuit logic,
|
| 11 |
+
set and gate graphic = and gate IEC graphic,
|
| 12 |
+
set nand gate graphic = nand gate IEC graphic,
|
| 13 |
+
set or gate graphic = or gate IEC graphic,
|
| 14 |
+
set nor gate graphic = nor gate IEC graphic,
|
| 15 |
+
set xor gate graphic = xor gate IEC graphic,
|
| 16 |
+
set xnor gate graphic = xnor gate IEC graphic,
|
| 17 |
+
set not gate graphic = not gate IEC graphic,
|
| 18 |
+
set buffer gate graphic = buffer gate IEC graphic,
|
| 19 |
+
and gate IEC symbol = {$\scriptstyle\char`\&$},
|
| 20 |
+
nand gate IEC symbol = {$\scriptstyle\char`\&$},
|
| 21 |
+
or gate IEC symbol = {$\scriptstyle\geq1$},
|
| 22 |
+
nor gate IEC symbol = {$\scriptstyle\geq1$},
|
| 23 |
+
xor gate IEC symbol = {$\scriptstyle=1$},
|
| 24 |
+
xnor gate IEC symbol = {$\scriptstyle=1$},
|
| 25 |
+
not gate IEC symbol = {$\scriptstyle1$},
|
| 26 |
+
buffer gate IEC symbol = {$\scriptstyle1$},
|
| 27 |
+
},
|
| 28 |
+
}%
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
\tikzset{
|
| 32 |
+
circuit logic IEC make graphic/.style=
|
| 33 |
+
{
|
| 34 |
+
#1 graphic/.style={
|
| 35 |
+
circuit symbol open,
|
| 36 |
+
circuit symbol size=width 2.5 height 4,
|
| 37 |
+
shape=#1,
|
| 38 |
+
inner sep=.5ex
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
}%
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
\tikzset{
|
| 45 |
+
circuit logic IEC make graphic=and gate IEC,
|
| 46 |
+
circuit logic IEC make graphic=nand gate IEC,
|
| 47 |
+
circuit logic IEC make graphic=or gate IEC,
|
| 48 |
+
circuit logic IEC make graphic=nor gate IEC,
|
| 49 |
+
circuit logic IEC make graphic=xor gate IEC,
|
| 50 |
+
circuit logic IEC make graphic=xnor gate IEC,
|
| 51 |
+
circuit logic IEC make graphic=not gate IEC,
|
| 52 |
+
circuit logic IEC make graphic=buffer gate IEC,
|
| 53 |
+
circuit logic IEC make graphic=and gate CDH,
|
| 54 |
+
circuit logic IEC make graphic=nand gate CDH,
|
| 55 |
+
}%
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.logic.US.code.tex
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\usetikzlibrary{circuits.logic}%
|
| 3 |
+
\usepgflibrary{shapes.gates.logic.US}%
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
\tikzset{
|
| 8 |
+
circuit logic US/.style=
|
| 9 |
+
{
|
| 10 |
+
circuit logic,
|
| 11 |
+
set and gate graphic = and gate US graphic,
|
| 12 |
+
set nand gate graphic = nand gate US graphic,
|
| 13 |
+
set or gate graphic = or gate US graphic,
|
| 14 |
+
set nor gate graphic = nor gate US graphic,
|
| 15 |
+
set xor gate graphic = xor gate US graphic,
|
| 16 |
+
set xnor gate graphic = xnor gate US graphic,
|
| 17 |
+
set not gate graphic = not gate US graphic,
|
| 18 |
+
set buffer gate graphic = buffer gate US graphic
|
| 19 |
+
}
|
| 20 |
+
}%
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
\tikzset{
|
| 24 |
+
circuit logic US make graphic/.style=
|
| 25 |
+
{
|
| 26 |
+
#1 graphic/.style={
|
| 27 |
+
circuit symbol open,
|
| 28 |
+
circuit symbol size=width 0 height 2.5,
|
| 29 |
+
shape=#1,
|
| 30 |
+
transform shape
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
}%
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
\tikzset{
|
| 37 |
+
circuit logic US make graphic=and gate US,
|
| 38 |
+
circuit logic US make graphic=nand gate US,
|
| 39 |
+
circuit logic US make graphic=or gate US,
|
| 40 |
+
circuit logic US make graphic=nor gate US,
|
| 41 |
+
circuit logic US make graphic=xor gate US,
|
| 42 |
+
circuit logic US make graphic=xnor gate US,
|
| 43 |
+
circuit logic US make graphic=not gate US,
|
| 44 |
+
circuit logic US make graphic=buffer gate US,
|
| 45 |
+
}%
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.logic.code.tex
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\usetikzlibrary{circuits}%
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
\tikzset{
|
| 8 |
+
circuit logic/.style={
|
| 9 |
+
circuit,
|
| 10 |
+
inputs/.style={logic gate inputs={##1}},
|
| 11 |
+
logic gate inverted radius=.25\tikzcircuitssizeunit,
|
| 12 |
+
every circuit logic/.try,
|
| 13 |
+
}
|
| 14 |
+
}%
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
\tikzset{
|
| 20 |
+
circuit declare symbol = and gate,
|
| 21 |
+
circuit declare symbol = nand gate,
|
| 22 |
+
circuit declare symbol = or gate,
|
| 23 |
+
circuit declare symbol = nor gate,
|
| 24 |
+
circuit declare symbol = xor gate,
|
| 25 |
+
circuit declare symbol = xnor gate,
|
| 26 |
+
circuit declare symbol = not gate,
|
| 27 |
+
circuit declare symbol = buffer gate
|
| 28 |
+
}%
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.3d.code.tex
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibrarydatavisualization.3d.code.tex}
|
| 3 |
+
|
| 4 |
+
\usetikzlibrary{datavisualization}%
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
\tikzdatavisualizationset{
|
| 13 |
+
school book 3d plot/.style={
|
| 14 |
+
xyz Cartesian,
|
| 15 |
+
x axis={
|
| 16 |
+
visualize axis={y axis={goto=0},z axis={goto=0},styling/.style=->},
|
| 17 |
+
visualize ticks={common={y axis={goto=0},z axis={goto=0},direction axis=y axis},only ticks={tick text at min extend}},
|
| 18 |
+
},
|
| 19 |
+
y axis={
|
| 20 |
+
visualize axis={x axis={goto=0},z axis={goto=0},styling/.style=->},
|
| 21 |
+
visualize ticks={common={x axis={goto=0},z axis={goto=0},direction axis=x axis},only ticks={tick text at min extend}},
|
| 22 |
+
},
|
| 23 |
+
z axis={
|
| 24 |
+
visualize axis={x axis={goto=0},y axis={goto=0},styling/.style=->},
|
| 25 |
+
visualize ticks={common={x axis={goto=0},y axis={goto=0},direction axis=x axis},only ticks={tick text at min extend}},
|
| 26 |
+
},
|
| 27 |
+
new line plot,
|
| 28 |
+
every school book plot/.try,
|
| 29 |
+
},
|
| 30 |
+
}%
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
\tikzdatavisualizationset{
|
| 35 |
+
scientific 3d plot/length/.initial=100pt,
|
| 36 |
+
scientific 3d plot/.style={
|
| 37 |
+
xyz Cartesian,
|
| 38 |
+
x axis={
|
| 39 |
+
length=\pgfkeysvalueof{/tikz/data visualization/scientific 3d plot/length},
|
| 40 |
+
visualize axis={y axis={goto=min},z axis={goto=min}},
|
| 41 |
+
visualize axis={y axis={goto=max},z axis={goto=min}},
|
| 42 |
+
visualize axis={y axis={goto=min},z axis={goto=max}},
|
| 43 |
+
visualize axis={y axis={goto=max},z axis={goto=max}},
|
| 44 |
+
},
|
| 45 |
+
y axis={
|
| 46 |
+
length=\pgfkeysvalueof{/tikz/data visualization/scientific 3d plot/length},
|
| 47 |
+
visualize axis={x axis={goto=min},z axis={goto=min}},
|
| 48 |
+
visualize axis={x axis={goto=max},z axis={goto=min}},
|
| 49 |
+
visualize axis={x axis={goto=min},z axis={goto=max}},
|
| 50 |
+
visualize axis={x axis={goto=max},z axis={goto=max}},
|
| 51 |
+
},
|
| 52 |
+
z axis={
|
| 53 |
+
length=\pgfkeysvalueof{/tikz/data visualization/scientific 3d plot/length},
|
| 54 |
+
visualize axis={x axis={goto=min},y axis={goto=min}},
|
| 55 |
+
visualize axis={x axis={goto=max},y axis={goto=min}},
|
| 56 |
+
visualize axis={x axis={goto=min},y axis={goto=max}},
|
| 57 |
+
visualize axis={x axis={goto=max},y axis={goto=max}},
|
| 58 |
+
},
|
| 59 |
+
new line plot,
|
| 60 |
+
},
|
| 61 |
+
}%
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.barcharts.code.tex
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibrarydatavisualization.barcharts.code.tex}
|
| 3 |
+
|
| 4 |
+
\usetikzlibrary{datavisualization}%
|
| 5 |
+
\usepgflibrary{datavisualization.barcharts}%
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
\tikzdatavisualizationset{%
|
| 9 |
+
candle stick plot/.style={
|
| 10 |
+
new object={
|
| 11 |
+
store=/tikz/data visualization/count,
|
| 12 |
+
class=count,
|
| 13 |
+
arg1=day
|
| 14 |
+
},
|
| 15 |
+
new axis=y axis,
|
| 16 |
+
y axis/source=dax,
|
| 17 |
+
y axis/source max=100,
|
| 18 |
+
y axis/vec=\pgfqpoint{0cm}{1cm},
|
| 19 |
+
new object={
|
| 20 |
+
store=/tikz/data visualization/x line trans,
|
| 21 |
+
class=line transformer,
|
| 22 |
+
arg1=day,
|
| 23 |
+
arg2=\pgfqpoint{3mm}{0mm}
|
| 24 |
+
},
|
| 25 |
+
new object={
|
| 26 |
+
store=/tikz/data visualization/index,
|
| 27 |
+
class=candle stick visualizer,
|
| 28 |
+
arg1 from key=index/source
|
| 29 |
+
},
|
| 30 |
+
},
|
| 31 |
+
index/source/.initial=index,
|
| 32 |
+
}%
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.code.tex
ADDED
|
@@ -0,0 +1,2355 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibrarydatavisualization.code.tex}
|
| 3 |
+
|
| 4 |
+
\usepgfmodule{datavisualization}%
|
| 5 |
+
\usetikzlibrary{backgrounds}%
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
\tikzset{/tikz/data visualization/.is family,
|
| 9 |
+
/tikz/data visualization/.unknown/.code={
|
| 10 |
+
\let\tikz@dv@key\pgfkeyscurrentname%
|
| 11 |
+
\pgfkeys{/tikz/\tikz@dv@key/.try={#1}}%
|
| 12 |
+
\ifpgfkeyssuccess%
|
| 13 |
+
\else%
|
| 14 |
+
\edef\pgf@temp{/errors/unknown key={/tikz/data visualization/\tikz@dv@key}}%
|
| 15 |
+
\expandafter\pgfkeys\expandafter{\pgf@temp{#1}}%
|
| 16 |
+
\fi%
|
| 17 |
+
},
|
| 18 |
+
/tikz/data visualization/data/.unknown/.code={%
|
| 19 |
+
\let\tikz@dv@key\pgfkeyscurrentname%
|
| 20 |
+
\pgfkeys{/pgf/data/\tikz@dv@key/.try={#1}}%
|
| 21 |
+
\ifpgfkeyssuccess%
|
| 22 |
+
\else%
|
| 23 |
+
\edef\pgf@temp{/errors/unknown key={/pgf/data/\tikz@dv@key}}%
|
| 24 |
+
\expandafter\pgfkeys\expandafter{\pgf@temp{#1}}%
|
| 25 |
+
\fi%
|
| 26 |
+
},
|
| 27 |
+
}%
|
| 28 |
+
|
| 29 |
+
\def\tikzdatavisualizationset{\pgfqkeys{/tikz/data visualization}}%
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
\def\tikz@lib@datavisualization{
|
| 36 |
+
\begingroup%
|
| 37 |
+
\let\tikz@path@do@at@end=\relax%
|
| 38 |
+
\pgfoonew \tikz@main@dv=new data visualization()%
|
| 39 |
+
\pgfset{local bounding box=data visualization bounding box}%
|
| 40 |
+
\pgfkeyslet{/tikz/data visualization/axes list}\pgfutil@empty%
|
| 41 |
+
\pgfkeyslet{/tikz/data visualization/axes actions}\pgfutil@empty%
|
| 42 |
+
\pgfkeyslet{/tikz/data visualization/label actions}\pgfutil@empty%
|
| 43 |
+
\pgfkeyslet{/tikz/data visualization/legend actions}\pgfutil@empty%
|
| 44 |
+
\pgfkeyslet{/tikz/data visualization/grid actions}\pgfutil@empty%
|
| 45 |
+
\pgfkeyslet{/tikz/data visualization/major grid actions}\pgfutil@empty%
|
| 46 |
+
\pgfkeyslet{/tikz/data visualization/minor grid actions}\pgfutil@empty%
|
| 47 |
+
\pgfkeyslet{/tikz/data visualization/subminor grid actions}\pgfutil@empty%
|
| 48 |
+
\pgfkeyslet{/tikz/data visualization/ticks actions}\pgfutil@empty%
|
| 49 |
+
\pgfkeyslet{/tikz/data visualization/major ticks actions}\pgfutil@empty%
|
| 50 |
+
\pgfkeyslet{/tikz/data visualization/minor ticks actions}\pgfutil@empty%
|
| 51 |
+
\pgfkeyslet{/tikz/data visualization/subminor ticks actions}\pgfutil@empty%
|
| 52 |
+
\tikz@main@dv.before visualization(%
|
| 53 |
+
)%
|
| 54 |
+
\tikz@main@dv.after visualization(%
|
| 55 |
+
\tikz@lib@dv@alias@dv@bb
|
| 56 |
+
\pgfkeysvalueof{/tikz/data visualization/grid actions}
|
| 57 |
+
\pgfkeysvalueof{/tikz/data visualization/subminor grid actions}
|
| 58 |
+
\pgfkeysvalueof{/tikz/data visualization/minor grid actions}
|
| 59 |
+
\pgfkeysvalueof{/tikz/data visualization/major grid actions}
|
| 60 |
+
\pgfkeysvalueof{/tikz/data visualization/ticks actions}
|
| 61 |
+
\pgfkeysvalueof{/tikz/data visualization/subminor ticks actions}
|
| 62 |
+
\pgfkeysvalueof{/tikz/data visualization/minor ticks actions}
|
| 63 |
+
\pgfkeysvalueof{/tikz/data visualization/major ticks actions}
|
| 64 |
+
\pgfkeysvalueof{/tikz/data visualization/axes actions}
|
| 65 |
+
\pgfkeysvalueof{/tikz/data visualization/label actions}
|
| 66 |
+
\pgfkeysvalueof{/tikz/data visualization/legend actions}
|
| 67 |
+
)%
|
| 68 |
+
\pgfset{/pgf/data/continue code=\tikz@lib@dv@parse@loop}%
|
| 69 |
+
\tikz@lib@dv@parse@loop
|
| 70 |
+
}%
|
| 71 |
+
|
| 72 |
+
\def\tikz@lib@dv@parse@loop{%
|
| 73 |
+
\pgfutil@ifnextchar d\tikz@lib@dv@handle@data{%
|
| 74 |
+
\pgfutil@ifnextchar ;\tikz@lib@dv@parse@end{%
|
| 75 |
+
\pgfutil@ifnextchar \par\tikz@lib@dv@handle@par{%
|
| 76 |
+
\pgfutil@ifnextchar s\tikz@lib@dv@handle@beginscope{%
|
| 77 |
+
\pgfutil@ifnextchar i\tikz@lib@dv@handle@info{%
|
| 78 |
+
\pgfutil@ifnextchar [\tikz@lib@dv@handle@options{%
|
| 79 |
+
\pgfutil@ifnextchar \egroup\tikz@lib@dv@handle@endscope{%
|
| 80 |
+
\tikzerror{Semicolon expected}%
|
| 81 |
+
\endgroup%
|
| 82 |
+
}%
|
| 83 |
+
}%
|
| 84 |
+
}%
|
| 85 |
+
}%
|
| 86 |
+
}%
|
| 87 |
+
}%
|
| 88 |
+
}%
|
| 89 |
+
}%
|
| 90 |
+
\def\tikz@lib@dv@parse@end;{%
|
| 91 |
+
\tikz@main@dv.survey()%
|
| 92 |
+
\tikz@main@dv.visualize()%
|
| 93 |
+
\endgroup%
|
| 94 |
+
\tikz@path@do@at@end%
|
| 95 |
+
}%
|
| 96 |
+
\def\tikz@lib@dv@handle@par\par{\tikz@lib@dv@parse@loop}%
|
| 97 |
+
|
| 98 |
+
\def\tikz@lib@dv@handle@options[#1]{%
|
| 99 |
+
\tikzdatavisualizationset{#1}%
|
| 100 |
+
\tikz@lib@dv@parse@loop%
|
| 101 |
+
}%
|
| 102 |
+
|
| 103 |
+
\def\tikz@lib@dv@handle@beginscope scope{%
|
| 104 |
+
\begingroup%
|
| 105 |
+
\pgfutil@ifnextchar[\tikz@lib@dv@beg@opt{\tikz@lib@dv@beg@opt[]}%
|
| 106 |
+
}%
|
| 107 |
+
\def\tikz@lib@dv@beg@opt[#1]{%
|
| 108 |
+
\pgfkeys{/pgf/data/.cd,/pgf/every data/.try,#1}%
|
| 109 |
+
\pgf@dv@do@adddata{\pgfkeysvalueof{/pgf/data visualization/obj}.add data({{\begingroup\pgfkeys{/pgf/data/.cd,/pgf/every data/.try,#1}}})}%
|
| 110 |
+
\pgfutil@ifnextchar\bgroup{
|
| 111 |
+
\afterassignment\tikz@lib@dv@parse@loop%
|
| 112 |
+
\let\tikz@dummy=%
|
| 113 |
+
}{%
|
| 114 |
+
\tikzerror{Opening brace expected}%
|
| 115 |
+
\tikz@lib@dv@parse@loop%
|
| 116 |
+
}%
|
| 117 |
+
}%
|
| 118 |
+
\def\tikz@lib@dv@handle@endscope{%
|
| 119 |
+
\pgf@dv@do@adddata{\pgfkeysvalueof{/pgf/data visualization/obj}.add data(\endgroup)}%
|
| 120 |
+
\endgroup%
|
| 121 |
+
\afterassignment\tikz@lib@dv@parse@loop%
|
| 122 |
+
\let\tikz@dummy=%
|
| 123 |
+
}%
|
| 124 |
+
|
| 125 |
+
\def\tikz@lib@dv@handle@data data{%
|
| 126 |
+
\pgfutil@ifnextchar g{\tikz@lib@dv@handle@data@group}{%
|
| 127 |
+
\pgfutil@ifnextchar p{\tikz@lib@dv@handle@data@point}{%
|
| 128 |
+
\pgfdata}}}%
|
| 129 |
+
|
| 130 |
+
\def\tikz@lib@dv@handle@data@group group{\pgfutil@ifnextchar[{\tikz@lib@dv@handle@data@group@opt}{\tikz@lib@dv@handle@data@group@opt[]}}%
|
| 131 |
+
|
| 132 |
+
\def\tikz@lib@dv@handle@data@group@opt[#1]#2{%
|
| 133 |
+
\pgfutil@ifnextchar={\tikz@lib@dv@handle@data@group@def{#1}{#2}}{%
|
| 134 |
+
\pgfutil@ifnextchar+{\tikz@lib@dv@handle@data@group@extend{#1}{#2}}{%
|
| 135 |
+
\tikz@lib@dv@handle@data@group@use{#1}{#2}}}}%
|
| 136 |
+
|
| 137 |
+
\def\tikz@lib@dv@handle@data@group@def#1#2={%
|
| 138 |
+
\pgfkeys{/pgf/data/new group={#2}}%
|
| 139 |
+
\tikz@lib@dv@handle@data@group@extend{#1}{#2}+=%
|
| 140 |
+
}%
|
| 141 |
+
|
| 142 |
+
\def\tikz@lib@dv@handle@data@group@extend#1#2+={%
|
| 143 |
+
\pgfutil@ifnextchar\bgroup{
|
| 144 |
+
\begingroup%
|
| 145 |
+
\pgfkeys{/pgf/data/store in group={#2}}%
|
| 146 |
+
\pgf@dv@do@adddata{\pgfkeysvalueof{/pgf/data visualization/obj}.add data({{\begingroup\pgfkeys{/pgf/data/.cd,/pgf/every data/.try,#1}}})}%
|
| 147 |
+
\afterassignment\tikz@lib@dv@parse@loop%
|
| 148 |
+
\let\tikz@dummy=%
|
| 149 |
+
}{%
|
| 150 |
+
\tikzerror{Opening brace expected}%
|
| 151 |
+
\tikz@lib@dv@parse@loop%
|
| 152 |
+
}%
|
| 153 |
+
}%
|
| 154 |
+
|
| 155 |
+
\def\tikz@lib@dv@handle@data@group@use#1#2{%
|
| 156 |
+
\pgfdata[#1,use group=#2]%
|
| 157 |
+
}%
|
| 158 |
+
|
| 159 |
+
\def\tikz@lib@dv@handle@data@point point{\pgfutil@ifnextchar[{\tikz@lib@dv@handle@data@point@opt}{\tikz@lib@dv@handle@data@point@opt[]}}%
|
| 160 |
+
\def\tikz@lib@dv@handle@data@point@opt[#1]{%
|
| 161 |
+
\pgf@dv@do@adddata{\pgfkeysvalueof{/pgf/data visualization/obj}.add data({{\bgroup\pgfkeys{/data point/.cd,#1}\pgfdatapoint\egroup}})}%
|
| 162 |
+
\tikz@lib@dv@parse@loop%
|
| 163 |
+
}%
|
| 164 |
+
|
| 165 |
+
\def\tikz@lib@dv@handle@info info{%
|
| 166 |
+
\pgfutil@ifnextchar'{\tikz@lib@dv@handle@info@prime}{\tikz@lib@dv@handle@info@noprime}}%
|
| 167 |
+
\def\tikz@lib@dv@handle@info@noprime{%
|
| 168 |
+
\pgfutil@ifnextchar[{\tikz@lib@dv@handle@info@block@opt}{\tikz@lib@dv@handle@info@block@opt[]}}%
|
| 169 |
+
\def\tikz@lib@dv@handle@info@block@opt[#1]#2{%
|
| 170 |
+
\tikz@main@dv.after visualization({\scope[#1]#2\endscope})%
|
| 171 |
+
\tikz@lib@dv@parse@loop
|
| 172 |
+
}%
|
| 173 |
+
\def\tikz@lib@dv@handle@info@prime'{%
|
| 174 |
+
\pgfutil@ifnextchar[{\tikz@lib@dv@handle@info@block@opt@prime}{\tikz@lib@dv@handle@info@block@opt@prime[]}}%
|
| 175 |
+
\def\tikz@lib@dv@handle@info@block@opt@prime[#1]#2{%
|
| 176 |
+
\tikz@main@dv.before visualization({\scope[#1]#2\endscope})%
|
| 177 |
+
\tikz@lib@dv@parse@loop
|
| 178 |
+
}%
|
| 179 |
+
|
| 180 |
+
|
| 181 |
+
\pgfset{/pgf/every data/.style={/tikz/every data/.try,/tikz/data visualization/every data/.try}}%
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
\tikzdatavisualizationset{
|
| 186 |
+
before survey/.code=\tikz@main@dv.before survey({#1}),
|
| 187 |
+
after survey/.code=\tikz@main@dv.after survey({#1}),
|
| 188 |
+
before visualization/.code=\tikz@main@dv.before visualization({#1}),
|
| 189 |
+
after visualization/.code=\tikz@main@dv.after visualization({#1}),
|
| 190 |
+
at start survey/.code=\tikz@main@dv.at start survey({#1}),
|
| 191 |
+
at end survey/.code=\tikz@main@dv.at end survey({#1}),
|
| 192 |
+
at start visualization/.code=\tikz@main@dv.at start visualization({#1}),
|
| 193 |
+
at end visualization/.code=\tikz@main@dv.at end visualization({#1}),
|
| 194 |
+
}%
|
| 195 |
+
|
| 196 |
+
|
| 197 |
+
\def\tikz@lib@dv@alias@dv@bb{
|
| 198 |
+
\pgfnodealias{data bounding box}{data visualization bounding box}%
|
| 199 |
+
\pgfkeys{/pgf/freeze local bounding box=data bounding box}%
|
| 200 |
+
}%
|
| 201 |
+
|
| 202 |
+
\tikzdatavisualizationset{
|
| 203 |
+
data point/.code={
|
| 204 |
+
\pgf@dv@do@adddata{\pgfkeysvalueof{/pgf/data visualization/obj}.add data({{\bgroup\pgfkeys{/data point/.cd,#1}\pgfdatapoint\egroup}})}%
|
| 205 |
+
}
|
| 206 |
+
}%
|
| 207 |
+
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
\tikzdatavisualizationset{%
|
| 212 |
+
new object/.code={%
|
| 213 |
+
\def\tikz@dv@grabbed@when{before survey}%
|
| 214 |
+
\let\tikz@dv@grabbed@store\pgfutil@empty
|
| 215 |
+
\pgfkeys{/tikz/data visualization/new object/grab/.cd,#1}%
|
| 216 |
+
\ifx\tikz@dv@grabbed@store\pgfutil@empty
|
| 217 |
+
\else
|
| 218 |
+
\pgfkeyslet{\tikz@dv@grabbed@store}\pgfutil@empty%
|
| 219 |
+
\fi
|
| 220 |
+
\edef\tikz@marshal{\noexpand\tikz@main@dv.\tikz@dv@grabbed@when(\noexpand\tikz@dv@newobject{\tikz@dv@grabbed@store}}%
|
| 221 |
+
\tikz@marshal{#1})%
|
| 222 |
+
},
|
| 223 |
+
new object/grab/store/.store in=\tikz@dv@grabbed@store,
|
| 224 |
+
new object/grab/when/.store in=\tikz@dv@grabbed@when,
|
| 225 |
+
new object/grab/.unknown/.code={},%
|
| 226 |
+
}%
|
| 227 |
+
|
| 228 |
+
\def\tikz@dv@newobject#1#2{%
|
| 229 |
+
\def\tikz@dv@new@obj@store{#1}%
|
| 230 |
+
\ifx\tikz@dv@new@obj@store\pgfutil@empty%
|
| 231 |
+
\let\tikz@dv@new@obj=\pgfutil@empty%
|
| 232 |
+
\else%
|
| 233 |
+
\pgfkeysgetvalue\tikz@dv@new@obj@store\tikz@dv@new@obj%
|
| 234 |
+
\fi%
|
| 235 |
+
\ifx\tikz@dv@new@obj\pgfutil@empty
|
| 236 |
+
\let\tikz@dv@arg@a=\tikz@lib@notused%
|
| 237 |
+
\let\tikz@dv@arg@b=\tikz@lib@notused%
|
| 238 |
+
\let\tikz@dv@arg@c=\tikz@lib@notused%
|
| 239 |
+
\let\tikz@dv@arg@d=\tikz@lib@notused%
|
| 240 |
+
\let\tikz@dv@arg@e=\tikz@lib@notused%
|
| 241 |
+
\let\tikz@dv@arg@f=\tikz@lib@notused%
|
| 242 |
+
\let\tikz@dv@arg@g=\tikz@lib@notused%
|
| 243 |
+
\let\tikz@dv@arg@h=\tikz@lib@notused%
|
| 244 |
+
\let\tikz@dv@new@after=\relax%
|
| 245 |
+
\pgfkeys{/tikz/data visualization/new object/parse/.cd,#2}
|
| 246 |
+
\edef\pgf@marshal{\noexpand\pgfoonew\noexpand\tikzdvobj=new \tikz@dv@new@class(}%
|
| 247 |
+
\tikz@dv@add@arg{}\tikz@dv@arg@a%
|
| 248 |
+
\tikz@dv@add@arg{\expandafter,}\tikz@dv@arg@b%
|
| 249 |
+
\tikz@dv@add@arg{\expandafter,}\tikz@dv@arg@c%
|
| 250 |
+
\tikz@dv@add@arg{\expandafter,}\tikz@dv@arg@d%
|
| 251 |
+
\tikz@dv@add@arg{\expandafter,}\tikz@dv@arg@e%
|
| 252 |
+
\tikz@dv@add@arg{\expandafter,}\tikz@dv@arg@f%
|
| 253 |
+
\tikz@dv@add@arg{\expandafter,}\tikz@dv@arg@g%
|
| 254 |
+
\tikz@dv@add@arg{\expandafter,}\tikz@dv@arg@h%
|
| 255 |
+
\expandafter\def\expandafter\pgf@marshal\expandafter{\pgf@marshal)}%
|
| 256 |
+
\pgf@marshal%
|
| 257 |
+
\tikzdvobj.default connects()%
|
| 258 |
+
\ifx\tikz@dv@new@obj@store\pgfutil@empty%
|
| 259 |
+
\else%
|
| 260 |
+
\pgfkeyslet\tikz@dv@new@obj@store\tikzdvobj%
|
| 261 |
+
\fi%
|
| 262 |
+
\tikz@dv@new@after%
|
| 263 |
+
\fi
|
| 264 |
+
}%
|
| 265 |
+
\def\tikz@lib@notused{\tikz@lib@notused}%
|
| 266 |
+
|
| 267 |
+
\def\tikz@dv@add@arg#1#2{%
|
| 268 |
+
\ifx#2\tikz@lib@notused%
|
| 269 |
+
\else%
|
| 270 |
+
\expandafter\expandafter\expandafter\def%
|
| 271 |
+
\expandafter\expandafter\expandafter\pgf@marshal%
|
| 272 |
+
\expandafter\expandafter\expandafter{\expandafter\pgf@marshal#1#2}%
|
| 273 |
+
\fi%
|
| 274 |
+
}%
|
| 275 |
+
|
| 276 |
+
\tikzdatavisualizationset{%
|
| 277 |
+
new object/parse/.cd,
|
| 278 |
+
store/.code=,%
|
| 279 |
+
when/.code=,%
|
| 280 |
+
class/.store in=\tikz@dv@new@class,
|
| 281 |
+
before creation/.code={#1},
|
| 282 |
+
after creation/.store in=\tikz@dv@new@after,
|
| 283 |
+
arg1/.store in=\tikz@dv@arg@a,
|
| 284 |
+
arg2/.store in=\tikz@dv@arg@b,
|
| 285 |
+
arg3/.store in=\tikz@dv@arg@c,
|
| 286 |
+
arg4/.store in=\tikz@dv@arg@d,
|
| 287 |
+
arg5/.store in=\tikz@dv@arg@e,
|
| 288 |
+
arg6/.store in=\tikz@dv@arg@f,
|
| 289 |
+
arg7/.store in=\tikz@dv@arg@g,
|
| 290 |
+
arg8/.store in=\tikz@dv@arg@h,
|
| 291 |
+
arg1 from key/.code=\pgfkeysgetvalue{#1}{\tikz@dv@arg@a},
|
| 292 |
+
arg2 from key/.code=\pgfkeysgetvalue{#1}{\tikz@dv@arg@b},
|
| 293 |
+
arg3 from key/.code=\pgfkeysgetvalue{#1}{\tikz@dv@arg@c},
|
| 294 |
+
arg4 from key/.code=\pgfkeysgetvalue{#1}{\tikz@dv@arg@d},
|
| 295 |
+
arg5 from key/.code=\pgfkeysgetvalue{#1}{\tikz@dv@arg@e},
|
| 296 |
+
arg6 from key/.code=\pgfkeysgetvalue{#1}{\tikz@dv@arg@f},
|
| 297 |
+
arg7 from key/.code=\pgfkeysgetvalue{#1}{\tikz@dv@arg@g},
|
| 298 |
+
arg8 from key/.code=\pgfkeysgetvalue{#1}{\tikz@dv@arg@h}
|
| 299 |
+
arg1 handle from key/.code=\tikz@dv@handle@from@key{#1}{\tikz@dv@handle@a}{\tikz@dv@arg@a},
|
| 300 |
+
arg2 handle from key/.code=\tikz@dv@handle@from@key{#1}{\tikz@dv@handle@b}{\tikz@dv@arg@b},
|
| 301 |
+
arg3 handle from key/.code=\tikz@dv@handle@from@key{#1}{\tikz@dv@handle@c}{\tikz@dv@arg@c},
|
| 302 |
+
arg4 handle from key/.code=\tikz@dv@handle@from@key{#1}{\tikz@dv@handle@d}{\tikz@dv@arg@d},
|
| 303 |
+
arg5 handle from key/.code=\tikz@dv@handle@from@key{#1}{\tikz@dv@handle@e}{\tikz@dv@arg@e},
|
| 304 |
+
arg6 handle from key/.code=\tikz@dv@handle@from@key{#1}{\tikz@dv@handle@f}{\tikz@dv@arg@f},
|
| 305 |
+
arg7 handle from key/.code=\tikz@dv@handle@from@key{#1}{\tikz@dv@handle@g}{\tikz@dv@arg@g},
|
| 306 |
+
arg8 handle from key/.code=\tikz@dv@handle@from@key{#1}{\tikz@dv@handle@h}{\tikz@dv@arg@h}
|
| 307 |
+
}%
|
| 308 |
+
|
| 309 |
+
\def\tikz@dv@handle@from@key#1#2#3{%
|
| 310 |
+
\pgfkeysvalueof{#1}.get handle(#2)%
|
| 311 |
+
\def#3{#2}%
|
| 312 |
+
}%
|
| 313 |
+
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
|
| 317 |
+
|
| 318 |
+
\tikzdeclarecoordinatesystem{visualization}
|
| 319 |
+
{%
|
| 320 |
+
\tikzset{/data point/.cd,#1}%
|
| 321 |
+
\pgfpointdvlocaldatapoint%
|
| 322 |
+
}%
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
\tikzdatavisualizationset{%
|
| 332 |
+
new axis base/.style={
|
| 333 |
+
new object={
|
| 334 |
+
class=scaling mapper,
|
| 335 |
+
store=/tikz/data visualization/#1/scaling mapper,
|
| 336 |
+
before creation={
|
| 337 |
+
\pgfkeysgetvalue{/tikz/data visualization/#1/scaling}\tikz@temp
|
| 338 |
+
\ifx\tikz@temp\pgfutil@empty%
|
| 339 |
+
\pgfkeysgetvalue{/tikz/data visualization/#1/scaling/default}\tikz@temp
|
| 340 |
+
\fi
|
| 341 |
+
\expandafter\tikz@dv@lib@parse@scaling\tikz@temp\pgf@stop%
|
| 342 |
+
\pgfkeyslet{/tikz/data visualization/#1/scaling}\tikz@temp
|
| 343 |
+
},
|
| 344 |
+
arg1 from key=/tikz/data visualization/#1/attribute,
|
| 345 |
+
arg2/.expanded=\pgfkeysvalueof{/tikz/data visualization/#1/attribute}/scaled,
|
| 346 |
+
arg3 from key=/tikz/data visualization/#1/scaling,
|
| 347 |
+
arg4 from key=/tikz/data visualization/#1/function
|
| 348 |
+
},
|
| 349 |
+
#1/attribute/.initial={#1},
|
| 350 |
+
#1/function/.initial=,
|
| 351 |
+
#1/scaling/.initial=,
|
| 352 |
+
#1/scaling/default/.initial=0 at 0 and 1 at 1,
|
| 353 |
+
#1/ticks at/.initial=,
|
| 354 |
+
#1/default ticks at/.initial=,
|
| 355 |
+
#1/major ticks/.initial=,
|
| 356 |
+
#1/minor ticks/.initial=,
|
| 357 |
+
#1/subminor ticks/.initial=,
|
| 358 |
+
#1/grid at/.initial=,
|
| 359 |
+
#1/default grid at/.initial=,
|
| 360 |
+
#1/major grid/.initial=,
|
| 361 |
+
#1/minor grid/.initial=,
|
| 362 |
+
#1/subminor grid/.initial=,
|
| 363 |
+
#1/label/.initial=,
|
| 364 |
+
#1/padding min/.initial=,
|
| 365 |
+
#1/padding max/.initial=,
|
| 366 |
+
#1/.code={
|
| 367 |
+
\let\tikz@temp\tikz@dv@axis%
|
| 368 |
+
\def\tikz@dv@axis{/tikz/data visualization/#1}%
|
| 369 |
+
\expandafter\tikz@do@axis@options\expandafter{\tikz@temp}{##1}%
|
| 370 |
+
},
|
| 371 |
+
#1/@compute at positions/.initial=\tikz@lib@dv@compute@at@linear,
|
| 372 |
+
axes list/.append={\tikz@lib@dv@do@axis{#1}}
|
| 373 |
+
},
|
| 374 |
+
all axes/.code={
|
| 375 |
+
\def\tikz@lib@dv@args{#1}%
|
| 376 |
+
\pgfkeysvalueof{/tikz/data visualization/axes list}%
|
| 377 |
+
},
|
| 378 |
+
styling/.style=,
|
| 379 |
+
style/.style={styling/.append style={#1}},
|
| 380 |
+
@node styling/.initial=,
|
| 381 |
+
node styling/.style={%
|
| 382 |
+
/utils/exec={\pgfkeysgetvalue{/tikz/data visualization/@node styling}\tikz@temp\expandafter\tikzset\expandafter{\tikz@temp}}},
|
| 383 |
+
node style/.style={/tikz/data visualization/@node styling/.append={,#1}},
|
| 384 |
+
low/.initial=0,
|
| 385 |
+
high/.initial=0,
|
| 386 |
+
padded/.style={low=padded min,high=padded max},
|
| 387 |
+
tick length/.style={low={-#1},high={#1}},
|
| 388 |
+
common/.initial=,
|
| 389 |
+
major/.initial=,
|
| 390 |
+
minor/.initial=,
|
| 391 |
+
subminor/.initial=,
|
| 392 |
+
@setup at setters/.style={
|
| 393 |
+
common/.code=\tikz@lib@dv@add@{common}{##1},
|
| 394 |
+
major/.code=\tikz@lib@dv@add@{major}{##1},
|
| 395 |
+
minor/.code=\tikz@lib@dv@add@{minor}{##1},
|
| 396 |
+
subminor/.code=\tikz@lib@dv@add@{subminor}{##1}
|
| 397 |
+
},
|
| 398 |
+
@setup at setters,
|
| 399 |
+
direction axis/.initial=,
|
| 400 |
+
tick text low even padding/.initial=0pt,
|
| 401 |
+
tick text high even padding/.initial=0pt,
|
| 402 |
+
tick text low odd padding/.initial=0pt,
|
| 403 |
+
tick text high odd padding/.initial=0pt,
|
| 404 |
+
tick text odd padding/.style={tick text low odd padding={-#1},tick text high odd padding={#1}},
|
| 405 |
+
tick text even padding/.style={tick text low even padding={-#1},tick text high even padding={#1}},
|
| 406 |
+
tick text padding/.style={tick text odd padding={#1},tick text even padding={#1}},
|
| 407 |
+
stack/.style={tick text even padding={#1}},
|
| 408 |
+
stack'/.style={tick text odd padding={#1}},
|
| 409 |
+
stack/.default=1em,
|
| 410 |
+
stack'/.default=1em,
|
| 411 |
+
tick text at low/.is if=tikz@dv@min@tick@node,
|
| 412 |
+
tick text at high/.is if=tikz@dv@max@tick@node,
|
| 413 |
+
no tick text/.style={tick text at low=false,tick text at high=false},
|
| 414 |
+
every major ticks/.style={style={line cap=round},tick length=2pt},
|
| 415 |
+
every minor ticks/.style={style={solid, help lines,thin,line cap=round},tick length=1.4pt},
|
| 416 |
+
every subminor ticks/.style={style={solid, help lines,line cap=round},tick length=0.8pt},
|
| 417 |
+
clean ticks/.style={node style={fill=white}},
|
| 418 |
+
every grid/.style={high=max,low=min},
|
| 419 |
+
every major grid/.style={style={solid, help lines,thin,black!25}},
|
| 420 |
+
every minor grid/.style={style={solid, help lines,black!25}},
|
| 421 |
+
every subminor grid/.style={style={solid, help lines,black!10}},
|
| 422 |
+
at default ticks/.code={%
|
| 423 |
+
\expandafter\pgfkeysalso\expandafter{\tikz@lib@dv@ticks@default@at}},
|
| 424 |
+
at ticks/.code={%
|
| 425 |
+
\expandafter\pgfkeysalso\expandafter{\tikz@lib@dv@ticks@default@at}%
|
| 426 |
+
\expandafter\pgfkeysalso\expandafter{\tikz@lib@dv@ticks@at}},
|
| 427 |
+
}%
|
| 428 |
+
|
| 429 |
+
\def\tikz@lib@dv@add@#1#2{\pgfkeysaddvalue{/tikz/data visualization/#1}{}{,#2}}%
|
| 430 |
+
|
| 431 |
+
\def\tikz@dv@lib@parse@scaling#1 at#2and #3 at#4\pgf@stop{%
|
| 432 |
+
\pgfmathsetmacro{\tikz@dv@lib@min@at}{#2}
|
| 433 |
+
\pgfmathsetmacro{\tikz@dv@lib@max@at}{#4}
|
| 434 |
+
\edef\tikz@temp{#1 at \tikz@dv@lib@min@at and #3 at \tikz@dv@lib@max@at}%
|
| 435 |
+
}%
|
| 436 |
+
|
| 437 |
+
|
| 438 |
+
\tikzdatavisualizationset{
|
| 439 |
+
at/.code={\def\tikz@dv@at@list{#1}},
|
| 440 |
+
also at/.code={\expandafter\def\expandafter\tikz@dv@at@list\expandafter{\tikz@dv@at@list,#1}},
|
| 441 |
+
major at/.style={major={at={#1}}},
|
| 442 |
+
minor at/.style={minor={at={#1}}},
|
| 443 |
+
subminor at/.style={subminor={at={#1}}},
|
| 444 |
+
major also at/.style={major={also at={#1}}},
|
| 445 |
+
minor also at/.style={minor={also at={#1}}},
|
| 446 |
+
subminor also at/.style={subminor={also at={#1}}},
|
| 447 |
+
options at/.code={\expandafter\def\expandafter\tikz@dv@style@at@list\expandafter{\tikz@dv@style@at@list,{#1}}},
|
| 448 |
+
no tick text at/.style={options at={#1 as [no tick text]}}
|
| 449 |
+
}%
|
| 450 |
+
|
| 451 |
+
|
| 452 |
+
\def\tikz@lib@dv@do@axis#1{%
|
| 453 |
+
\def\tikz@marshal{#1=}
|
| 454 |
+
\expandafter\expandafter\expandafter\tikzdatavisualizationset%
|
| 455 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@marshal\expandafter{\tikz@lib@dv@args}}
|
| 456 |
+
}%
|
| 457 |
+
|
| 458 |
+
\def\tikz@do@axis@options#1#2{
|
| 459 |
+
\pgfkeys{/tikz/data visualization/axis options/.cd,#2}
|
| 460 |
+
\def\tikz@dv@axis{#1}
|
| 461 |
+
}%
|
| 462 |
+
\let\tikz@dv@axis\pgfutil@empty
|
| 463 |
+
|
| 464 |
+
\tikzdatavisualizationset{
|
| 465 |
+
every ticks/.style={
|
| 466 |
+
node style={%
|
| 467 |
+
font=\pgfutil@font@footnotesize,
|
| 468 |
+
inner sep=1pt,
|
| 469 |
+
outer sep=.1666em,
|
| 470 |
+
rounded corners=1.5pt
|
| 471 |
+
}
|
| 472 |
+
},
|
| 473 |
+
every data set label/.style={
|
| 474 |
+
every ticks,
|
| 475 |
+
node style={
|
| 476 |
+
font=\pgfutil@font@small,
|
| 477 |
+
}
|
| 478 |
+
},
|
| 479 |
+
@color of visualizer labels/.style={text=black},
|
| 480 |
+
every label in legend/.style={
|
| 481 |
+
node style={
|
| 482 |
+
fill=none,
|
| 483 |
+
}
|
| 484 |
+
},
|
| 485 |
+
every axis label/.style={
|
| 486 |
+
node style={%
|
| 487 |
+
font=\pgfutil@font@small,
|
| 488 |
+
}
|
| 489 |
+
}
|
| 490 |
+
}%
|
| 491 |
+
|
| 492 |
+
|
| 493 |
+
\tikzset{
|
| 494 |
+
/tikz/data visualization/axis options/.cd,
|
| 495 |
+
attribute/.style={\tikz@dv@axis/attribute={#1}},
|
| 496 |
+
function/.style={\tikz@dv@axis/function={#1}},
|
| 497 |
+
scaling/.style={\tikz@dv@axis/scaling={#1}},
|
| 498 |
+
padding min/.style={\tikz@dv@axis/padding min={#1}},
|
| 499 |
+
padding max/.style={\tikz@dv@axis/padding max={#1}},
|
| 500 |
+
padding/.style={padding min={-#1},padding max={#1}},
|
| 501 |
+
label/.code={%
|
| 502 |
+
\def\pgf@temp{#1}%
|
| 503 |
+
\ifx\pgf@temp\tikz@lib@dv@auto@attribute%
|
| 504 |
+
\tikzdatavisualizationset{\tikz@dv@axis/label/.expanded=$\noexpand\mathit{\pgfkeysvalueof{\tikz@dv@axis/attribute}}$}%
|
| 505 |
+
\else
|
| 506 |
+
\tikzdatavisualizationset{\tikz@dv@axis/label={#1}}%
|
| 507 |
+
\fi
|
| 508 |
+
},
|
| 509 |
+
label/.default=\tikz@lib@dv@auto@attribute,
|
| 510 |
+
tick placement strategy/.style={\tikz@dv@axis/@compute at positions={#1}},
|
| 511 |
+
linear steps/.style={tick placement strategy=\tikz@lib@dv@compute@at@linear},
|
| 512 |
+
goto/.code={\tikz@dv@goto{\tikz@dv@axis}{#1}},
|
| 513 |
+
goto pos/.code={\tikz@dv@goto@pos{\tikz@dv@axis}{#1}},
|
| 514 |
+
anchor at min/.code={\tikz@lib@dv@special@at{\tikz@dv@axis}{\tikz@dv@min@anchor}},
|
| 515 |
+
anchor at max/.code={\tikz@lib@dv@special@at{\tikz@dv@axis}{\tikz@dv@max@anchor}},
|
| 516 |
+
visualize axis/.code=\expandafter\tikz@lib@dv@av\expandafter{\tikz@dv@axis}{#1},
|
| 517 |
+
ticks/.style={\tikz@dv@axis/ticks at/.append={,#1}},
|
| 518 |
+
ticks/.default=some,
|
| 519 |
+
visualize ticks/.code=\expandafter\tikz@lib@dv@tv\expandafter{\tikz@dv@axis}{#1},
|
| 520 |
+
grid/.style={\tikz@dv@axis/grid at/.append={,#1}},
|
| 521 |
+
grid/.default=at default ticks,
|
| 522 |
+
visualize grid/.code=\expandafter\tikz@lib@dv@gv\expandafter{\tikz@dv@axis}{#1},
|
| 523 |
+
ticks and grid/.style={\tikz@dv@axis/ticks at/.append={,#1},\tikz@dv@axis/grid at/.append={,#1}},
|
| 524 |
+
visualize label/.code=\expandafter\tikz@lib@dv@lv\expandafter{\tikz@dv@axis}{#1},
|
| 525 |
+
}%
|
| 526 |
+
|
| 527 |
+
\def\tikz@lib@dv@auto@attribute{\tikz@lib@dv@auto@attribute}%
|
| 528 |
+
|
| 529 |
+
|
| 530 |
+
\tikzdatavisualizationset{
|
| 531 |
+
axis options/.cd,
|
| 532 |
+
include value/.style={%
|
| 533 |
+
/tikz/data visualization/before survey/.expanded={%
|
| 534 |
+
\noexpand\pgfkeysgetvalue{\tikz@dv@axis/scaling mapper}\noexpand\tikz@dv@axis@mapper%
|
| 535 |
+
\noexpand\foreach \noexpand\tikz@lib@dv@temp in {#1} {%
|
| 536 |
+
\noexpand\tikz@dv@axis@mapper.include in value(\noexpand\tikz@lib@dv@temp)%
|
| 537 |
+
}%
|
| 538 |
+
}%
|
| 539 |
+
},
|
| 540 |
+
min value/.style={
|
| 541 |
+
/tikz/data visualization/at end survey/.expanded={%
|
| 542 |
+
\noexpand\pgfkeysgetvalue{\tikz@dv@axis/scaling mapper}\noexpand\tikz@dv@axis@mapper%
|
| 543 |
+
\noexpand\tikz@lib@dv@set\noexpand\tikz@dv@axis@mapper{#1}{min}%
|
| 544 |
+
}
|
| 545 |
+
},
|
| 546 |
+
max value/.style={
|
| 547 |
+
/tikz/data visualization/at end survey/.expanded={%
|
| 548 |
+
\noexpand\pgfkeysgetvalue{\tikz@dv@axis/scaling mapper}\noexpand\tikz@dv@axis@mapper%
|
| 549 |
+
\noexpand\tikz@lib@dv@set\noexpand\tikz@dv@axis@mapper{#1}{max}%
|
| 550 |
+
}
|
| 551 |
+
},
|
| 552 |
+
}%
|
| 553 |
+
|
| 554 |
+
\def\tikz@lib@dv@set#1#2#3{%
|
| 555 |
+
\pgfdvmathenter{\pgf@dv@value}{#2}%
|
| 556 |
+
#1.get in range interval()%
|
| 557 |
+
\pgfdvinrangeinterval.let #3(\pgf@dv@value)%
|
| 558 |
+
}%
|
| 559 |
+
|
| 560 |
+
\tikzdatavisualizationset{
|
| 561 |
+
axis layer/.style=on background layer,
|
| 562 |
+
ticks layer/.style=on background layer,
|
| 563 |
+
ticks node layer/.style=,
|
| 564 |
+
grid layer/.style=on background layer,
|
| 565 |
+
}%
|
| 566 |
+
|
| 567 |
+
|
| 568 |
+
|
| 569 |
+
\def\tikz@lib@dv@av#1#2{
|
| 570 |
+
\tikzdatavisualizationset{
|
| 571 |
+
axes actions/.append={\tikz@lib@dv@show@axis{#1}{#2}}
|
| 572 |
+
}
|
| 573 |
+
}%
|
| 574 |
+
|
| 575 |
+
\def\tikz@lib@dv@show@axis#1#2{%
|
| 576 |
+
\scope[data visualization/axis layer,/tikz/data visualization/.cd,low=min,high=max,every axis/.try,#2]
|
| 577 |
+
\pgfkeysgetvalue{#1/scaling mapper}\tikz@dv@axis@mapper%
|
| 578 |
+
\tikzpointandanchordirection{\tikz@dv@axis@mapper.set in to(min)}{\tikz@dv@axis@mapper.set in to(max)}
|
| 579 |
+
\xdef\tikz@dv@axis@dir{\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}}
|
| 580 |
+
\path[draw,/tikz/data visualization/styling]
|
| 581 |
+
\pgfextra{
|
| 582 |
+
{
|
| 583 |
+
\tikz@dv@goto{#1}{\pgfkeysvalueof{/tikz/data visualization/low}}%
|
| 584 |
+
\pgfpathdvmoveto%
|
| 585 |
+
}
|
| 586 |
+
{
|
| 587 |
+
\tikz@dv@goto{#1}{\pgfkeysvalueof{/tikz/data visualization/high}}%
|
| 588 |
+
\pgfpathdvlineto%
|
| 589 |
+
}
|
| 590 |
+
};
|
| 591 |
+
\endscope
|
| 592 |
+
}%
|
| 593 |
+
|
| 594 |
+
\def\tikz@dv@goto#1#2{%
|
| 595 |
+
\edef\pgf@@temp{#2}%
|
| 596 |
+
\ifx\pgf@@temp\tikz@lib@dv@padded@min@text%
|
| 597 |
+
\pgfkeysvalueof{#1/scaling mapper}.set in to(min)%
|
| 598 |
+
\pgfkeysvalueof{#1/scaling mapper}.get out()%
|
| 599 |
+
\pgfkeysgetvalue{#1/padding min}\pgf@temp%
|
| 600 |
+
\pgfmathparse{\pgf@temp}%
|
| 601 |
+
\pgfkeyslet{/data point/\pgfdvout/offset}\pgfmathresult%
|
| 602 |
+
\else%
|
| 603 |
+
\ifx\pgf@@temp\tikz@lib@dv@padded@max@text%
|
| 604 |
+
\pgfkeysvalueof{#1/scaling mapper}.set in to(max)%
|
| 605 |
+
\pgfkeysvalueof{#1/scaling mapper}.get out()%
|
| 606 |
+
\pgfkeysgetvalue{#1/padding max}\pgf@temp%
|
| 607 |
+
\pgfmathparse{\pgf@temp}%
|
| 608 |
+
\pgfkeyslet{/data point/\pgfdvout/offset}\pgfmathresult%
|
| 609 |
+
\else%
|
| 610 |
+
\pgfkeysvalueof{#1/scaling mapper}.set in to(#2)%
|
| 611 |
+
\fi%
|
| 612 |
+
\fi%
|
| 613 |
+
}%
|
| 614 |
+
|
| 615 |
+
\def\tikz@dv@goto@pos#1#2{%
|
| 616 |
+
\pgfkeyssetvalue{/data point/\pgfkeysvalueof{#1/attribute}/out pos}{#2}%
|
| 617 |
+
}%
|
| 618 |
+
|
| 619 |
+
\def\tikz@lib@dv@padded@min@text{padded min}%
|
| 620 |
+
\def\tikz@lib@dv@padded@max@text{padded max}%
|
| 621 |
+
|
| 622 |
+
\def\tikz@lib@dv@special@at#1#2{%
|
| 623 |
+
\tikzpointandanchordirection{\pgfkeysvalueof{#1/scaling mapper}.set in to(min)}{\pgfkeysvalueof{#1/scaling mapper}.set in to(max)}
|
| 624 |
+
\tikzset{anchor/.expanded={#2}}
|
| 625 |
+
}%
|
| 626 |
+
|
| 627 |
+
|
| 628 |
+
|
| 629 |
+
\def\tikz@lib@dv@tv#1#2{
|
| 630 |
+
\tikzdatavisualizationset{
|
| 631 |
+
ticks actions/.append={\tikz@lib@dv@default@action{ticks}{#1}{#2}},
|
| 632 |
+
major ticks actions/.append={\tikz@lib@dv@show@ticks{major}{#1}{#2}},
|
| 633 |
+
minor ticks actions/.append={\tikz@lib@dv@show@ticks{minor}{#1}{#2}},
|
| 634 |
+
subminor ticks actions/.append={\tikz@lib@dv@show@ticks{subminor}{#1}{#2}}
|
| 635 |
+
}
|
| 636 |
+
}%
|
| 637 |
+
|
| 638 |
+
\def\tikz@lib@dv@default@action#1#2#3{%
|
| 639 |
+
\let\tikz@marshal\pgfutil@empty%
|
| 640 |
+
{%
|
| 641 |
+
\let\tikz@lib@dv@ticks@at\pgfutil@empty%
|
| 642 |
+
\pgfkeysgetvalue{#2/ticks at}\tikz@lib@dv@ticks@default@at%
|
| 643 |
+
\pgfkeysgetvalue{#2/#1 at}\tikz@lib@dv@settings%
|
| 644 |
+
\pgfkeysgetvalue{#2/scaling mapper}\tikz@lib@dv@mapper
|
| 645 |
+
\tikzdatavisualizationset{major/.code=,minor/.code=,subminor/.code=,common/.code=}
|
| 646 |
+
\expandafter\tikzdatavisualizationset\expandafter{\tikz@lib@dv@settings}%
|
| 647 |
+
\tikzdatavisualizationset{@setup at setters}%
|
| 648 |
+
\pgfkeysgetvalue{/tikz/data visualization/compute step}\tikz@temp@step%
|
| 649 |
+
\ifx\tikz@temp@step\pgfutil@empty%
|
| 650 |
+
\else%
|
| 651 |
+
\pgfkeysvalueof{#2/@compute at positions}%
|
| 652 |
+
\xdef\tikz@marshal{
|
| 653 |
+
major={\pgfkeysvalueof{/tikz/data visualization/major}},
|
| 654 |
+
minor={\pgfkeysvalueof{/tikz/data visualization/minor}},
|
| 655 |
+
subminor={\pgfkeysvalueof{/tikz/data visualization/subminor}}}
|
| 656 |
+
\fi
|
| 657 |
+
}%
|
| 658 |
+
\pgfkeyslet{#2/default #1 at}\tikz@marshal
|
| 659 |
+
}%
|
| 660 |
+
|
| 661 |
+
\def\tikz@lib@dv@show@ticks#1#2#3{%
|
| 662 |
+
\pgfkeysgetvalue{#2/default ticks at}\tikz@lib@dv@default@settings%
|
| 663 |
+
\ifx\tikz@lib@dv@default@settings\pgfutil@empty%
|
| 664 |
+
\pgfkeysgetvalue{#2/ticks at}\tikz@lib@dv@settings%
|
| 665 |
+
\else%
|
| 666 |
+
\pgfkeysgetvalue{#2/ticks at}\tikz@lib@dv@settings%
|
| 667 |
+
\expandafter\expandafter\expandafter\def%
|
| 668 |
+
\expandafter\expandafter\expandafter\tikz@lib@dv@settings%
|
| 669 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@lib@dv@default@settings\expandafter,\tikz@lib@dv@settings}
|
| 670 |
+
\fi%
|
| 671 |
+
\ifx\tikz@lib@dv@settings\pgfutil@empty%
|
| 672 |
+
\else
|
| 673 |
+
{%
|
| 674 |
+
\let\tikz@dv@at@list\pgfutil@empty%
|
| 675 |
+
\let\tikz@dv@style@at@list\pgfutil@empty%
|
| 676 |
+
\pgfkeysgetvalue{#2/scaling mapper}\tikz@lib@dv@mapper
|
| 677 |
+
\scope[/tikz/data visualization/.cd,every ticks/.try,every #1 ticks/.try,#3]%
|
| 678 |
+
\expandafter\tikzdatavisualizationset\expandafter{\tikz@lib@dv@settings}%
|
| 679 |
+
\pgfkeysgetvalue{/tikz/data visualization/common}\tikz@temp
|
| 680 |
+
\expandafter\tikzdatavisualizationset\expandafter{\tikz@temp}
|
| 681 |
+
\pgfkeysgetvalue{/tikz/data visualization/#1}\tikz@temp
|
| 682 |
+
\expandafter\tikzdatavisualizationset\expandafter{\tikz@temp}
|
| 683 |
+
\pgfkeysgetvalue{/tikz/data visualization/\pgfkeysvalueof{/tikz/data visualization/direction axis}/scaling mapper}\pgf@dv@tick@dir@mapper
|
| 684 |
+
\foreach \tikz@dv@tick@pos[count=\tikz@dv@tick@count] in \tikz@dv@at@list
|
| 685 |
+
{
|
| 686 |
+
\ifx\tikz@dv@tick@pos\pgfutil@empty
|
| 687 |
+
\c@pgf@counta=\tikz@dv@tick@count\relax%
|
| 688 |
+
\advance\c@pgf@counta by-1\relax%
|
| 689 |
+
\edef\tikz@dv@tick@count{\the\c@pgf@counta}%
|
| 690 |
+
\else
|
| 691 |
+
\expandafter\tikz@lib@dv@parse\tikz@dv@tick@pos\pgf@stop%
|
| 692 |
+
\expandafter\tikzdatavisualizationset\expandafter{\tikz@lib@dv@tick@opt}%
|
| 693 |
+
\tikz@lib@dv@mapper.set in to(\tikz@dv@tick@pos)%
|
| 694 |
+
\pgf@process{\pgfpointdvlocaldatapoint}
|
| 695 |
+
\xdef\pgf@dv@tick@origin{\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}}
|
| 696 |
+
\tikzpointandanchordirection{\pgf@dv@tick@dir@mapper.set in to(min)}{\pgf@dv@tick@dir@mapper.set in to(max)}
|
| 697 |
+
\xdef\pgf@dv@tick@dir{\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}}
|
| 698 |
+
\tikz@lib@handle@at@style%
|
| 699 |
+
\pgfkeysgetvalue{/tikz/data visualization/high}\tikz@dv@max@val%
|
| 700 |
+
\pgfkeysgetvalue{/tikz/data visualization/low}\tikz@dv@min@val%
|
| 701 |
+
\iftikz@dv@max@tick@node\pgfmathsetmacro\tikz@dv@max@val{%
|
| 702 |
+
\tikz@dv@max@val+(\pgfkeysvalueof{%
|
| 703 |
+
/tikz/data visualization/tick text high
|
| 704 |
+
\ifodd\tikz@dv@tick@count odd \else even \fi padding}%
|
| 705 |
+
)}%
|
| 706 |
+
\fi%
|
| 707 |
+
\iftikz@dv@min@tick@node\pgfmathsetmacro\tikz@dv@min@val{%
|
| 708 |
+
\tikz@dv@min@val+(\pgfkeysvalueof{%
|
| 709 |
+
/tikz/data visualization/tick text low
|
| 710 |
+
\ifodd\tikz@dv@tick@count odd \else even \fi padding}%
|
| 711 |
+
)}%
|
| 712 |
+
\fi%
|
| 713 |
+
\pgf@process{\pgfpointadd{\pgf@dv@tick@origin}{\pgfpointscale{\tikz@dv@max@val}{\pgf@dv@tick@dir}}}
|
| 714 |
+
\xdef\tikz@dv@max@tick{\the\pgf@x,\the\pgf@y}
|
| 715 |
+
\pgf@process{\pgfpointadd{\pgf@dv@tick@origin}{\pgfpointscale{\tikz@dv@min@val}{\pgf@dv@tick@dir}}}
|
| 716 |
+
\xdef\tikz@dv@min@tick{\the\pgf@x,\the\pgf@y}
|
| 717 |
+
\scope[data visualization/ticks layer]
|
| 718 |
+
\tikzdatavisualizationset{every \ifodd\tikz@dv@tick@count odd \else even \fi tick/.try}
|
| 719 |
+
\draw [/tikz/data visualization/styling] (\tikz@dv@min@tick) -- (\tikz@dv@max@tick);
|
| 720 |
+
\endscope
|
| 721 |
+
\iftikz@dv@min@tick@node
|
| 722 |
+
\scope[data visualization/ticks node layer]
|
| 723 |
+
\tikzdatavisualizationset{every \ifodd\tikz@dv@tick@count odd \else even \fi tick/.try}
|
| 724 |
+
\path [/tikz/data visualization/styling] (\tikz@dv@min@tick) \tikz@dv@handle@tick{\tikz@dv@min@anchor};
|
| 725 |
+
\endscope
|
| 726 |
+
\fi
|
| 727 |
+
\iftikz@dv@max@tick@node
|
| 728 |
+
\scope[data visualization/ticks node layer]
|
| 729 |
+
\tikzdatavisualizationset{every \ifodd\tikz@dv@tick@count odd \else even \fi tick/.try}
|
| 730 |
+
\path [/tikz/data visualization/styling] (\tikz@dv@max@tick) \tikz@dv@handle@tick{\tikz@dv@max@anchor};
|
| 731 |
+
\endscope
|
| 732 |
+
\fi
|
| 733 |
+
\fi
|
| 734 |
+
}
|
| 735 |
+
\endscope
|
| 736 |
+
}
|
| 737 |
+
\fi
|
| 738 |
+
}%
|
| 739 |
+
|
| 740 |
+
\def\tikz@lib@dv@parse#1\pgf@stop{%
|
| 741 |
+
\pgfutil@in@{as}{#1}%
|
| 742 |
+
\ifpgfutil@in@%
|
| 743 |
+
\tikz@lib@dv@parse@as#1\pgf@stop%
|
| 744 |
+
\else%
|
| 745 |
+
\tikz@lib@dv@parse@as#1as\tikz@lib@dv@typeset\pgf@stop%
|
| 746 |
+
\fi%
|
| 747 |
+
}%
|
| 748 |
+
\def\tikz@lib@dv@parse@as#1as{%
|
| 749 |
+
\def\tikz@dv@tick@pos{#1}%
|
| 750 |
+
\pgfutil@ifnextchar[{\tikz@lib@dv@parse@as@opt}{\tikz@lib@dv@parse@as@opt[]}%
|
| 751 |
+
}%
|
| 752 |
+
\def\tikz@lib@dv@parse@as@opt[#1]{%
|
| 753 |
+
\def\tikz@lib@dv@tick@opt{#1}%
|
| 754 |
+
\pgfutil@ifnextchar\pgf@stop{\tikz@lib@dv@parse@as@text\tikz@lib@dv@typeset}{\tikz@lib@dv@parse@as@text}
|
| 755 |
+
}%
|
| 756 |
+
\def\tikz@lib@dv@parse@as@text#1\pgf@stop{%
|
| 757 |
+
\def\tikz@lib@dv@tick@text{#1}%
|
| 758 |
+
}%
|
| 759 |
+
|
| 760 |
+
\def\tikz@lib@dv@typeset{%
|
| 761 |
+
\pgfdvmathenter{\tikz@lib@dv@typesetnum}{\tikz@dv@tick@pos}%
|
| 762 |
+
\pgfdvmathexitbyscientificformat{\tikz@lib@dv@typesetnum}{\tikz@lib@dv@typesetnum}%
|
| 763 |
+
\pgfkeysvalueof{/tikz/data visualization/tick prefix}%
|
| 764 |
+
\pgfkeys{/tikz/data visualization/tick typesetter=\tikz@lib@dv@typesetnum}%
|
| 765 |
+
\pgfkeysvalueof{/tikz/data visualization/tick suffix}%
|
| 766 |
+
}%
|
| 767 |
+
|
| 768 |
+
\newif\iftikz@dv@min@tick@node
|
| 769 |
+
\newif\iftikz@dv@max@tick@node
|
| 770 |
+
|
| 771 |
+
\def\tikz@dv@handle@tick#1{%
|
| 772 |
+
\pgfextra{
|
| 773 |
+
\ifx\tikz@lib@dv@tick@text\pgfutil@empty%
|
| 774 |
+
\global\let\tikz@dv@tick@marshal=\pgfutil@empty%
|
| 775 |
+
\else
|
| 776 |
+
\def\tikz@dv@tick@marshal{node[anchor=#1,/tikz/data visualization/node styling]}%
|
| 777 |
+
\expandafter\pgfutil@g@addto@macro\expandafter\tikz@dv@tick@marshal\expandafter{\expandafter{\tikz@lib@dv@tick@text}}
|
| 778 |
+
\fi
|
| 779 |
+
\expandafter}%
|
| 780 |
+
\tikz@dv@tick@marshal
|
| 781 |
+
}%
|
| 782 |
+
|
| 783 |
+
|
| 784 |
+
\def\tikz@lib@handle@at@style{%
|
| 785 |
+
\ifx\tikz@dv@style@at@list\pgfutil@empty%
|
| 786 |
+
\else%
|
| 787 |
+
\let\tikz@dv@lib@this@at@style=\pgfutil@empty%
|
| 788 |
+
\pgfdvmathenter{\tikz@temp}{\tikz@dv@tick@pos}%
|
| 789 |
+
\pgfdvmathexitbyscientificformat{\tikz@dv@compare@to}{\tikz@temp}%
|
| 790 |
+
\foreach \tikz@dv@at@style in \tikz@dv@style@at@list {%
|
| 791 |
+
\ifx\tikz@dv@at@style\pgfutil@empty%
|
| 792 |
+
\else%
|
| 793 |
+
\expandafter\tikz@dv@lib@handle@one@at@style\tikz@dv@at@style\tikz@stop%
|
| 794 |
+
\fi%
|
| 795 |
+
}
|
| 796 |
+
\ifx\tikz@dv@lib@this@at@style\pgfutil@empty%
|
| 797 |
+
\else%
|
| 798 |
+
\expandafter\tikzdatavisualizationset\expandafter{\tikz@dv@lib@this@at@style}%
|
| 799 |
+
\fi%
|
| 800 |
+
\fi%
|
| 801 |
+
}%
|
| 802 |
+
|
| 803 |
+
\def\tikz@dv@lib@handle@one@at@style#1as#2[#3]#4\tikz@stop{%
|
| 804 |
+
\pgfdvmathenter{\tikz@lib@dv@at@math@var}{#1}%
|
| 805 |
+
\pgfdvmathexitbyscientificformat{\tikz@dv@temp}{\tikz@lib@dv@at@math@var}%
|
| 806 |
+
\ifx\tikz@dv@temp\tikz@dv@compare@to%
|
| 807 |
+
\expandafter\gdef\expandafter\tikz@dv@lib@this@at@style\expandafter{\tikz@dv@lib@this@at@style,#3}%
|
| 808 |
+
\fi%
|
| 809 |
+
}%
|
| 810 |
+
|
| 811 |
+
|
| 812 |
+
\def\tikzpointandanchordirection#1#2{%
|
| 813 |
+
\pgf@process{\pgfpointdvdirection{#1}{#2}}
|
| 814 |
+
{
|
| 815 |
+
\pgf@ya=\pgf@y
|
| 816 |
+
\pgf@y=-\pgf@x
|
| 817 |
+
\pgf@x=\pgf@ya
|
| 818 |
+
\tikz@auto@anchor
|
| 819 |
+
\xdef\tikz@dv@max@anchor{\tikz@anchor}
|
| 820 |
+
\tikz@auto@anchor@prime
|
| 821 |
+
\xdef\tikz@dv@min@anchor{\tikz@anchor}
|
| 822 |
+
}
|
| 823 |
+
}%
|
| 824 |
+
|
| 825 |
+
|
| 826 |
+
|
| 827 |
+
|
| 828 |
+
|
| 829 |
+
\def\tikz@lib@dv@gv#1#2{
|
| 830 |
+
\tikzdatavisualizationset{
|
| 831 |
+
grid actions/.append={\tikz@lib@dv@default@action{grid}{#1}{#2}},
|
| 832 |
+
major grid actions/.append={\tikz@lib@dv@show@grid{major}{#1}{#2}},
|
| 833 |
+
minor grid actions/.append={\tikz@lib@dv@show@grid{minor}{#1}{#2}},
|
| 834 |
+
subminor grid actions/.append={\tikz@lib@dv@show@grid{subminor}{#1}{#2}},
|
| 835 |
+
}
|
| 836 |
+
}%
|
| 837 |
+
|
| 838 |
+
\def\tikz@lib@dv@show@grid#1#2#3{%
|
| 839 |
+
\pgfkeysgetvalue{#2/default grid at}\tikz@lib@dv@default@settings%
|
| 840 |
+
\ifx\tikz@lib@dv@default@settings\pgfutil@empty%
|
| 841 |
+
\pgfkeysgetvalue{#2/grid at}\tikz@lib@dv@settings%
|
| 842 |
+
\else%
|
| 843 |
+
\pgfkeysgetvalue{#2/grid at}\tikz@lib@dv@settings%
|
| 844 |
+
\expandafter\expandafter\expandafter\def%
|
| 845 |
+
\expandafter\expandafter\expandafter\tikz@lib@dv@settings%
|
| 846 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@lib@dv@default@settings\expandafter,\tikz@lib@dv@settings}
|
| 847 |
+
\fi%
|
| 848 |
+
\ifx\tikz@lib@dv@settings\pgfutil@empty%
|
| 849 |
+
\else
|
| 850 |
+
{%
|
| 851 |
+
\let\tikz@dv@at@list\pgfutil@empty
|
| 852 |
+
\let\tikz@dv@style@at@list\pgfutil@empty
|
| 853 |
+
\pgfkeysgetvalue{#2/scaling mapper}\tikz@lib@dv@mapper
|
| 854 |
+
\let\tikz@lib@dv@ticks@default@at\pgfutil@empty%
|
| 855 |
+
\scope[data visualization/grid layer,/tikz/data visualization/.cd,every #1 grid/.try,every grid,#3]
|
| 856 |
+
\pgfkeysgetvalue{#2/ticks at}\tikz@lib@dv@ticks@at%
|
| 857 |
+
\expandafter\tikzdatavisualizationset\expandafter{\tikz@lib@dv@settings}%
|
| 858 |
+
\pgfkeysgetvalue{/tikz/data visualization/common}\tikz@temp
|
| 859 |
+
\expandafter\tikzdatavisualizationset\expandafter{\tikz@temp}
|
| 860 |
+
\pgfkeysgetvalue{/tikz/data visualization/#1}\tikz@temp
|
| 861 |
+
\expandafter\tikzdatavisualizationset\expandafter{\tikz@temp}
|
| 862 |
+
\edef\tikz@lib@dv@dir@axis{/tikz/data visualization/\pgfkeysvalueof{/tikz/data visualization/direction axis}}%
|
| 863 |
+
\foreach \tikz@dv@grid@pos in \tikz@dv@at@list
|
| 864 |
+
{
|
| 865 |
+
\ifx\tikz@dv@grid@pos\pgfutil@empty
|
| 866 |
+
\else
|
| 867 |
+
\expandafter\tikz@lib@dv@parse\tikz@dv@grid@pos\pgf@stop%
|
| 868 |
+
\expandafter\tikzdatavisualizationset\expandafter{\tikz@lib@dv@tick@opt}%
|
| 869 |
+
\tikz@lib@dv@mapper.set in to(\tikz@dv@tick@pos)%
|
| 870 |
+
\draw[/tikz/data visualization/styling]
|
| 871 |
+
\pgfextra{
|
| 872 |
+
\tikz@dv@goto{\tikz@lib@dv@dir@axis}{\pgfkeysvalueof{/tikz/data visualization/low}}%
|
| 873 |
+
\pgfpathdvmoveto%
|
| 874 |
+
\tikz@dv@goto{\tikz@lib@dv@dir@axis}{\pgfkeysvalueof{/tikz/data visualization/high}}%
|
| 875 |
+
\pgfpathdvlineto%
|
| 876 |
+
};
|
| 877 |
+
\fi
|
| 878 |
+
}
|
| 879 |
+
\endscope
|
| 880 |
+
}
|
| 881 |
+
\fi
|
| 882 |
+
}%
|
| 883 |
+
|
| 884 |
+
|
| 885 |
+
|
| 886 |
+
|
| 887 |
+
|
| 888 |
+
|
| 889 |
+
|
| 890 |
+
|
| 891 |
+
|
| 892 |
+
|
| 893 |
+
\def\tikz@lib@dv@lv#1#2{
|
| 894 |
+
\tikzdatavisualizationset{
|
| 895 |
+
label actions/.append={\tikz@lib@dv@show@label{#1}{#2}}
|
| 896 |
+
}
|
| 897 |
+
}%
|
| 898 |
+
|
| 899 |
+
\def\tikz@lib@dv@show@label#1#2{%
|
| 900 |
+
\pgfkeysgetvalue{#1/label}\tikz@dv@lib@label%
|
| 901 |
+
\ifx\tikz@dv@lib@label\pgfutil@empty%
|
| 902 |
+
\else
|
| 903 |
+
\scope[anchor=center,/tikz/data visualization/.cd,every axis label/.try,#2]
|
| 904 |
+
\expandafter\tikz@lib@dv@parse@node\tikz@dv@lib@label\pgf@stop
|
| 905 |
+
\endscope
|
| 906 |
+
\fi
|
| 907 |
+
}%
|
| 908 |
+
|
| 909 |
+
\def\tikz@lib@dv@parse@node{\pgfutil@ifnextchar[\tikz@lib@dv@parse@node@opt{\tikz@lib@dv@parse@node@opt[]}}%
|
| 910 |
+
\def\tikz@lib@dv@parse@node@opt[#1]#2\pgf@stop{
|
| 911 |
+
\tikzdatavisualizationset{#1}
|
| 912 |
+
\pgftransformshift{\pgfpointdvlocaldatapoint}%
|
| 913 |
+
\node [/tikz/data visualization/node styling] {#2};
|
| 914 |
+
}%
|
| 915 |
+
|
| 916 |
+
|
| 917 |
+
|
| 918 |
+
|
| 919 |
+
\tikzdatavisualizationset{
|
| 920 |
+
compute step/.initial=,
|
| 921 |
+
step/.style={compute step=\def\tikz@lib@dv@step{#1}},
|
| 922 |
+
minor steps between steps/.initial=,
|
| 923 |
+
minor steps between steps/.default=9,
|
| 924 |
+
phase/.initial=0,
|
| 925 |
+
tick typesetter/.code=\pgfmathprintnumber{#1},
|
| 926 |
+
tick prefix/.initial=,
|
| 927 |
+
tick suffix/.initial=,
|
| 928 |
+
tick unit/.style={tick suffix={$\,\pgfutil@font@normalfont#1$}},%
|
| 929 |
+
}%
|
| 930 |
+
|
| 931 |
+
\def\tikz@lib@dv@compute@at@linear{%
|
| 932 |
+
\let\tikz@lib@dv@compute@about=\tikz@lib@dv@about@linear%
|
| 933 |
+
\let\tikz@lib@dv@step\relax%
|
| 934 |
+
\pgfkeysvalueof{/tikz/data visualization/compute step}
|
| 935 |
+
\ifx\tikz@lib@dv@step\relax%
|
| 936 |
+
\else%
|
| 937 |
+
\tikz@lib@dv@mapper.get in range interval()%
|
| 938 |
+
\pgfdvinrangeinterval.get min and max()%
|
| 939 |
+
\pgfkeysgetvalue{/tikz/data visualization/phase}\tikz@temp
|
| 940 |
+
\pgfdvmathenter{\tikz@dv@lib@phase}{\tikz@temp}
|
| 941 |
+
\pgfdvmathenter{\tikz@dv@lib@step}{\tikz@lib@dv@step}
|
| 942 |
+
\pgfdvmathifless{\pgfdvmathalwayszero}{\tikz@dv@lib@step}{%
|
| 943 |
+
\pgfdvmathsub{\tikz@dv@lib@temp}{\pgfdvmin}{\tikz@dv@lib@phase}%
|
| 944 |
+
\pgfdvmathdiv{\tikz@dv@lib@temp}{\tikz@dv@lib@temp}{\tikz@dv@lib@step}%
|
| 945 |
+
\pgfdvmathfloor{\tikz@dv@lib@temp}{\tikz@dv@lib@temp}%
|
| 946 |
+
\pgfdvmathmul{\tikz@lib@dv@current}{\tikz@dv@lib@temp}{\tikz@dv@lib@step}%
|
| 947 |
+
\pgfdvmathadd{\tikz@lib@dv@current}{\tikz@lib@dv@current}{\tikz@dv@lib@phase}%
|
| 948 |
+
\let\tikz@lib@dv@ats\pgfutil@empty%
|
| 949 |
+
\let\tikz@lib@dv@minor@ats\pgfutil@empty%
|
| 950 |
+
\tikz@lib@dv@mapper.get function(\tikz@temp)%
|
| 951 |
+
\ifx\tikz@temp\pgfutil@empty%
|
| 952 |
+
\pgfdvmathenter{\tikz@one@hundreth}{0.001}%
|
| 953 |
+
\pgfdvmathsub{\tikz@lib@temp}{\pgfdvmax}{\pgfdvmin}%
|
| 954 |
+
\pgfdvmathmul{\tikz@lib@dv@epsilon}{\tikz@lib@temp}{\tikz@one@hundreth}%
|
| 955 |
+
\else
|
| 956 |
+
\let\tikz@lib@dv@epsilon\pgfdvmathalwayszero
|
| 957 |
+
\fi
|
| 958 |
+
\pgfdvmathsub{\tikz@lib@dv@min@minus@epsilon}{\pgfdvmin}{\tikz@lib@dv@epsilon}%
|
| 959 |
+
\pgfdvmathadd{\tikz@lib@dv@max@plus@epsilon}{\pgfdvmax}{\tikz@lib@dv@epsilon}%
|
| 960 |
+
\pgfkeysgetvalue{/tikz/data visualization/minor steps between steps}\tikz@lib@dv@substeps%
|
| 961 |
+
\ifx\tikz@lib@dv@substeps\pgfutil@empty
|
| 962 |
+
\else
|
| 963 |
+
\pgfmathsetmacro\tikz@temp{\tikz@lib@dv@substeps+1}%
|
| 964 |
+
\pgfdvmathenter{\tikz@dv@lib@substeps}{\tikz@temp}%
|
| 965 |
+
\pgfdvmathdiv{\tikz@lib@dv@substep}{\tikz@dv@lib@step}{\tikz@dv@lib@substeps}%
|
| 966 |
+
\fi
|
| 967 |
+
\loop%
|
| 968 |
+
\ifx\tikz@lib@dv@substeps\pgfutil@empty%
|
| 969 |
+
\else%
|
| 970 |
+
\let\tikz@lib@dv@subcurrent=\tikz@lib@dv@current%
|
| 971 |
+
\pgfmathsetcount{\c@pgf@counta}{\tikz@lib@dv@substeps}%
|
| 972 |
+
\let\tikz@lib@dv@next=\tikz@lib@dv@subloop%
|
| 973 |
+
\tikz@lib@dv@subloop
|
| 974 |
+
\fi%
|
| 975 |
+
\pgfdvmathifless{\tikz@lib@dv@current}{\tikz@lib@dv@min@minus@epsilon}{}{%
|
| 976 |
+
\pgfdvmathexitbyserializing{\tikz@temp}{\tikz@lib@dv@current}%
|
| 977 |
+
\edef\tikz@lib@dv@ats{\tikz@lib@dv@ats,\tikz@temp}%
|
| 978 |
+
}
|
| 979 |
+
\pgfdvmathadd{\tikz@lib@dv@current}{\tikz@lib@dv@current}{\tikz@dv@lib@step}%
|
| 980 |
+
\pgfdvmathifless{\tikz@lib@dv@current}{\tikz@lib@dv@max@plus@epsilon}{\tikz@lib@dv@continuetrue}{\tikz@lib@dv@continuefalse}%
|
| 981 |
+
\iftikz@lib@dv@continue%
|
| 982 |
+
\repeat%
|
| 983 |
+
\tikzdatavisualizationset{major/.expanded={at={\tikz@lib@dv@ats}},minor/.expanded={at={\tikz@lib@dv@minor@ats}}}%
|
| 984 |
+
}{%
|
| 985 |
+
\pgfdvmathexitbyserializing{\tikz@temp}{\pgfdvmin}%
|
| 986 |
+
\tikzdatavisualizationset{major/.expanded={at={\tikz@temp}}}%
|
| 987 |
+
}%
|
| 988 |
+
\fi%
|
| 989 |
+
}%
|
| 990 |
+
\newif\iftikz@lib@dv@continue
|
| 991 |
+
|
| 992 |
+
\def\tikz@lib@dv@subloop{
|
| 993 |
+
\pgfdvmathadd{\tikz@lib@dv@subcurrent}{\tikz@lib@dv@subcurrent}{\tikz@lib@dv@substep}%
|
| 994 |
+
\pgfdvmathifless{\tikz@lib@dv@subcurrent}{\pgfdvmin}{}{%
|
| 995 |
+
\pgfdvmathifless{\tikz@lib@dv@subcurrent}{\pgfdvmax}{%
|
| 996 |
+
\pgfdvmathexitbyserializing{\tikz@temp}{\tikz@lib@dv@subcurrent}%
|
| 997 |
+
\edef\tikz@lib@dv@minor@ats{\tikz@lib@dv@minor@ats,\tikz@temp}
|
| 998 |
+
}{}}
|
| 999 |
+
\advance\c@pgf@counta by-1\relax%
|
| 1000 |
+
\ifnum\c@pgf@counta=0\relax%
|
| 1001 |
+
\let\tikz@lib@dv@next=\relax
|
| 1002 |
+
\fi
|
| 1003 |
+
\tikz@lib@dv@next
|
| 1004 |
+
}%
|
| 1005 |
+
|
| 1006 |
+
|
| 1007 |
+
|
| 1008 |
+
|
| 1009 |
+
\tikzdatavisualizationset{
|
| 1010 |
+
about/.style={compute step=\tikz@lib@dv@compute@about{#1}},
|
| 1011 |
+
about strategy/.initial=,
|
| 1012 |
+
standard about strategy/.style={about strategy={1.5/1.0,2.3/2.0,4/2.5,7/5,11/10}},
|
| 1013 |
+
standard about strategy,
|
| 1014 |
+
euro about strategy/.style={about strategy={1.5/1.0,3/2.0,7/5,11/10}},
|
| 1015 |
+
decimal about strategy/.style={about strategy={3/1.0,11/10}},
|
| 1016 |
+
half about strategy/.style={about strategy={2/1.0,7/5,11/10}},
|
| 1017 |
+
quarter about strategy/.style={about strategy={1.8/1.0,4/2.5,7/5,11/10}},
|
| 1018 |
+
int about strategy/.style={about strategy={1.5/1.0,2.5/2.0,3.5/3.0,4.5/4.0,7/5,11/10}},
|
| 1019 |
+
none/.style={compute step=},
|
| 1020 |
+
few/.style={about=3},
|
| 1021 |
+
some/.style={about=5},
|
| 1022 |
+
many/.style={about=10},
|
| 1023 |
+
}%
|
| 1024 |
+
|
| 1025 |
+
\def\tikz@lib@dv@about@linear#1{%
|
| 1026 |
+
\tikz@lib@dv@mapper.get in range interval()%
|
| 1027 |
+
\pgfdvinrangeinterval.get min and max()%
|
| 1028 |
+
\pgfdvmathsub{\tikz@lib@dv@diff}{\pgfdvmax}{\pgfdvmin}
|
| 1029 |
+
\pgfdvmathenter{\tikz@lib@dv@about@val}{#1}%
|
| 1030 |
+
\pgfdvmathdiv{\tikz@lib@dv@around}{\tikz@lib@dv@diff}{\tikz@lib@dv@about@val}%
|
| 1031 |
+
\pgfmathfloattomacro{\tikz@lib@dv@around}{\tikz@lib@dv@flags}{\tikz@lib@dv@mant}{\tikz@lib@dv@exp}%
|
| 1032 |
+
\pgf@xc=\tikz@lib@dv@mant pt %
|
| 1033 |
+
\pgfkeysgetvalue{/tikz/data visualization/about strategy}\tikz@lib@dv@strat
|
| 1034 |
+
\foreach \tikz@lib@dv@threshold/\tikz@lib@replace in \tikz@lib@dv@strat
|
| 1035 |
+
{
|
| 1036 |
+
\ifdim\pgf@xc<\tikz@lib@dv@threshold pt%
|
| 1037 |
+
\global\pgf@xc=\tikz@lib@replace pt%
|
| 1038 |
+
\breakforeach
|
| 1039 |
+
\fi
|
| 1040 |
+
}%
|
| 1041 |
+
\ifdim\pgf@xc<10pt%
|
| 1042 |
+
\pgfmathfloatcreate{\tikz@lib@dv@flags}{\pgf@sys@tonumber{\pgf@xc}}{\tikz@lib@dv@exp}%
|
| 1043 |
+
\else
|
| 1044 |
+
\begingroup
|
| 1045 |
+
\c@pgf@countd=\tikz@lib@dv@exp
|
| 1046 |
+
\advance\c@pgf@countd by1
|
| 1047 |
+
\edef\tikz@lib@dv@exp{\the\c@pgf@countd}%
|
| 1048 |
+
\pgfmath@smuggleone\tikz@lib@dv@exp
|
| 1049 |
+
\endgroup
|
| 1050 |
+
\divide\pgf@xc by 10\relax
|
| 1051 |
+
\pgfmathfloatcreate{\tikz@lib@dv@flags}{\pgf@sys@tonumber{\pgf@xc}}{\tikz@lib@dv@exp}%
|
| 1052 |
+
\fi
|
| 1053 |
+
\pgfmathfloattofixed{\pgfmathresult}%
|
| 1054 |
+
\let\tikz@lib@dv@step=\pgfmathresult
|
| 1055 |
+
}%
|
| 1056 |
+
|
| 1057 |
+
|
| 1058 |
+
|
| 1059 |
+
|
| 1060 |
+
|
| 1061 |
+
|
| 1062 |
+
\tikzset{
|
| 1063 |
+
/tikz/data visualization/axis options/.cd,
|
| 1064 |
+
exponential steps/.style={tick placement strategy=\tikz@lib@dv@compute@at@log},
|
| 1065 |
+
logarithmic/.style={
|
| 1066 |
+
\tikz@dv@axis/function=\pgfdvmathln{\pgfvalue}{\pgfvalue},
|
| 1067 |
+
\tikz@dv@axis/scaling/default=1 at 0 and 10 at 1,
|
| 1068 |
+
exponential steps
|
| 1069 |
+
}
|
| 1070 |
+
}%
|
| 1071 |
+
|
| 1072 |
+
\def\tikz@lib@dv@compute@at@log{%
|
| 1073 |
+
\let\tikz@lib@dv@compute@about=\tikz@lib@dv@about@log%
|
| 1074 |
+
\let\tikz@lib@dv@step\relax%
|
| 1075 |
+
\pgfkeysvalueof{/tikz/data visualization/compute step}
|
| 1076 |
+
\ifx\tikz@lib@dv@step\relax%
|
| 1077 |
+
\else%
|
| 1078 |
+
\tikz@lib@dv@mapper.get in range interval()%
|
| 1079 |
+
\pgfdvinrangeinterval.get min and max()%
|
| 1080 |
+
\pgfdvmathlog{\pgfdvminlog}{\pgfdvmin}%
|
| 1081 |
+
\pgfdvmathlog{\pgfdvmaxlog}{\pgfdvmax}%
|
| 1082 |
+
\pgfkeysgetvalue{/tikz/data visualization/phase}\tikz@temp
|
| 1083 |
+
\pgfdvmathenter{\tikz@dv@lib@phase}{\tikz@temp}
|
| 1084 |
+
\pgfdvmathenter{\tikz@dv@lib@step}{\tikz@lib@dv@step}
|
| 1085 |
+
\pgfdvmathsub{\tikz@dv@lib@temp}{\pgfdvminlog}{\tikz@dv@lib@phase}%
|
| 1086 |
+
\pgfdvmathdiv{\tikz@dv@lib@temp}{\tikz@dv@lib@temp}{\tikz@dv@lib@step}%
|
| 1087 |
+
\pgfdvmathfloor{\tikz@dv@lib@temp}{\tikz@dv@lib@temp}%
|
| 1088 |
+
\pgfdvmathmul{\tikz@lib@dv@current}{\tikz@dv@lib@temp}{\tikz@dv@lib@step}%
|
| 1089 |
+
\pgfdvmathadd{\tikz@lib@dv@current}{\tikz@lib@dv@current}{\tikz@dv@lib@phase}%
|
| 1090 |
+
\let\tikz@lib@dv@ats\pgfutil@empty%
|
| 1091 |
+
\let\tikz@lib@dv@minor@ats\pgfutil@empty%
|
| 1092 |
+
\pgfdvmathenter{\tikz@one@hundreth}{0.001}%
|
| 1093 |
+
\pgfdvmathsub{\tikz@lib@temp}{\pgfdvmaxlog}{\pgfdvminlog}%
|
| 1094 |
+
\pgfdvmathmul{\tikz@lib@dv@epsilon}{\tikz@lib@temp}{\tikz@one@hundreth}%
|
| 1095 |
+
\pgfdvmathsub{\tikz@lib@dv@min@minus@epsilon}{\pgfdvminlog}{\tikz@lib@dv@epsilon}%
|
| 1096 |
+
\pgfdvmathadd{\tikz@lib@dv@max@plus@epsilon}{\pgfdvmaxlog}{\tikz@lib@dv@epsilon}%
|
| 1097 |
+
\pgfkeysgetvalue{/tikz/data visualization/minor steps between steps}\tikz@lib@dv@substeps%
|
| 1098 |
+
\ifx\tikz@lib@dv@substeps\pgfutil@empty
|
| 1099 |
+
\else
|
| 1100 |
+
\pgfmathsetmacro\tikz@temp{\tikz@lib@dv@substeps+1}%
|
| 1101 |
+
\pgfdvmathenter{\tikz@dv@lib@substeps}{\tikz@temp}%
|
| 1102 |
+
\fi
|
| 1103 |
+
\loop%
|
| 1104 |
+
\ifx\tikz@lib@dv@substeps\pgfutil@empty%
|
| 1105 |
+
\else%
|
| 1106 |
+
\let\tikz@lib@dv@subcurrent=\tikz@lib@dv@current%
|
| 1107 |
+
\pgfdvmathadd{\tikz@lib@dv@subcurrent@next}{\tikz@lib@dv@subcurrent}{\tikz@dv@lib@step}%
|
| 1108 |
+
\pgfdvmathpowten{\tikz@lib@dv@subcurrent}{\tikz@lib@dv@subcurrent}%
|
| 1109 |
+
\pgfdvmathpowten{\tikz@lib@dv@subcurrent@max}{\tikz@lib@dv@subcurrent@next}%
|
| 1110 |
+
\pgfdvmathsub{\tikz@lib@dv@subcurrent@diff}{\tikz@lib@dv@subcurrent@max}{\tikz@lib@dv@subcurrent}%
|
| 1111 |
+
\pgfdvmathdiv{\tikz@lib@dv@substep}{\tikz@lib@dv@subcurrent@diff}{\tikz@dv@lib@substeps}%
|
| 1112 |
+
\pgfmathsetcount{\c@pgf@counta}{\tikz@lib@dv@substeps}%
|
| 1113 |
+
\let\tikz@lib@dv@next=\tikz@lib@dv@subloop%
|
| 1114 |
+
\tikz@lib@dv@subloop
|
| 1115 |
+
\fi%
|
| 1116 |
+
\pgfdvmathifless{\tikz@lib@dv@current}{\tikz@lib@dv@min@minus@epsilon}{}{%
|
| 1117 |
+
\pgfdvmathpowten{\tikz@lib@dv@current@pow}{\tikz@lib@dv@current}%
|
| 1118 |
+
\pgfdvmathexitbyserializing{\tikz@temp}{\tikz@lib@dv@current@pow}%
|
| 1119 |
+
\edef\tikz@lib@dv@ats{\tikz@lib@dv@ats,\tikz@temp}%
|
| 1120 |
+
}
|
| 1121 |
+
\pgfdvmathadd{\tikz@lib@dv@current}{\tikz@lib@dv@current}{\tikz@dv@lib@step}%
|
| 1122 |
+
\pgfdvmathifless{\tikz@lib@dv@current}{\tikz@lib@dv@max@plus@epsilon}{\tikz@lib@dv@continuetrue}{\tikz@lib@dv@continuefalse}%
|
| 1123 |
+
\iftikz@lib@dv@continue%
|
| 1124 |
+
\repeat%
|
| 1125 |
+
\tikzdatavisualizationset{major/.expanded={at={\tikz@lib@dv@ats}},minor/.expanded={at={\tikz@lib@dv@minor@ats}}}%
|
| 1126 |
+
\fi%
|
| 1127 |
+
}%
|
| 1128 |
+
|
| 1129 |
+
|
| 1130 |
+
\def\tikz@lib@dv@about@log#1{%
|
| 1131 |
+
\tikz@lib@dv@mapper.get in range interval()%
|
| 1132 |
+
\pgfdvinrangeinterval.get min and max()%
|
| 1133 |
+
\pgfdvmathlog{\pgfdvmin}{\pgfdvmin}%
|
| 1134 |
+
\pgfdvmathlog{\pgfdvmax}{\pgfdvmax}%
|
| 1135 |
+
\pgfdvmathsub{\tikz@lib@dv@diff}{\pgfdvmax}{\pgfdvmin}
|
| 1136 |
+
\pgfdvmathenter{\tikz@lib@dv@about@val}{#1}%
|
| 1137 |
+
\pgfdvmathdiv{\tikz@lib@dv@around}{\tikz@lib@dv@diff}{\tikz@lib@dv@about@val}%
|
| 1138 |
+
\pgfmathfloattomacro{\tikz@lib@dv@around}{\tikz@lib@dv@flags}{\tikz@lib@dv@mant}{\tikz@lib@dv@exp}
|
| 1139 |
+
\ifdim\tikz@lib@dv@exp pt<0pt%
|
| 1140 |
+
\pgfmathfloatcreate{1}{1.0}{0}%
|
| 1141 |
+
\else
|
| 1142 |
+
\pgf@xc=\tikz@lib@dv@mant pt\relax%
|
| 1143 |
+
\ifdim\pgf@xc<2.5pt
|
| 1144 |
+
\pgfmathfloatcreate{1}{1.0}{\tikz@lib@dv@exp}
|
| 1145 |
+
\else\ifdim\pgf@xc<5.1pt
|
| 1146 |
+
\pgfmathfloatcreate{1}{3.0}{\tikz@lib@dv@exp}
|
| 1147 |
+
\else
|
| 1148 |
+
\pgfmathfloatcreate{1}{6.0}{\tikz@lib@dv@exp}
|
| 1149 |
+
\fi\fi
|
| 1150 |
+
\fi%
|
| 1151 |
+
\pgfmathfloattofixed{\pgfmathresult}
|
| 1152 |
+
\let\tikz@lib@dv@step=\pgfmathresult
|
| 1153 |
+
}%
|
| 1154 |
+
|
| 1155 |
+
|
| 1156 |
+
|
| 1157 |
+
|
| 1158 |
+
|
| 1159 |
+
|
| 1160 |
+
|
| 1161 |
+
|
| 1162 |
+
\tikzdatavisualizationset{%
|
| 1163 |
+
new Cartesian axis/.style={
|
| 1164 |
+
new axis base={#1},
|
| 1165 |
+
new object={
|
| 1166 |
+
class=linear transformer,
|
| 1167 |
+
store=/tikz/data visualization/#1/linear transformer,
|
| 1168 |
+
arg1/.expanded=\pgfkeysvalueof{/tikz/data visualization/#1/attribute}/scaled,
|
| 1169 |
+
arg2 from key=/tikz/data visualization/#1/unit vector,
|
| 1170 |
+
},
|
| 1171 |
+
#1/scaling/default/.initial=0 at 0 and 1 at 1cm,
|
| 1172 |
+
#1/unit vector/.initial=\pgfqpoint{1pt}{0pt},
|
| 1173 |
+
}
|
| 1174 |
+
}%
|
| 1175 |
+
|
| 1176 |
+
\tikzset{
|
| 1177 |
+
/tikz/data visualization/axis options/.cd,
|
| 1178 |
+
unit vector/.code=\tikz@scan@one@point\tikz@lib@dv@uv#1,
|
| 1179 |
+
length/.style={\tikz@dv@axis/scaling=min at 0 and max at {#1}},
|
| 1180 |
+
unit length/.code={\tikz@dv@parse@unit@length{#1}},
|
| 1181 |
+
power unit length/.style={\tikz@dv@axis/scaling=1 at 0 and 10 at {#1}}
|
| 1182 |
+
}%
|
| 1183 |
+
|
| 1184 |
+
\def\tikz@lib@dv@uv#1{%
|
| 1185 |
+
\pgfkeyssetvalue{\tikz@dv@axis/unit vector}{#1}
|
| 1186 |
+
}%
|
| 1187 |
+
|
| 1188 |
+
\def\tikz@dv@parse@unit@length#1{
|
| 1189 |
+
\pgfutil@in@{per}{#1}
|
| 1190 |
+
\ifpgfutil@in@%
|
| 1191 |
+
\tikz@dv@parse@unit@length@#1\pgf@stop%
|
| 1192 |
+
\else%
|
| 1193 |
+
\tikz@dv@parse@unit@length@#1per1units\pgf@stop%
|
| 1194 |
+
\fi%
|
| 1195 |
+
}%
|
| 1196 |
+
\def\tikz@dv@parse@unit@length@#1per#2units\pgf@stop{
|
| 1197 |
+
\pgfkeysalso{\tikz@dv@axis/scaling=0 at 0 and {#2} at {#1}}
|
| 1198 |
+
}%
|
| 1199 |
+
|
| 1200 |
+
|
| 1201 |
+
|
| 1202 |
+
\tikzdatavisualizationset{
|
| 1203 |
+
new visualizer/.style n args={3}{
|
| 1204 |
+
#1/.code={
|
| 1205 |
+
\def\tikz@visualizer{#1}%
|
| 1206 |
+
\pgfkeys{/tikz/data visualization/visualizer options/.cd,##1}
|
| 1207 |
+
\pgf@dv@do@adddata{\pgfkeysvalueof{/pgf/data visualization/obj}.add data(\pgfkeys{/data point/set={#1}})}%
|
| 1208 |
+
},
|
| 1209 |
+
/utils/exec={
|
| 1210 |
+
\advance\tikzdvvisualizercounter by 1\relax
|
| 1211 |
+
\edef\tikz@temp{/data point/set/#1/.initial=\the\tikzdvvisualizercounter}
|
| 1212 |
+
\expandafter\tikzset\expandafter{\tikz@temp}
|
| 1213 |
+
},
|
| 1214 |
+
/data point/#1/execute at begin/.initial={
|
| 1215 |
+
\pgfkeyssetvalue{/data point/set}{#1}
|
| 1216 |
+
\scope[
|
| 1217 |
+
#2,
|
| 1218 |
+
/tikz/data visualization/every visualizer/.try,
|
| 1219 |
+
/tikz/data visualization/visualizers/#1/signal,
|
| 1220 |
+
/tikz/data visualization/visualizers/#1/styling/.try]
|
| 1221 |
+
},
|
| 1222 |
+
/data point/#1/execute at end/.initial={
|
| 1223 |
+
\path; %
|
| 1224 |
+
\endscope
|
| 1225 |
+
},
|
| 1226 |
+
/tikz/data visualization/visualizers/#1/signal/.code=\pgf@signalstyle.emit(),
|
| 1227 |
+
/tikz/data visualization/visualizers/#1/styling/.style=,
|
| 1228 |
+
/tikz/data visualization/visualizers/#1/label in legend options/.style={#3},
|
| 1229 |
+
},
|
| 1230 |
+
style sheet/.style={/data point/set/.style sheet={#1}},
|
| 1231 |
+
/pgf/data/set/.style={/data point/set={#1}},
|
| 1232 |
+
}%
|
| 1233 |
+
|
| 1234 |
+
\tikzdatavisualizationset{
|
| 1235 |
+
new sub visualizer/.style n args={4}{
|
| 1236 |
+
#4/#1/.code={
|
| 1237 |
+
\def\tikz@visualizer{#4/#1}%
|
| 1238 |
+
\pgfkeys{/tikz/data visualization/visualizer options/.cd,##1}
|
| 1239 |
+
},
|
| 1240 |
+
/data point/#4/#1/execute at begin/.initial={
|
| 1241 |
+
\pgfkeyssetvalue{/data point/set}{#4}
|
| 1242 |
+
\scope[
|
| 1243 |
+
#2,
|
| 1244 |
+
/tikz/data visualization/every visualizer/.try,
|
| 1245 |
+
/tikz/data visualization/visualizers/#4/signal,
|
| 1246 |
+
/tikz/data visualization/visualizers/#4/styling/.try,
|
| 1247 |
+
/tikz/data visualization/visualizers/#4/#1/styling/.try]
|
| 1248 |
+
},
|
| 1249 |
+
/data point/#4/#1/execute at end/.initial={
|
| 1250 |
+
\path; %
|
| 1251 |
+
\endscope
|
| 1252 |
+
},
|
| 1253 |
+
/tikz/data visualization/visualizers/#4/#1/styling/.style=,
|
| 1254 |
+
/tikz/data visualization/visualizers/#4/#1/label in legend options/.style={#3},
|
| 1255 |
+
}
|
| 1256 |
+
}%
|
| 1257 |
+
|
| 1258 |
+
|
| 1259 |
+
\def\tikz@do@visualizer#1#2{%
|
| 1260 |
+
\tikzdatavisualizationset{
|
| 1261 |
+
#2={#1}
|
| 1262 |
+
}
|
| 1263 |
+
}%
|
| 1264 |
+
|
| 1265 |
+
\newcount\tikzdvvisualizercounter
|
| 1266 |
+
|
| 1267 |
+
\newif\iftikz@dv@visualizer@label@inline
|
| 1268 |
+
|
| 1269 |
+
\tikzdatavisualizationset{visualizer options/.cd,
|
| 1270 |
+
@set/.style 2 args={
|
| 1271 |
+
/tikz/data visualization/visualizers/\tikz@visualizer/styling/.append style={/utils/exec={\let\tikz@dv@plot@handler=#1}},
|
| 1272 |
+
/tikz/data visualization/visualizers/\tikz@visualizer/label in legend options/.append style={#2}
|
| 1273 |
+
},
|
| 1274 |
+
no lines/.style={@set={\pgfplothandlerdiscard}{default label in legend mark}},
|
| 1275 |
+
smooth line/.style={@set={\pgfplothandlercurveto}{default label in legend path}},
|
| 1276 |
+
smooth cycle/.style={@set={\pgfplothandlerclosedcurve}{default label in legend closed path}},
|
| 1277 |
+
straight line/.style={@set={\pgfplothandlerlineto}{default label in legend path}},
|
| 1278 |
+
straight cycle/.style={@set={\pgfplothandlerpolygon}{default label in legend closed path}},
|
| 1279 |
+
polygon/.style={straight cycle},%
|
| 1280 |
+
gap line/.style={@set={\pgfplothandlergaplineto}{default label in legend path}},
|
| 1281 |
+
gap cycle/.style={@set={\pgfplothandlergapcycle}{gap circular label in legend line}}
|
| 1282 |
+
}%
|
| 1283 |
+
|
| 1284 |
+
|
| 1285 |
+
|
| 1286 |
+
|
| 1287 |
+
\tikzdatavisualizationset{
|
| 1288 |
+
new label visualizer/.style 2 args={
|
| 1289 |
+
new object={
|
| 1290 |
+
when=before visualization,
|
| 1291 |
+
class=label visualizer,
|
| 1292 |
+
before creation={
|
| 1293 |
+
\begingroup
|
| 1294 |
+
\def\tikz@visualizer{#1}%
|
| 1295 |
+
\pgfkeys{/tikz/data visualization/visualizer label options/.cd,
|
| 1296 |
+
#2}
|
| 1297 |
+
\pgfkeysgetvalue{/tikz/data visualization/visualizer label options/text}\tikz@dv@temp@lab
|
| 1298 |
+
\def\tikz@tempa{
|
| 1299 |
+
\scope[
|
| 1300 |
+
/utils/exec=\def\tikz@visualizer{#1},%
|
| 1301 |
+
/tikz/data visualization/visualizer label options/.cd,
|
| 1302 |
+
#2]
|
| 1303 |
+
\tikzdatavisualizationset{every data set label/.try}
|
| 1304 |
+
\path [
|
| 1305 |
+
/data point/set={#1},/utils/exec=\pgf@signalstyle.emit(),
|
| 1306 |
+
/tikz/data visualization/.cd,every label in data/.try]
|
| 1307 |
+
(label visualizer coordinate') --
|
| 1308 |
+
(label visualizer coordinate)
|
| 1309 |
+
node [
|
| 1310 |
+
auto,
|
| 1311 |
+
at end,
|
| 1312 |
+
/tikz/data visualization/node styling]
|
| 1313 |
+
}
|
| 1314 |
+
\expandafter\def\expandafter\tikz@tempb\expandafter{\expandafter{\tikz@dv@temp@lab};}%
|
| 1315 |
+
\expandafter\expandafter\expandafter\gdef%
|
| 1316 |
+
\expandafter\expandafter\expandafter\tikz@dv@label@code%
|
| 1317 |
+
\expandafter\expandafter\expandafter{\expandafter\expandafter\expandafter\relax%
|
| 1318 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@tempa\tikz@tempb\endscope}}
|
| 1319 |
+
\global\let\tikz@dv@label@attribute=\tikz@dv@label@attribute
|
| 1320 |
+
\global\let\tikz@dv@label@threshold=\tikz@dv@label@threshold
|
| 1321 |
+
\endgroup
|
| 1322 |
+
},
|
| 1323 |
+
arg1/.expand once=\tikz@dv@label@attribute,
|
| 1324 |
+
arg2=\tikz@dv@label@threshold,
|
| 1325 |
+
arg3/.expand once=\tikz@dv@label@code,
|
| 1326 |
+
arg4=\pgfdvvisualizerfilter{#1}
|
| 1327 |
+
},
|
| 1328 |
+
/utils/exec=\tikz@create@label@count{#1}
|
| 1329 |
+
},
|
| 1330 |
+
text colored/.style={node style={text=visualizer color}}
|
| 1331 |
+
}%
|
| 1332 |
+
|
| 1333 |
+
\def\tikz@create@label@count#1{
|
| 1334 |
+
\tikzdatavisualizationset{
|
| 1335 |
+
new object={
|
| 1336 |
+
when=before survey,
|
| 1337 |
+
store=/tikz/data visualization/visualizers/#1/count/obj,
|
| 1338 |
+
class=count,
|
| 1339 |
+
arg1=set/#1/count,
|
| 1340 |
+
after creation={\tikzdvobj.set filter(\pgfdvvisualizerfilter{#1})}
|
| 1341 |
+
}
|
| 1342 |
+
}
|
| 1343 |
+
}%
|
| 1344 |
+
|
| 1345 |
+
\pgfkeys{
|
| 1346 |
+
/tikz/data visualization/visualizer label options/.cd,
|
| 1347 |
+
when/.code args={#1 is#2}{%
|
| 1348 |
+
\def\tikz@dv@label@attribute{#1}%
|
| 1349 |
+
\def\tikz@dv@label@threshold{#2}%
|
| 1350 |
+
},
|
| 1351 |
+
index/.code={%
|
| 1352 |
+
\edef\tikz@dv@label@attribute{set/\tikz@visualizer/count}%
|
| 1353 |
+
\def\tikz@dv@label@threshold{#1}%
|
| 1354 |
+
},
|
| 1355 |
+
pos/.code={%
|
| 1356 |
+
\edef\tikz@dv@label@attribute{set/\tikz@visualizer/count}%
|
| 1357 |
+
\pgfkeysvalueof{/tikz/data visualization/visualizers/\tikz@visualizer/count/obj}.get max(\tikz@lib@max)
|
| 1358 |
+
\edef\tikz@dv@label@threshold{(#1*\tikz@lib@max)}%
|
| 1359 |
+
},
|
| 1360 |
+
auto/.code={%
|
| 1361 |
+
\edef\tikz@dv@label@attribute{set/\tikz@visualizer/count}%
|
| 1362 |
+
\pgfkeysvalueof{/tikz/data visualization/visualizers/\tikz@visualizer/count/obj}.get max(\tikz@lib@max)
|
| 1363 |
+
\edef\tikz@dv@label@threshold{({(\pgfkeysvalueof{/data point/set/\tikz@visualizer}-0.5)/\the\tikzdvvisualizercounter*\tikz@lib@max})}
|
| 1364 |
+
},
|
| 1365 |
+
text/.initial=,
|
| 1366 |
+
text'/.style={text={#1},node style=swap,/utils/exec=\def\tikz@lib@dv@pin@sign{-}},
|
| 1367 |
+
node style/.style={/tikz/data visualization/node style={#1}},
|
| 1368 |
+
text colored/.style=/tikz/data visualization/text colored,
|
| 1369 |
+
pin angle/.store in=\tikz@lib@dv@pin@dir,
|
| 1370 |
+
pin length/.style={node style={pin distance={#1}}},
|
| 1371 |
+
}%
|
| 1372 |
+
|
| 1373 |
+
\let\tikz@lib@dv@pin@sign\pgfutil@empty
|
| 1374 |
+
|
| 1375 |
+
\let\tikz@dv@label@attribute\pgfutil@empty
|
| 1376 |
+
\let\tikz@dv@label@threshold\pgfutil@empty
|
| 1377 |
+
\let\tikz@dv@label@code\pgfutil@empty
|
| 1378 |
+
|
| 1379 |
+
|
| 1380 |
+
|
| 1381 |
+
|
| 1382 |
+
|
| 1383 |
+
\tikzdatavisualizationset{
|
| 1384 |
+
new legend/.code={
|
| 1385 |
+
\pgfkeysifdefined{/tikz/data visualization/#1/at}{}
|
| 1386 |
+
{\tikzdatavisualizationset{
|
| 1387 |
+
new object={
|
| 1388 |
+
class=legend,
|
| 1389 |
+
store=/tikz/data visualization/#1/obj,
|
| 1390 |
+
arg1 from key=/tikz/data visualization/#1/@columns or rows,
|
| 1391 |
+
arg2 from key=/tikz/data visualization/#1/@ideal,
|
| 1392 |
+
arg3 from key=/tikz/data visualization/#1/max entries,
|
| 1393 |
+
arg4 from key=/tikz/data visualization/#1/@strategy,
|
| 1394 |
+
after creation={
|
| 1395 |
+
\tikzdatavisualizationset{
|
| 1396 |
+
legend actions/.append={
|
| 1397 |
+
\pgfkeysgetvalue{/tikz/data visualization/#1/obj}\pgf@dv@legend%
|
| 1398 |
+
{
|
| 1399 |
+
\pgf@dv@legend.get arrangement(\pgf@dv@temp)%
|
| 1400 |
+
\pgfkeysgetvalue{/tikz/data visualization/#1/at}\pgf@dv@at%
|
| 1401 |
+
\pgfkeysgetvalue{/tikz/data visualization/#1/anchor}\pgf@dv@anchor%
|
| 1402 |
+
\let\pgfdvnextcell=\pgfmatrixnextcell%
|
| 1403 |
+
\let\pgfdvendrow=\pgfmatrixendrow%
|
| 1404 |
+
\def\pgf@marshal{
|
| 1405 |
+
\matrix[at/.expand once=\pgf@dv@at,matrix anchor/.expand
|
| 1406 |
+
once=\pgf@dv@anchor,/tikz/data visualization/#1/matrix node styling]
|
| 1407 |
+
}
|
| 1408 |
+
\expandafter\pgf@marshal\expandafter{\pgf@dv@temp};
|
| 1409 |
+
}
|
| 1410 |
+
}
|
| 1411 |
+
}
|
| 1412 |
+
}
|
| 1413 |
+
},
|
| 1414 |
+
#1/@columns or rows/.initial=columns,
|
| 1415 |
+
#1/@ideal/.initial=1,
|
| 1416 |
+
#1/max entries/.initial=100,
|
| 1417 |
+
#1/@strategy/.initial=down then right,
|
| 1418 |
+
#1/anchor/.initial=west,
|
| 1419 |
+
#1/at/.initial=(data visualization bounding box.east),
|
| 1420 |
+
#1/matrix node styling/.style={row sep=0pt,column sep=.8em},
|
| 1421 |
+
#1/.code={
|
| 1422 |
+
\let\tikz@temp\tikz@dv@legend%
|
| 1423 |
+
\def\tikz@dv@legend{/tikz/data visualization/#1}%
|
| 1424 |
+
\expandafter\tikz@do@legend@options\expandafter{\tikz@temp}{##1}%
|
| 1425 |
+
},
|
| 1426 |
+
#1={every new legend}
|
| 1427 |
+
}}},
|
| 1428 |
+
new legend/.default=main legend,
|
| 1429 |
+
legend/.style={
|
| 1430 |
+
new legend,
|
| 1431 |
+
main legend={#1}
|
| 1432 |
+
}
|
| 1433 |
+
}%
|
| 1434 |
+
|
| 1435 |
+
\def\tikz@do@legend@options#1#2{
|
| 1436 |
+
\pgfkeys{/tikz/data visualization/legend options/.cd,#2}
|
| 1437 |
+
\def\tikz@dv@legend{#1}
|
| 1438 |
+
}%
|
| 1439 |
+
\let\tikz@dv@legend\pgfutil@empty
|
| 1440 |
+
|
| 1441 |
+
|
| 1442 |
+
\tikzset{
|
| 1443 |
+
/tikz/data visualization/legend options/.cd,
|
| 1444 |
+
ideal number of columns/.style={\tikz@dv@legend/@columns or rows=columns,\tikz@dv@legend/@ideal={#1}},
|
| 1445 |
+
ideal number of rows/.style={\tikz@dv@legend/@columns or rows=rows,\tikz@dv@legend/@ideal={#1}},
|
| 1446 |
+
columns/.style={ideal number of columns={#1}},%
|
| 1447 |
+
rows/.style={ideal number of rows={#1}},%
|
| 1448 |
+
max rows/.style={\tikz@dv@legend/@columns or rows=columns,\tikz@dv@legend/max entries={#1}},
|
| 1449 |
+
max columns/.style={\tikz@dv@legend/@columns or rows=rows,\tikz@dv@legend/max entries={#1}},
|
| 1450 |
+
down then right/.style={\tikz@dv@legend/@strategy=down then right},
|
| 1451 |
+
down then left/.style={\tikz@dv@legend/@strategy=down then left},
|
| 1452 |
+
up then right/.style={\tikz@dv@legend/@strategy=up then right},
|
| 1453 |
+
up then left/.style={\tikz@dv@legend/@strategy=up then left},
|
| 1454 |
+
right then down/.style={\tikz@dv@legend/@strategy=right then down},
|
| 1455 |
+
left then down/.style={\tikz@dv@legend/@strategy=left then down},
|
| 1456 |
+
right then up/.style={\tikz@dv@legend/@strategy=right then up},
|
| 1457 |
+
left then up/.style={\tikz@dv@legend/@strategy=left then up},
|
| 1458 |
+
anchor/.style={\tikz@dv@legend/anchor={#1}},
|
| 1459 |
+
at/.style={\tikz@dv@legend/at={#1}},
|
| 1460 |
+
right/.style={east outside},
|
| 1461 |
+
left/.style={west outside},
|
| 1462 |
+
above/.style={north outside},
|
| 1463 |
+
below/.style={south outside},
|
| 1464 |
+
east outside/.style={
|
| 1465 |
+
columns=1,
|
| 1466 |
+
at={([xshift=.8em]data visualization bounding box.east)},
|
| 1467 |
+
anchor=west,
|
| 1468 |
+
},
|
| 1469 |
+
north east outside/.style={
|
| 1470 |
+
columns=1,
|
| 1471 |
+
at={([xshift=.8em]data visualization bounding box.north east|-
|
| 1472 |
+
data bounding box.north)},
|
| 1473 |
+
anchor=north west,
|
| 1474 |
+
},
|
| 1475 |
+
south east outside/.style={
|
| 1476 |
+
columns=1,
|
| 1477 |
+
at={([xshift=.8em]data visualization bounding box.south east |-
|
| 1478 |
+
data bounding box.south)},
|
| 1479 |
+
anchor=south west,
|
| 1480 |
+
},
|
| 1481 |
+
west outside/.style={
|
| 1482 |
+
columns=1,
|
| 1483 |
+
label style=text left,
|
| 1484 |
+
at={([xshift=-.8em]data visualization bounding box.west)},
|
| 1485 |
+
anchor=east,
|
| 1486 |
+
},
|
| 1487 |
+
north west outside/.style={
|
| 1488 |
+
columns=1,
|
| 1489 |
+
label style=text left,
|
| 1490 |
+
at={([xshift=-.8em]data visualization bounding box.north west |-
|
| 1491 |
+
data bounding box.north)},
|
| 1492 |
+
anchor=north east,
|
| 1493 |
+
},
|
| 1494 |
+
south west outside/.style={
|
| 1495 |
+
columns=1,
|
| 1496 |
+
label style=text left,
|
| 1497 |
+
at={([xshift=-.8em]data visualization bounding box.south west |-
|
| 1498 |
+
data bounding box.south)},
|
| 1499 |
+
anchor=south east,
|
| 1500 |
+
},
|
| 1501 |
+
south outside/.style={
|
| 1502 |
+
rows=1,
|
| 1503 |
+
at={([yshift=-.5em]data visualization bounding box.south)},
|
| 1504 |
+
anchor=north,
|
| 1505 |
+
},
|
| 1506 |
+
north outside/.style={
|
| 1507 |
+
rows=1,
|
| 1508 |
+
at={([yshift=.5em]data visualization bounding box.north)},
|
| 1509 |
+
anchor=south,
|
| 1510 |
+
},
|
| 1511 |
+
every new legend/.style={east outside,label style=text right},
|
| 1512 |
+
every legend inside/.style={
|
| 1513 |
+
opaque=white,
|
| 1514 |
+
label style={node style={font=\pgfutil@font@footnotesize}}
|
| 1515 |
+
},
|
| 1516 |
+
opaque/.style={
|
| 1517 |
+
matrix node style={
|
| 1518 |
+
inner sep=.333ex,
|
| 1519 |
+
outer sep=.5ex,
|
| 1520 |
+
rounded corners=3pt,
|
| 1521 |
+
execute at begin cell={\tikzset{sharp corners}}, %
|
| 1522 |
+
fill=#1
|
| 1523 |
+
},
|
| 1524 |
+
},
|
| 1525 |
+
opaque/.default=white,
|
| 1526 |
+
transparent/.style={matrix node style={fill=none}},
|
| 1527 |
+
north east inside/.style={
|
| 1528 |
+
columns=1,
|
| 1529 |
+
at={([xshift=-.3em]data bounding box.north east)},
|
| 1530 |
+
anchor=north east,
|
| 1531 |
+
every legend inside
|
| 1532 |
+
},
|
| 1533 |
+
south west inside/.style={
|
| 1534 |
+
columns=1,
|
| 1535 |
+
at={([xshift=.3em]data bounding box.south west)},
|
| 1536 |
+
anchor=south west,
|
| 1537 |
+
every legend inside
|
| 1538 |
+
},
|
| 1539 |
+
north west inside/.style={
|
| 1540 |
+
columns=1,
|
| 1541 |
+
at={([xshift=.3em]data bounding box.north west)},
|
| 1542 |
+
anchor=north west,
|
| 1543 |
+
every legend inside
|
| 1544 |
+
},
|
| 1545 |
+
south east inside/.style={
|
| 1546 |
+
columns=1,
|
| 1547 |
+
at={([xshift=-.3em]data bounding box.south east)},
|
| 1548 |
+
anchor=south east,
|
| 1549 |
+
every legend inside
|
| 1550 |
+
},
|
| 1551 |
+
west inside/.style={
|
| 1552 |
+
columns=1,
|
| 1553 |
+
at={([xshift=.3em]data bounding box.west)},
|
| 1554 |
+
anchor=west,
|
| 1555 |
+
every legend inside
|
| 1556 |
+
},
|
| 1557 |
+
east inside/.style={
|
| 1558 |
+
columns=1,
|
| 1559 |
+
at={([xshift=.3em]data bounding box.east)},
|
| 1560 |
+
anchor=east,
|
| 1561 |
+
every legend inside
|
| 1562 |
+
},
|
| 1563 |
+
north inside/.style={
|
| 1564 |
+
rows=1,
|
| 1565 |
+
at={(data bounding box.north)},
|
| 1566 |
+
anchor=north,
|
| 1567 |
+
every legend inside
|
| 1568 |
+
},
|
| 1569 |
+
south inside/.style={
|
| 1570 |
+
rows=1,
|
| 1571 |
+
at={(data bounding box.south)},
|
| 1572 |
+
anchor=south,
|
| 1573 |
+
every legend inside
|
| 1574 |
+
},
|
| 1575 |
+
at values/.style={
|
| 1576 |
+
at={(visualization cs:#1)},
|
| 1577 |
+
anchor=center,
|
| 1578 |
+
every legend inside
|
| 1579 |
+
},
|
| 1580 |
+
right of/.style={
|
| 1581 |
+
at={(visualization cs:#1)},
|
| 1582 |
+
anchor=west,
|
| 1583 |
+
every legend inside
|
| 1584 |
+
},
|
| 1585 |
+
left of/.style={
|
| 1586 |
+
at={(visualization cs:#1)},
|
| 1587 |
+
anchor=east,
|
| 1588 |
+
every legend inside
|
| 1589 |
+
},
|
| 1590 |
+
above of/.style={
|
| 1591 |
+
at={(visualization cs:#1)},
|
| 1592 |
+
anchor=south,
|
| 1593 |
+
every legend inside
|
| 1594 |
+
},
|
| 1595 |
+
below of/.style={
|
| 1596 |
+
at={(visualization cs:#1)},
|
| 1597 |
+
anchor=north,
|
| 1598 |
+
every legend inside
|
| 1599 |
+
},
|
| 1600 |
+
above right of/.style={
|
| 1601 |
+
at={(visualization cs:#1)},
|
| 1602 |
+
anchor=south west,
|
| 1603 |
+
every legend inside
|
| 1604 |
+
},
|
| 1605 |
+
above left of/.style={
|
| 1606 |
+
at={(visualization cs:#1)},
|
| 1607 |
+
anchor=south east,
|
| 1608 |
+
every legend inside
|
| 1609 |
+
},
|
| 1610 |
+
below right of/.style={
|
| 1611 |
+
at={(visualization cs:#1)},
|
| 1612 |
+
anchor=north west,
|
| 1613 |
+
every legend inside
|
| 1614 |
+
},
|
| 1615 |
+
below left of/.style={
|
| 1616 |
+
at={(visualization cs:#1)},
|
| 1617 |
+
anchor=north east,
|
| 1618 |
+
every legend inside
|
| 1619 |
+
},
|
| 1620 |
+
label style/.style={
|
| 1621 |
+
matrix node style={/tikz/data visualization/every label in legend/.append style={#1}}
|
| 1622 |
+
},
|
| 1623 |
+
matrix node style/.style={\tikz@dv@legend/matrix node styling/.append style={#1}},
|
| 1624 |
+
}%
|
| 1625 |
+
|
| 1626 |
+
|
| 1627 |
+
\tikzdatavisualizationset{
|
| 1628 |
+
new legend entry/.code={
|
| 1629 |
+
\begingroup
|
| 1630 |
+
\pgfkeys{/tikz/data visualization/legend entry options/.cd,#1}
|
| 1631 |
+
\pgfkeysgetvalue{/tikz/data visualization/legend entry options/legend}\tikz@dv@temp@legend
|
| 1632 |
+
\global\let\tikz@dv@temp@legend\tikz@dv@temp@legend
|
| 1633 |
+
\endgroup
|
| 1634 |
+
\tikzdatavisualizationset{new legend/.expanded=\tikz@dv@temp@legend}%
|
| 1635 |
+
\expandafter\tikz@dv@add@legend@entry\expandafter{\tikz@dv@temp@legend}{#1}
|
| 1636 |
+
}
|
| 1637 |
+
}%
|
| 1638 |
+
|
| 1639 |
+
\def\tikz@dv@add@legend@entry#1#2{
|
| 1640 |
+
\tikz@main@dv.at start survey({
|
| 1641 |
+
\pgfkeysgetvalue{/tikz/data visualization/#1/obj}\pgf@temp
|
| 1642 |
+
\pgf@temp.add entry(\tikz@dv@render@legend@entry{legend=#1,#2})
|
| 1643 |
+
})
|
| 1644 |
+
}%
|
| 1645 |
+
|
| 1646 |
+
\def\tikz@dv@render@legend@entry#1{
|
| 1647 |
+
\pgfkeys{/tikz/data visualization/.cd,every data set label}
|
| 1648 |
+
\pgfkeys{/tikz/data visualization/legend entry options/.cd,
|
| 1649 |
+
/tikz/data visualization/every label in legend,#1}%
|
| 1650 |
+
\pgfkeysgetvalue{/tikz/data visualization/legend entry options/text}\tikz@dv@temp@lab
|
| 1651 |
+
\pgfkeysgetvalue{/tikz/data visualization/@node styling}\tikz@dv@temp@style
|
| 1652 |
+
\pgfkeysgetvalue{/tikz/data visualization/legend entry options/setup}\tikz@dv@temp@setup
|
| 1653 |
+
\pgfkeysgetvalue{/tikz/data visualization/legend entry options/visualizer in legend styling}\tikz@dv@temp@visual@styling
|
| 1654 |
+
\scope[/utils/exec=\expandafter\pgfkeysalso\expandafter{\tikz@dv@temp@setup},
|
| 1655 |
+
/utils/exec=\pgf@signalstyle.emit()]
|
| 1656 |
+
\node[/tikz/data visualization/node styling,
|
| 1657 |
+
/utils/exec=\expandafter\pgfkeysalso\expandafter{\tikz@dv@temp@style}]
|
| 1658 |
+
{\tikz@dv@pre@height\tikz@dv@temp@lab\tikz@dv@post@height};
|
| 1659 |
+
\scope[/utils/exec=\expandafter\pgfkeysalso\expandafter{\tikz@dv@temp@visual@styling}]
|
| 1660 |
+
\iftikz@lib@dv@text@only
|
| 1661 |
+
\else
|
| 1662 |
+
\pgfkeysvalueof{/tikz/data visualization/legend entry options/visualizer in legend}
|
| 1663 |
+
\fi
|
| 1664 |
+
\endscope
|
| 1665 |
+
\endscope
|
| 1666 |
+
}%
|
| 1667 |
+
|
| 1668 |
+
\def\tikz@dv@pre@height{\hbox{\vrule height .75em width0pt}}%
|
| 1669 |
+
\def\tikz@dv@post@height{\hbox{\vrule depth .25em width0pt}}%
|
| 1670 |
+
|
| 1671 |
+
|
| 1672 |
+
|
| 1673 |
+
\pgfkeys{
|
| 1674 |
+
/tikz/data visualization/legend entry options/.cd,
|
| 1675 |
+
text/.initial=,
|
| 1676 |
+
node style/.style={/tikz/data visualization/node style={#1}},
|
| 1677 |
+
legend/.initial=main legend,
|
| 1678 |
+
setup/.initial=,
|
| 1679 |
+
visualizer in legend/.initial=,
|
| 1680 |
+
visualizer in legend styling/.initial=,
|
| 1681 |
+
visualizer in legend style/.style={visualizer in legend styling/.append={,#1}},
|
| 1682 |
+
text right/.style={
|
| 1683 |
+
node style={anchor=mid west,inner ysep=1pt,inner xsep=0pt,reset cm,xshift=.333em},
|
| 1684 |
+
visualizer in legend style={reset cm},
|
| 1685 |
+
},
|
| 1686 |
+
text left/.style={
|
| 1687 |
+
node style={anchor=mid east,inner ysep=1pt,inner xsep=0pt,reset
|
| 1688 |
+
cm,xshift=-.333em,align=right},
|
| 1689 |
+
visualizer in legend style={reset cm,xscale=-1},
|
| 1690 |
+
},
|
| 1691 |
+
text only/.style={
|
| 1692 |
+
node style={anchor=mid west,inner ysep=1pt,inner xsep=0pt,reset cm,text=visualizer color},
|
| 1693 |
+
/utils/exec=\tikz@lib@dv@text@onlytrue
|
| 1694 |
+
},
|
| 1695 |
+
text colored/.style=/tikz/data visualization/text colored,
|
| 1696 |
+
}%
|
| 1697 |
+
\let\tikz@lib@dv@pin@dir\pgfutil@empty
|
| 1698 |
+
\newif\iftikz@lib@dv@text@only
|
| 1699 |
+
|
| 1700 |
+
\pgfkeys{
|
| 1701 |
+
/tikz/data visualization/visualizer options/.cd,
|
| 1702 |
+
label in legend/.code={\expandafter\tikz@dv@new@label@in@legend@for@visualizer\expandafter{\tikz@visualizer}{#1}},
|
| 1703 |
+
label in data/.code=\tikzdatavisualizationset{new label visualizer/.expand once=\expandafter{\tikz@visualizer}{auto,#1}},
|
| 1704 |
+
pin in data/.style={label in data={%
|
| 1705 |
+
node style={%
|
| 1706 |
+
/utils/exec={
|
| 1707 |
+
\ifx\tikz@lib@dv@pin@dir\pgfutil@empty
|
| 1708 |
+
\pgf@process{\pgfpointnormalised{%
|
| 1709 |
+
\pgfpointdiff%
|
| 1710 |
+
{\pgfpointanchor{label visualizer coordinate}{center}}%
|
| 1711 |
+
{\pgfpointanchor{label visualizer coordinate'}{center}}}}%
|
| 1712 |
+
\pgf@x=-\pgf@x\relax%
|
| 1713 |
+
\edef\tikz@lib@dv@temp@rot{\noexpand\pgfqpoint{\the\pgf@y}{\the\pgf@x}}%
|
| 1714 |
+
\tikz@addtransform{\pgftransformshift{\pgfpointscale{\tikz@lib@dv@pin@sign\tikz@pin@distance}{\tikz@lib@dv@temp@rot}}}
|
| 1715 |
+
\else%
|
| 1716 |
+
\tikz@addtransform{\pgftransformshift{\pgfpointpolar{\tikz@lib@dv@pin@dir}{\tikz@lib@dv@pin@sign\tikz@pin@distance}}}
|
| 1717 |
+
\fi%
|
| 1718 |
+
},
|
| 1719 |
+
append after command={
|
| 1720 |
+
\bgroup
|
| 1721 |
+
[current point is local=true]
|
| 1722 |
+
(\tikzlastnode) edge [solid, every pin edge] (label visualizer coordinate)
|
| 1723 |
+
\egroup%
|
| 1724 |
+
}},
|
| 1725 |
+
,#1}},
|
| 1726 |
+
style/.style={/tikz/data visualization/visualizers/\tikz@visualizer/styling/.append style={,#1}},
|
| 1727 |
+
label in legend options/.style={/tikz/data visualization/visualizers/\tikz@visualizer/label in legend options/.append style={,#1}},
|
| 1728 |
+
ignore style sheets/.style={/tikz/data visualization/visualizers/\tikz@visualizer/signal/.code=,/utils/exec=\advance\tikzdvvisualizercounter by -1\relax},
|
| 1729 |
+
}%
|
| 1730 |
+
|
| 1731 |
+
\def\tikz@dv@new@label@in@legend@for@visualizer#1#2{
|
| 1732 |
+
\tikzdatavisualizationset{
|
| 1733 |
+
new legend entry={
|
| 1734 |
+
visualizer in legend style={/tikz/data visualization/visualizers/#1/styling/.try},
|
| 1735 |
+
/tikz/data visualization/every label in legend/.try,
|
| 1736 |
+
/tikz/.cd,
|
| 1737 |
+
every label/.try,
|
| 1738 |
+
/tikz/data visualization/legend entry options/.cd,
|
| 1739 |
+
setup={/data point/set={#1}},
|
| 1740 |
+
/tikz/data visualization/visualizers/#1/label in legend options/.try,
|
| 1741 |
+
#2,
|
| 1742 |
+
}
|
| 1743 |
+
}
|
| 1744 |
+
}%
|
| 1745 |
+
|
| 1746 |
+
\def\tikz@dv@legend@entry@as@example{
|
| 1747 |
+
\pgfkeysgetvalue{/data point/set}{\tikz@visualizer}
|
| 1748 |
+
\pgfkeysvalueof{/data point/\tikz@visualizer/execute at begin}
|
| 1749 |
+
\tikz@dv@plot@handler
|
| 1750 |
+
\pgfplotstreamstart
|
| 1751 |
+
\pgfkeysgetvalue{/tikz/data visualization/legend entry options/label in legend line coordinates}{\tikz@dv@temp}
|
| 1752 |
+
\foreach \coordinate in \tikz@dv@temp
|
| 1753 |
+
{ \pgfplotstreampoint{\expandafter\tikz@scan@one@point\expandafter\pgfutil@firstofone\coordinate} }
|
| 1754 |
+
\pgfplotstreamend
|
| 1755 |
+
\pgfkeysvalueof{/data point/\tikz@visualizer/execute at end}
|
| 1756 |
+
\pgfkeysvalueof{/data point/\tikz@visualizer/execute at begin}
|
| 1757 |
+
\tikz@dv@plot@mark@maker
|
| 1758 |
+
\pgfplotstreamstart
|
| 1759 |
+
\pgfkeysgetvalue{/tikz/data visualization/legend entry options/label in legend mark coordinates}{\tikz@dv@temp}
|
| 1760 |
+
\foreach \coordinate in \tikz@dv@temp
|
| 1761 |
+
{ \pgfplotstreampoint{\expandafter\tikz@scan@one@point\expandafter\pgfutil@firstofone\coordinate} }
|
| 1762 |
+
\pgfplotstreamend
|
| 1763 |
+
\pgfkeysvalueof{/data point/\tikz@visualizer/execute at end}
|
| 1764 |
+
}%
|
| 1765 |
+
|
| 1766 |
+
|
| 1767 |
+
\tikzdatavisualizationset{
|
| 1768 |
+
legend entry options/.cd,
|
| 1769 |
+
label in legend line coordinates/.initial=,
|
| 1770 |
+
label in legend rectangle coordinates/.initial={(-1ex,-.5ex),(-1ex,0.968ex),(0ex,0.968ex),(0ex,-.5ex)},
|
| 1771 |
+
label in legend mark coordinates/.initial=,
|
| 1772 |
+
label in legend one mark/.style={
|
| 1773 |
+
label in legend line coordinates={},
|
| 1774 |
+
label in legend mark coordinates={(0,0)},
|
| 1775 |
+
},
|
| 1776 |
+
label in legend three marks/.style={
|
| 1777 |
+
label in legend line coordinates={},
|
| 1778 |
+
label in legend mark coordinates={(-3ex,-.3ex),(-1.5ex,.3ex),(0,0)},
|
| 1779 |
+
},
|
| 1780 |
+
straight label in legend line/.style={
|
| 1781 |
+
label in legend line coordinates={(-2em,0),(-1.5em,0),(-.5em,0),(0,0)},
|
| 1782 |
+
label in legend mark coordinates={(-1.5em,0),(-.5em,0)},
|
| 1783 |
+
},
|
| 1784 |
+
zig zag label in legend line/.style={
|
| 1785 |
+
label in legend line coordinates={(-2em,0),(-1.5em,.3ex),(-.5em,-.3ex),(0,0)},
|
| 1786 |
+
label in legend mark coordinates={(-1.5em,.3ex),(-.5em,-.3ex)},
|
| 1787 |
+
},
|
| 1788 |
+
circular label in legend line/.style={
|
| 1789 |
+
label in legend line coordinates={%
|
| 1790 |
+
([xshift=-1em]0:.9em and .35ex),%
|
| 1791 |
+
([xshift=-1em]45:.9em and .35ex),%
|
| 1792 |
+
([xshift=-1em]90:.9em and .35ex),%
|
| 1793 |
+
([xshift=-1em]135:.9em and .35ex),%
|
| 1794 |
+
([xshift=-1em]180:.9em and .35ex),%
|
| 1795 |
+
([xshift=-1em]225:.9em and .35ex),%
|
| 1796 |
+
([xshift=-1em]270:.9em and .35ex),%
|
| 1797 |
+
([xshift=-1em]315:.9em and .35ex)},%
|
| 1798 |
+
label in legend mark coordinates={([xshift=-1em]120:.9em and .35ex),([xshift=-1em]-60:.9em and .35ex)},
|
| 1799 |
+
},
|
| 1800 |
+
gap circular label in legend line/.style={
|
| 1801 |
+
label in legend line coordinates={%
|
| 1802 |
+
([xshift=-1em,yshift=.2ex]90:1.4ex and 0.9ex),%
|
| 1803 |
+
([xshift=-1em,yshift=.2ex]162:1.4ex and 0.9ex),%
|
| 1804 |
+
([xshift=-1em,yshift=.2ex]234:1.4ex and 0.9ex),%
|
| 1805 |
+
([xshift=-1em,yshift=.2ex]306:1.4ex and 0.9ex),%
|
| 1806 |
+
([xshift=-1em,yshift=.2ex]18:1.4ex and 0.9ex)},
|
| 1807 |
+
label in legend mark coordinates={
|
| 1808 |
+
([xshift=-1em,yshift=.2ex]90:1.4ex and 0.9ex),%
|
| 1809 |
+
([xshift=-1em,yshift=.2ex]162:1.4ex and 0.9ex),%
|
| 1810 |
+
([xshift=-1em,yshift=.2ex]234:1.4ex and 0.9ex),%
|
| 1811 |
+
([xshift=-1em,yshift=.2ex]306:1.4ex and 0.9ex),%
|
| 1812 |
+
([xshift=-1em,yshift=.2ex]18:1.4ex and 0.9ex)}
|
| 1813 |
+
},
|
| 1814 |
+
default label in legend path/.style={zig zag label in legend line},
|
| 1815 |
+
default label in legend closed path/.style={circular label in legend line},
|
| 1816 |
+
default label in legend mark/.style={label in legend one mark},
|
| 1817 |
+
}%
|
| 1818 |
+
|
| 1819 |
+
|
| 1820 |
+
\def\tikz@dv@legend@entry@visualizer@visualizer{
|
| 1821 |
+
}%
|
| 1822 |
+
|
| 1823 |
+
|
| 1824 |
+
|
| 1825 |
+
|
| 1826 |
+
\tikzdatavisualizationset{
|
| 1827 |
+
visualize as line/.style={
|
| 1828 |
+
new object={
|
| 1829 |
+
when=after survey,
|
| 1830 |
+
store=/tikz/data visualization/visualizers/#1,
|
| 1831 |
+
class=plot handler visualizer,
|
| 1832 |
+
arg1=#1,
|
| 1833 |
+
arg2={\tikz@dv@plot@handler,\tikz@dv@plot@mark@maker}
|
| 1834 |
+
},
|
| 1835 |
+
new visualizer={#1}{%
|
| 1836 |
+
every path/.style={draw},
|
| 1837 |
+
style={every mark/.append style={color=visualizer color}},
|
| 1838 |
+
mark size=2pt,
|
| 1839 |
+
semithick,
|
| 1840 |
+
color=visualizer color,
|
| 1841 |
+
mark=none,
|
| 1842 |
+
/tikz/data visualization/every visualize as line/.try,
|
| 1843 |
+
}{visualizer in legend=\tikz@dv@legend@entry@as@example},
|
| 1844 |
+
#1={straight line}
|
| 1845 |
+
},
|
| 1846 |
+
visualize as line/.default=line,
|
| 1847 |
+
visualize as smooth line/.style={
|
| 1848 |
+
visualize as line={#1},
|
| 1849 |
+
#1={smooth line}
|
| 1850 |
+
},
|
| 1851 |
+
visualize as smooth line/.default=line,
|
| 1852 |
+
visualize as smooth cycle/.style={
|
| 1853 |
+
visualize as smooth line={#1},
|
| 1854 |
+
#1={smooth cycle}
|
| 1855 |
+
},
|
| 1856 |
+
visualize as smooth cycle/.default=line,
|
| 1857 |
+
visualize as scatter/.style={
|
| 1858 |
+
new object={
|
| 1859 |
+
when=after survey,
|
| 1860 |
+
store=/tikz/data visualization/visualizers/#1,
|
| 1861 |
+
class=plot handler visualizer,
|
| 1862 |
+
arg1=#1,
|
| 1863 |
+
arg2={\tikz@dv@plot@mark@maker}
|
| 1864 |
+
},
|
| 1865 |
+
new visualizer={#1}{%
|
| 1866 |
+
mark=x,
|
| 1867 |
+
mark size=2pt,
|
| 1868 |
+
style={every mark/.append style={color=visualizer color}},
|
| 1869 |
+
/tikz/data visualization/every visualize as scatter/.try,
|
| 1870 |
+
}{visualizer in legend=\tikz@dv@legend@entry@as@example},
|
| 1871 |
+
#1={no lines}
|
| 1872 |
+
},
|
| 1873 |
+
visualize as scatter/.default=scatter
|
| 1874 |
+
}%
|
| 1875 |
+
|
| 1876 |
+
\def\tikz@dv@plot@mark@maker{
|
| 1877 |
+
\let\tikz@options=\pgfutil@empty%
|
| 1878 |
+
\let\tikz@transform=\pgfutil@empty%
|
| 1879 |
+
\tikzset{solid,shift only,every mark}%
|
| 1880 |
+
\tikz@options%
|
| 1881 |
+
\ifx\tikz@plot@mark\pgfutil@empty%
|
| 1882 |
+
\pgfplothandlerdiscard
|
| 1883 |
+
\else
|
| 1884 |
+
\pgfplothandlermark{\tikz@transform\pgfuseplotmark{\tikz@plot@mark}}
|
| 1885 |
+
\fi
|
| 1886 |
+
}%
|
| 1887 |
+
|
| 1888 |
+
|
| 1889 |
+
|
| 1890 |
+
|
| 1891 |
+
|
| 1892 |
+
\tikzdatavisualizationset{
|
| 1893 |
+
visualize as rectangles/.style={
|
| 1894 |
+
new object={
|
| 1895 |
+
when=before survey,
|
| 1896 |
+
store=/tikz/data visualization/visualizers/#1,
|
| 1897 |
+
class=rectangle visualizer,
|
| 1898 |
+
arg1=#1
|
| 1899 |
+
},
|
| 1900 |
+
/data point/#1/attribute 1/.initial=x,
|
| 1901 |
+
/data point/#1/attribute 2/.initial=y,
|
| 1902 |
+
new visualizer={#1}{%
|
| 1903 |
+
every path/.style={draw},
|
| 1904 |
+
semithick,
|
| 1905 |
+
color=visualizer color,
|
| 1906 |
+
/tikz/data visualization/every visualize as rectangles/.try,
|
| 1907 |
+
}{visualizer in legend=\tikz@dv@legend@entry@as@rectangle},
|
| 1908 |
+
#1={}
|
| 1909 |
+
},
|
| 1910 |
+
visualize as rectangles/.default=rectangles,
|
| 1911 |
+
visualizer options/.cd,
|
| 1912 |
+
attribute 1/.style={/data point/\tikz@visualizer/attribute 1={#1}},
|
| 1913 |
+
attribute 2/.style={/data point/\tikz@visualizer/attribute 2={#1}},
|
| 1914 |
+
}%
|
| 1915 |
+
|
| 1916 |
+
|
| 1917 |
+
|
| 1918 |
+
\def\tikz@dv@legend@entry@as@rectangle{
|
| 1919 |
+
\pgfkeysgetvalue{/data point/set}{\tikz@visualizer}
|
| 1920 |
+
\pgfkeysvalueof{/data point/\tikz@visualizer/execute at begin}
|
| 1921 |
+
\pgfplothandlerpolygon
|
| 1922 |
+
\pgfplotstreamstart
|
| 1923 |
+
\pgfkeysgetvalue{/tikz/data visualization/legend entry options/label in legend rectangle coordinates}{\tikz@dv@temp}
|
| 1924 |
+
\foreach \coordinate in \tikz@dv@temp
|
| 1925 |
+
{ \pgfplotstreampoint{\expandafter\tikz@scan@one@point\expandafter\pgfutil@firstofone\coordinate} }
|
| 1926 |
+
\pgfplotstreamend
|
| 1927 |
+
\pgfkeysvalueof{/data point/\tikz@visualizer/execute at end}
|
| 1928 |
+
}%
|
| 1929 |
+
|
| 1930 |
+
|
| 1931 |
+
|
| 1932 |
+
|
| 1933 |
+
|
| 1934 |
+
|
| 1935 |
+
\pgfkeysdef{/handlers/.style sheet}{%
|
| 1936 |
+
\edef\pgf@marshal{
|
| 1937 |
+
\noexpand \pgfoonew \noexpand\tikz@dv@temp=new style attribute(\pgfkeyscurrentpath,#1)
|
| 1938 |
+
\noexpand \tikz@dv@temp.default connects()
|
| 1939 |
+
}
|
| 1940 |
+
\pgf@marshal
|
| 1941 |
+
}%
|
| 1942 |
+
|
| 1943 |
+
\tikzset{
|
| 1944 |
+
visualizer color/.code=\colorlet{visualizer color}{#1},
|
| 1945 |
+
visualizer color=black
|
| 1946 |
+
}%
|
| 1947 |
+
|
| 1948 |
+
|
| 1949 |
+
\pgfdvdeclarestylesheet{vary thickness}
|
| 1950 |
+
{
|
| 1951 |
+
default style/.style={line width={0.3pt+(#1)*0.2pt}}
|
| 1952 |
+
}%
|
| 1953 |
+
|
| 1954 |
+
\pgfdvdeclarestylesheet{vary dashing}
|
| 1955 |
+
{
|
| 1956 |
+
default style/.style=solid,
|
| 1957 |
+
1/.style=solid,
|
| 1958 |
+
2/.style={dash pattern=on 5\pgflinewidth off 2\pgflinewidth},
|
| 1959 |
+
3/.style={dash pattern=on 1.5\pgflinewidth off 1.5\pgflinewidth},
|
| 1960 |
+
4/.style={dash pattern=on 5\pgflinewidth off 1.5\pgflinewidth on 1.5\pgflinewidth off 1.5\pgflinewidth},
|
| 1961 |
+
5/.style={dash pattern=on 10\pgflinewidth off 3\pgflinewidth},
|
| 1962 |
+
6/.style={dash pattern=on 10\pgflinewidth off 2\pgflinewidth on 2\pgflinewidth off 2\pgflinewidth},
|
| 1963 |
+
7/.style={dash pattern=on 8\pgflinewidth off 2\pgflinewidth on
|
| 1964 |
+
1.5\pgflinewidth off 1.5\pgflinewidth on 1.5\pgflinewidth off
|
| 1965 |
+
1.5\pgflinewidth on 1.5\pgflinewidth off 1.5\pgflinewidth}
|
| 1966 |
+
}%
|
| 1967 |
+
|
| 1968 |
+
\pgfdvdeclarestylesheet{vary thickness and dashing}
|
| 1969 |
+
{
|
| 1970 |
+
default style/.style=thin,
|
| 1971 |
+
1/.style=thin,
|
| 1972 |
+
2/.style=thick,
|
| 1973 |
+
3/.style={
|
| 1974 |
+
dash pattern=on 5\pgflinewidth off 2\pgflinewidth,
|
| 1975 |
+
thin
|
| 1976 |
+
},
|
| 1977 |
+
4/.style={
|
| 1978 |
+
dash pattern=on 5\pgflinewidth off 2\pgflinewidth,
|
| 1979 |
+
thick,
|
| 1980 |
+
},
|
| 1981 |
+
5/.style={
|
| 1982 |
+
dash pattern=on 1.5\pgflinewidth off 1.5\pgflinewidth,
|
| 1983 |
+
thin
|
| 1984 |
+
},
|
| 1985 |
+
6/.style={
|
| 1986 |
+
dash pattern=on 1.5\pgflinewidth off 1.5\pgflinewidth,
|
| 1987 |
+
thick
|
| 1988 |
+
},
|
| 1989 |
+
7/.style={
|
| 1990 |
+
dash pattern=on 5\pgflinewidth off 1.5\pgflinewidth on
|
| 1991 |
+
1.5\pgflinewidth off 1.5\pgflinewidth,
|
| 1992 |
+
thin
|
| 1993 |
+
},
|
| 1994 |
+
8/.style={
|
| 1995 |
+
dash pattern=on 5\pgflinewidth off 1.5\pgflinewidth on
|
| 1996 |
+
1.5\pgflinewidth off 1.5\pgflinewidth,
|
| 1997 |
+
thick
|
| 1998 |
+
},
|
| 1999 |
+
9/.style={
|
| 2000 |
+
dash pattern=on 10\pgflinewidth off 3\pgflinewidth,
|
| 2001 |
+
thin
|
| 2002 |
+
},
|
| 2003 |
+
10/.style={
|
| 2004 |
+
dash pattern=on 10\pgflinewidth off 3\pgflinewidth,
|
| 2005 |
+
thick
|
| 2006 |
+
},
|
| 2007 |
+
11/.style={
|
| 2008 |
+
dash pattern=on 10\pgflinewidth off 2\pgflinewidth on
|
| 2009 |
+
2\pgflinewidth off 2\pgflinewidth,
|
| 2010 |
+
thin
|
| 2011 |
+
},
|
| 2012 |
+
12/.style={
|
| 2013 |
+
dash pattern=on 10\pgflinewidth off 2\pgflinewidth on
|
| 2014 |
+
2\pgflinewidth off 2\pgflinewidth,
|
| 2015 |
+
thick
|
| 2016 |
+
},
|
| 2017 |
+
13/.style={
|
| 2018 |
+
dash pattern=on 8\pgflinewidth off 2\pgflinewidth on
|
| 2019 |
+
1.5\pgflinewidth off 1.5\pgflinewidth on 1.5\pgflinewidth off
|
| 2020 |
+
1.5\pgflinewidth on 1.5\pgflinewidth off 1.5\pgflinewidth,
|
| 2021 |
+
thin
|
| 2022 |
+
},
|
| 2023 |
+
14/.style={
|
| 2024 |
+
dash pattern=on 8\pgflinewidth off 2\pgflinewidth on
|
| 2025 |
+
1.5\pgflinewidth off 1.5\pgflinewidth on 1.5\pgflinewidth off
|
| 2026 |
+
1.5\pgflinewidth on 1.5\pgflinewidth off 1.5\pgflinewidth,
|
| 2027 |
+
thick
|
| 2028 |
+
}
|
| 2029 |
+
}%
|
| 2030 |
+
|
| 2031 |
+
|
| 2032 |
+
\pgfdvdeclarestylesheet{strong colors}
|
| 2033 |
+
{
|
| 2034 |
+
default style/.style={visualizer color=black},
|
| 2035 |
+
1/.style={visualizer color=black},
|
| 2036 |
+
2/.style={visualizer color=red!80!black},
|
| 2037 |
+
3/.style={visualizer color=blue!80!black},
|
| 2038 |
+
4/.style={visualizer color=green!60!black},
|
| 2039 |
+
5/.style={visualizer color=orange!80!black},
|
| 2040 |
+
6/.style={visualizer color=black!60}
|
| 2041 |
+
}%
|
| 2042 |
+
|
| 2043 |
+
|
| 2044 |
+
\pgfdvdeclarestylesheet{cross marks}
|
| 2045 |
+
{
|
| 2046 |
+
default style/.style={mark=x,every mark/.append style=thin,mark size=2pt},
|
| 2047 |
+
1/.style={mark=x,every mark/.append style=thin,mark size=2pt},
|
| 2048 |
+
2/.style={mark=+,every mark/.append style=thin,mark size=2pt},
|
| 2049 |
+
3/.style={mark=Mercedes star,every mark/.append style=thin,mark size=2pt},
|
| 2050 |
+
4/.style={mark=Mercedes star flipped,every mark/.append style=thin,mark size=2pt},
|
| 2051 |
+
5/.style={mark=star,every mark/.append style=thin,mark size=2pt},
|
| 2052 |
+
6/.style={mark=10-pointed star,every mark/.append style={line width=.3pt,mark size=1.8pt}}
|
| 2053 |
+
}%
|
| 2054 |
+
|
| 2055 |
+
|
| 2056 |
+
\pgfdvdeclarestylesheet{* mark}
|
| 2057 |
+
{
|
| 2058 |
+
default style/.style={mark=*,every mark/.append style=thin,mark size=1.4pt},
|
| 2059 |
+
}%
|
| 2060 |
+
|
| 2061 |
+
\pgfdvdeclarestylesheet{dot mark}
|
| 2062 |
+
{
|
| 2063 |
+
default style/.style={mark=*,every mark/.append style=thin,mark size=0.6pt},
|
| 2064 |
+
}%
|
| 2065 |
+
|
| 2066 |
+
|
| 2067 |
+
\pgfdvdeclarestylesheet{o mark}
|
| 2068 |
+
{
|
| 2069 |
+
default style/.style={mark=o,every mark/.append style=thin,mark size=1.4pt},
|
| 2070 |
+
}%
|
| 2071 |
+
|
| 2072 |
+
|
| 2073 |
+
|
| 2074 |
+
|
| 2075 |
+
\def\tikzdvdeclarestylesheetcolorseries#1#2#3#4{%
|
| 2076 |
+
\definecolorseries{tikzdvcolorseries#1}{#2}{step}[#2]{#3}{#4}%
|
| 2077 |
+
\resetcolorseries{tikzdvcolorseries#1}%
|
| 2078 |
+
\pgfdvdeclarestylesheet{#1}
|
| 2079 |
+
{
|
| 2080 |
+
default style/.style={
|
| 2081 |
+
/utils/exec=\colorlet{tikz@dv@temp}[rgb]{tikzdvcolorseries#1!![##1]},
|
| 2082 |
+
visualizer color=tikz@dv@temp
|
| 2083 |
+
}
|
| 2084 |
+
}%
|
| 2085 |
+
}%
|
| 2086 |
+
|
| 2087 |
+
\tikzdvdeclarestylesheetcolorseries{vary hue}{hsb}{.4,0.9,0.8}{.213,0,0}%
|
| 2088 |
+
\tikzdvdeclarestylesheetcolorseries{shades of blue}{hsb}{.65,1.4,1}{0,-.4,-.0}%
|
| 2089 |
+
\tikzdvdeclarestylesheetcolorseries{shades of red}{hsb}{0,1.4,1}{0,-.4,-.0}%
|
| 2090 |
+
\tikzdvdeclarestylesheetcolorseries{gray scale}{hsb}{0,0,-.34}{0,0,.34}%
|
| 2091 |
+
|
| 2092 |
+
|
| 2093 |
+
|
| 2094 |
+
|
| 2095 |
+
|
| 2096 |
+
|
| 2097 |
+
|
| 2098 |
+
|
| 2099 |
+
\tikzdatavisualizationset{
|
| 2100 |
+
xy Cartesian/.style={
|
| 2101 |
+
new Cartesian axis=x axis,
|
| 2102 |
+
x axis={attribute=x,unit vector={(1pt,0cm)}},
|
| 2103 |
+
new Cartesian axis=y axis,
|
| 2104 |
+
y axis={attribute=y,unit vector={(0cm,1pt)}}
|
| 2105 |
+
},
|
| 2106 |
+
Xy axes/.style={x axis={#1},y axis={#1}},
|
| 2107 |
+
uv Cartesian/.style={
|
| 2108 |
+
new Cartesian axis=u axis,
|
| 2109 |
+
u axis={attribute=u,unit vector={(1pt,0cm)}},
|
| 2110 |
+
new Cartesian axis=v axis,
|
| 2111 |
+
v axis={attribute=v,unit vector={(0cm,1pt)}}
|
| 2112 |
+
},
|
| 2113 |
+
uv axes/.style={u axis={#1},v axis={#1}},
|
| 2114 |
+
}%
|
| 2115 |
+
|
| 2116 |
+
\tikzdatavisualizationset{
|
| 2117 |
+
xyz Cartesian cabinet/.style={
|
| 2118 |
+
xy Cartesian,
|
| 2119 |
+
new Cartesian axis=z axis,
|
| 2120 |
+
z axis={attribute=z,unit vector={(-0.353553pt,-0.353553pt)}}
|
| 2121 |
+
},
|
| 2122 |
+
xyz axes/.style={x axis={#1},y axis={#1},z axis={#1}},
|
| 2123 |
+
uvw Cartesian cabinet/.style={
|
| 2124 |
+
uv Cartesian,
|
| 2125 |
+
new Cartesian axis=w axis,
|
| 2126 |
+
w axis={attribute=w,unit vector={(-0.353553pt,-0.353553pt)}}
|
| 2127 |
+
}
|
| 2128 |
+
uvw axes/.style={u axis={#1},v axis={#1},w axis={#1}},
|
| 2129 |
+
}%
|
| 2130 |
+
|
| 2131 |
+
|
| 2132 |
+
|
| 2133 |
+
|
| 2134 |
+
\tikzdatavisualizationset{
|
| 2135 |
+
new axis system/.style n args={4}{
|
| 2136 |
+
#1/.style={
|
| 2137 |
+
#2,
|
| 2138 |
+
#1/.cd,
|
| 2139 |
+
#3,
|
| 2140 |
+
/tikz/data visualization/every #1/.try,
|
| 2141 |
+
##1,
|
| 2142 |
+
/tikz/data visualization/.cd,
|
| 2143 |
+
#4,
|
| 2144 |
+
}
|
| 2145 |
+
}
|
| 2146 |
+
}%
|
| 2147 |
+
|
| 2148 |
+
|
| 2149 |
+
|
| 2150 |
+
\tikzdatavisualizationset{
|
| 2151 |
+
new axis system={school book axes}{%
|
| 2152 |
+
xy Cartesian,
|
| 2153 |
+
x axis={
|
| 2154 |
+
include value=0,
|
| 2155 |
+
scaling=0 at 0 and \pgfkeysvalueof{/tikz/data visualization/school book axes/unit} at 1cm,
|
| 2156 |
+
visualize axis={y axis={goto=0},style=->,padded},
|
| 2157 |
+
visualize ticks={common={y axis={goto=0},direction axis=y axis},
|
| 2158 |
+
major={tick text at low,
|
| 2159 |
+
options at=0 as [{style={draw=none},no tick text}]
|
| 2160 |
+
}},
|
| 2161 |
+
visualize grid={common={direction axis=y axis,padded}},
|
| 2162 |
+
ticks={step=\pgfkeysvalueof{/tikz/data visualization/school book axes/unit}},
|
| 2163 |
+
padding=0.75em
|
| 2164 |
+
},
|
| 2165 |
+
y axis={
|
| 2166 |
+
include value=0,
|
| 2167 |
+
scaling=0 at 0 and \pgfkeysvalueof{/tikz/data visualization/school book axes/unit} at 1cm,
|
| 2168 |
+
visualize axis={x axis={goto=0},style=->,padded},
|
| 2169 |
+
visualize ticks={
|
| 2170 |
+
common={x axis={goto=0},direction axis=x axis},
|
| 2171 |
+
major={tick text at low,options at=0 as [{high=0,low=0,style={draw=none},node style={anchor=north east}}]}
|
| 2172 |
+
},
|
| 2173 |
+
visualize grid={common={direction axis=x axis,padded}},
|
| 2174 |
+
ticks={step=\pgfkeysvalueof{/tikz/data visualization/school book axes/unit}},
|
| 2175 |
+
padding=0.75em
|
| 2176 |
+
}
|
| 2177 |
+
}{%
|
| 2178 |
+
standard labels
|
| 2179 |
+
}{%
|
| 2180 |
+
@make labels
|
| 2181 |
+
},
|
| 2182 |
+
school book axes/.cd,
|
| 2183 |
+
standard labels/.style={
|
| 2184 |
+
/tikz/data visualization/@make labels/.style={
|
| 2185 |
+
x axis={
|
| 2186 |
+
visualize label={
|
| 2187 |
+
x axis={goto=padded max, anchor at max},
|
| 2188 |
+
y axis={goto=0}
|
| 2189 |
+
}
|
| 2190 |
+
},
|
| 2191 |
+
y axis={
|
| 2192 |
+
visualize label={
|
| 2193 |
+
y axis={goto=padded max, anchor at max},
|
| 2194 |
+
x axis={goto=0}
|
| 2195 |
+
}
|
| 2196 |
+
}
|
| 2197 |
+
}
|
| 2198 |
+
},
|
| 2199 |
+
unit/.initial=1,
|
| 2200 |
+
}%
|
| 2201 |
+
|
| 2202 |
+
|
| 2203 |
+
|
| 2204 |
+
|
| 2205 |
+
|
| 2206 |
+
\tikzdatavisualizationset{
|
| 2207 |
+
new axis system={scientific axes}{%
|
| 2208 |
+
xy Cartesian,
|
| 2209 |
+
every axis/.append style={style={draw=black!50}},
|
| 2210 |
+
every ticks/.append style={style={draw=black!50}},
|
| 2211 |
+
x axis={
|
| 2212 |
+
length=\pgfkeysvalueof{/tikz/data visualization/scientific axes/width},
|
| 2213 |
+
ticks
|
| 2214 |
+
},
|
| 2215 |
+
y axis={
|
| 2216 |
+
length=\pgfkeysvalueof{/tikz/data visualization/scientific axes/height},
|
| 2217 |
+
ticks
|
| 2218 |
+
}
|
| 2219 |
+
}{%
|
| 2220 |
+
standard labels,
|
| 2221 |
+
outer ticks,
|
| 2222 |
+
}{%
|
| 2223 |
+
@make axes,
|
| 2224 |
+
@make labels
|
| 2225 |
+
},
|
| 2226 |
+
scientific axes/.cd,
|
| 2227 |
+
width/.initial=5cm,
|
| 2228 |
+
height/.initial=0.618*\pgfkeysvalueof{/tikz/data visualization/scientific axes/width},%
|
| 2229 |
+
outer ticks/.style={
|
| 2230 |
+
/tikz/data visualization/@make axes/.style={
|
| 2231 |
+
x axis={
|
| 2232 |
+
visualize ticks={common={y axis={goto=padded min},direction axis=y axis,high=0pt},major={tick text at low}},
|
| 2233 |
+
visualize ticks={common={y axis={goto=padded max},direction axis=y axis,low=0pt}},
|
| 2234 |
+
visualize axis={y axis={goto=padded min},padded},
|
| 2235 |
+
visualize axis={y axis={goto=padded max},padded},
|
| 2236 |
+
visualize grid={common={direction axis=y axis,padded}},
|
| 2237 |
+
},
|
| 2238 |
+
y axis={
|
| 2239 |
+
visualize ticks={common={x axis={goto=padded min},direction axis=x axis,high=0pt},major={tick text at low}},
|
| 2240 |
+
visualize ticks={common={x axis={goto=padded max},direction axis=x axis,low=0pt}},
|
| 2241 |
+
visualize axis={x axis={goto=padded min},padded},
|
| 2242 |
+
visualize axis={x axis={goto=padded max},padded},
|
| 2243 |
+
visualize grid={common={direction axis=x axis,padded}},
|
| 2244 |
+
}
|
| 2245 |
+
}
|
| 2246 |
+
},
|
| 2247 |
+
inner ticks/.style={
|
| 2248 |
+
/tikz/data visualization/@make axes/.style={
|
| 2249 |
+
x axis={
|
| 2250 |
+
visualize ticks={common={y axis={goto=padded min},direction axis=y axis,low=0pt},major={tick text at low}},
|
| 2251 |
+
visualize ticks={common={y axis={goto=padded max},direction axis=y axis,high=0pt}},
|
| 2252 |
+
visualize axis={y axis={goto=padded min},padded},
|
| 2253 |
+
visualize axis={y axis={goto=padded max},padded},
|
| 2254 |
+
visualize grid={common={direction axis=y axis,padded}},
|
| 2255 |
+
},
|
| 2256 |
+
y axis={
|
| 2257 |
+
visualize ticks={common={x axis={goto=padded min},direction axis=x axis,low=0pt},major={tick text at low}},
|
| 2258 |
+
visualize ticks={common={x axis={goto=padded max},direction axis=x axis,high=0pt}},
|
| 2259 |
+
visualize axis={x axis={goto=padded min},padded},
|
| 2260 |
+
visualize axis={x axis={goto=padded max},padded},
|
| 2261 |
+
visualize grid={common={direction axis=x axis,padded}},
|
| 2262 |
+
}
|
| 2263 |
+
}
|
| 2264 |
+
},
|
| 2265 |
+
clean/.style={
|
| 2266 |
+
/tikz/data visualization/@make axes/.style={
|
| 2267 |
+
x axis={
|
| 2268 |
+
visualize ticks={common={y axis={goto=padded min},direction axis=y axis,high=0pt},major={tick text at low}},
|
| 2269 |
+
visualize axis={y axis={goto=padded min}},
|
| 2270 |
+
visualize axis={y axis={goto=min}, style={black!25, line cap=rect}},
|
| 2271 |
+
visualize axis={y axis={goto=max}, style={black!25, line cap=rect}},
|
| 2272 |
+
visualize grid={common={direction axis=y axis}},
|
| 2273 |
+
padding=.5em,
|
| 2274 |
+
},
|
| 2275 |
+
y axis={
|
| 2276 |
+
visualize ticks={common={x axis={goto=padded min},direction axis=x axis,high=0pt},major={tick text at low}},
|
| 2277 |
+
visualize axis={x axis={goto=padded min}},
|
| 2278 |
+
visualize axis={x axis={goto=min}, style={black!25, line cap=rect}},
|
| 2279 |
+
visualize axis={x axis={goto=max}, style={black!25, line cap=rect}},
|
| 2280 |
+
visualize grid={common={direction axis=x axis}},
|
| 2281 |
+
padding=.5em
|
| 2282 |
+
},
|
| 2283 |
+
}
|
| 2284 |
+
},
|
| 2285 |
+
standard labels/.style={
|
| 2286 |
+
/tikz/data visualization/@make labels/.style={
|
| 2287 |
+
x axis={
|
| 2288 |
+
visualize label={
|
| 2289 |
+
x axis={goto pos=.5},
|
| 2290 |
+
node style={
|
| 2291 |
+
at={(0,0 |- data visualization bounding box.south)},
|
| 2292 |
+
below
|
| 2293 |
+
}
|
| 2294 |
+
}
|
| 2295 |
+
},
|
| 2296 |
+
y axis={
|
| 2297 |
+
visualize label={
|
| 2298 |
+
y axis={goto pos=.5},
|
| 2299 |
+
node style={
|
| 2300 |
+
at={(0,0 -| data visualization bounding box.west)},
|
| 2301 |
+
rotate=90,
|
| 2302 |
+
above}
|
| 2303 |
+
}
|
| 2304 |
+
}
|
| 2305 |
+
}
|
| 2306 |
+
},
|
| 2307 |
+
upright labels/.style={
|
| 2308 |
+
/tikz/data visualization/@make labels/.style={
|
| 2309 |
+
x axis={
|
| 2310 |
+
visualize label={
|
| 2311 |
+
x axis={goto pos=.5},
|
| 2312 |
+
node style={
|
| 2313 |
+
at={(0,0 |- data visualization bounding box.south)},
|
| 2314 |
+
below
|
| 2315 |
+
}
|
| 2316 |
+
}
|
| 2317 |
+
},
|
| 2318 |
+
y axis={
|
| 2319 |
+
visualize label={
|
| 2320 |
+
y axis={goto pos=.5},
|
| 2321 |
+
node style={
|
| 2322 |
+
at={(0,0 -| data visualization bounding box.west)},
|
| 2323 |
+
left
|
| 2324 |
+
}
|
| 2325 |
+
}
|
| 2326 |
+
}
|
| 2327 |
+
}
|
| 2328 |
+
},
|
| 2329 |
+
end labels/.style={
|
| 2330 |
+
/tikz/data visualization/@make labels/.style={
|
| 2331 |
+
x axis={
|
| 2332 |
+
visualize label={
|
| 2333 |
+
y axis={goto=padded min},
|
| 2334 |
+
node style={
|
| 2335 |
+
at={(0,0 -| data visualization bounding box.east)},
|
| 2336 |
+
right
|
| 2337 |
+
}
|
| 2338 |
+
}
|
| 2339 |
+
},
|
| 2340 |
+
y axis={
|
| 2341 |
+
visualize label={
|
| 2342 |
+
x axis={goto=padded min},
|
| 2343 |
+
node style={
|
| 2344 |
+
at={(0,0 |- data visualization bounding box.north)},
|
| 2345 |
+
above
|
| 2346 |
+
}
|
| 2347 |
+
}
|
| 2348 |
+
}
|
| 2349 |
+
}
|
| 2350 |
+
}
|
| 2351 |
+
}%
|
| 2352 |
+
|
| 2353 |
+
|
| 2354 |
+
|
| 2355 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.formats.functions.code.tex
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibrarydatavisualization.formats.functions.code.tex}
|
| 3 |
+
|
| 4 |
+
\usetikzlibrary{datavisualization}%
|
| 5 |
+
\usepgflibrary{datavisualization.formats.functions}%
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.polar.code.tex
ADDED
|
@@ -0,0 +1,527 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibrarydatavisualization.polar.code.tex}
|
| 3 |
+
|
| 4 |
+
\usetikzlibrary{datavisualization}%
|
| 5 |
+
\usepgflibrary{datavisualization.polar}%
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
\tikzdatavisualizationset{%
|
| 9 |
+
new polar axes/.style 2 args={
|
| 10 |
+
new axis base=#1,
|
| 11 |
+
#1={attribute=angle},
|
| 12 |
+
new axis base=#2,
|
| 13 |
+
#2={attribute=radius},
|
| 14 |
+
#2/scaling/default=0 at 0 and 1 at 1cm,
|
| 15 |
+
new object={
|
| 16 |
+
store=/tikz/data visualization/#1/polar transformer,
|
| 17 |
+
class=polar transformer,
|
| 18 |
+
arg1/.expanded=\pgfkeysvalueof{/tikz/data visualization/angle axis/attribute}/scaled,
|
| 19 |
+
arg2/.expanded=\pgfkeysvalueof{/tikz/data visualization/radius axis/attribute}/scaled,
|
| 20 |
+
arg3 from key=/tikz/data visualization/#1/unit vector 0 degrees,
|
| 21 |
+
arg4 from key=/tikz/data visualization/#1/unit vector 90 degrees
|
| 22 |
+
},
|
| 23 |
+
/tikz/data visualization/#1/unit vector 0 degrees/.initial=\pgfqpoint{1pt}{0pt},
|
| 24 |
+
/tikz/data visualization/#1/unit vector 90 degrees/.initial=\pgfqpoint{0pt}{1pt},
|
| 25 |
+
},
|
| 26 |
+
new polar axes/.default={angle axis}{radius axis}
|
| 27 |
+
}%
|
| 28 |
+
\def\tikz@lib@dv@polar@a#1{
|
| 29 |
+
\pgfkeyssetvalue{\tikz@dv@axis/unit vector 0 degrees}{#1}
|
| 30 |
+
}%
|
| 31 |
+
\def\tikz@lib@dv@polar@b#1{
|
| 32 |
+
\pgfkeyssetvalue{\tikz@dv@axis/unit vector 90 degrees}{#1}
|
| 33 |
+
}%
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
\tikzset{
|
| 39 |
+
/tikz/data visualization/axis options/.cd,
|
| 40 |
+
unit vectors/.code 2 args={
|
| 41 |
+
\tikz@scan@one@point\tikz@lib@dv@polar@a#1
|
| 42 |
+
\tikz@scan@one@point\tikz@lib@dv@polar@b#2
|
| 43 |
+
},
|
| 44 |
+
degrees/.style={\tikz@dv@axis/scaling=0 at 0 and 1 at 1},
|
| 45 |
+
radians/.style={\tikz@dv@axis/scaling=0 at 0 and 0.03141592653589793 at 1.8},
|
| 46 |
+
}%
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
\tikzdatavisualizationset{
|
| 51 |
+
new axis system={scientific polar axes}{%
|
| 52 |
+
new polar axes,
|
| 53 |
+
angle axis={attribute=angle},
|
| 54 |
+
radius axis={attribute=radius},
|
| 55 |
+
every axis/.append style={style={draw=black!50}},
|
| 56 |
+
every ticks/.append style={style={draw=black!50}},
|
| 57 |
+
}{%
|
| 58 |
+
0 to 360,%
|
| 59 |
+
outer ticks,
|
| 60 |
+
}{%
|
| 61 |
+
@make axes,
|
| 62 |
+
scientific polar axes/@setup axes,
|
| 63 |
+
/utils/exec={
|
| 64 |
+
\edef\pgf@marshal{\noexpand\tikzdatavisualizationset{\pgfkeysvalueof{/tikz/data visualization/@which visualize radius axis}/.list={\pgfkeysvalueof{/tikz/data visualization/\pgfkeysvalueof{/tikz/data visualization/@which radius axes at}}}}}
|
| 65 |
+
\pgf@marshal
|
| 66 |
+
},
|
| 67 |
+
@make labels
|
| 68 |
+
},
|
| 69 |
+
@which radius axes at/.initial=@inner radius axes at,
|
| 70 |
+
@which visualize radius axis/.initial=@visualize radius axis,
|
| 71 |
+
@inner radius axes at/.initial=,
|
| 72 |
+
@clean radius axes at/.initial=,
|
| 73 |
+
@visualize radius axis/.style 2 args={
|
| 74 |
+
radius axis={
|
| 75 |
+
visualize axis={angle axis={goto=#1},high=padded max,low=0},
|
| 76 |
+
visualize ticks={
|
| 77 |
+
common={angle axis={goto=#1}, direction axis=angle axis},
|
| 78 |
+
major={tick text at #2,
|
| 79 |
+
options at=0 as [{style={draw=none},no tick text}]
|
| 80 |
+
}
|
| 81 |
+
}
|
| 82 |
+
}
|
| 83 |
+
},
|
| 84 |
+
@visualize clean radius axis/.style n args={5}{
|
| 85 |
+
radius axis={
|
| 86 |
+
visualize axis={angle
|
| 87 |
+
axis={goto=#1},high=max,low=0,style={black!25,line cap=rect}},
|
| 88 |
+
visualize axis={angle
|
| 89 |
+
axis={goto=#1},high=max,low=0,style={line cap=rect,#4}},
|
| 90 |
+
visualize ticks={
|
| 91 |
+
style={#4},
|
| 92 |
+
common={angle axis={goto=#1}, direction axis=angle axis, #3=0},
|
| 93 |
+
major={tick text at #2,#5}
|
| 94 |
+
}
|
| 95 |
+
}
|
| 96 |
+
},
|
| 97 |
+
@visualize zero/.style={@inner visualize zero={#1}},
|
| 98 |
+
@clean visualize zero/.style={},
|
| 99 |
+
@inner visualize zero/.style={
|
| 100 |
+
radius axis={
|
| 101 |
+
visualize ticks={
|
| 102 |
+
common={angle axis={goto=0}, direction axis=angle axis},
|
| 103 |
+
major={tick text at low,low=0,high=0,at=0 as
|
| 104 |
+
[{style={draw=none},node style={anchor=#1}}]
|
| 105 |
+
}
|
| 106 |
+
}
|
| 107 |
+
}
|
| 108 |
+
},
|
| 109 |
+
@degrees/.style={
|
| 110 |
+
angle axis={degrees, ticks={step=15, tick suffix=$^\circ$, major={
|
| 111 |
+
options at=360 as [{style={draw=none},no tick text}],
|
| 112 |
+
options at=-180 as [{style={draw=none},no tick text}]}}}
|
| 113 |
+
},
|
| 114 |
+
@rad/.style={
|
| 115 |
+
angle axis={radians, ticks={
|
| 116 |
+
step=(pi/12),
|
| 117 |
+
node style={
|
| 118 |
+
/pgf/number format/frac,
|
| 119 |
+
/pgf/number format/frac shift={1}
|
| 120 |
+
},
|
| 121 |
+
tick typesetter/.code={%
|
| 122 |
+
\pgfmathsetmacro{\tikz@lib@dv@pol}{round(####1*3.819718634205488)/12}%
|
| 123 |
+
\pgfmathapproxequalto{\tikz@lib@dv@pol}{0}%
|
| 124 |
+
\ifdim\pgfmathresult pt=1.0pt%
|
| 125 |
+
$0$%
|
| 126 |
+
\else%
|
| 127 |
+
\pgfmathapproxequalto{\tikz@lib@dv@pol}{1}%
|
| 128 |
+
\ifdim\pgfmathresult pt=1.0pt%
|
| 129 |
+
$\pi$%
|
| 130 |
+
\else
|
| 131 |
+
\pgfmathapproxequalto{\tikz@lib@dv@pol}{-1}%
|
| 132 |
+
\ifdim\pgfmathresult pt=1.0pt%
|
| 133 |
+
$-\pi$%
|
| 134 |
+
\else%
|
| 135 |
+
\pgfmathprintnumber{\tikz@lib@dv@pol}$\pi$%
|
| 136 |
+
\fi%
|
| 137 |
+
\fi%
|
| 138 |
+
\fi%
|
| 139 |
+
},
|
| 140 |
+
major={
|
| 141 |
+
options at=6.2831985e0 as [{style={draw=none},no tick text}],
|
| 142 |
+
options at=6.2831192e0 as [{style={draw=none},no tick text}],
|
| 143 |
+
options at=6.2830794e0 as [{style={draw=none},no tick text}],
|
| 144 |
+
options at=6.2828787e0 as [{style={draw=none},no tick text}],
|
| 145 |
+
options at=6.2831598e0 as [{style={draw=none},no tick text}],
|
| 146 |
+
options at=-3.1415991e0 as [{style={draw=none},no tick text}],
|
| 147 |
+
options at=-3.1415802e0 as [{style={draw=none},no tick text}],
|
| 148 |
+
options at=-3.1415602e0 as [{style={draw=none},no tick text}],
|
| 149 |
+
options at=-3.14153961e0 as [{style={draw=none},no tick text}],
|
| 150 |
+
options at=-3.1414406e0 as [{style={draw=none},no tick text}],
|
| 151 |
+
}
|
| 152 |
+
}
|
| 153 |
+
}
|
| 154 |
+
},
|
| 155 |
+
@make labels/.style={},
|
| 156 |
+
}%
|
| 157 |
+
|
| 158 |
+
\tikzdatavisualizationset{
|
| 159 |
+
scientific polar axes/.cd,
|
| 160 |
+
outer ticks/.style={
|
| 161 |
+
/tikz/data visualization/@make axes/.style={
|
| 162 |
+
radius axis={
|
| 163 |
+
min value=0,
|
| 164 |
+
length=\pgfkeysvalueof{/tikz/data visualization/scientific polar axes/radius},
|
| 165 |
+
padding=0em,
|
| 166 |
+
ticks={few},
|
| 167 |
+
visualize grid={common={direction axis=angle axis,low=min,high=max}},
|
| 168 |
+
},
|
| 169 |
+
angle axis={
|
| 170 |
+
visualize axis={radius axis={goto=padded max},low=min,high=max},
|
| 171 |
+
visualize ticks={common={radius axis={goto=padded max},direction
|
| 172 |
+
axis=radius axis},common={low=0},major={tick text at high}},
|
| 173 |
+
visualize grid={common={direction axis=radius axis},low=0,high=padded max},
|
| 174 |
+
}
|
| 175 |
+
},
|
| 176 |
+
/tikz/data visualization/@which radius axes at=@inner radius axes at,
|
| 177 |
+
/tikz/data visualization/@which visualize radius axis=@visualize radius axis,
|
| 178 |
+
/tikz/data visualization/@visualize zero/.style={@inner visualize zero={##1}},
|
| 179 |
+
},
|
| 180 |
+
inner ticks/.style={
|
| 181 |
+
/tikz/data visualization/@make axes/.style={
|
| 182 |
+
radius axis={
|
| 183 |
+
min value=0,
|
| 184 |
+
length=\pgfkeysvalueof{/tikz/data visualization/scientific polar axes/radius},
|
| 185 |
+
padding=0em,
|
| 186 |
+
ticks={few},
|
| 187 |
+
visualize grid={common={direction axis=angle axis,low=min,high=max}},
|
| 188 |
+
},
|
| 189 |
+
angle axis={
|
| 190 |
+
visualize axis={radius axis={goto=padded max},low=min,high=max},
|
| 191 |
+
visualize ticks={common={radius axis={goto=padded max},direction
|
| 192 |
+
axis=radius axis},common={high=0},major={tick text at high}},
|
| 193 |
+
visualize grid={common={direction axis=radius axis},low=0,high=padded max},
|
| 194 |
+
}
|
| 195 |
+
},
|
| 196 |
+
/tikz/data visualization/@which radius axes at=@inner radius axes at,
|
| 197 |
+
/tikz/data visualization/@which visualize radius axis=@visualize radius axis,
|
| 198 |
+
/tikz/data visualization/@visualize zero/.style={@inner visualize zero={##1}},
|
| 199 |
+
},
|
| 200 |
+
clean/.style={
|
| 201 |
+
/tikz/data visualization/@make axes/.style={
|
| 202 |
+
radius axis={
|
| 203 |
+
min value=0,
|
| 204 |
+
length=\pgfkeysvalueof{/tikz/data visualization/scientific polar axes/radius},
|
| 205 |
+
padding=.5em,
|
| 206 |
+
ticks={few},
|
| 207 |
+
visualize grid={common={direction axis=angle axis,low=min,high=max}},
|
| 208 |
+
},
|
| 209 |
+
angle axis={
|
| 210 |
+
padding=.5em,
|
| 211 |
+
visualize axis={radius axis={goto=max}, style={black!25, line cap=rect},low=min,high=max},
|
| 212 |
+
visualize axis={radius axis={goto=padded max}, style={line cap=rect}, low=min,high=max},
|
| 213 |
+
visualize ticks={common={radius axis={goto=padded max}, direction axis=radius axis},common={low=0},major={tick text at high}},
|
| 214 |
+
visualize grid={common={direction axis=radius axis},low=0,high=max},
|
| 215 |
+
}
|
| 216 |
+
},
|
| 217 |
+
/tikz/data visualization/@which radius axes at=@clean radius axes at,
|
| 218 |
+
/tikz/data visualization/@which visualize radius axis=@visualize clean radius axis,
|
| 219 |
+
/tikz/data visualization/@visualize zero/.style={@clean visualize zero={##1}},
|
| 220 |
+
},
|
| 221 |
+
radius/.initial=3.25cm,
|
| 222 |
+
0 to pi half/.style={
|
| 223 |
+
@setup axes/.style={
|
| 224 |
+
angle axis={min value=0, max value=1.570796326794897},
|
| 225 |
+
@rad,
|
| 226 |
+
@visualize zero=north east,
|
| 227 |
+
@inner radius axes at={{0}{low},{1.570796326794897}{high}},
|
| 228 |
+
@clean radius axes at={%
|
| 229 |
+
{0}{low}{high}{yshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 230 |
+
{1.570796326794897}{high}{low}{xshift=-\pgfkeysvalueof{/tikz/data visualization/angle axis/padding max}}{}
|
| 231 |
+
}
|
| 232 |
+
}
|
| 233 |
+
},
|
| 234 |
+
0 to 90/.style={
|
| 235 |
+
@setup axes/.style={
|
| 236 |
+
angle axis={min value=0, max value=90},
|
| 237 |
+
@degrees,
|
| 238 |
+
@visualize zero=north east,
|
| 239 |
+
@inner radius axes at={{0}{low},{90}{high}},
|
| 240 |
+
@clean radius axes at={%
|
| 241 |
+
{0}{low}{high}{yshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 242 |
+
{90}{high}{low}{xshift=-\pgfkeysvalueof{/tikz/data visualization/angle axis/padding max}}{}
|
| 243 |
+
}
|
| 244 |
+
}
|
| 245 |
+
},
|
| 246 |
+
quadrant/.style={
|
| 247 |
+
@setup axes/.style={
|
| 248 |
+
angle axis={scaling=min at 0 and max at 90, ticks},
|
| 249 |
+
@visualize zero=north east,
|
| 250 |
+
@inner radius axes at={{min}{low},{max}{high}},
|
| 251 |
+
@clean radius axes at={%
|
| 252 |
+
{min}{low}{high}{yshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 253 |
+
{max}{high}{low}{xshift=-\pgfkeysvalueof{/tikz/data visualization/angle axis/padding max}}{}
|
| 254 |
+
}
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
quadrant clockwise/.style={
|
| 258 |
+
@setup axes/.style={
|
| 259 |
+
angle axis={scaling=min at 90 and max at 0, ticks},
|
| 260 |
+
@visualize zero=north east,
|
| 261 |
+
@inner radius axes at={{min}{low},{max}{high}},
|
| 262 |
+
@clean radius axes at={%
|
| 263 |
+
{max}{high}{low}{yshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 264 |
+
{min}{low}{high}{xshift=-\pgfkeysvalueof{/tikz/data visualization/angle axis/padding max}}{}
|
| 265 |
+
}
|
| 266 |
+
}
|
| 267 |
+
},
|
| 268 |
+
-pi half to 0/.style={
|
| 269 |
+
@setup axes/.style={
|
| 270 |
+
angle axis={min value=-1.570796326794897, max value=0},
|
| 271 |
+
@rad,
|
| 272 |
+
@visualize zero=south east,
|
| 273 |
+
@inner radius axes at={{-1.570796326794897}{low},{0}{high}},
|
| 274 |
+
@clean radius axes at={%
|
| 275 |
+
{-1.570796326794897}{low}{high}{xshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 276 |
+
{0}{high}{low}{yshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding max}}{}
|
| 277 |
+
}
|
| 278 |
+
}
|
| 279 |
+
},
|
| 280 |
+
-90 to 0/.style={
|
| 281 |
+
@setup axes/.style={
|
| 282 |
+
angle axis={min value=-90, max value=0},
|
| 283 |
+
@degrees,
|
| 284 |
+
@visualize zero=south east,
|
| 285 |
+
@inner radius axes at={{-90}{low},{0}{high}},
|
| 286 |
+
@clean radius axes at={%
|
| 287 |
+
{-90}{low}{high}{xshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 288 |
+
{0}{high}{low}{yshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding max}}{}
|
| 289 |
+
}
|
| 290 |
+
}
|
| 291 |
+
},
|
| 292 |
+
fourth quadrant/.style={
|
| 293 |
+
@setup axes/.style={
|
| 294 |
+
angle axis={scaling=min at -90 and max at 0, ticks},
|
| 295 |
+
@visualize zero=south east,
|
| 296 |
+
@inner radius axes at={{min}{low},{max}{high}},
|
| 297 |
+
@clean radius axes at={%
|
| 298 |
+
{min}{low}{high}{xshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 299 |
+
{max}{high}{low}{yshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding max}}{}
|
| 300 |
+
}
|
| 301 |
+
}
|
| 302 |
+
},
|
| 303 |
+
fourth quadrant clockwise/.style={
|
| 304 |
+
@setup axes/.style={
|
| 305 |
+
angle axis={scaling=min at 0 and max at -90, ticks},
|
| 306 |
+
@visualize zero=south east,
|
| 307 |
+
@inner radius axes at={{min}{low},{max}{high}},
|
| 308 |
+
@clean radius axes at={%
|
| 309 |
+
{max}{high}{low}{xshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 310 |
+
{min}{low}{high}{yshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding max}}{}
|
| 311 |
+
}
|
| 312 |
+
}
|
| 313 |
+
},
|
| 314 |
+
0 to pi/.style={
|
| 315 |
+
@setup axes/.style={
|
| 316 |
+
angle axis={min value=0, max value=3.141592653589793},
|
| 317 |
+
@rad,
|
| 318 |
+
@visualize zero=north,
|
| 319 |
+
@inner radius axes at={{0}{low},{1.570796326794897}{high},{3.141592653589793}{high}},
|
| 320 |
+
@clean radius axes at={%
|
| 321 |
+
{0}{low}{high}{yshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 322 |
+
{3.141592653589793}{high}{low}{yshift=-\pgfkeysvalueof{/tikz/data
|
| 323 |
+
visualization/angle axis/padding max}}{options at=0 as
|
| 324 |
+
[{style={draw=none}, no tick text}]}
|
| 325 |
+
}
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
0 to 180/.style={
|
| 329 |
+
@setup axes/.style={
|
| 330 |
+
angle axis={min value=0, max value=180},
|
| 331 |
+
@degrees,
|
| 332 |
+
@visualize zero=north,
|
| 333 |
+
@inner radius axes at={{0}{low},{90}{high},{180}{high}},
|
| 334 |
+
@clean radius axes at={%
|
| 335 |
+
{0}{low}{high}{yshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 336 |
+
{180}{high}{low}{yshift=-\pgfkeysvalueof{/tikz/data
|
| 337 |
+
visualization/angle axis/padding max}}{options at=0 as
|
| 338 |
+
[{style={draw=none}, no tick text}]}
|
| 339 |
+
}
|
| 340 |
+
}
|
| 341 |
+
},
|
| 342 |
+
upper half/.style={
|
| 343 |
+
@setup axes/.style={
|
| 344 |
+
angle axis={scaling=min at 0 and max at 180, ticks},
|
| 345 |
+
@visualize zero=north,
|
| 346 |
+
@inner radius axes at={{min}{low},{max}{high}},
|
| 347 |
+
@clean radius axes at={%
|
| 348 |
+
{min}{low}{high}{yshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 349 |
+
{max}{high}{low}{yshift=-\pgfkeysvalueof{/tikz/data
|
| 350 |
+
visualization/angle axis/padding max}}{options at=0 as
|
| 351 |
+
[{style={draw=none}, no tick text}]}
|
| 352 |
+
}
|
| 353 |
+
}
|
| 354 |
+
},
|
| 355 |
+
upper half clockwise/.style={
|
| 356 |
+
@setup axes/.style={
|
| 357 |
+
angle axis={scaling=min at 180 and max at 0, ticks},
|
| 358 |
+
@visualize zero=north,
|
| 359 |
+
@inner radius axes at={{min}{low},{max}{high}},
|
| 360 |
+
@clean radius axes at={%
|
| 361 |
+
{min}{low}{high}{yshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 362 |
+
{max}{high}{low}{yshift=-\pgfkeysvalueof{/tikz/data
|
| 363 |
+
visualization/angle axis/padding max}}{options at=0 as
|
| 364 |
+
[{style={draw=none}, no tick text}]}
|
| 365 |
+
}
|
| 366 |
+
}
|
| 367 |
+
},
|
| 368 |
+
lower half/.style={
|
| 369 |
+
@setup axes/.style={
|
| 370 |
+
angle axis={scaling=min at -180 and max at 0, ticks},
|
| 371 |
+
@visualize zero=south,
|
| 372 |
+
@inner radius axes at={{min}{low},{max}{high}},
|
| 373 |
+
@clean radius axes at={%
|
| 374 |
+
{min}{low}{high}{yshift=-\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 375 |
+
{max}{high}{low}{yshift=\pgfkeysvalueof{/tikz/data
|
| 376 |
+
visualization/angle axis/padding max}}{options at=0 as
|
| 377 |
+
[{style={draw=none}, no tick text}]}
|
| 378 |
+
}
|
| 379 |
+
}
|
| 380 |
+
},
|
| 381 |
+
lower half clockwise/.style={
|
| 382 |
+
@setup axes/.style={
|
| 383 |
+
angle axis={scaling=min at 0 and max at -180, ticks},
|
| 384 |
+
@visualize zero=south,
|
| 385 |
+
@inner radius axes at={{min}{low},{max}{high}},
|
| 386 |
+
@clean radius axes at={%
|
| 387 |
+
{min}{low}{high}{yshift=-\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 388 |
+
{max}{high}{low}{yshift=\pgfkeysvalueof{/tikz/data
|
| 389 |
+
visualization/angle axis/padding max}}{options at=0 as
|
| 390 |
+
[{style={draw=none}, no tick text}]}
|
| 391 |
+
}
|
| 392 |
+
}
|
| 393 |
+
},
|
| 394 |
+
-pi half to pi half/.style={
|
| 395 |
+
@setup axes/.style={
|
| 396 |
+
@rad,
|
| 397 |
+
angle axis={min value=-1.570796326794897, max value=1.570796326794897},
|
| 398 |
+
@visualize zero=east,
|
| 399 |
+
@inner radius axes at={{0}{low},{1.570796326794897}{low},{-1.570796326794897}{high}},
|
| 400 |
+
@clean radius axes at={%
|
| 401 |
+
{-1.570796326794897}{low}{high}{xshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 402 |
+
{1.570796326794897}{high}{low}{xshift=-\pgfkeysvalueof{/tikz/data
|
| 403 |
+
visualization/angle axis/padding max}}{options at=0 as
|
| 404 |
+
[{style={draw=none}, no tick text}]}
|
| 405 |
+
}
|
| 406 |
+
}
|
| 407 |
+
},
|
| 408 |
+
-90 to 90/.style={
|
| 409 |
+
@setup axes/.style={
|
| 410 |
+
angle axis={min value=-90, max value=90},
|
| 411 |
+
@degrees,
|
| 412 |
+
@visualize zero=east,
|
| 413 |
+
@inner radius axes at={{-90}{low},{0}{low},{90}{high}},
|
| 414 |
+
@clean radius axes at={%
|
| 415 |
+
{-90}{low}{high}{xshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 416 |
+
{90}{high}{low}{xshift=-\pgfkeysvalueof{/tikz/data
|
| 417 |
+
visualization/angle axis/padding max}}{options at=0 as
|
| 418 |
+
[{style={draw=none}, no tick text}]}
|
| 419 |
+
}
|
| 420 |
+
}
|
| 421 |
+
},
|
| 422 |
+
right half/.style={
|
| 423 |
+
@setup axes/.style={
|
| 424 |
+
angle axis={scaling=min at -90 and max at 90, ticks},
|
| 425 |
+
@visualize zero=east,
|
| 426 |
+
@inner radius axes at={{min}{low},{max}{high}},
|
| 427 |
+
@clean radius axes at={%
|
| 428 |
+
{min}{low}{high}{xshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 429 |
+
{max}{high}{low}{xshift=-\pgfkeysvalueof{/tikz/data
|
| 430 |
+
visualization/angle axis/padding max}}{options at=0 as
|
| 431 |
+
[{style={draw=none}, no tick text}]}
|
| 432 |
+
}
|
| 433 |
+
}
|
| 434 |
+
},
|
| 435 |
+
right half clockwise/.style={
|
| 436 |
+
@setup axes/.style={
|
| 437 |
+
angle axis={scaling=min at 90 and max at -90, ticks},
|
| 438 |
+
@visualize zero=east,
|
| 439 |
+
@inner radius axes at={{min}{low},{max}{high}},
|
| 440 |
+
@clean radius axes at={%
|
| 441 |
+
{min}{low}{high}{xshift=\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 442 |
+
{max}{high}{low}{xshift=-\pgfkeysvalueof{/tikz/data
|
| 443 |
+
visualization/angle axis/padding max}}{options at=0 as
|
| 444 |
+
[{style={draw=none}, no tick text}]}
|
| 445 |
+
}
|
| 446 |
+
}
|
| 447 |
+
},
|
| 448 |
+
left half/.style={
|
| 449 |
+
@setup axes/.style={
|
| 450 |
+
angle axis={scaling=min at 90 and max at 270, ticks},
|
| 451 |
+
@visualize zero=west,
|
| 452 |
+
@inner radius axes at={{min}{low},{max}{high}},
|
| 453 |
+
@clean radius axes at={%
|
| 454 |
+
{min}{low}{high}{xshift=-\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 455 |
+
{max}{high}{low}{xshift=\pgfkeysvalueof{/tikz/data
|
| 456 |
+
visualization/angle axis/padding max}}{options at=0 as
|
| 457 |
+
[{style={draw=none}, no tick text}]}
|
| 458 |
+
}
|
| 459 |
+
}
|
| 460 |
+
},
|
| 461 |
+
left half clockwise/.style={
|
| 462 |
+
@setup axes/.style={
|
| 463 |
+
angle axis={scaling=min at 270 and max at 90, ticks},
|
| 464 |
+
@visualize zero=west,
|
| 465 |
+
@inner radius axes at={{min}{low},{max}{high}},
|
| 466 |
+
@clean radius axes at={%
|
| 467 |
+
{min}{low}{high}{xshift=-\pgfkeysvalueof{/tikz/data visualization/angle axis/padding min}}{},%
|
| 468 |
+
{max}{high}{low}{xshift=\pgfkeysvalueof{/tikz/data
|
| 469 |
+
visualization/angle axis/padding max}}{options at=0 as
|
| 470 |
+
[{style={draw=none}, no tick text}]}
|
| 471 |
+
}
|
| 472 |
+
}
|
| 473 |
+
},
|
| 474 |
+
0 to 2pi/.style={
|
| 475 |
+
@setup axes/.style={
|
| 476 |
+
angle axis={min value=0, max value=6.283185307179586},
|
| 477 |
+
@rad,
|
| 478 |
+
@visualize zero=north east,
|
| 479 |
+
@inner radius axes at={{0}{low},{1.570796326794897}{high},{3.141592653589793}{high},{4.71238898038469}{low}},
|
| 480 |
+
@clean radius axes at={{0}{low}{high}{}{}}
|
| 481 |
+
}
|
| 482 |
+
},
|
| 483 |
+
-pi to pi/.style={
|
| 484 |
+
@setup axes/.style={
|
| 485 |
+
angle axis={min value=-3.141592653589793, max value=3.141592653589793},
|
| 486 |
+
@rad,
|
| 487 |
+
@visualize zero=north east,
|
| 488 |
+
@inner radius axes at={{0}{low},{1.570796326794897}{high},{3.141592653589793}{high},{-1.57079632679489}{low}},
|
| 489 |
+
@clean radius axes at={{0}{low}{high}{}{}}
|
| 490 |
+
}
|
| 491 |
+
},
|
| 492 |
+
0 to 360/.style={
|
| 493 |
+
@setup axes/.style={
|
| 494 |
+
angle axis={min value=0, max value=360},
|
| 495 |
+
@degrees,
|
| 496 |
+
@visualize zero=north east,
|
| 497 |
+
@inner radius axes at={{0}{low},{90}{high},{180}{high},{270}{low}},
|
| 498 |
+
@clean radius axes at={{0}{low}{high}{}{}}
|
| 499 |
+
}
|
| 500 |
+
},
|
| 501 |
+
-180 to 180/.style={
|
| 502 |
+
@setup axes/.style={
|
| 503 |
+
angle axis={min value=-180, max value=180},
|
| 504 |
+
@degrees,
|
| 505 |
+
@visualize zero=north east,
|
| 506 |
+
@inner radius axes at={{0}{low},{90}{high},{180}{high},{-90}{low}},
|
| 507 |
+
@clean radius axes at={{0}{low}{high}{}{}}
|
| 508 |
+
}
|
| 509 |
+
},
|
| 510 |
+
}%
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
|
| 516 |
+
\tikzset{
|
| 517 |
+
/tikz/data visualization/axis options/.cd,
|
| 518 |
+
percent/.style={\tikz@dv@axis/scaling=0 at 0 and 1 at 3.6},
|
| 519 |
+
full circle/.style={\tikz@dv@axis/scaling=min at 0 and max at 360},
|
| 520 |
+
half circle/.style={\tikz@dv@axis/scaling=min at 0 and max at 180},
|
| 521 |
+
quarter circle/.style={\tikz@dv@axis/scaling=min at 0 and max at 90}
|
| 522 |
+
}%
|
| 523 |
+
|
| 524 |
+
|
| 525 |
+
|
| 526 |
+
|
| 527 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.sparklines.code.tex
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibrarydatavisualization.sparklines.code.tex}
|
| 3 |
+
|
| 4 |
+
\usetikzlibrary{datavisualization}%
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
\tikzdatavisualizationset{
|
| 11 |
+
spark line/.style={
|
| 12 |
+
xy Cartesian,
|
| 13 |
+
x axis={
|
| 14 |
+
unit length={1pt}
|
| 15 |
+
},
|
| 16 |
+
y axis={
|
| 17 |
+
scaling={min at -0.2em and max at 0.8em}
|
| 18 |
+
},
|
| 19 |
+
new line plot,
|
| 20 |
+
every spark line plot/.try
|
| 21 |
+
}
|
| 22 |
+
}%
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/graphs/tikzlibrarygraphs.code.tex
ADDED
|
@@ -0,0 +1,2275 @@
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibrarygraphs.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
\def\tikzgraphsset{\pgfqkeys{/tikz/graphs}}%
|
| 7 |
+
|
| 8 |
+
\tikzgraphsset{
|
| 9 |
+
new ->/.code n args={4}{%
|
| 10 |
+
\path [->,every new ->/.try]
|
| 11 |
+
(#1\tikzgraphleftanchor)
|
| 12 |
+
edge[#3] #4
|
| 13 |
+
(#2\tikzgraphrightanchor);},
|
| 14 |
+
new --/.code n args={4}{
|
| 15 |
+
\path [-,every new --/.try]
|
| 16 |
+
(#1\tikzgraphleftanchor)
|
| 17 |
+
edge[#3] #4
|
| 18 |
+
(#2\tikzgraphrightanchor);},
|
| 19 |
+
new <->/.code n args={4}{
|
| 20 |
+
\path [<->,every new <->/.try]
|
| 21 |
+
(#1\tikzgraphleftanchor)
|
| 22 |
+
edge[#3] #4
|
| 23 |
+
(#2\tikzgraphrightanchor);},
|
| 24 |
+
new -!-/.code n args={4}{},
|
| 25 |
+
new <-/.code n args={4}{%
|
| 26 |
+
\path [<-,every new <-/.try]
|
| 27 |
+
(#1\tikzgraphleftanchor)
|
| 28 |
+
edge[#3] #4
|
| 29 |
+
(#2\tikzgraphrightanchor);
|
| 30 |
+
}
|
| 31 |
+
}%
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
\def\tikz@lib@graph@store@anchor#1#2{%
|
| 35 |
+
\def\tikz@temp{#1}%
|
| 36 |
+
\ifx\tikz@temp\pgfutil@empty%
|
| 37 |
+
\let#2\tikz@temp%
|
| 38 |
+
\else%
|
| 39 |
+
\def\tikz@temp{.#1}%
|
| 40 |
+
\let#2\tikz@temp%
|
| 41 |
+
\fi%
|
| 42 |
+
}%
|
| 43 |
+
|
| 44 |
+
\tikzgraphsset{
|
| 45 |
+
default edge kind/.initial=--,
|
| 46 |
+
--/.style={default edge kind=--},
|
| 47 |
+
->/.style={default edge kind=->},
|
| 48 |
+
<-/.style={default edge kind=<-},
|
| 49 |
+
<->/.style={default edge kind=<->},
|
| 50 |
+
-!-/.style={default edge kind=-!-},
|
| 51 |
+
default edge operator/.initial=matching and star,
|
| 52 |
+
left anchor/.code=\tikz@lib@graph@store@anchor{#1}{\tikzgraphleftanchor},
|
| 53 |
+
right anchor/.code=\tikz@lib@graph@store@anchor{#1}{\tikzgraphrightanchor},
|
| 54 |
+
left anchor=,
|
| 55 |
+
right anchor=
|
| 56 |
+
}%
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
\tikzgraphsset{
|
| 61 |
+
use existing nodes/.is if=tikz@lib@graph@all
|
| 62 |
+
}%
|
| 63 |
+
|
| 64 |
+
\tikzset{
|
| 65 |
+
new set/.code={
|
| 66 |
+
\expandafter\global\expandafter\let\csname tikz@lg@node@set #1\endcsname\pgfutil@empty%
|
| 67 |
+
},
|
| 68 |
+
set/.code={
|
| 69 |
+
\tikz@fig@mustbenamed%
|
| 70 |
+
\ifcsname tikz@lg@node@set #1\endcsname\else
|
| 71 |
+
\tikzerror{Undefined set `#1'}%
|
| 72 |
+
\fi
|
| 73 |
+
\expandafter\def\expandafter\tikz@alias\expandafter{\tikz@alias%
|
| 74 |
+
\expandafter\def\expandafter\pgf@temp\expandafter{\csname tikz@lg@node@set #1\endcsname}%
|
| 75 |
+
\expandafter\expandafter\expandafter\pgfutil@g@addto@macro\expandafter\pgf@temp\expandafter{\expandafter\tikz@lg@do\expandafter{\tikz@fig@name}}%
|
| 76 |
+
}%
|
| 77 |
+
},%
|
| 78 |
+
}%
|
| 79 |
+
|
| 80 |
+
\newif\iftikz@lib@graph@all
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
\tikzgraphsset{
|
| 84 |
+
simple/.code={
|
| 85 |
+
\iftikz@lib@graph@simple%
|
| 86 |
+
\else
|
| 87 |
+
\tikz@lib@graph@simpletrue%
|
| 88 |
+
\pgfkeysalso{operator=\tikz@lib@graph@simple@done}%
|
| 89 |
+
\fi%
|
| 90 |
+
},
|
| 91 |
+
multi/.code={
|
| 92 |
+
\tikz@lib@graph@simplefalse%
|
| 93 |
+
}
|
| 94 |
+
}%
|
| 95 |
+
|
| 96 |
+
\newif\iftikz@lib@graph@simple
|
| 97 |
+
|
| 98 |
+
\def\tikz@lib@graph@set@simple@edge#1#2#3#4#5{%
|
| 99 |
+
\ifcsname tikz@lg@e@#3@#2\endcsname%
|
| 100 |
+
\expandafter\global\expandafter\let\csname tikz@lg@e@#3@#2\endcsname\relax%
|
| 101 |
+
\fi%
|
| 102 |
+
\expandafter\gdef\csname tikz@lg@e@#2@#3\endcsname{\tikz@lib@graph@make@simple@edge{#1}{#2}{#3}{#4}{#5}}%
|
| 103 |
+
}%
|
| 104 |
+
|
| 105 |
+
\def\tikz@lib@graph@make@simple@edge#1#2#3#4#5{%
|
| 106 |
+
\pgfqkeys{/tikz/graphs}{new #1={#2}{#3}{#4}{#5}}%
|
| 107 |
+
}%
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
\def\tikz@lib@graph@simple@done{%
|
| 111 |
+
\tikz@lib@graph@pack@node@list%
|
| 112 |
+
{%
|
| 113 |
+
\let\tikz@lg@do\tikz@lib@graph@simple@node%
|
| 114 |
+
\tikz@lib@graph@node@list
|
| 115 |
+
}%
|
| 116 |
+
}%
|
| 117 |
+
|
| 118 |
+
\def\tikz@lib@graph@simple@node#1{%
|
| 119 |
+
{%
|
| 120 |
+
\def\tikz@lib@graph@simple@from@node{#1}%
|
| 121 |
+
\let\tikz@lg@do\tikz@lib@graph@simple@other@node%
|
| 122 |
+
\tikz@lib@graph@node@list%
|
| 123 |
+
}%
|
| 124 |
+
}%
|
| 125 |
+
|
| 126 |
+
\def\tikz@lib@graph@simple@other@node#1{%
|
| 127 |
+
\ifcsname tikz@lg@e@\tikz@lib@graph@simple@from@node @#1\endcsname%
|
| 128 |
+
\csname tikz@lg@e@\tikz@lib@graph@simple@from@node @#1\endcsname%
|
| 129 |
+
\expandafter\global\expandafter\let\csname tikz@lg@e@\tikz@lib@graph@simple@from@node @#1\endcsname\relax%
|
| 130 |
+
\fi%
|
| 131 |
+
}%
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
\tikzgraphsset{
|
| 136 |
+
@nodes styling/.style=,
|
| 137 |
+
nodes/.style={/tikz/graphs/@nodes styling/.append style={,#1}},
|
| 138 |
+
@edges styling/.initial=,
|
| 139 |
+
edges/.style={/tikz/graphs/@edges styling/.append={,#1}},
|
| 140 |
+
edge/.style={edges={#1}},
|
| 141 |
+
@edges node/.initial=,
|
| 142 |
+
edge node/.style={/tikz/graphs/@edges node/.append={#1}},
|
| 143 |
+
edge label/.style={/tikz/graphs/@edges node/.append={node[auto]{#1}}},
|
| 144 |
+
edge label'/.style={/tikz/graphs/@edges node/.append={node[auto,swap]{#1}}},
|
| 145 |
+
@operators/.initial=,
|
| 146 |
+
operator/.style={/tikz/graphs/@operators/.append={#1}},
|
| 147 |
+
@extra group options/.style=,
|
| 148 |
+
}%
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
\def\tikzgraphinvokeoperator#1{%
|
| 152 |
+
{%
|
| 153 |
+
\pgfkeyslet{/tikz/graphs/@operators}\pgfutil@empty%
|
| 154 |
+
\pgfkeys{/tikz/graphs/.cd,#1}%
|
| 155 |
+
\pgfkeysgetvalue{/tikz/graphs/@operators}\tikz@lib@graph@temp%
|
| 156 |
+
\global\let\tikz@lib@graph@temp\tikz@lib@graph@temp%
|
| 157 |
+
}%
|
| 158 |
+
\tikz@lib@graph@temp%
|
| 159 |
+
\global\let\tikz@lib@graph@temp\relax%
|
| 160 |
+
}%
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
\def\tikz@lib@graph@parser{%
|
| 165 |
+
\pgfutil@ifnextchar[{\tikz@lib@graph@parser@}{\tikz@lib@graph@parser@[]}%
|
| 166 |
+
}%
|
| 167 |
+
|
| 168 |
+
\def\tikz@lib@graph@parser@[#1]{%
|
| 169 |
+
\setbox\tikz@whichbox=\hbox\bgroup%
|
| 170 |
+
\unhbox\tikz@whichbox%
|
| 171 |
+
\hbox\bgroup
|
| 172 |
+
\bgroup%
|
| 173 |
+
\pgfinterruptpath%
|
| 174 |
+
\scope[graphs/.cd,@graph drawing setup/.try,@operators=,every graph/.try,#1]%
|
| 175 |
+
\begingroup%
|
| 176 |
+
\iftikz@graph@quick%
|
| 177 |
+
\expandafter\tikz@lib@graphs@parse@quick@graph%
|
| 178 |
+
\else%
|
| 179 |
+
\expandafter\tikz@lib@graphs@normal@main%
|
| 180 |
+
\fi%
|
| 181 |
+
}%
|
| 182 |
+
|
| 183 |
+
\long\def\tikz@lib@graphs@normal@main#1{%
|
| 184 |
+
\pgfkeysgetvalue{/tikz/graphs/@operators}\tikz@lib@graph@outer@operators%
|
| 185 |
+
\let\tikz@lib@graph@options\pgfutil@empty%
|
| 186 |
+
\let\tikz@lib@graph@node@list\pgfutil@empty%
|
| 187 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/depth}{0}%
|
| 188 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/width}{0}%
|
| 189 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/level}{0}%
|
| 190 |
+
\tikz@lib@graph@start@hint@group%
|
| 191 |
+
\tikz@lib@graph@parse@group{#1}%
|
| 192 |
+
\tikz@lib@graph@end@hint@group
|
| 193 |
+
\tikz@lib@graph@outer@operators%
|
| 194 |
+
\let\tikz@lg@do=\tikz@lib@graph@cleanup%
|
| 195 |
+
\tikz@lib@graph@node@list%
|
| 196 |
+
\tikz@lib@graph@main@done%
|
| 197 |
+
}%
|
| 198 |
+
|
| 199 |
+
\def\tikz@lib@graph@main@done{%
|
| 200 |
+
\endgroup%
|
| 201 |
+
\endscope%
|
| 202 |
+
\endpgfinterruptpath%
|
| 203 |
+
\egroup
|
| 204 |
+
\egroup%
|
| 205 |
+
\egroup%
|
| 206 |
+
\tikz@lib@graph@parser@done%
|
| 207 |
+
}%
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
\def\tikz@lib@graph@start@hint@group{%
|
| 214 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/local depth}{0}%
|
| 215 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/local width}{0}%
|
| 216 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/chain count}{0}%
|
| 217 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/element count}{0}%
|
| 218 |
+
}%
|
| 219 |
+
|
| 220 |
+
\def\tikz@lib@graph@end@hint@group{%
|
| 221 |
+
\xdef\tikz@lib@graph@group@depth{\pgfkeysvalueof{/tikz/graphs/placement/local depth}}
|
| 222 |
+
\xdef\tikz@lib@graph@group@width{\pgfkeysvalueof{/tikz/graphs/placement/local width}}
|
| 223 |
+
}%
|
| 224 |
+
|
| 225 |
+
\def\tikz@lib@graph@hint@aftergroup{%
|
| 226 |
+
\pgfkeysgetvalue{/tikz/graphs/placement/width}\tikz@temp@h%
|
| 227 |
+
\pgfkeysgetvalue{/tikz/graphs/placement/local width}\tikz@temp@lh%
|
| 228 |
+
\pgfkeysgetvalue{/tikz/graphs/placement/local depth}\tikz@temp@lw%
|
| 229 |
+
\pgfmathsetmacro\tikz@temp@h{\tikz@lib@graph@group@width+\tikz@temp@h}
|
| 230 |
+
\pgfmathsetmacro\tikz@temp@lh{\tikz@lib@graph@group@width+\tikz@temp@lh}
|
| 231 |
+
\pgfmathsetmacro\tikz@temp@lw{max(\tikz@lib@graph@group@depth,\tikz@temp@lw)}
|
| 232 |
+
\pgfkeyslet{/tikz/graphs/placement/width}\tikz@temp@h%
|
| 233 |
+
\pgfkeyslet{/tikz/graphs/placement/local width}\tikz@temp@lh%
|
| 234 |
+
\pgfkeyslet{/tikz/graphs/placement/local depth}\tikz@temp@lw%
|
| 235 |
+
\pgfkeysgetvalue{/tikz/graphs/placement/element count}\tikz@temp%
|
| 236 |
+
\c@pgf@counta=\tikz@temp\relax%
|
| 237 |
+
\advance\c@pgf@counta by1\relax%
|
| 238 |
+
\edef\tikz@temp{\the\c@pgf@counta}%
|
| 239 |
+
\pgfkeyslet{/tikz/graphs/placement/element count}\tikz@temp%
|
| 240 |
+
}%
|
| 241 |
+
|
| 242 |
+
\def\tikz@lib@graph@placement@update{%
|
| 243 |
+
\pgfkeys{/tikz/graphs/placement/logical node depth/.expand once=\tikz@lib@graph@name}
|
| 244 |
+
\let\tikz@lib@graph@node@depth\pgfmathresult
|
| 245 |
+
\pgfkeys{/tikz/graphs/placement/logical node width/.expand once=\tikz@lib@graph@name}
|
| 246 |
+
\let\tikz@lib@graph@node@width\pgfmathresult
|
| 247 |
+
\pgfkeysgetvalue{/tikz/graphs/placement/width}\tikz@temp@h%
|
| 248 |
+
\pgfkeysgetvalue{/tikz/graphs/placement/local width}\tikz@temp@lh%
|
| 249 |
+
\pgfkeysgetvalue{/tikz/graphs/placement/local depth}\tikz@temp@lw%
|
| 250 |
+
\pgfmathsetmacro\tikz@temp@h{\tikz@lib@graph@node@width+\tikz@temp@h}
|
| 251 |
+
\pgfmathsetmacro\tikz@temp@lh{\tikz@lib@graph@node@width+\tikz@temp@lh}
|
| 252 |
+
\pgfmathsetmacro\tikz@temp@lw{max(\tikz@lib@graph@node@depth,\tikz@temp@lw)}
|
| 253 |
+
\pgfkeyslet{/tikz/graphs/placement/width}\tikz@temp@h%
|
| 254 |
+
\pgfkeyslet{/tikz/graphs/placement/local width}\tikz@temp@lh%
|
| 255 |
+
\pgfkeyslet{/tikz/graphs/placement/local depth}\tikz@temp@lw%
|
| 256 |
+
\pgfkeysgetvalue{/tikz/graphs/placement/element count}\tikz@temp%
|
| 257 |
+
\c@pgf@counta=\tikz@temp\relax%
|
| 258 |
+
\advance\c@pgf@counta by1\relax%
|
| 259 |
+
\edef\tikz@temp{\the\c@pgf@counta}%
|
| 260 |
+
\pgfkeyslet{/tikz/graphs/placement/element count}\tikz@temp%
|
| 261 |
+
}%
|
| 262 |
+
|
| 263 |
+
\def\tikz@lib@graph@placement@after@chain@update{%
|
| 264 |
+
\pgfkeysgetvalue{/tikz/graphs/placement/depth}\tikz@temp@w%
|
| 265 |
+
\pgfkeysgetvalue{/tikz/graphs/placement/local width}\tikz@temp@lh%
|
| 266 |
+
\pgfkeysgetvalue{/tikz/graphs/placement/local depth}\tikz@temp@lw%
|
| 267 |
+
\pgfmathsetmacro\tikz@temp@w{\tikz@lib@graph@chain@depth+\tikz@temp@w}%
|
| 268 |
+
\pgfmathsetmacro\tikz@temp@lw{\tikz@lib@graph@chain@depth+\tikz@temp@lw}%
|
| 269 |
+
\pgfmathsetmacro\tikz@temp@lh{max(\tikz@lib@graph@chain@width,\tikz@temp@lh)}%
|
| 270 |
+
\pgfkeyslet{/tikz/graphs/placement/depth}\tikz@temp@w%
|
| 271 |
+
\pgfkeyslet{/tikz/graphs/placement/local width}\tikz@temp@lh%
|
| 272 |
+
\pgfkeyslet{/tikz/graphs/placement/local depth}\tikz@temp@lw%
|
| 273 |
+
\pgfkeysgetvalue{/tikz/graphs/placement/chain count}\tikz@temp%
|
| 274 |
+
\c@pgf@counta=\tikz@temp\relax%
|
| 275 |
+
\advance\c@pgf@counta by1\relax%
|
| 276 |
+
\edef\tikz@temp{\the\c@pgf@counta}%
|
| 277 |
+
\pgfkeyslet{/tikz/graphs/placement/chain count}\tikz@temp%
|
| 278 |
+
}%
|
| 279 |
+
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
\long\def\tikz@lib@graph@parse@group#1{
|
| 283 |
+
\let\tikz@lib@graph@group@qa\pgfutil@empty%
|
| 284 |
+
\let\tikz@lib@graph@group@q\pgfutil@empty%
|
| 285 |
+
\let\tikz@lib@graph@group@c\pgfutil@empty%
|
| 286 |
+
\let\tikz@lib@graph@group@cont\pgfutil@empty%
|
| 287 |
+
\let\tikz@lib@graph@group@conta\pgfutil@empty%
|
| 288 |
+
\tikz@lib@graph@group@check#1\par\pgf@stop@eogroup%
|
| 289 |
+
}%
|
| 290 |
+
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
\def\tikz@lib@graph@group@check{%
|
| 294 |
+
\pgfutil@ifnextchar[\tikz@lib@graph@group@opt{\tikz@lib@graph@group@opt[]}%
|
| 295 |
+
}%
|
| 296 |
+
|
| 297 |
+
\def\tikz@lib@graph@group@opt[#1]{%
|
| 298 |
+
\let\tikz@lib@graph@parse@extras\pgfutil@empty%
|
| 299 |
+
\tikzgraphsset{
|
| 300 |
+
@operators=,
|
| 301 |
+
every group/.try,
|
| 302 |
+
@extra group options,
|
| 303 |
+
@extra group options/.style=,%
|
| 304 |
+
#1}%
|
| 305 |
+
\expandafter\tikz@lib@graph@par\tikz@lib@graph@parse@extras%
|
| 306 |
+
}%
|
| 307 |
+
|
| 308 |
+
\tikzgraphsset{
|
| 309 |
+
parse/.code={\expandafter\def\expandafter\tikz@lib@graph@parse@extras\expandafter{\tikz@lib@graph@parse@extras#1}},
|
| 310 |
+
}%
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
|
| 314 |
+
|
| 315 |
+
\def\tikz@lib@graph@par{%
|
| 316 |
+
\pgfutil@ifnextchar\bgroup{\tikz@lib@graph@par@@}{\tikz@lib@graph@par@}%
|
| 317 |
+
}%
|
| 318 |
+
\long\def\tikz@lib@graph@par@#1\par{%
|
| 319 |
+
\pgfutil@ifnextchar\pgf@stop@eogroup{%
|
| 320 |
+
\expandafter\tikz@lib@graph@quotes\tikz@lib@graph@group@c#1"}{%
|
| 321 |
+
\expandafter\def\expandafter\tikz@lib@graph@group@c\expandafter{\tikz@lib@graph@group@c#1}%
|
| 322 |
+
\tikz@lib@graph@par%
|
| 323 |
+
}%
|
| 324 |
+
}%
|
| 325 |
+
\long\def\tikz@lib@graph@par@@#1{%
|
| 326 |
+
\expandafter\def\expandafter\tikz@lib@graph@group@c\expandafter{\tikz@lib@graph@group@c{#1}}%
|
| 327 |
+
\tikz@lib@graph@par
|
| 328 |
+
}%
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
|
| 332 |
+
\def\tikz@lib@graph@quotes{%
|
| 333 |
+
\pgfutil@ifnextchar\bgroup{\tikz@lib@graph@quotes@@}{\tikz@lib@graph@quotes@}%
|
| 334 |
+
}%
|
| 335 |
+
\def\tikz@lib@graph@quotes@#1"{%
|
| 336 |
+
\pgfutil@ifnextchar\pgf@stop@eogroup{%
|
| 337 |
+
\tikz@lib@graph@passon{#1}%
|
| 338 |
+
}{%
|
| 339 |
+
\expandafter\def\expandafter\tikz@lib@graph@group@q\expandafter{\tikz@lib@graph@group@q#1"}%
|
| 340 |
+
\tikz@lib@graph@quotes@cont%
|
| 341 |
+
}%
|
| 342 |
+
}%
|
| 343 |
+
|
| 344 |
+
\def\tikz@lib@graph@quotes@cont#1"#2"{%
|
| 345 |
+
\pgfutil@ifnextchar\pgf@stop@eogroup{%
|
| 346 |
+
\tikz@lib@graph@passon{{#1}"#2}}{%
|
| 347 |
+
\expandafter\def\expandafter\tikz@lib@graph@group@q\expandafter{\tikz@lib@graph@group@q{#1}"#2"}%
|
| 348 |
+
\tikz@lib@graph@quotes@cont}%
|
| 349 |
+
}%
|
| 350 |
+
|
| 351 |
+
\def\tikz@lib@graph@quotes@@#1{%
|
| 352 |
+
\expandafter\def\expandafter\tikz@lib@graph@group@q\expandafter{\tikz@lib@graph@group@q{#1}}%
|
| 353 |
+
\tikz@lib@graph@quotes%
|
| 354 |
+
}%
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
|
| 358 |
+
{%
|
| 359 |
+
\catcode`\"=13\relax
|
| 360 |
+
|
| 361 |
+
\gdef\tikz@lib@graph@passon#1{\expandafter\tikz@lib@graph@quotesactive\tikz@lib@graph@group@q#1"}%
|
| 362 |
+
|
| 363 |
+
\gdef\tikz@lib@graph@quotesactive{%
|
| 364 |
+
\pgfutil@ifnextchar\bgroup{\tikz@lib@graph@quotesactive@@}{\tikz@lib@graph@quotesactive@}%
|
| 365 |
+
}%
|
| 366 |
+
\gdef\tikz@lib@graph@quotesactive@#1"{%
|
| 367 |
+
\pgfutil@ifnextchar\pgf@stop@eogroup{%
|
| 368 |
+
\expandafter\tikz@lib@graph@encloser\tikz@lib@graph@group@qa#1[%
|
| 369 |
+
}{%
|
| 370 |
+
\expandafter\def\expandafter\tikz@lib@graph@group@qa\expandafter{\tikz@lib@graph@group@qa#1"}%
|
| 371 |
+
\tikz@lib@graph@quotesactive@cont%
|
| 372 |
+
}%
|
| 373 |
+
}%
|
| 374 |
+
|
| 375 |
+
\gdef\tikz@lib@graph@quotesactive@cont#1"#2"{%
|
| 376 |
+
\pgfutil@ifnextchar\pgf@stop@eogroup{%
|
| 377 |
+
\expandafter\tikz@lib@graph@encloser\tikz@lib@graph@group@qa{#1}"#2[}{%
|
| 378 |
+
\expandafter\def\expandafter\tikz@lib@graph@group@qa\expandafter{\tikz@lib@graph@group@qa{#1}"#2"}%
|
| 379 |
+
\tikz@lib@graph@quotesactive@cont}%
|
| 380 |
+
}%
|
| 381 |
+
|
| 382 |
+
\gdef\tikz@lib@graph@quotesactive@@#1{%
|
| 383 |
+
\expandafter\def\expandafter\tikz@lib@graph@group@qa\expandafter{\tikz@lib@graph@group@qa{#1}}%
|
| 384 |
+
\tikz@lib@graph@quotesactive%
|
| 385 |
+
}%
|
| 386 |
+
}%
|
| 387 |
+
|
| 388 |
+
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
\def\tikz@lib@graph@encloser{%
|
| 392 |
+
\pgfutil@ifnextchar\bgroup{\tikz@lib@graph@encloser@@}{\tikz@lib@graph@encloser@}%
|
| 393 |
+
}%
|
| 394 |
+
\def\tikz@lib@graph@encloser@#1[{%
|
| 395 |
+
\pgfutil@ifnextchar\pgf@stop@eogroup{%
|
| 396 |
+
\expandafter\tikz@lib@graph@semi\tikz@lib@graph@group@cont#1;%
|
| 397 |
+
}{%
|
| 398 |
+
\expandafter\def\expandafter\tikz@lib@graph@group@cont\expandafter{\tikz@lib@graph@group@cont#1[}%
|
| 399 |
+
\tikz@lib@graph@encloser@cont%
|
| 400 |
+
}%
|
| 401 |
+
}%
|
| 402 |
+
|
| 403 |
+
\def\tikz@lib@graph@encloser@cont#1]#2[{%
|
| 404 |
+
\pgfutil@ifnextchar\pgf@stop@eogroup{%
|
| 405 |
+
\expandafter\tikz@lib@graph@semi\tikz@lib@graph@group@cont{#1}]#2;}{%
|
| 406 |
+
\expandafter\def\expandafter\tikz@lib@graph@group@cont\expandafter{\tikz@lib@graph@group@cont{#1}]#2[}%
|
| 407 |
+
\tikz@lib@graph@encloser@cont}%
|
| 408 |
+
}%
|
| 409 |
+
|
| 410 |
+
\def\tikz@lib@graph@encloser@@#1{%
|
| 411 |
+
\expandafter\def\expandafter\tikz@lib@graph@group@cont\expandafter{\tikz@lib@graph@group@cont{#1}}%
|
| 412 |
+
\tikz@lib@graph@encloser%
|
| 413 |
+
}%
|
| 414 |
+
|
| 415 |
+
|
| 416 |
+
|
| 417 |
+
|
| 418 |
+
|
| 419 |
+
\def\tikz@lib@graph@semi{%
|
| 420 |
+
\pgfutil@ifnextchar\bgroup{\tikz@lib@graph@semi@@}{\tikz@lib@graph@semi@}%
|
| 421 |
+
}%
|
| 422 |
+
\def\tikz@lib@graph@semi@#1;{%
|
| 423 |
+
\pgfutil@ifnextchar\pgf@stop@eogroup{%
|
| 424 |
+
\expandafter\tikz@lib@graph@main@parser\tikz@lib@graph@group@conta#1,}{%
|
| 425 |
+
\expandafter\def\expandafter\tikz@lib@graph@group@conta\expandafter{\tikz@lib@graph@group@conta#1,}%
|
| 426 |
+
\tikz@lib@graph@semi%
|
| 427 |
+
}%
|
| 428 |
+
}%
|
| 429 |
+
\def\tikz@lib@graph@semi@@#1{%
|
| 430 |
+
\expandafter\def\expandafter\tikz@lib@graph@group@conta\expandafter{\tikz@lib@graph@group@conta{#1}}%
|
| 431 |
+
\tikz@lib@graph@semi%
|
| 432 |
+
}%
|
| 433 |
+
|
| 434 |
+
|
| 435 |
+
|
| 436 |
+
\def\tikz@lib@graph@main@parser{%
|
| 437 |
+
\begingroup%
|
| 438 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/local depth}{0}%
|
| 439 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/local width}{0}%
|
| 440 |
+
\let\tikz@lib@graph@stored@actions\pgfutil@empty%
|
| 441 |
+
\let\tikz@lib@graph@node@list\pgfutil@empty%
|
| 442 |
+
\tikz@lib@graph@main@parser@start%
|
| 443 |
+
}%
|
| 444 |
+
\def\tikz@lib@graph@main@parser@start{%
|
| 445 |
+
\pgfutil@ifnextchar\bgroup{\tikz@lib@graph@protect@group}{\tikz@lib@graph@main@parser@cont}%
|
| 446 |
+
}%
|
| 447 |
+
|
| 448 |
+
\def\tikz@lib@graph@protect@group#1{%
|
| 449 |
+
\pgfutil@ifnextchar\relax{\tikz@lib@graph@main@parser@cont{{#1}}}{\tikz@lib@graph@main@parser@cont{{#1}}}%
|
| 450 |
+
}%
|
| 451 |
+
|
| 452 |
+
\def\tikz@lib@graph@main@parser@cont{\tikz@lib@graph@check@quotes\tikz@lib@graph@main@parser@cont@normal}%
|
| 453 |
+
\def\tikz@lib@graph@main@parser@cont@normal#1,{%
|
| 454 |
+
\tikz@lib@graph@parse@one#1-\pgf@stop@eodashes%
|
| 455 |
+
}%
|
| 456 |
+
|
| 457 |
+
\def\tikz@lib@graph@parse@one{%
|
| 458 |
+
\pgfutil@ifnextchar\bgroup\tikz@lib@graph@scope\tikz@lib@graph@node%
|
| 459 |
+
}%
|
| 460 |
+
|
| 461 |
+
|
| 462 |
+
|
| 463 |
+
|
| 464 |
+
\def\tikz@lib@graph@check@quotes#1{%
|
| 465 |
+
\let\tikz@lib@graph@cont@quote#1%
|
| 466 |
+
\pgfutil@ifnextchar"{\begingroup\pgfkeys@temptoks{}\pgfutil@empty\tikz@lib@graph@quote@parser}{\tikz@lib@graph@check@quotes@active}%
|
| 467 |
+
}%
|
| 468 |
+
{%
|
| 469 |
+
\catcode`\"=13\relax
|
| 470 |
+
\gdef\tikz@lib@graph@check@quotes@active{%
|
| 471 |
+
\pgfutil@ifnextchar"{\begingroup\pgfkeys@temptoks{}\pgfutil@empty\tikz@lib@graph@quote@parser@active}{\tikz@lib@graph@cont@quote}%
|
| 472 |
+
}%
|
| 473 |
+
\gdef\tikz@lib@graph@quote@parser@active"#1"{%
|
| 474 |
+
\pgfkeys@temptoks\expandafter{\the\pgfkeys@temptoks #1}%
|
| 475 |
+
\pgfutil@ifnextchar"{\pgfkeys@temptoks\expandafter{\the\pgfkeys@temptoks "}\tikz@lib@graph@quote@parser@active}{\tikz@lib@graph@quote@parser@done}%
|
| 476 |
+
}%
|
| 477 |
+
}%
|
| 478 |
+
|
| 479 |
+
\def\tikz@lib@graph@quote@parser"#1"{%
|
| 480 |
+
\pgfkeys@temptoks\expandafter{\the\pgfkeys@temptoks #1}%
|
| 481 |
+
\pgfutil@ifnextchar"{\pgfkeys@temptoks\expandafter{\the\pgfkeys@temptoks "}\tikz@lib@graph@quote@parser}{\tikz@lib@graph@quote@parser@done}%
|
| 482 |
+
}%
|
| 483 |
+
|
| 484 |
+
\def\tikz@lib@graph@quote@parser@done{%
|
| 485 |
+
{\expandafter\scantokens\expandafter{%
|
| 486 |
+
\expandafter\expandafter\expandafter\tikzlibgraphactivations\expandafter\expandafter\expandafter\tikzlibgraphdoedef\expandafter{\the\pgfkeys@temptoks}%
|
| 487 |
+
}}%
|
| 488 |
+
{\expandafter\scantokens\expandafter{\expandafter\tikzlibgraphactivationsbrace\expandafter\xdef\expandafter\tikzlibgraphreplaced\expandafter<\tikzlibgraphreplaced>\catcode`\}=2\relax}}%
|
| 489 |
+
\edef\tikzlibgraphreplaced{\expandafter\detokenize\expandafter{\tikzlibgraphreplaced}}
|
| 490 |
+
\pgfutil@ifnextchar/\tikz@lib@graph@quotes@slash\tikz@lib@graph@quotes@no@slash%
|
| 491 |
+
}%
|
| 492 |
+
\def\tikz@lib@graph@quotes@no@slash{%
|
| 493 |
+
\expandafter\expandafter\expandafter\def\expandafter\expandafter\expandafter%
|
| 494 |
+
\tikz@smuggle\expandafter\expandafter\expandafter{\expandafter\tikzlibgraphreplaced\expandafter/\expandafter{\the\pgfkeys@temptoks}}%
|
| 495 |
+
\expandafter\endgroup\expandafter\tikz@lib@graph@cont@quote\tikz@smuggle%
|
| 496 |
+
}%
|
| 497 |
+
\def\tikz@lib@graph@quotes@slash/{%
|
| 498 |
+
\pgfutil@ifnextchar/%
|
| 499 |
+
{\tikz@lib@graph@quotes@no@slash/}{\expandafter\endgroup\expandafter\tikz@lib@graph@cont@quote\tikzlibgraphreplaced/}%
|
| 500 |
+
}%
|
| 501 |
+
\def\tikzlibgraphdoedef{\xdef\tikzlibgraphreplaced}%
|
| 502 |
+
|
| 503 |
+
\def\tikz@lib@prepare@active#1#2#3{%
|
| 504 |
+
{%
|
| 505 |
+
\catcode`#1=13\relax%
|
| 506 |
+
\scantokens{\gdef\tikzlibgraphactivator{\def#2{@#3@}}}%
|
| 507 |
+
}%
|
| 508 |
+
\pgfutil@g@addto@macro\tikzlibgraphactivations{\catcode`#1=13\relax}%
|
| 509 |
+
\expandafter\pgfutil@g@addto@macro\expandafter\tikzlibgraphactivations\expandafter{\tikzlibgraphactivator}%
|
| 510 |
+
}%
|
| 511 |
+
|
| 512 |
+
\let\tikzlibgraphactivations\pgfutil@empty
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
\outer\def\tikz@lib@outer@test{\tabalign}%
|
| 516 |
+
\ifx\+\tikz@lib@outer@test
|
| 517 |
+
\def\+{\tabalign}
|
| 518 |
+
\fi
|
| 519 |
+
|
| 520 |
+
\tikz@lib@prepare@active{\$}{$}{DOLLAR SIGN}%
|
| 521 |
+
\tikz@lib@prepare@active{\&}{&}{AMPERSAND}%
|
| 522 |
+
\tikz@lib@prepare@active{\^}{^}{CIRCUMFLEX ACCENT}%
|
| 523 |
+
\tikz@lib@prepare@active{\~}{~}{TILDE}%
|
| 524 |
+
\tikz@lib@prepare@active{\_}{_}{LOW LINE}%
|
| 525 |
+
\tikz@lib@prepare@active{\|}{|}{VERTICAL LINE}%
|
| 526 |
+
\tikz@lib@prepare@active{\[}{[}{LEFT SQUARE BRACKET}%
|
| 527 |
+
\tikz@lib@prepare@active{\]}{]}{RIGHT SQUARE BRACKET}%
|
| 528 |
+
\tikz@lib@prepare@active{\(}{(}{LEFT PARENTHESIS}%
|
| 529 |
+
\tikz@lib@prepare@active{\)}{)}{RIGHT PARENTHESIS}%
|
| 530 |
+
\tikz@lib@prepare@active{\/}{/}{SOLIDUS}%
|
| 531 |
+
\tikz@lib@prepare@active{\.}{.}{FULL STOP}%
|
| 532 |
+
\tikz@lib@prepare@active{\-}{-}{HYPHEN MINUS}%
|
| 533 |
+
\tikz@lib@prepare@active{\,}{,}{COMMA}%
|
| 534 |
+
\tikz@lib@prepare@active{\+}{+}{PLUS SIGN}%
|
| 535 |
+
\tikz@lib@prepare@active{\*}{*}{ASTERISK}%
|
| 536 |
+
\tikz@lib@prepare@active{\'}{'}{APOSTROPHE}%
|
| 537 |
+
\tikz@lib@prepare@active{\!}{!}{EXCLAMATION MARK}%
|
| 538 |
+
\tikz@lib@prepare@active{\"}{"}{QUOTATION MARK}%
|
| 539 |
+
\tikz@lib@prepare@active{\:}{:}{COLON}%
|
| 540 |
+
\tikz@lib@prepare@active{\;}{;}{SEMINCOLON}%
|
| 541 |
+
\tikz@lib@prepare@active{\<}{<}{LESS THAN SIGN}%
|
| 542 |
+
\tikz@lib@prepare@active{\=}{=}{EQUALS SIGN}%
|
| 543 |
+
\tikz@lib@prepare@active{\>}{>}{GREATER THAN SIGN}%
|
| 544 |
+
\tikz@lib@prepare@active{\?}{?}{QUESTION MARK}%
|
| 545 |
+
\tikz@lib@prepare@active{\`}{`}{GRAVE ACCENT}%
|
| 546 |
+
{\catcode`\%=11\catcode`\#=11
|
| 547 |
+
\tikz@lib@prepare@active{\%}{%}{PERCENT SIGN}
|
| 548 |
+
\tikz@lib@prepare@active{\#}{#}{NUMBER SIGN}
|
| 549 |
+
}
|
| 550 |
+
|
| 551 |
+
\pgfutil@g@addto@macro\tikzlibgraphactivations{\catcode`\\=13\relax}%
|
| 552 |
+
{%
|
| 553 |
+
\catcode`\|=0\relax
|
| 554 |
+
\catcode`\\=13\relax
|
| 555 |
+
|pgfutil@g@addto@macro|tikzlibgraphactivations{|def\{@REVERSE SOLIDUS@}}%
|
| 556 |
+
}%
|
| 557 |
+
{%
|
| 558 |
+
\gdef\tikzlibgraphscommercialat{@COMMERCIAL AT@}%
|
| 559 |
+
\let\g=\pgfutil@g@addto@macro
|
| 560 |
+
\catcode`\@=13\relax
|
| 561 |
+
\g\tikzlibgraphactivations{\catcode`\@=13\relax\let@=\tikzlibgraphscommercialat}%
|
| 562 |
+
}%
|
| 563 |
+
|
| 564 |
+
\def\tikzlibgraphactivationsbrace{%
|
| 565 |
+
\catcode`\{=13\relax%
|
| 566 |
+
\catcode`\}=13\relax%
|
| 567 |
+
\catcode`\<=1\relax%
|
| 568 |
+
\catcode`\>=2\relax%
|
| 569 |
+
}%
|
| 570 |
+
{%
|
| 571 |
+
\catcode`\{=13\relax%
|
| 572 |
+
\catcode`\}=13\relax%
|
| 573 |
+
\catcode`\<=1\relax%
|
| 574 |
+
\catcode`\>=2\relax%
|
| 575 |
+
\pgfutil@g@addto@macro\tikzlibgraphactivationsbrace<\def{<@LEFT CURLY BRACE@>> %
|
| 576 |
+
\pgfutil@g@addto@macro\tikzlibgraphactivationsbrace<\def}<@RIGHT CURLY BRACE@>> %
|
| 577 |
+
>%
|
| 578 |
+
|
| 579 |
+
|
| 580 |
+
|
| 581 |
+
\def\tikz@lib@graph@node{\tikz@lib@graph@check@quotes\tikz@lib@graph@node@normal}%
|
| 582 |
+
|
| 583 |
+
\def\tikz@lib@graph@node@normal{%
|
| 584 |
+
\pgfutil@ifnextchar({\tikz@lib@graph@node@dressed}{\tikz@lib@graph@node@naked}%
|
| 585 |
+
}%
|
| 586 |
+
|
| 587 |
+
\def\tikz@lib@graph@node@dressed(#1){%
|
| 588 |
+
\tikz@lib@graph@node@naked{(#1)}%
|
| 589 |
+
}%
|
| 590 |
+
|
| 591 |
+
\def\tikz@lib@graph@node@naked#1-{%
|
| 592 |
+
\tikz@lib@graph@@node#1<\pgf@stop%
|
| 593 |
+
}%
|
| 594 |
+
|
| 595 |
+
\def\tikz@lib@graph@@node#1<#2\pgf@stop%
|
| 596 |
+
{
|
| 597 |
+
\tikz@lib@graph@grab@name#1\pgf@stop%
|
| 598 |
+
\tikz@lib@graph@stored@actions%
|
| 599 |
+
\pgfutil@ifnextchar\pgf@stop@eodashes{%
|
| 600 |
+
\tikz@lib@graph@graph@done%
|
| 601 |
+
}{%
|
| 602 |
+
\def\pgf@test{#2}%
|
| 603 |
+
\ifx\pgf@test\pgfutil@empty%
|
| 604 |
+
\expandafter\tikz@lib@graph@no@back@arrow%
|
| 605 |
+
\else%
|
| 606 |
+
\expandafter\tikz@lib@graph@back@arrow%
|
| 607 |
+
\fi%
|
| 608 |
+
}%
|
| 609 |
+
}%
|
| 610 |
+
|
| 611 |
+
\def\tikz@lib@graph@no@back@arrow{%
|
| 612 |
+
\pgfutil@ifnextchar>\tikz@lib@graph@forward@arrow{%
|
| 613 |
+
\pgfutil@ifnextchar-\tikz@lib@graph@undirected@arrow{%
|
| 614 |
+
\pgfutil@ifnextchar!\tikz@lib@graph@no@arrow{%
|
| 615 |
+
\tikzerror{One of the arrow types <-, --, ->, -!- or <-> expected}%
|
| 616 |
+
\tikz@lib@graph@undirected@arrow%
|
| 617 |
+
}%
|
| 618 |
+
}%
|
| 619 |
+
}%
|
| 620 |
+
}%
|
| 621 |
+
|
| 622 |
+
\def\tikz@lib@graph@undirected@arrow-{%
|
| 623 |
+
\def\tikz@lib@graph@arrow@type{--}%
|
| 624 |
+
\tikz@lib@graph@after@arrow%
|
| 625 |
+
}%
|
| 626 |
+
|
| 627 |
+
\def\tikz@lib@graph@forward@arrow>{%
|
| 628 |
+
\def\tikz@lib@graph@arrow@type{->}%
|
| 629 |
+
\tikz@lib@graph@after@arrow%
|
| 630 |
+
}%
|
| 631 |
+
|
| 632 |
+
\def\tikz@lib@graph@bi@arrow>{%
|
| 633 |
+
\def\tikz@lib@graph@arrow@type{<->}%
|
| 634 |
+
\tikz@lib@graph@after@arrow%
|
| 635 |
+
}%
|
| 636 |
+
|
| 637 |
+
\def\tikz@lib@graph@no@arrow!-{%
|
| 638 |
+
\def\tikz@lib@graph@arrow@type{-!-}%
|
| 639 |
+
\tikz@lib@graph@after@arrow%
|
| 640 |
+
}%
|
| 641 |
+
|
| 642 |
+
\def\tikz@lib@graph@back@arrow{%
|
| 643 |
+
\pgfutil@ifnextchar>{\tikz@lib@graph@bi@arrow}{%
|
| 644 |
+
\def\tikz@lib@graph@arrow@type{<-}%
|
| 645 |
+
\tikz@lib@graph@after@arrow%
|
| 646 |
+
}%
|
| 647 |
+
}%
|
| 648 |
+
|
| 649 |
+
\def\tikz@lib@graph@after@arrow{%
|
| 650 |
+
\pgfutil@ifnextchar[{\tikz@lib@graph@after@arrow@opt}{\tikz@lib@graph@after@arrow@opt[]}%
|
| 651 |
+
}%
|
| 652 |
+
|
| 653 |
+
\def\tikz@lib@graph@after@arrow@opt[#1]{%
|
| 654 |
+
\tikzgraphinvokeoperator{recolor source by=source''}
|
| 655 |
+
\tikzgraphinvokeoperator{recolor target by=target'}
|
| 656 |
+
\expandafter\def\expandafter\tikz@lib@graph@stored@actions\expandafter{%
|
| 657 |
+
\expandafter\tikz@lib@graph@joiner\expandafter{\tikz@lib@graph@arrow@type}{#1}}%
|
| 658 |
+
\tikzgdeventgroupcallback{descendants}%
|
| 659 |
+
\tikz@lib@graph@parse@one%
|
| 660 |
+
}%
|
| 661 |
+
|
| 662 |
+
\def\tikz@lib@graph@joiner#1#2{%
|
| 663 |
+
\tikzgraphinvokeoperator{recolor source by=source'}
|
| 664 |
+
\tikzgraphinvokeoperator{recolor source'' by=source}
|
| 665 |
+
{%
|
| 666 |
+
\tikz@enable@edge@quotes%
|
| 667 |
+
\pgfkeyssetvalue{/tikz/graphs/default edge kind}{#1}%
|
| 668 |
+
\pgfkeys{/tikz/graphs/.cd,@operators=,%
|
| 669 |
+
/tikz/graphs/.unknown/.code=\tikz@lib@graph@unknown@edge@option{##1},#2}%
|
| 670 |
+
\pgfkeysgetvalue{/tikz/graphs/@operators}\pgf@temp%
|
| 671 |
+
\ifx\pgf@temp\pgfutil@empty%
|
| 672 |
+
\edef\pgf@temp{\noexpand\pgfkeys{/tikz/graphs/.cd,\pgfkeysvalueof{/tikz/graphs/default edge operator}}}%
|
| 673 |
+
\pgf@temp%
|
| 674 |
+
\pgfkeysgetvalue{/tikz/graphs/@operators}\pgf@temp%
|
| 675 |
+
\fi%
|
| 676 |
+
\pgf@temp%
|
| 677 |
+
}%
|
| 678 |
+
\tikzgraphinvokeoperator{not source',not target'}
|
| 679 |
+
}%
|
| 680 |
+
|
| 681 |
+
\def\tikz@lib@graph@unknown@edge@option#1{%
|
| 682 |
+
\def\tikz@temp{/tikz/graphs/@edges styling/.append=}
|
| 683 |
+
\expandafter\expandafter\expandafter\pgfkeys%
|
| 684 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@temp\expandafter{\expandafter,\pgfkeyscurrentname={#1}}}
|
| 685 |
+
}%
|
| 686 |
+
|
| 687 |
+
\def\tikz@lib@graph@graph@done\pgf@stop@eodashes{%
|
| 688 |
+
\xdef\tikz@lib@graph@chain@depth{\pgfkeysvalueof{/tikz/graphs/placement/local depth}}
|
| 689 |
+
\xdef\tikz@lib@graph@chain@width{\pgfkeysvalueof{/tikz/graphs/placement/local width}}
|
| 690 |
+
\expandafter%
|
| 691 |
+
\endgroup%
|
| 692 |
+
\expandafter\expandafter\expandafter\def%
|
| 693 |
+
\expandafter\expandafter\expandafter\tikz@lib@graph@node@list%
|
| 694 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@lib@graph@node@list\tikz@lib@graph@node@list}%
|
| 695 |
+
\tikz@lib@graph@placement@after@chain@update
|
| 696 |
+
\pgfutil@ifnextchar\pgf@stop@eogroup%
|
| 697 |
+
\tikz@lib@graph@graph@group@done%
|
| 698 |
+
\tikz@lib@graph@main@parser%
|
| 699 |
+
}%
|
| 700 |
+
|
| 701 |
+
\def\tikz@lib@graph@graph@group@done\pgf@stop@eogroup{%
|
| 702 |
+
\pgfkeysvalueof{/tikz/graphs/@operators}%
|
| 703 |
+
}%
|
| 704 |
+
|
| 705 |
+
|
| 706 |
+
|
| 707 |
+
\def\tikz@lib@graph@grab@name{%
|
| 708 |
+
\pgfutil@ifnextchar\foreach\tikz@lib@graph@do@foreach\tikz@lib@graph@parse@node@text%
|
| 709 |
+
}%
|
| 710 |
+
|
| 711 |
+
\def\tikz@lib@graph@do@foreach\foreach#1in{%
|
| 712 |
+
\pgfutil@ifnextchar\bgroup{\tikz@lib@graph@do@foreach@normal{#1}}{\def\tikz@temp{#1}\tikz@lib@graph@do@foreach@macro}%
|
| 713 |
+
}%
|
| 714 |
+
\def\tikz@lib@graph@do@foreach@macro#1{%
|
| 715 |
+
\expandafter\expandafter\expandafter\tikz@lib@graph@do@foreach@normal\expandafter\tikz@temp\expandafter{#1}%
|
| 716 |
+
}%
|
| 717 |
+
|
| 718 |
+
\def\tikz@lib@graph@do@foreach@normal#1#2#3\pgf@stop{%
|
| 719 |
+
\begingroup
|
| 720 |
+
\let\tikz@lib@graph@node@list@saved\pgfutil@empty%
|
| 721 |
+
\xdef\tikz@lib@graph@saved@placement{%
|
| 722 |
+
{\pgfkeysvalueof{/tikz/graphs/placement/local depth}}%
|
| 723 |
+
{\pgfkeysvalueof{/tikz/graphs/placement/local width}}%
|
| 724 |
+
{\pgfkeysvalueof{/tikz/graphs/placement/chain count}}%
|
| 725 |
+
{\pgfkeysvalueof{/tikz/graphs/placement/element count}}%
|
| 726 |
+
{\pgfkeysvalueof{/tikz/graphs/placement/width}}%
|
| 727 |
+
{\pgfkeysvalueof{/tikz/graphs/placement/depth}}%
|
| 728 |
+
}%
|
| 729 |
+
\foreach #1 in {#2}%
|
| 730 |
+
{%
|
| 731 |
+
\let\tikz@lib@graph@node@list\tikz@lib@graph@node@list@saved%
|
| 732 |
+
\expandafter\tikz@lib@graph@setup@placement\tikz@lib@graph@saved@placement%
|
| 733 |
+
\tikz@lib@graph@parse@group{#3}%
|
| 734 |
+
\xdef\tikz@lib@graph@saved@placement{%
|
| 735 |
+
{\pgfkeysvalueof{/tikz/graphs/placement/local depth}}%
|
| 736 |
+
{\pgfkeysvalueof{/tikz/graphs/placement/local width}}%
|
| 737 |
+
{\pgfkeysvalueof{/tikz/graphs/placement/chain count}}%
|
| 738 |
+
{\pgfkeysvalueof{/tikz/graphs/placement/element count}}%
|
| 739 |
+
{\pgfkeysvalueof{/tikz/graphs/placement/width}}%
|
| 740 |
+
{\pgfkeysvalueof{/tikz/graphs/placement/depth}}%
|
| 741 |
+
}%
|
| 742 |
+
\global\let\tikz@lib@graph@node@list@saved\tikz@lib@graph@node@list%
|
| 743 |
+
}%
|
| 744 |
+
\expandafter%
|
| 745 |
+
\endgroup%
|
| 746 |
+
\expandafter\expandafter\expandafter\def%
|
| 747 |
+
\expandafter\expandafter\expandafter\tikz@lib@graph@node@list%
|
| 748 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@lib@graph@node@list\tikz@lib@graph@node@list@saved}%
|
| 749 |
+
\expandafter\tikz@lib@graph@setup@placement\tikz@lib@graph@saved@placement%
|
| 750 |
+
}%
|
| 751 |
+
|
| 752 |
+
\def\tikz@lib@graph@setup@placement#1#2#3#4#5#6{%
|
| 753 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/local depth}{#1}%
|
| 754 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/local width}{#2}%
|
| 755 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/chain count}{#3}%
|
| 756 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/element count}{#4}%
|
| 757 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/width}{#5}%
|
| 758 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/depth}{#6}%
|
| 759 |
+
}%
|
| 760 |
+
|
| 761 |
+
\def\tikz@lib@graph@parse@node@text#1\pgf@stop{%
|
| 762 |
+
\pgfutil@in@{//}{#1 }
|
| 763 |
+
\ifpgfutil@in@%
|
| 764 |
+
\tikz@lib@parse@layout@node#1\pgf@stop%
|
| 765 |
+
\else%
|
| 766 |
+
\tikz@lib@graph@fake@nodefalse
|
| 767 |
+
\let\tikz@lib@graph@node@parsed\tikz@lib@graph@node@opt@normal%
|
| 768 |
+
\def\tikz@lib@graph@empty@node@parsed{\tikzgdeventcallback{node}{}}%
|
| 769 |
+
\tikz@lib@parse@normal@node#1[\pgf@stop%
|
| 770 |
+
\fi%
|
| 771 |
+
}%
|
| 772 |
+
|
| 773 |
+
\newif\iftikzgraphsautonumbernodes
|
| 774 |
+
\newcount\tikz@lib@auto@number
|
| 775 |
+
|
| 776 |
+
\def\tikz@lib@do@autonumber{%
|
| 777 |
+
\ifx\tikz@lib@graph@name@only\pgfutil@empty%
|
| 778 |
+
\else%
|
| 779 |
+
\edef\tikz@lib@graph@name@only{\tikz@lib@graph@name@only\tikz@lib@auto@sep\the\tikz@lib@auto@number}%
|
| 780 |
+
\global\advance\tikz@lib@auto@number by1\relax%
|
| 781 |
+
\fi%
|
| 782 |
+
}%
|
| 783 |
+
|
| 784 |
+
|
| 785 |
+
\def\tikz@lib@parse@normal@node#1[{
|
| 786 |
+
\pgfutil@in@{/}{#1}%
|
| 787 |
+
\ifpgfutil@in@%
|
| 788 |
+
\tikz@lib@parse@node@with@slash#1\pgf@stop%
|
| 789 |
+
\else
|
| 790 |
+
\pgfutil@in@{__}{#1}%
|
| 791 |
+
\ifpgfutil@in@%
|
| 792 |
+
\tikz@lib@parse@node@with@doubleunder#1\pgf@stop%
|
| 793 |
+
\else
|
| 794 |
+
\edef\pgf@marshal{\noexpand\pgfkeys@spdef\noexpand\tikz@lib@graph@name@only{#1}}%
|
| 795 |
+
\pgf@marshal%
|
| 796 |
+
\let\tikz@lib@graph@node@text\tikz@lib@graph@name@only%
|
| 797 |
+
\edef\tikz@lib@graph@name{\tikz@lib@graph@path\tikz@lib@graph@name@only}%
|
| 798 |
+
\fi%
|
| 799 |
+
\fi%
|
| 800 |
+
\tikz@lib@graph@handle@node@cont%
|
| 801 |
+
}%
|
| 802 |
+
|
| 803 |
+
\def\tikz@lib@parse@node@with@slash#1/{
|
| 804 |
+
\pgfkeys@spdef\tikz@lib@graph@name@only{#1}%
|
| 805 |
+
\ifx\tikz@lib@graph@name@only\pgfutil@empty%
|
| 806 |
+
\global\advance\tikz@fig@count by1\relax
|
| 807 |
+
\edef\tikz@lib@graph@name@only{tikz@f@\the\tikz@fig@count}%
|
| 808 |
+
\fi%
|
| 809 |
+
\edef\tikz@lib@graph@name{\tikz@lib@graph@path\tikz@lib@graph@name@only}%
|
| 810 |
+
\pgfutil@ifnextchar"\tikz@lg@slash@quote{\pgfutil@ifnextchar\tikz@active@quotes@token\tikz@lg@slash@quote@active\tikz@lg@slash@cont}
|
| 811 |
+
}%
|
| 812 |
+
\def\tikz@lg@slash@quote"#1"#2\pgf@stop{%
|
| 813 |
+
\iftikz@handle@active@nodes%
|
| 814 |
+
\def\tikz@lib@graph@node@text{\scantokens{#1}}%
|
| 815 |
+
\else
|
| 816 |
+
\def\tikz@lib@graph@node@text{#1}%
|
| 817 |
+
\fi%
|
| 818 |
+
}%
|
| 819 |
+
{\catcode`\"=13\relax
|
| 820 |
+
\gdef\tikz@lg@slash@quote@active"#1"#2\pgf@stop{%
|
| 821 |
+
\iftikz@handle@active@nodes%
|
| 822 |
+
\def\tikz@lib@graph@node@text{\scantokens{#1}}%
|
| 823 |
+
\else
|
| 824 |
+
\def\tikz@lib@graph@node@text{#1}%
|
| 825 |
+
\fi%
|
| 826 |
+
}%
|
| 827 |
+
}%
|
| 828 |
+
\def\tikz@lg@slash@cont#1\pgf@stop{%
|
| 829 |
+
\iftikz@handle@active@nodes%
|
| 830 |
+
\def\tikz@lib@graph@node@text{\scantokens{#1}}%
|
| 831 |
+
\else
|
| 832 |
+
\def\tikz@lib@graph@node@text{#1}%
|
| 833 |
+
\fi%
|
| 834 |
+
}%
|
| 835 |
+
|
| 836 |
+
\def\tikz@lib@parse@node@with@doubleunder#1__{\tikz@lib@parse@node@with@slash{#1}/}%
|
| 837 |
+
|
| 838 |
+
\def\tikz@lg@find@fresh@name{%
|
| 839 |
+
\edef\tikz@lib@graph@name@only{\tikz@lib@graph@name@only'}%
|
| 840 |
+
\edef\tikz@lib@graph@name{\tikz@lib@graph@path\tikz@lib@graph@name@only}%
|
| 841 |
+
\tikz@lg@if@local@node{\tikz@lib@graph@name}{\tikz@lg@find@fresh@name}{}%
|
| 842 |
+
}%
|
| 843 |
+
|
| 844 |
+
|
| 845 |
+
|
| 846 |
+
\def\tikz@lib@graph@handle@node@cont{%
|
| 847 |
+
\iftikzgraphsautonumbernodes%
|
| 848 |
+
\tikz@lib@do@autonumber%
|
| 849 |
+
\fi%
|
| 850 |
+
\iftikz@lib@graph@fresh@node%
|
| 851 |
+
\tikz@lg@if@local@node{\tikz@lib@graph@name}{\tikz@lg@find@fresh@name}{}%
|
| 852 |
+
\fi%
|
| 853 |
+
\let\tikzgraphnodeas\tikzgraphnodeas@default%
|
| 854 |
+
\pgfutil@ifnextchar\pgf@stop{%
|
| 855 |
+
\ifx\tikz@lib@graph@name@only\pgfutil@empty%
|
| 856 |
+
\expandafter\tikz@lib@graph@node@empty@done%
|
| 857 |
+
\else
|
| 858 |
+
\expandafter\tikz@lib@graph@node@opt\expandafter[\expandafter]\expandafter[%
|
| 859 |
+
\fi%
|
| 860 |
+
}{\tikz@lib@graph@node@opt[}%
|
| 861 |
+
}%
|
| 862 |
+
|
| 863 |
+
\def\tikzgraphnodeas@default{%
|
| 864 |
+
\tikz@lib@graph@typesetter%
|
| 865 |
+
}%
|
| 866 |
+
|
| 867 |
+
\let\tikz@lib@graph@empty@node@parsed\relax%
|
| 868 |
+
|
| 869 |
+
\def\tikz@lib@graph@node@opt[#1]#2[\pgf@stop{%
|
| 870 |
+
\tikz@lib@graph@node@parsed{#1}%
|
| 871 |
+
}%
|
| 872 |
+
|
| 873 |
+
\def\tikz@lib@graph@node@empty@done\pgf@stop{\tikz@lib@graph@empty@node@parsed}%
|
| 874 |
+
|
| 875 |
+
|
| 876 |
+
\def\tikz@lib@parse@layout@node#1//{%
|
| 877 |
+
\pgf@lib@graph@empty@layout@nodefalse%
|
| 878 |
+
\let\tikz@lib@graph@node@parsed\tikz@lib@layout@node@parsed%
|
| 879 |
+
\let\tikz@lib@graph@empty@node@parsed\tikz@lib@graph@empty@layout@node@parsed
|
| 880 |
+
\tikz@lib@parse@normal@node#1[\pgf@stop%
|
| 881 |
+
}%
|
| 882 |
+
|
| 883 |
+
\newif\ifpgf@lib@graph@empty@layout@node
|
| 884 |
+
|
| 885 |
+
\def\tikz@lib@layout@node@parsed{%
|
| 886 |
+
\tikz@lib@layout@parse@rest%
|
| 887 |
+
}%
|
| 888 |
+
|
| 889 |
+
\def\tikz@lib@graph@empty@layout@node@parsed{%
|
| 890 |
+
\pgf@lib@graph@empty@layout@nodetrue
|
| 891 |
+
\tikz@lib@layout@parse@rest{}%
|
| 892 |
+
}%
|
| 893 |
+
|
| 894 |
+
\def\tikz@lib@layout@parse@rest#1{%
|
| 895 |
+
\def\tikz@lib@layout@node@options{#1}%
|
| 896 |
+
\pgfutil@ifnextchar[{\tikz@lib@layout@node@opt}{\tikz@lib@layout@node@opt[]}%
|
| 897 |
+
}%
|
| 898 |
+
|
| 899 |
+
\def\tikz@lib@layout@node@parsed#1{%
|
| 900 |
+
\def\tikz@lib@layout@node@options{#1}%
|
| 901 |
+
\pgfutil@ifnextchar[{\tikz@lib@layout@node@opt}{\tikz@lib@layout@node@opt[]}%
|
| 902 |
+
}%
|
| 903 |
+
|
| 904 |
+
\def\tikz@lib@layout@node@opt[#1]{%
|
| 905 |
+
\def\tikz@lib@layout@options{#1}%
|
| 906 |
+
\pgfutil@ifnextchar\bgroup{\tikz@lib@layout@start}{\tikzerror{Opening brace at beginning of sublayout expected}}%
|
| 907 |
+
}%
|
| 908 |
+
|
| 909 |
+
|
| 910 |
+
|
| 911 |
+
\def\tikz@lib@graph@node@opt@normal#1{%
|
| 912 |
+
\expandafter\tikz@lib@graph@test@use@list\tikz@lib@graph@name@only\pgf@stop
|
| 913 |
+
\iftikz@lib@graph@use@list%
|
| 914 |
+
\let\tikz@lg@temp\pgfutil@empty%
|
| 915 |
+
\foreach \tikz@lg@node@name in \tikz@lib@graph@use@list {\expandafter\tikz@lib@graph@handle@use\expandafter{\tikz@lg@node@name}}
|
| 916 |
+
\expandafter\expandafter\expandafter\def%
|
| 917 |
+
\expandafter\expandafter\expandafter\tikz@lib@graph@node@list%
|
| 918 |
+
\expandafter\expandafter\expandafter{%
|
| 919 |
+
\expandafter\tikz@lib@graph@node@list\tikz@lg@temp}%
|
| 920 |
+
\let\tikz@lg@do\tikz@lib@graph@do@use%
|
| 921 |
+
\tikz@lg@temp%
|
| 922 |
+
\else%
|
| 923 |
+
\edef\tikz@lib@graph@name{\tikz@lib@graph@path\tikz@lib@graph@name@only}%
|
| 924 |
+
\expandafter\ifx\csname tikz@lib@graph@def@\tikz@lib@graph@name@only\endcsname\relax%
|
| 925 |
+
\pgfkeysgetvalue{/tikz/graphs/placement/level}\tikz@temp%
|
| 926 |
+
\c@pgf@counta=\tikz@temp\relax%
|
| 927 |
+
\advance\c@pgf@counta by1\relax%
|
| 928 |
+
\edef\tikz@temp{\the\c@pgf@counta}%
|
| 929 |
+
\pgfkeyslet{/tikz/graphs/placement/level}\tikz@temp%
|
| 930 |
+
\tikzgraphsset{
|
| 931 |
+
level/.try=\pgfkeysvalueof{/tikz/graphs/placement/level},
|
| 932 |
+
level \pgfkeysvalueof{/tikz/graphs/placement/level}/.try
|
| 933 |
+
}
|
| 934 |
+
{%
|
| 935 |
+
\edef\tikz@lib@graph@node@list{\noexpand\tikz@lg@do{\tikz@lib@graph@name}}%
|
| 936 |
+
\global\tikz@lib@graph@node@createdfalse%
|
| 937 |
+
\pgfkeyslet{/tikz/graphs/@operators}\pgfutil@empty%
|
| 938 |
+
\tikz@lib@activate@source@target@edge@syntax%
|
| 939 |
+
\tikz@lg@if@local@node{\tikz@lib@graph@name}%
|
| 940 |
+
{\tikz@lg@local@node@handle{#1}}%
|
| 941 |
+
{%
|
| 942 |
+
\tikz@lg@init@color{\tikz@lib@graph@name}{\tikz@lgc@all@true\tikz@lgc@source@true\tikz@lgc@target@true}%
|
| 943 |
+
\iftikz@lib@graph@all%
|
| 944 |
+
\tikzgraphsset{#1}\pgfkeysvalueof{/tikz/graphs/@operators}%
|
| 945 |
+
\else%
|
| 946 |
+
\pgfkeys{/tikz/graphs/placement/place}%
|
| 947 |
+
\let\tikzgraphnodetext\tikz@lib@graph@node@text%
|
| 948 |
+
\let\tikzgraphnodename\tikz@lib@graph@name@only%
|
| 949 |
+
\let\tikzgraphnodepath\tikz@lib@graph@path%
|
| 950 |
+
\let\tikzgraphnodefullname\tikz@lib@graph@name%
|
| 951 |
+
\iftikz@lib@graph@fake@node%
|
| 952 |
+
{%
|
| 953 |
+
\pgfkeys{
|
| 954 |
+
/tikz/graphs/.cd,%
|
| 955 |
+
.unknown/.code=,
|
| 956 |
+
/tikz/graphs/@nodes styling,%
|
| 957 |
+
#1}%
|
| 958 |
+
\pgfkeysgetvalue{/tikz/graphs/@operators}\tikz@lib@graph@op@save%
|
| 959 |
+
\global\let\tikz@lib@graph@op@save\tikz@lib@graph@op@save%
|
| 960 |
+
}%
|
| 961 |
+
\else%
|
| 962 |
+
\node [%
|
| 963 |
+
name=\tikz@lib@graph@name,%
|
| 964 |
+
execute at end node={%
|
| 965 |
+
\pgfkeysgetvalue{/tikz/graphs/@operators}\tikz@lib@graph@op@save%
|
| 966 |
+
\global\let\tikz@lib@graph@op@save\tikz@lib@graph@op@save%
|
| 967 |
+
},%
|
| 968 |
+
graphs/redirect unknown to tikz,
|
| 969 |
+
/tikz/graphs/.cd,%
|
| 970 |
+
/tikz/graphs/@nodes styling,%
|
| 971 |
+
#1]%
|
| 972 |
+
{%
|
| 973 |
+
\tikzgraphnodeas%
|
| 974 |
+
};%
|
| 975 |
+
\fi%
|
| 976 |
+
\tikz@lib@graph@op@save\global\let\tikz@lib@graph@op@save\relax%
|
| 977 |
+
\global\tikz@lib@graph@node@createdtrue%
|
| 978 |
+
\fi
|
| 979 |
+
}%
|
| 980 |
+
}%
|
| 981 |
+
\iftikz@lib@graph@node@created\tikz@lib@graph@placement@update\fi%
|
| 982 |
+
\expandafter\expandafter\expandafter\def%
|
| 983 |
+
\expandafter\expandafter\expandafter\tikz@lib@graph@node@list%
|
| 984 |
+
\expandafter\expandafter\expandafter{%
|
| 985 |
+
\expandafter\tikz@lib@graph@node@list\expandafter\tikz@lg@do\expandafter{\tikz@lib@graph@name}}%
|
| 986 |
+
\iftikz@lib@graph@trie\tikzgraphsset{name=\tikz@lib@graph@name@only}\fi%
|
| 987 |
+
\else
|
| 988 |
+
\tikz@lib@graph@handle@graph{#1}%
|
| 989 |
+
\fi
|
| 990 |
+
\fi%
|
| 991 |
+
}%
|
| 992 |
+
|
| 993 |
+
\newif\iftikz@lib@graph@fake@node
|
| 994 |
+
|
| 995 |
+
\newif\iftikz@lib@graph@use@list
|
| 996 |
+
\def\tikz@lib@graph@test@use@list{%
|
| 997 |
+
\pgfutil@ifnextchar({\tikz@lib@graph@use@list@grap}{\tikz@lib@graph@test@use@list@done}%
|
| 998 |
+
}%
|
| 999 |
+
|
| 1000 |
+
\def\tikz@lib@graph@test@use@list@done#1\pgf@stop{\tikz@lib@graph@use@listfalse}%
|
| 1001 |
+
\def\tikz@lib@graph@use@list@grap(#1)\pgf@stop{\def\tikz@lib@graph@use@list{#1}\tikz@lib@graph@use@listtrue}%
|
| 1002 |
+
|
| 1003 |
+
|
| 1004 |
+
|
| 1005 |
+
\def\tikz@lib@layout@start#1#2\pgf@stop{%
|
| 1006 |
+
\tikz@lib@ensure@gd@loaded%
|
| 1007 |
+
\tikz@lib@graph@fake@nodefalse%
|
| 1008 |
+
\ifpgf@lib@graph@empty@layout@node%
|
| 1009 |
+
\else%
|
| 1010 |
+
\ifx\tikz@lib@graph@name\pgfutil@empty%
|
| 1011 |
+
\tikzerror{Internal error: Node has no name, but it should!}%
|
| 1012 |
+
\else
|
| 1013 |
+
\tikz@lib@graph@fake@nodetrue%
|
| 1014 |
+
\expandafter\tikz@lib@graph@node@opt@normal\expandafter{\tikz@lib@layout@node@options}%
|
| 1015 |
+
\fi%
|
| 1016 |
+
\fi%
|
| 1017 |
+
\edef\tikz@lib@graph@name{\tikz@lib@graph@path\tikz@lib@graph@name@only}%
|
| 1018 |
+
\expandafter\expandafter\expandafter\def%
|
| 1019 |
+
\expandafter\expandafter\expandafter\tikz@lib@layout@node@options\expandafter\expandafter\expandafter{\expandafter\tikz@lib@layout@startup@node@options\tikz@lib@layout@node@options,}%
|
| 1020 |
+
\begingroup
|
| 1021 |
+
\iftikz@lib@graph@fake@node%
|
| 1022 |
+
\expandafter\expandafter\expandafter%
|
| 1023 |
+
\expandafter\expandafter\expandafter\expandafter\tikz@lib@make@subgraph@node%
|
| 1024 |
+
\expandafter\expandafter\expandafter%
|
| 1025 |
+
\expandafter\expandafter\expandafter\expandafter{%
|
| 1026 |
+
\expandafter\expandafter\expandafter\tikz@lib@graph@name%
|
| 1027 |
+
\expandafter\expandafter\expandafter}%
|
| 1028 |
+
\expandafter\expandafter\expandafter{%
|
| 1029 |
+
\expandafter\tikz@lib@graph@node@text\expandafter}\expandafter{\tikz@lib@layout@node@options}
|
| 1030 |
+
\fi%
|
| 1031 |
+
\expandafter\expandafter\expandafter\scope\expandafter\expandafter\expandafter[\expandafter\tikz@lib@layout@node@options@prefix\tikz@lib@layout@options]
|
| 1032 |
+
\tikzgdeventgroupcallback{array}%
|
| 1033 |
+
\let\tikz@lib@graph@node@list\pgfutil@empty%
|
| 1034 |
+
\tikz@lib@graph@start@hint@group%
|
| 1035 |
+
\tikz@lib@graph@parse@group{#1}%
|
| 1036 |
+
\tikz@lib@graph@end@hint@group%
|
| 1037 |
+
\def\tikz@lg@old@col{\tikz@lgc@source@true}%
|
| 1038 |
+
\let\tikz@lg@new@col\pgfutil@empty%
|
| 1039 |
+
\let\tikz@lg@do\tikz@lg@change@color%
|
| 1040 |
+
\tikz@lib@graph@node@list%
|
| 1041 |
+
\def\tikz@lg@old@col{\tikz@lgc@target@true}%
|
| 1042 |
+
\tikz@lib@graph@node@list%
|
| 1043 |
+
\expandafter%
|
| 1044 |
+
\endscope\expandafter%
|
| 1045 |
+
\endgroup%
|
| 1046 |
+
\expandafter\expandafter\expandafter\def%
|
| 1047 |
+
\expandafter\expandafter\expandafter\tikz@lib@graph@node@list%
|
| 1048 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@lib@graph@node@list\tikz@lib@graph@node@list}%
|
| 1049 |
+
\tikz@lib@graph@hint@aftergroup%
|
| 1050 |
+
}%
|
| 1051 |
+
\def\tikz@lib@make@subgraph@node#1#2#3{%
|
| 1052 |
+
\pgfgdsubgraphnode{#1}{#3}{\pgfgdsubgraphnodecontents{#2}}%
|
| 1053 |
+
}%
|
| 1054 |
+
\def\tikz@lib@layout@startup@node@options{%
|
| 1055 |
+
/utils/exec=\tikzlibignorecomparisonsINTERNAL,
|
| 1056 |
+
/tikz/graphs/.cd,%
|
| 1057 |
+
redirect unknown to tikz,%
|
| 1058 |
+
anchor=base,%
|
| 1059 |
+
/tikz/every subgraph node/.try,%
|
| 1060 |
+
}%
|
| 1061 |
+
\def\tikzlibignorecomparisonsINTERNAL{%
|
| 1062 |
+
\pgfkeys{/handlers/first char syntax=true}
|
| 1063 |
+
\pgfkeyssetvalue{/handlers/first char syntax/\expandafter\meaning\string>}{\pgfutil@gobble}%
|
| 1064 |
+
\pgfkeyssetvalue{/handlers/first char syntax/\expandafter\meaning\string<}{\pgfutil@gobble}%
|
| 1065 |
+
}%
|
| 1066 |
+
\def\tikz@lib@layout@node@options@prefix{graphs/.cd,}%
|
| 1067 |
+
|
| 1068 |
+
\ifx\tikz@lib@ensure@gd@loaded\pgfutil@undefined%
|
| 1069 |
+
\def\tikz@lib@ensure@gd@loaded{\tikzerror{You must say \string\usetikzlibrary{graphdrawing} to use the (sub)layout syntax}}%
|
| 1070 |
+
\fi
|
| 1071 |
+
|
| 1072 |
+
\def\tikz@lg@local@node@handle#1{%
|
| 1073 |
+
\tikzgraphsset{source,target,.unknown/.code=,#1}%
|
| 1074 |
+
\tikzgdlatenodeoptionacallback{\tikz@pp@name\tikz@lib@graph@name}%
|
| 1075 |
+
\node also[graphs/redirect unknown to tikz,/tikz/graphs/.cd,#1](\tikz@lib@graph@name);%
|
| 1076 |
+
\pgfkeysvalueof{/tikz/graphs/@operators}%
|
| 1077 |
+
}%
|
| 1078 |
+
|
| 1079 |
+
\tikzgraphsset{redirect unknown to tikz/.style={
|
| 1080 |
+
/tikz/graphs/.unknown/.code={%
|
| 1081 |
+
\let\tikz@key\pgfkeyscurrentname%
|
| 1082 |
+
\pgfkeys{tikz/.cd,\tikz@key={##1},/tikz/graphs/.cd}%
|
| 1083 |
+
}}
|
| 1084 |
+
}%
|
| 1085 |
+
|
| 1086 |
+
\def\tikz@lib@activate@source@target@edge@syntax{%
|
| 1087 |
+
\pgfkeys{/handlers/first char syntax=true}
|
| 1088 |
+
\pgfkeyssetvalue{/handlers/first char syntax/\expandafter\meaning\string>}{\tikz@lg@parse@more}%
|
| 1089 |
+
\pgfkeyssetvalue{/handlers/first char syntax/\expandafter\meaning\string<}{\tikz@lg@parse@less}%
|
| 1090 |
+
}%
|
| 1091 |
+
|
| 1092 |
+
\def\tikz@lg@parse@less#1{\tikz@lg@parse@less@#1\pgf@stop}%
|
| 1093 |
+
\def\tikz@lg@parse@less@<{\pgfutil@ifnextchar"{\tikz@lg@parse@quote{source}}{\tikz@lg@parse@noquote{source}}}%
|
| 1094 |
+
\def\tikz@lg@parse@more#1{\tikz@lg@parse@more@#1\pgf@stop}%
|
| 1095 |
+
\def\tikz@lg@parse@more@>{\pgfutil@ifnextchar"{\tikz@lg@parse@quote{target}}{\tikz@lg@parse@noquote{target}}}%
|
| 1096 |
+
|
| 1097 |
+
\def\tikz@lg@parse@noquote#1#2\pgf@stop{{\tikzgraphsset{#1 edge style={#2}}}}%
|
| 1098 |
+
\def\tikz@lg@parse@quote#1#2\pgf@stop{%
|
| 1099 |
+
{\tikzgraphsset{/tikz/node quotes mean={#1 edge node={node [every edge quotes,##2]{##1}}},/utils/exec=\tikz@enable@node@quotes,#2}}%
|
| 1100 |
+
}%
|
| 1101 |
+
|
| 1102 |
+
\tikzgraphsset{
|
| 1103 |
+
clear >/.style=target edge clear,
|
| 1104 |
+
clear </.style=source edge clear
|
| 1105 |
+
}%
|
| 1106 |
+
|
| 1107 |
+
|
| 1108 |
+
|
| 1109 |
+
\def\tikz@lib@graph@x{0}%
|
| 1110 |
+
\def\tikz@lib@graph@y{0}%
|
| 1111 |
+
|
| 1112 |
+
\tikzgraphsset{
|
| 1113 |
+
x/.code=\def\tikz@lib@graph@x{#1}\tikz@lib@graphs@check@at,
|
| 1114 |
+
y/.code=\def\tikz@lib@graph@y{#1}\tikz@lib@graphs@check@at
|
| 1115 |
+
}%
|
| 1116 |
+
\def\tikz@lib@graphs@check@at{%
|
| 1117 |
+
\expandafter\expandafter\expandafter\def%
|
| 1118 |
+
\expandafter\expandafter\expandafter\tikz@temp%
|
| 1119 |
+
\expandafter\expandafter\expandafter{%
|
| 1120 |
+
\expandafter\expandafter\expandafter(%
|
| 1121 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@lib@graph@x\expandafter}%
|
| 1122 |
+
\expandafter,\expandafter{\tikz@lib@graph@y})}%
|
| 1123 |
+
\pgfqkeys{/tikz}{at/.expand once=\tikz@temp}%
|
| 1124 |
+
}%
|
| 1125 |
+
|
| 1126 |
+
|
| 1127 |
+
\newif\iftikz@lib@graph@trie
|
| 1128 |
+
\tikzgraphsset{
|
| 1129 |
+
trie/.is if=tikz@lib@graph@trie,
|
| 1130 |
+
put node text on incoming
|
| 1131 |
+
edges/.style={nodes={/utils/exec=\tikz@lg@make@edge@node{target}{#1}}},
|
| 1132 |
+
put node text on outgoing
|
| 1133 |
+
edges/.style={nodes={/utils/exec=\tikz@lg@make@edge@node{source}{#1}}},
|
| 1134 |
+
edge quotes/.style={/tikz/every edge quotes/.style={#1}},
|
| 1135 |
+
edge quotes center/.style={edge quotes={anchor=center}},
|
| 1136 |
+
edge quotes mid/.style={edge quotes={anchor=mid}}
|
| 1137 |
+
}%
|
| 1138 |
+
|
| 1139 |
+
\def\tikz@lg@make@edge@node#1#2{%
|
| 1140 |
+
\def\pgf@marshal{node[#2]}%
|
| 1141 |
+
\expandafter\expandafter\expandafter\def\expandafter\expandafter\expandafter\pgf@marshal\expandafter\expandafter\expandafter{\expandafter\pgf@marshal\expandafter{\tikzgraphnodetext}}%
|
| 1142 |
+
\pgfkeysalso{#1 edge node/.expand once=\pgf@marshal,as=}%
|
| 1143 |
+
}%
|
| 1144 |
+
|
| 1145 |
+
\newif\iftikz@lib@graph@fresh@node
|
| 1146 |
+
\tikzgraphsset{fresh nodes/.is if=tikz@lib@graph@fresh@node}%
|
| 1147 |
+
|
| 1148 |
+
\tikzgraphsset{number nodes/.code=%
|
| 1149 |
+
\pgfmathsetcount\tikz@lib@auto@number{#1}%
|
| 1150 |
+
\tikzgraphsautonumbernodestrue,%
|
| 1151 |
+
number nodes/.default=1,%
|
| 1152 |
+
number nodes sep/.code=\def\tikz@lib@auto@sep{#1}
|
| 1153 |
+
}%
|
| 1154 |
+
\def\tikz@lib@auto@sep{\space}%
|
| 1155 |
+
|
| 1156 |
+
\newif\iftikz@lib@graph@node@created
|
| 1157 |
+
|
| 1158 |
+
\def\tikz@lib@graph@handle@use#1{%
|
| 1159 |
+
\expandafter\let\expandafter\pgf@temp\csname tikz@lg@node@set #1\endcsname
|
| 1160 |
+
\ifx\pgf@temp\relax
|
| 1161 |
+
\pgfutil@g@addto@macro\tikz@lg@temp{\tikz@lg@do{#1}}
|
| 1162 |
+
\else%
|
| 1163 |
+
\expandafter\pgfutil@g@addto@macro\expandafter\tikz@lg@temp\expandafter{\pgf@temp}
|
| 1164 |
+
\fi
|
| 1165 |
+
}%
|
| 1166 |
+
|
| 1167 |
+
\def\tikz@lib@graph@do@use#1{%
|
| 1168 |
+
\tikz@lg@init@color{#1}{\tikz@lgc@all@true\tikz@lgc@source@true\tikz@lgc@target@true}%
|
| 1169 |
+
}%
|
| 1170 |
+
|
| 1171 |
+
\tikzgraphsset{
|
| 1172 |
+
typeset/.store in=\tikz@lib@graph@typesetter,
|
| 1173 |
+
math nodes/.style={/tikz/graphs/typeset=$\tikzgraphnodetext$},
|
| 1174 |
+
empty nodes/.style={/tikz/graphs/typeset=},
|
| 1175 |
+
typeset=\tikzgraphnodetext
|
| 1176 |
+
}%
|
| 1177 |
+
|
| 1178 |
+
|
| 1179 |
+
\def\tikz@lib@graph@scope#1{
|
| 1180 |
+
\begingroup%
|
| 1181 |
+
\tikzgdeventgroupcallback{array}%
|
| 1182 |
+
\let\tikz@lib@graph@node@list\pgfutil@empty%
|
| 1183 |
+
\tikz@lib@graph@start@hint@group%
|
| 1184 |
+
\tikz@lib@graph@parse@group{#1}%
|
| 1185 |
+
\tikz@lib@graph@end@hint@group%
|
| 1186 |
+
\expandafter%
|
| 1187 |
+
\endgroup%
|
| 1188 |
+
\expandafter\expandafter\expandafter\def%
|
| 1189 |
+
\expandafter\expandafter\expandafter\tikz@lib@graph@node@list%
|
| 1190 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@lib@graph@node@list\tikz@lib@graph@node@list}%
|
| 1191 |
+
\tikz@lib@graph@hint@aftergroup%
|
| 1192 |
+
\tikz@lib@graph@stored@actions%
|
| 1193 |
+
\pgfutil@ifnextchar-{\tikz@lib@graph@scope@minus}{%
|
| 1194 |
+
\pgfutil@ifnextchar<{\tikz@lib@graph@scope@less}{%
|
| 1195 |
+
\tikzerror{One of the arrow types <-, --, ->, -!-, or <-> expected}%
|
| 1196 |
+
}%
|
| 1197 |
+
}%
|
| 1198 |
+
}%
|
| 1199 |
+
|
| 1200 |
+
\def\tikz@lib@graph@scope@minus-{
|
| 1201 |
+
\pgfutil@ifnextchar>\tikz@lib@graph@forward@arrow{%
|
| 1202 |
+
\pgfutil@ifnextchar-\tikz@lib@graph@undirected@arrow{%
|
| 1203 |
+
\pgfutil@ifnextchar!\tikz@lib@graph@no@arrow{%
|
| 1204 |
+
\pgfutil@ifnextchar\pgf@stop@eodashes\tikz@lib@graph@graph@done{%
|
| 1205 |
+
\tikzerror{One of the arrow types <-, --, ->, -!-, or <-> expected}%
|
| 1206 |
+
\tikz@lib@graph@undirected@arrow%
|
| 1207 |
+
}%
|
| 1208 |
+
}%
|
| 1209 |
+
}%
|
| 1210 |
+
}%
|
| 1211 |
+
}%
|
| 1212 |
+
|
| 1213 |
+
\def\tikz@lib@graph@scope@less<-{\tikz@lib@graph@back@arrow}%
|
| 1214 |
+
|
| 1215 |
+
|
| 1216 |
+
|
| 1217 |
+
|
| 1218 |
+
|
| 1219 |
+
\tikzgraphsset{
|
| 1220 |
+
declare/.code 2 args={\expandafter\def\csname tikz@lib@graph@def@#1\endcsname{\tikz@lib@graph@do@graph{#2}}}%
|
| 1221 |
+
}%
|
| 1222 |
+
|
| 1223 |
+
\def\tikz@lib@graph@handle@graph#1{%
|
| 1224 |
+
\begingroup%
|
| 1225 |
+
\let\tikz@lib@graph@node@list\pgfutil@empty%
|
| 1226 |
+
\tikzgraphsset{@extra group options/.style={#1}}%
|
| 1227 |
+
\tikz@lib@graph@start@hint@group%
|
| 1228 |
+
\csname tikz@lib@graph@def@\tikz@lib@graph@name@only\endcsname%
|
| 1229 |
+
\tikz@lib@graph@end@hint@group%
|
| 1230 |
+
\expandafter%
|
| 1231 |
+
\endgroup%
|
| 1232 |
+
\expandafter\expandafter\expandafter\def%
|
| 1233 |
+
\expandafter\expandafter\expandafter\tikz@lib@graph@node@list%
|
| 1234 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@lib@graph@node@list\tikz@lib@graph@node@list}%
|
| 1235 |
+
\tikz@lib@graph@hint@aftergroup%
|
| 1236 |
+
}%
|
| 1237 |
+
|
| 1238 |
+
\def\tikz@lib@graph@do@graph#1{%
|
| 1239 |
+
\tikz@lib@graph@parse@group{#1}%
|
| 1240 |
+
}%
|
| 1241 |
+
|
| 1242 |
+
\let\tikz@lib@graph@path\pgfutil@empty
|
| 1243 |
+
|
| 1244 |
+
\tikzgraphsset{
|
| 1245 |
+
name separator/.store in=\tikz@lib@graph@name@separator,
|
| 1246 |
+
name separator=\space,
|
| 1247 |
+
name/.code={%
|
| 1248 |
+
\edef\tikz@lib@graph@path{\tikz@lib@graph@path#1\tikz@lib@graph@name@separator}%
|
| 1249 |
+
}%
|
| 1250 |
+
}%
|
| 1251 |
+
|
| 1252 |
+
|
| 1253 |
+
\def\tikz@lg@newif{\csname newif\endcsname}%
|
| 1254 |
+
\tikzgraphsset{
|
| 1255 |
+
as/.code=\def\tikzgraphnodeas{#1},%
|
| 1256 |
+
color class/.style={%
|
| 1257 |
+
/utils/exec=\expandafter\tikz@lg@newif\csname iftikz@lgc@#1@\endcsname,
|
| 1258 |
+
#1/.style={operator={%
|
| 1259 |
+
\edef\tikz@lg@col{\expandafter\noexpand\csname tikz@lgc@#1@true\endcsname}%
|
| 1260 |
+
\let\tikz@lg@do\tikz@lg@colorize%
|
| 1261 |
+
\tikz@lib@graph@node@list%
|
| 1262 |
+
}},
|
| 1263 |
+
not #1/.style={operator={%
|
| 1264 |
+
\edef\tikz@lg@old@col{\expandafter\noexpand\csname tikz@lgc@#1@true\endcsname}%
|
| 1265 |
+
\let\tikz@lg@new@col\pgfutil@empty%
|
| 1266 |
+
\let\tikz@lg@do\tikz@lg@change@color%
|
| 1267 |
+
\tikz@lib@graph@node@list%
|
| 1268 |
+
}},
|
| 1269 |
+
recolor #1 by/.style={operator={%
|
| 1270 |
+
\edef\tikz@lg@old@col{\expandafter\noexpand\csname tikz@lgc@#1@true\endcsname}%
|
| 1271 |
+
\edef\tikz@lg@new@col{\expandafter\noexpand\csname tikz@lgc@##1@true\endcsname}%
|
| 1272 |
+
\let\tikz@lg@do\tikz@lg@change@color%
|
| 1273 |
+
\tikz@lib@graph@node@list%
|
| 1274 |
+
}},
|
| 1275 |
+
!#1/.style=not #1,
|
| 1276 |
+
},
|
| 1277 |
+
color class=source,
|
| 1278 |
+
color class=source',
|
| 1279 |
+
color class=source'',
|
| 1280 |
+
color class=target,
|
| 1281 |
+
color class=target',
|
| 1282 |
+
color class=all
|
| 1283 |
+
}%
|
| 1284 |
+
|
| 1285 |
+
\def\tikz@lg@init@color#1#2{%
|
| 1286 |
+
\expandafter\gdef\csname tikz@lgc@#1\endcsname{#2}%
|
| 1287 |
+
}%
|
| 1288 |
+
|
| 1289 |
+
\def\tikz@lib@graph@cleanup#1{%
|
| 1290 |
+
\expandafter\global\expandafter\let\csname tikz@lgc@#1\endcsname\relax%
|
| 1291 |
+
\ifcsname tikz@lgca@@#1\endcsname\expandafter\global\expandafter\let\csname tikz@lgca@@#1\endcsname\relax\fi%
|
| 1292 |
+
\ifcsname tikz@lgcb@@#1\endcsname\expandafter\global\expandafter\let\csname tikz@lgcb@@#1\endcsname\relax\fi%
|
| 1293 |
+
}%
|
| 1294 |
+
|
| 1295 |
+
\def\tikz@lg@colorize#1{%
|
| 1296 |
+
\expandafter\let\expandafter\pgf@temp\csname tikz@lgc@#1\endcsname%
|
| 1297 |
+
\expandafter\expandafter\expandafter\def%
|
| 1298 |
+
\expandafter\expandafter\expandafter\pgf@temp%
|
| 1299 |
+
\expandafter\expandafter\expandafter{%
|
| 1300 |
+
\expandafter\tikz@lg@col\pgf@temp}%
|
| 1301 |
+
\expandafter\global\expandafter\let\csname tikz@lgc@#1\endcsname\pgf@temp%
|
| 1302 |
+
}%
|
| 1303 |
+
|
| 1304 |
+
\def\tikz@lg@change@color#1{%
|
| 1305 |
+
\def\tikz@lg@temp@save{#1}%
|
| 1306 |
+
\let\tikz@lg@collect\pgfutil@empty%
|
| 1307 |
+
\expandafter\let\expandafter\pgf@temp\csname tikz@lgc@#1\endcsname%
|
| 1308 |
+
\expandafter\tikz@lg@change@check\pgf@temp\pgf@stop%
|
| 1309 |
+
}%
|
| 1310 |
+
\def\tikz@lg@change@check#1{%
|
| 1311 |
+
\ifx#1\pgf@stop%
|
| 1312 |
+
\tikz@lg@change@write@back%
|
| 1313 |
+
\else%
|
| 1314 |
+
\def\pgf@temp{#1}%
|
| 1315 |
+
\ifx\pgf@temp\tikz@lg@old@col%
|
| 1316 |
+
\expandafter\tikz@lg@change@add\expandafter{\tikz@lg@new@col}%
|
| 1317 |
+
\else%
|
| 1318 |
+
\tikz@lg@change@add{#1}%
|
| 1319 |
+
\fi%
|
| 1320 |
+
\expandafter\tikz@lg@change@check
|
| 1321 |
+
\fi%
|
| 1322 |
+
}%
|
| 1323 |
+
\def\tikz@lg@change@add#1{%
|
| 1324 |
+
\expandafter\def\expandafter\tikz@lg@collect\expandafter{\tikz@lg@collect#1}%
|
| 1325 |
+
}%
|
| 1326 |
+
|
| 1327 |
+
\def\tikz@lg@change@write@back{%
|
| 1328 |
+
\expandafter\global\expandafter\let\csname tikz@lgc@\tikz@lg@temp@save\endcsname\tikz@lg@collect%
|
| 1329 |
+
}%
|
| 1330 |
+
|
| 1331 |
+
|
| 1332 |
+
|
| 1333 |
+
\def\tikz@lg@if@has@color#1#2#3#4{%
|
| 1334 |
+
{%
|
| 1335 |
+
\csname tikz@lgc@#1\endcsname%
|
| 1336 |
+
\expandafter\let\expandafter\pgf@temp\csname iftikz@lgc@#2@\endcsname%
|
| 1337 |
+
\ifx\pgf@temp\relax%
|
| 1338 |
+
\tikz@lib@reset@temp%
|
| 1339 |
+
\fi%
|
| 1340 |
+
\pgf@temp%
|
| 1341 |
+
\global\tikz@color@testtrue%
|
| 1342 |
+
\else%
|
| 1343 |
+
\global\tikz@color@testfalse%
|
| 1344 |
+
\fi%
|
| 1345 |
+
}%
|
| 1346 |
+
\iftikz@color@test#3\else#4\fi%
|
| 1347 |
+
}%
|
| 1348 |
+
\newif\iftikz@color@test
|
| 1349 |
+
|
| 1350 |
+
\def\tikz@lg@if@local@node#1#2#3{\expandafter\ifx\csname tikz@lgc@#1\endcsname\relax#3\else#2\fi}%
|
| 1351 |
+
|
| 1352 |
+
\def\tikz@lib@reset@temp{\let\pgf@temp\iffalse}%
|
| 1353 |
+
|
| 1354 |
+
\def\tikz@lib@annotate@#1#2#3#4{%
|
| 1355 |
+
\expandafter\ifx\csname tikz@lgc#1@@#2\endcsname\relax%
|
| 1356 |
+
\expandafter\gdef\csname tikz@lgc#1@@#2\endcsname{{#3}{#4}}%
|
| 1357 |
+
\else%
|
| 1358 |
+
\expandafter\expandafter\expandafter\tikz@lib@annotate@read\csname tikz@lgc#1@@#2\endcsname{#3}{#4}%
|
| 1359 |
+
\expandafter\global\expandafter\let\csname tikz@lgc#1@@#2\endcsname\pgf@temp%
|
| 1360 |
+
\fi%
|
| 1361 |
+
}%
|
| 1362 |
+
\def\tikz@lib@annotate@read#1#2#3#4{\def\pgf@temp{{#1,#3}{#2#4}}}%
|
| 1363 |
+
|
| 1364 |
+
\tikzgraphsset{
|
| 1365 |
+
source edge style/.code=\tikz@lib@annotate@{a}{\tikz@lib@graph@name}{#1}{},
|
| 1366 |
+
source edge node/.code=\tikz@lib@annotate@{a}{\tikz@lib@graph@name}{}{#1},
|
| 1367 |
+
source edge clear/.code={
|
| 1368 |
+
\expandafter\global\expandafter\let\csname tikz@lgca@@\tikz@lib@graph@name\endcsname\relax%
|
| 1369 |
+
},
|
| 1370 |
+
target edge style/.code=\tikz@lib@annotate@{b}{\tikz@lib@graph@name}{#1}{},
|
| 1371 |
+
target edge node/.code=\tikz@lib@annotate@{b}{\tikz@lib@graph@name}{}{#1},
|
| 1372 |
+
target edge clear/.code={%
|
| 1373 |
+
\expandafter\global\expandafter\let\csname tikz@lgcb@@\tikz@lib@graph@name\endcsname\relax%
|
| 1374 |
+
}
|
| 1375 |
+
}%
|
| 1376 |
+
|
| 1377 |
+
|
| 1378 |
+
|
| 1379 |
+
|
| 1380 |
+
\def\tikz@lib@graph@pack@node@list{%
|
| 1381 |
+
{%
|
| 1382 |
+
\let\tikz@lg@packed\pgfutil@empty%
|
| 1383 |
+
\let\tikz@lg@do\tikz@lg@packer%
|
| 1384 |
+
\tikz@lib@graph@node@list%
|
| 1385 |
+
\expandafter
|
| 1386 |
+
}\expandafter%
|
| 1387 |
+
\def\expandafter\tikz@lib@graph@node@list\expandafter{\tikz@lg@packed}%
|
| 1388 |
+
}%
|
| 1389 |
+
|
| 1390 |
+
\def\tikz@lg@packer#1{%
|
| 1391 |
+
\expandafter\ifx\csname tikz@lg@p@#1\endcsname\pgf@stop%
|
| 1392 |
+
\else%
|
| 1393 |
+
\expandafter\let\csname tikz@lg@p@#1\endcsname\pgf@stop%
|
| 1394 |
+
\expandafter\def\expandafter\tikz@lg@packed\expandafter{\tikz@lg@packed\tikz@lg@do{#1}}
|
| 1395 |
+
\fi
|
| 1396 |
+
}%
|
| 1397 |
+
|
| 1398 |
+
|
| 1399 |
+
|
| 1400 |
+
\def\tikzgraphforeachcolorednode#1#2{%
|
| 1401 |
+
\tikz@lib@graph@pack@node@list%
|
| 1402 |
+
\expandafter\def\expandafter\iftikz@lib@graph@color@picker\expandafter{\csname iftikz@lgc@#1@\endcsname}%
|
| 1403 |
+
\let\tikz@lib@graph@action#2%
|
| 1404 |
+
\let\tikz@lg@do\tikz@lg@pick%
|
| 1405 |
+
\tikz@lib@graph@node@list%
|
| 1406 |
+
}%
|
| 1407 |
+
\def\tikz@lg@pick#1{
|
| 1408 |
+
{%
|
| 1409 |
+
\csname tikz@lgc@#1\endcsname%
|
| 1410 |
+
\iftikz@lib@graph@color@picker
|
| 1411 |
+
\global\tikz@color@testtrue%
|
| 1412 |
+
\else%
|
| 1413 |
+
\global\tikz@color@testfalse%
|
| 1414 |
+
\fi%
|
| 1415 |
+
}%
|
| 1416 |
+
\iftikz@color@test\tikz@lib@graph@action{#1}\fi%
|
| 1417 |
+
}%
|
| 1418 |
+
|
| 1419 |
+
|
| 1420 |
+
|
| 1421 |
+
|
| 1422 |
+
\def\tikzgraphpreparecolor#1#2#3{%
|
| 1423 |
+
\let\tikz@lib@graph@count#2%
|
| 1424 |
+
\tikz@lib@graph@count0\relax
|
| 1425 |
+
\def\tikz@lib@graph@prefix{#3}%
|
| 1426 |
+
\tikzgraphforeachcolorednode{#1}\tikz@lib@graph@prepare%
|
| 1427 |
+
}%
|
| 1428 |
+
|
| 1429 |
+
\def\tikz@lib@graph@prepare#1{%
|
| 1430 |
+
\advance\tikz@lib@graph@count by1\relax%
|
| 1431 |
+
\expandafter\def\csname\tikz@lib@graph@prefix\the\tikz@lib@graph@count\endcsname{#1}%
|
| 1432 |
+
}%
|
| 1433 |
+
|
| 1434 |
+
|
| 1435 |
+
|
| 1436 |
+
|
| 1437 |
+
|
| 1438 |
+
\tikzgraphsset{
|
| 1439 |
+
complete bipartite/.style 2 args={operator={
|
| 1440 |
+
\def\tikz@lg@shoreb{#2}%
|
| 1441 |
+
\tikzgraphforeachcolorednode{#1}\tikz@lib@graph@bipartite@outer
|
| 1442 |
+
}},
|
| 1443 |
+
complete bipartite/.default={target'}{source'},
|
| 1444 |
+
induced complete bipartite/.style 2 args={
|
| 1445 |
+
induced independent set={#1},
|
| 1446 |
+
induced independent set={#2},
|
| 1447 |
+
complete bipartite={#1}{#2}
|
| 1448 |
+
},
|
| 1449 |
+
induced complete bipartite/.default={target'}{source'},
|
| 1450 |
+
}%
|
| 1451 |
+
|
| 1452 |
+
\def\tikz@lib@graph@bipartite@outer#1{%
|
| 1453 |
+
\def\tikz@lib@graph@from{#1}%
|
| 1454 |
+
{%
|
| 1455 |
+
\tikzgraphforeachcolorednode{\tikz@lg@shoreb}\tikz@lib@graph@bipartite@inner%
|
| 1456 |
+
}%
|
| 1457 |
+
}%
|
| 1458 |
+
|
| 1459 |
+
\def\tikz@lib@graph@bipartite@inner#1{%
|
| 1460 |
+
\def\pgf@temp{#1}%
|
| 1461 |
+
\ifx\pgf@temp\tikz@lib@graph@from\else%
|
| 1462 |
+
\tikz@lib@graph@default@new@edge{\tikz@lib@graph@from}{#1}%
|
| 1463 |
+
\fi%
|
| 1464 |
+
}%
|
| 1465 |
+
|
| 1466 |
+
\def\tikz@lib@graph@default@new@edge#1#2{%
|
| 1467 |
+
\pgfkeysgetvalue{/tikz/graphs/@edges styling}\pgf@temp
|
| 1468 |
+
\pgfkeysgetvalue{/tikz/graphs/@edges node}\pgf@temp@b
|
| 1469 |
+
\let\tikz@lib@add@temp\pgfutil@empty%
|
| 1470 |
+
\tikz@lib@graph@add@edge@annotations{a}{#1}
|
| 1471 |
+
\tikz@lib@graph@add@edge@annotations{b}{#2}
|
| 1472 |
+
\expandafter\expandafter\expandafter\def%
|
| 1473 |
+
\expandafter\expandafter\expandafter\pgf@temp%
|
| 1474 |
+
\expandafter\expandafter\expandafter{\expandafter\pgf@temp\tikz@lib@add@temp}%
|
| 1475 |
+
\expandafter\expandafter\expandafter\tikz@lib@graph@default@new@edge@%
|
| 1476 |
+
\expandafter\expandafter\expandafter{\expandafter\pgf@temp\expandafter}\expandafter{\pgf@temp@b}{#1}{#2}%
|
| 1477 |
+
}%
|
| 1478 |
+
\def\tikz@lib@graph@default@new@edge@#1#2#3#4{%
|
| 1479 |
+
\iftikz@lib@graph@simple%
|
| 1480 |
+
\edef\tikz@temp{{\pgfkeysvalueof{/tikz/graphs/default edge kind}}{#3}{#4}}
|
| 1481 |
+
\expandafter\tikz@lib@graph@set@simple@edge\tikz@temp{#1}{#2}%
|
| 1482 |
+
\else%
|
| 1483 |
+
\pgfkeys{/tikz/graphs/.cd,new \pgfkeysvalueof{/tikz/graphs/default edge kind}={#3}{#4}{#1}{#2}}%
|
| 1484 |
+
\fi%
|
| 1485 |
+
}%
|
| 1486 |
+
\def\tikz@lib@graph@add@edge@annotations#1#2{%
|
| 1487 |
+
\ifcsname tikz@lgc#1@@#2\endcsname%
|
| 1488 |
+
\expandafter\let\expandafter\tikz@lg@temp@\csname tikz@lgc#1@@#2\endcsname%
|
| 1489 |
+
\ifx\tikz@lg@temp@\relax\else
|
| 1490 |
+
\expandafter\tikz@lib@graph@add@edge@annotations@\tikz@lg@temp@%
|
| 1491 |
+
\let\tikz@lib@add@temp\tikz@lib@final@edge@style
|
| 1492 |
+
\fi%
|
| 1493 |
+
\fi%
|
| 1494 |
+
}%
|
| 1495 |
+
\def\tikz@lib@graph@add@edge@annotations@#1#2{
|
| 1496 |
+
\expandafter\def\expandafter\pgf@temp\expandafter{\pgf@temp,#1}%
|
| 1497 |
+
\expandafter\def\expandafter\pgf@temp@b\expandafter{\pgf@temp@b#2}%
|
| 1498 |
+
}%
|
| 1499 |
+
\def\tikz@lib@final@edge@style{,after source and target edge/.try}%
|
| 1500 |
+
|
| 1501 |
+
|
| 1502 |
+
\tikzgraphsset{
|
| 1503 |
+
clique/.style={operator={
|
| 1504 |
+
\tikzgraphpreparecolor{#1}\c@pgf@counta{tikz@lg}%
|
| 1505 |
+
\tikz@lg@clique@loop%
|
| 1506 |
+
}},
|
| 1507 |
+
clique/.default=all
|
| 1508 |
+
}%
|
| 1509 |
+
|
| 1510 |
+
\def\tikz@lg@clique@loop{%
|
| 1511 |
+
\ifnum\c@pgf@counta=0\relax%
|
| 1512 |
+
\else
|
| 1513 |
+
\c@pgf@countb=\c@pgf@counta\relax%
|
| 1514 |
+
\tikz@lg@clique@loop@inner%
|
| 1515 |
+
\advance\c@pgf@counta by-1\relax%
|
| 1516 |
+
\expandafter\tikz@lg@clique@loop%
|
| 1517 |
+
\fi%
|
| 1518 |
+
}%
|
| 1519 |
+
|
| 1520 |
+
\def\tikz@lg@clique@loop@inner{%
|
| 1521 |
+
\advance\c@pgf@countb by-1\relax%
|
| 1522 |
+
\ifnum\c@pgf@countb>0\relax%
|
| 1523 |
+
\tikz@lib@graph@default@new@edge{\csname tikz@lg\the\c@pgf@countb\endcsname}{\csname tikz@lg\the\c@pgf@counta\endcsname}%
|
| 1524 |
+
\expandafter\tikz@lg@clique@loop@inner%
|
| 1525 |
+
\fi%
|
| 1526 |
+
}%
|
| 1527 |
+
|
| 1528 |
+
|
| 1529 |
+
|
| 1530 |
+
\tikzgraphsset{
|
| 1531 |
+
induced independent set/.style={operator={
|
| 1532 |
+
\pgfkeysgetvalue{/tikz/graphs/default edge kind}\tikz@lg@default%
|
| 1533 |
+
\pgfkeyssetvalue{/tikz/graphs/default edge kind}{-!-}%
|
| 1534 |
+
\tikzgraphpreparecolor{#1}\c@pgf@counta{tikz@lg}%
|
| 1535 |
+
\tikz@lg@indep@loop%
|
| 1536 |
+
\pgfkeyslet{/tikz/graphs/default edge kind}\tikz@lg@default%
|
| 1537 |
+
}},
|
| 1538 |
+
induced independent set/.default=all
|
| 1539 |
+
}%
|
| 1540 |
+
|
| 1541 |
+
\def\tikz@lg@indep@loop{%
|
| 1542 |
+
\ifnum\c@pgf@counta=0\relax%
|
| 1543 |
+
\else
|
| 1544 |
+
\c@pgf@countb=\c@pgf@counta\relax%
|
| 1545 |
+
\tikz@lg@indep@loop@inner%
|
| 1546 |
+
\advance\c@pgf@counta by-1\relax%
|
| 1547 |
+
\expandafter\tikz@lg@indep@loop%
|
| 1548 |
+
\fi%
|
| 1549 |
+
}%
|
| 1550 |
+
|
| 1551 |
+
\def\tikz@lg@indep@loop@inner{%
|
| 1552 |
+
\advance\c@pgf@countb by-1\relax%
|
| 1553 |
+
\ifnum\c@pgf@countb>0\relax%
|
| 1554 |
+
\tikz@lib@graph@default@new@edge{\csname tikz@lg\the\c@pgf@counta\endcsname}{\csname tikz@lg\the\c@pgf@countb\endcsname}%
|
| 1555 |
+
\expandafter\tikz@lg@indep@loop@inner%
|
| 1556 |
+
\fi%
|
| 1557 |
+
}%
|
| 1558 |
+
|
| 1559 |
+
|
| 1560 |
+
|
| 1561 |
+
\tikzgraphsset{
|
| 1562 |
+
path/.style={operator={%
|
| 1563 |
+
\let\tikz@lg@prev\relax%
|
| 1564 |
+
\tikzgraphforeachcolorednode{#1}\tikz@lib@graph@path@do%
|
| 1565 |
+
}},
|
| 1566 |
+
path/.default=all,
|
| 1567 |
+
induced path/.style={induced independent set={#1},path={#1}},
|
| 1568 |
+
induced path/.default=all,
|
| 1569 |
+
}%
|
| 1570 |
+
|
| 1571 |
+
\def\tikz@lib@graph@path@do#1{%
|
| 1572 |
+
\ifx\tikz@lg@prev\relax%
|
| 1573 |
+
\else%
|
| 1574 |
+
\tikz@lib@graph@default@new@edge{\tikz@lg@prev}{#1}%
|
| 1575 |
+
\fi
|
| 1576 |
+
\def\tikz@lg@prev{#1}%
|
| 1577 |
+
}%
|
| 1578 |
+
|
| 1579 |
+
|
| 1580 |
+
|
| 1581 |
+
\tikzgraphsset{
|
| 1582 |
+
cycle/.style={operator={%
|
| 1583 |
+
\let\tikz@lg@prev\relax%
|
| 1584 |
+
\let\tikz@lg@first\relax%
|
| 1585 |
+
\tikzgraphforeachcolorednode{#1}\tikz@lib@graph@cycle@do%
|
| 1586 |
+
\ifx\tikz@lg@first\relax%
|
| 1587 |
+
\else%
|
| 1588 |
+
\tikz@lib@graph@default@new@edge{\tikz@lg@prev}{\tikz@lg@first}%
|
| 1589 |
+
\fi%
|
| 1590 |
+
}},
|
| 1591 |
+
cycle/.default=all,
|
| 1592 |
+
induced cycle/.style={induced independent set={#1},cycle={#1}},
|
| 1593 |
+
induced cycle/.default=all,
|
| 1594 |
+
}%
|
| 1595 |
+
|
| 1596 |
+
\def\tikz@lib@graph@cycle@do#1{%
|
| 1597 |
+
\ifx\tikz@lg@prev\relax%
|
| 1598 |
+
\def\tikz@lg@prev{#1}%
|
| 1599 |
+
\let\tikz@lg@first\tikz@lg@prev%
|
| 1600 |
+
\else%
|
| 1601 |
+
\tikz@lib@graph@default@new@edge{\tikz@lg@prev}{#1}%
|
| 1602 |
+
\def\tikz@lg@prev{#1}%
|
| 1603 |
+
\fi%
|
| 1604 |
+
}%
|
| 1605 |
+
|
| 1606 |
+
|
| 1607 |
+
|
| 1608 |
+
|
| 1609 |
+
|
| 1610 |
+
\tikzgraphsset{
|
| 1611 |
+
matching and star/.style 2 args={operator=%
|
| 1612 |
+
{%
|
| 1613 |
+
\tikzgraphpreparecolor{#1}\c@pgf@counta{tikz@lg}
|
| 1614 |
+
\c@pgf@countb=0\relax%
|
| 1615 |
+
\let\tikz@lg@prev\relax
|
| 1616 |
+
\tikzgraphforeachcolorednode{#2}\tikz@lib@graph@flow@do%
|
| 1617 |
+
\tikz@lib@graph@flow@rest%
|
| 1618 |
+
}%
|
| 1619 |
+
},
|
| 1620 |
+
matching and star/.default={target'}{source'}
|
| 1621 |
+
}%
|
| 1622 |
+
|
| 1623 |
+
\def\tikz@lib@graph@flow@do#1{%
|
| 1624 |
+
\advance\c@pgf@countb by1\relax%
|
| 1625 |
+
\ifnum\c@pgf@countb>\c@pgf@counta\relax%
|
| 1626 |
+
\c@pgf@countb=\c@pgf@counta\relax%
|
| 1627 |
+
\fi%
|
| 1628 |
+
\ifnum\c@pgf@countb>0\relax%
|
| 1629 |
+
\tikz@lib@graph@default@new@edge{\csname tikz@lg\the\c@pgf@countb\endcsname}{#1}%
|
| 1630 |
+
\fi%
|
| 1631 |
+
\def\tikz@lg@prev{#1}%
|
| 1632 |
+
}%
|
| 1633 |
+
|
| 1634 |
+
\def\tikz@lib@graph@flow@rest{%
|
| 1635 |
+
\ifnum\c@pgf@countb<\c@pgf@counta\relax%
|
| 1636 |
+
\ifnum\c@pgf@countb>0\relax%
|
| 1637 |
+
\advance\c@pgf@countb by1\relax%
|
| 1638 |
+
\tikz@lib@graph@default@new@edge{\csname tikz@lg\the\c@pgf@countb\endcsname}{\tikz@lg@prev}%
|
| 1639 |
+
\expandafter\tikz@lib@graph@flow@rest%
|
| 1640 |
+
\fi%
|
| 1641 |
+
\fi%
|
| 1642 |
+
}%
|
| 1643 |
+
|
| 1644 |
+
|
| 1645 |
+
|
| 1646 |
+
|
| 1647 |
+
\tikzgraphsset{
|
| 1648 |
+
matching/.style 2 args={operator=
|
| 1649 |
+
{%
|
| 1650 |
+
\tikzgraphpreparecolor{#1}\c@pgf@counta{tikz@lg}
|
| 1651 |
+
\c@pgf@countb=0\relax%
|
| 1652 |
+
\tikzgraphforeachcolorednode{#2}\tikz@lib@graph@matching@do%
|
| 1653 |
+
}%
|
| 1654 |
+
},
|
| 1655 |
+
matching/.default={target'}{source'}
|
| 1656 |
+
}%
|
| 1657 |
+
|
| 1658 |
+
\def\tikz@lib@graph@matching@do#1{%
|
| 1659 |
+
\advance\c@pgf@countb by1\relax%
|
| 1660 |
+
\ifnum\c@pgf@countb>\c@pgf@counta\relax%
|
| 1661 |
+
\else%
|
| 1662 |
+
\tikz@lib@graph@default@new@edge{\csname tikz@lg\the\c@pgf@countb\endcsname}{#1}%
|
| 1663 |
+
\fi%
|
| 1664 |
+
}%
|
| 1665 |
+
|
| 1666 |
+
|
| 1667 |
+
|
| 1668 |
+
|
| 1669 |
+
|
| 1670 |
+
|
| 1671 |
+
\tikzgraphsset{
|
| 1672 |
+
butterfly/.style={operator=
|
| 1673 |
+
{}{%
|
| 1674 |
+
\pgfkeys{/tikz/graphs/butterfly/.cd,#1}%
|
| 1675 |
+
\ifnum\pgfkeysvalueof{/tikz/graphs/butterfly/level}=0\relax%
|
| 1676 |
+
\tikzgraphinvokeoperator{matching and star={\pgfkeysvalueof{/tikz/graphs/butterfly/from}}{\pgfkeysvalueof{/tikz/graphs/butterfly/to}}}%
|
| 1677 |
+
\else%
|
| 1678 |
+
{%
|
| 1679 |
+
\tikzgraphpreparecolor{\pgfkeysvalueof{/tikz/graphs/butterfly/from}}\c@pgf@counta{tikz@lg}
|
| 1680 |
+
\c@pgf@countb=0\relax%
|
| 1681 |
+
\tikzgraphforeachcolorednode{\pgfkeysvalueof{/tikz/graphs/butterfly/to}}\tikz@lib@graph@butterfly@do%
|
| 1682 |
+
}%
|
| 1683 |
+
\iftikz@butterfly@prime\else\tikzgraphinvokeoperator{matching and star={\pgfkeysvalueof{/tikz/graphs/butterfly/from}}{\pgfkeysvalueof{/tikz/graphs/butterfly/to}}}\fi%
|
| 1684 |
+
\fi%
|
| 1685 |
+
}%
|
| 1686 |
+
},
|
| 1687 |
+
butterfly/.default=,
|
| 1688 |
+
butterfly/level/.initial=1,
|
| 1689 |
+
butterfly/from/.initial=target',
|
| 1690 |
+
butterfly/to/.initial=source',
|
| 1691 |
+
butterfly'/.style={operator={}{\tikz@butterfly@primetrue\pgfkeysalso{butterfly={#1}}}},
|
| 1692 |
+
butterfly'/.default=,
|
| 1693 |
+
}%
|
| 1694 |
+
|
| 1695 |
+
\newif\iftikz@butterfly@prime
|
| 1696 |
+
|
| 1697 |
+
\def\tikz@lib@graph@butterfly@do#1{%
|
| 1698 |
+
\advance\c@pgf@countb by1\relax%
|
| 1699 |
+
\c@pgf@countc=\pgfkeysvalueof{/tikz/graphs/butterfly/level}\relax%
|
| 1700 |
+
{%
|
| 1701 |
+
\count0=\c@pgf@countc\relax%
|
| 1702 |
+
\multiply\count0 by2\relax%
|
| 1703 |
+
\count1=\c@pgf@countb\relax%
|
| 1704 |
+
\advance\count1 by-1\relax%
|
| 1705 |
+
\count2=\count1\relax%
|
| 1706 |
+
\count3=\count1\relax%
|
| 1707 |
+
\divide\count1 by\count0\relax%
|
| 1708 |
+
\multiply\count1 by\count0\relax%
|
| 1709 |
+
\advance\count2 by-\count1\relax%
|
| 1710 |
+
\ifnum\count2<\c@pgf@countc\relax%
|
| 1711 |
+
\advance\count3 by \c@pgf@countc\relax%
|
| 1712 |
+
\else%
|
| 1713 |
+
\advance\count3 by -\c@pgf@countc\relax%
|
| 1714 |
+
\fi%
|
| 1715 |
+
\expandafter%
|
| 1716 |
+
}%
|
| 1717 |
+
\expandafter\c@pgf@countc\the\count3\relax%
|
| 1718 |
+
\advance\c@pgf@countc by1\relax%
|
| 1719 |
+
\ifnum\c@pgf@countc>\c@pgf@counta\relax%
|
| 1720 |
+
\c@pgf@countc=\c@pgf@counta\relax%
|
| 1721 |
+
\fi%
|
| 1722 |
+
\tikz@lib@graph@default@new@edge{\csname tikz@lg\the\c@pgf@countc\endcsname}{#1}%
|
| 1723 |
+
}%
|
| 1724 |
+
|
| 1725 |
+
|
| 1726 |
+
|
| 1727 |
+
|
| 1728 |
+
\tikzgraphsset{no edges/.style={operator=\relax}}%
|
| 1729 |
+
|
| 1730 |
+
|
| 1731 |
+
|
| 1732 |
+
|
| 1733 |
+
\tikzgraphsset{
|
| 1734 |
+
grid/.style={operator={
|
| 1735 |
+
\tikzgraphpreparecolor{#1}\c@pgf@counta{tikz@lg}%
|
| 1736 |
+
\c@pgf@countb=0\relax%
|
| 1737 |
+
\tikzgraphpreparewrapafter%
|
| 1738 |
+
\tikz@lg@grid@loop%
|
| 1739 |
+
}%
|
| 1740 |
+
},
|
| 1741 |
+
grid/.default=all
|
| 1742 |
+
}%
|
| 1743 |
+
|
| 1744 |
+
\def\tikzgraphpreparewrapafter{%
|
| 1745 |
+
\pgfkeysgetvalue{/tikz/graphs/wrap after}\tikz@temp%
|
| 1746 |
+
\ifnum\tikz@temp=0\relax%
|
| 1747 |
+
\pgfmathparse{sqrt(\tikzgraphVnum)}%
|
| 1748 |
+
\pgfmathint{\pgfmathresult}%
|
| 1749 |
+
\edef\tikzgraphwrapafter{\pgfmathresult}%
|
| 1750 |
+
\else%
|
| 1751 |
+
\edef\tikzgraphwrapafter{\tikz@temp}
|
| 1752 |
+
\fi%
|
| 1753 |
+
}%
|
| 1754 |
+
|
| 1755 |
+
\def\tikz@lg@grid@loop{%
|
| 1756 |
+
\ifnum\c@pgf@counta=0\relax%
|
| 1757 |
+
\else%
|
| 1758 |
+
\advance\c@pgf@countb by 1\relax%
|
| 1759 |
+
\pgfmathmod{\c@pgf@countb-1}{\tikzgraphwrapafter}%
|
| 1760 |
+
\pgfmathint{\pgfmathresult}%
|
| 1761 |
+
\ifnum\pgfmathresult>0%
|
| 1762 |
+
\pgfmathsubtract{\c@pgf@countb}{1}%
|
| 1763 |
+
\pgfmathint{\pgfmathresult}%
|
| 1764 |
+
\tikz@lib@graph@default@new@edge{\csname tikz@lg\the\c@pgf@countb\endcsname}{\csname tikz@lg\pgfmathresult\endcsname}%
|
| 1765 |
+
\fi%
|
| 1766 |
+
\pgfmathparse{\c@pgf@countb <= \tikzgraphwrapafter}%
|
| 1767 |
+
\ifnum\pgfmathresult=0%
|
| 1768 |
+
\pgfmathsubtract{\c@pgf@countb}{\tikzgraphwrapafter}%
|
| 1769 |
+
\pgfmathint{\pgfmathresult}%
|
| 1770 |
+
\tikz@lib@graph@default@new@edge{\csname tikz@lg\pgfmathresult\endcsname}{\csname tikz@lg\the\c@pgf@countb\endcsname}%
|
| 1771 |
+
\fi%
|
| 1772 |
+
\advance\c@pgf@counta by-1\relax%
|
| 1773 |
+
\expandafter\tikz@lg@grid@loop%
|
| 1774 |
+
\fi%
|
| 1775 |
+
}%
|
| 1776 |
+
|
| 1777 |
+
|
| 1778 |
+
|
| 1779 |
+
|
| 1780 |
+
|
| 1781 |
+
\tikzgraphsset{
|
| 1782 |
+
placement/.cd,
|
| 1783 |
+
compute position/.code=\tikz@lib@graph@linear@pos,
|
| 1784 |
+
place/.code={%
|
| 1785 |
+
\pgfkeys{/tikz/graphs/placement/compute position}%
|
| 1786 |
+
\aftergroup\tikz@lib@graph@reset@locals%
|
| 1787 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/element count}{0}%
|
| 1788 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/chain count}{0}%
|
| 1789 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/depth}{0}%
|
| 1790 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/width}{0}%
|
| 1791 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/local depth}{0}%
|
| 1792 |
+
\pgfkeyssetvalue{/tikz/graphs/placement/local width}{0}%
|
| 1793 |
+
},
|
| 1794 |
+
element count/.initial=0,
|
| 1795 |
+
chain count/.initial=0,
|
| 1796 |
+
depth/.initial=0,
|
| 1797 |
+
width/.initial=0,
|
| 1798 |
+
level/.initial=0,
|
| 1799 |
+
logical node depth/.code=\def\pgfmathresult{1},
|
| 1800 |
+
logical node width/.code=\def\pgfmathresult{1},
|
| 1801 |
+
}%
|
| 1802 |
+
|
| 1803 |
+
\def\tikz@lib@graph@reset@locals{%
|
| 1804 |
+
\gdef\tikz@lib@graph@group@depth{0}%
|
| 1805 |
+
\gdef\tikz@lib@graph@group@width{0}%
|
| 1806 |
+
}%
|
| 1807 |
+
|
| 1808 |
+
|
| 1809 |
+
|
| 1810 |
+
\tikzgraphsset{
|
| 1811 |
+
Cartesian placement/.style={
|
| 1812 |
+
placement/place,
|
| 1813 |
+
placement/compute position/.code=\tikz@lib@graph@linear@pos%
|
| 1814 |
+
},
|
| 1815 |
+
chain shift/.initial={(1,0)},
|
| 1816 |
+
group shift/.initial={(0,-1)},
|
| 1817 |
+
grow right/.style={
|
| 1818 |
+
placement/place,
|
| 1819 |
+
chain shift={(#1,0)},
|
| 1820 |
+
@auto anchor horizontal=center,
|
| 1821 |
+
placement/logical node width/.code=\def\pgfmathresult{1}
|
| 1822 |
+
},
|
| 1823 |
+
grow right/.default=1,
|
| 1824 |
+
grow left/.style={
|
| 1825 |
+
placement/place,
|
| 1826 |
+
chain shift={(-#1,0)},
|
| 1827 |
+
@auto anchor horizontal=center,
|
| 1828 |
+
placement/logical node width/.code=\def\pgfmathresult{1}
|
| 1829 |
+
},
|
| 1830 |
+
grow left/.default=1,
|
| 1831 |
+
grow up/.style={
|
| 1832 |
+
placement/place,
|
| 1833 |
+
chain shift={(0,#1)},
|
| 1834 |
+
@auto anchor horizontal=center,
|
| 1835 |
+
placement/logical node width/.code=\def\pgfmathresult{1}
|
| 1836 |
+
},
|
| 1837 |
+
grow up/.default=1,
|
| 1838 |
+
grow down/.style={
|
| 1839 |
+
placement/place,
|
| 1840 |
+
chain shift={(0,-#1)},
|
| 1841 |
+
@auto anchor vertical=center,
|
| 1842 |
+
placement/logical node width/.code=\def\pgfmathresult{1}
|
| 1843 |
+
},
|
| 1844 |
+
grow down/.default=1,
|
| 1845 |
+
branch right/.style={
|
| 1846 |
+
placement/place,
|
| 1847 |
+
group shift={(#1,0)},
|
| 1848 |
+
@auto anchor horizontal=center,
|
| 1849 |
+
placement/logical node depth/.code=\def\pgfmathresult{1}
|
| 1850 |
+
},
|
| 1851 |
+
branch right/.default=1,
|
| 1852 |
+
branch left/.style={
|
| 1853 |
+
placement/place,
|
| 1854 |
+
group shift={(-#1,0)},
|
| 1855 |
+
@auto anchor horizontal=center,
|
| 1856 |
+
placement/logical node depth/.code=\def\pgfmathresult{1}
|
| 1857 |
+
},
|
| 1858 |
+
branch left/.default=1,
|
| 1859 |
+
branch up/.style={
|
| 1860 |
+
placement/place,
|
| 1861 |
+
group shift={(0,#1)},
|
| 1862 |
+
@auto anchor vertical=center,
|
| 1863 |
+
placement/logical node depth/.code=\def\pgfmathresult{1}
|
| 1864 |
+
},
|
| 1865 |
+
branch up/.default=1,
|
| 1866 |
+
branch down/.style={
|
| 1867 |
+
placement/place,
|
| 1868 |
+
group shift={(0,-#1)},
|
| 1869 |
+
@auto anchor vertical=center,
|
| 1870 |
+
placement/logical node depth/.code=\def\pgfmathresult{1}
|
| 1871 |
+
},
|
| 1872 |
+
branch down/.default=1,
|
| 1873 |
+
grow right sep/.style={
|
| 1874 |
+
Cartesian placement,
|
| 1875 |
+
chain shift={(1pt,0)},
|
| 1876 |
+
@auto anchor horizontal=west,
|
| 1877 |
+
placement/logical node width/.code=\tikz@lib@graph@width@sep{##1}{#1}
|
| 1878 |
+
},
|
| 1879 |
+
grow right sep/.default=1em,
|
| 1880 |
+
grow left sep/.style={
|
| 1881 |
+
Cartesian placement,
|
| 1882 |
+
chain shift={(-1pt,0)},
|
| 1883 |
+
@auto anchor horizontal=east,
|
| 1884 |
+
placement/logical node width/.code=\tikz@lib@graph@width@sep{##1}{#1}
|
| 1885 |
+
},
|
| 1886 |
+
grow left sep/.default=1em,
|
| 1887 |
+
grow up sep/.style={
|
| 1888 |
+
Cartesian placement,
|
| 1889 |
+
chain shift={(0,1pt)},
|
| 1890 |
+
@auto anchor vertical=south,
|
| 1891 |
+
placement/logical node width/.code=\tikz@lib@graph@depth@sep{##1}{#1}
|
| 1892 |
+
},
|
| 1893 |
+
grow up sep/.default=1em,
|
| 1894 |
+
grow down sep/.style={
|
| 1895 |
+
Cartesian placement,
|
| 1896 |
+
chain shift={(0,-1pt)},
|
| 1897 |
+
@auto anchor vertical=north,
|
| 1898 |
+
placement/logical node width/.code=\tikz@lib@graph@depth@sep{##1}{#1}
|
| 1899 |
+
},
|
| 1900 |
+
grow down sep/.default=1em,
|
| 1901 |
+
grow right sep/.style={
|
| 1902 |
+
Cartesian placement,
|
| 1903 |
+
chain shift={(1pt,0)},
|
| 1904 |
+
@auto anchor horizontal=west,
|
| 1905 |
+
placement/logical node width/.code=\tikz@lib@graph@width@sep{##1}{#1}
|
| 1906 |
+
},
|
| 1907 |
+
branch right sep/.style={
|
| 1908 |
+
Cartesian placement,
|
| 1909 |
+
group shift={(1pt,0)},
|
| 1910 |
+
@auto anchor horizontal=west,
|
| 1911 |
+
placement/logical node depth/.code=\tikz@lib@graph@width@sep{##1}{#1}
|
| 1912 |
+
},
|
| 1913 |
+
branch right sep/.default=1em,
|
| 1914 |
+
branch left sep/.style={
|
| 1915 |
+
Cartesian placement,
|
| 1916 |
+
group shift={(-1pt,0)},
|
| 1917 |
+
@auto anchor horizontal=east,
|
| 1918 |
+
placement/logical node depth/.code=\tikz@lib@graph@width@sep{##1}{#1}
|
| 1919 |
+
},
|
| 1920 |
+
branch left sep/.default=1em,
|
| 1921 |
+
branch up sep/.style={
|
| 1922 |
+
Cartesian placement,
|
| 1923 |
+
group shift={(0,1pt)},
|
| 1924 |
+
@auto anchor vertical=south,
|
| 1925 |
+
placement/logical node depth/.code=\tikz@lib@graph@depth@sep{##1}{#1}
|
| 1926 |
+
},
|
| 1927 |
+
branch up sep/.default=1em,
|
| 1928 |
+
branch down sep/.style={
|
| 1929 |
+
Cartesian placement,
|
| 1930 |
+
group shift={(0,-1pt)},
|
| 1931 |
+
@auto anchor vertical=north,
|
| 1932 |
+
placement/logical node depth/.code=\tikz@lib@graph@depth@sep{##1}{#1}
|
| 1933 |
+
},
|
| 1934 |
+
branch down sep/.default=1em,
|
| 1935 |
+
@auto anchor horizontal/.style={
|
| 1936 |
+
nodes={anchor=\csname tikz@lib@graph@auto@\tikz@lib@graph@auto@h @\tikz@lib@graph@auto@v\endcsname},
|
| 1937 |
+
/utils/exec=\def\tikz@lib@graph@auto@h{#1}
|
| 1938 |
+
},
|
| 1939 |
+
@auto anchor vertical/.style={
|
| 1940 |
+
nodes={anchor=\csname tikz@lib@graph@auto@\tikz@lib@graph@auto@h @\tikz@lib@graph@auto@v\endcsname},
|
| 1941 |
+
/utils/exec=\def\tikz@lib@graph@auto@v{#1}
|
| 1942 |
+
},
|
| 1943 |
+
no placement/.style={
|
| 1944 |
+
placement/place,
|
| 1945 |
+
placement/compute position/.code=%
|
| 1946 |
+
}
|
| 1947 |
+
}%
|
| 1948 |
+
|
| 1949 |
+
\def\tikz@lib@graph@auto@h{center}%
|
| 1950 |
+
\def\tikz@lib@graph@auto@v{center}%
|
| 1951 |
+
|
| 1952 |
+
\def\tikz@lib@graph@auto@center@center{center}%
|
| 1953 |
+
\def\tikz@lib@graph@auto@west@center{west}%
|
| 1954 |
+
\def\tikz@lib@graph@auto@east@center{east}%
|
| 1955 |
+
\def\tikz@lib@graph@auto@center@north{north}%
|
| 1956 |
+
\def\tikz@lib@graph@auto@west@north{north west}%
|
| 1957 |
+
\def\tikz@lib@graph@auto@east@north{north east}%
|
| 1958 |
+
\def\tikz@lib@graph@auto@center@south{south}%
|
| 1959 |
+
\def\tikz@lib@graph@auto@west@south{south west}%
|
| 1960 |
+
\def\tikz@lib@graph@auto@east@south{south east}%
|
| 1961 |
+
|
| 1962 |
+
\def\tikz@lib@graph@linear@pos{%
|
| 1963 |
+
\pgfkeysgetvalue{/tikz/graphs/chain shift}\tikz@temp
|
| 1964 |
+
\expandafter\tikz@scan@one@point\expandafter\pgf@process\tikz@temp
|
| 1965 |
+
\pgf@process{\pgfpointscale{\pgfkeysvalueof{/tikz/graphs/placement/width}}{}}%
|
| 1966 |
+
\pgf@xa=\pgf@x%
|
| 1967 |
+
\pgf@ya=\pgf@y%
|
| 1968 |
+
\pgfkeysgetvalue{/tikz/graphs/group shift}\tikz@temp
|
| 1969 |
+
\expandafter\tikz@scan@one@point\expandafter\pgf@process\tikz@temp
|
| 1970 |
+
\pgf@process{\pgfpointscale{\pgfkeysvalueof{/tikz/graphs/placement/depth}}{}}%
|
| 1971 |
+
\advance\pgf@xa by\pgf@x%
|
| 1972 |
+
\advance\pgf@ya by\pgf@y%
|
| 1973 |
+
\edef\tikz@lib@graph@shift{(\the\pgf@xa,\the\pgf@ya)}
|
| 1974 |
+
\pgfkeys{/tikz/graphs/nodes/.expanded={shift={\tikz@lib@graph@shift}}}
|
| 1975 |
+
}%
|
| 1976 |
+
|
| 1977 |
+
|
| 1978 |
+
\def\tikz@lib@graph@width@sep#1#2{%
|
| 1979 |
+
\pgf@process{\pgfpointdiff{\pgfpointanchor{#1}{west}}{\pgfpointanchor{#1}{east}}}%
|
| 1980 |
+
\pgfmathparse{#2+\the\pgf@x}%
|
| 1981 |
+
}%
|
| 1982 |
+
|
| 1983 |
+
\def\tikz@lib@graph@depth@sep#1#2{%
|
| 1984 |
+
\pgf@process{\pgfpointdiff{\pgfpointanchor{#1}{south}}{\pgfpointanchor{#1}{north}}}%
|
| 1985 |
+
\pgfmathparse{#2+\the\pgf@y}%
|
| 1986 |
+
}%
|
| 1987 |
+
|
| 1988 |
+
|
| 1989 |
+
|
| 1990 |
+
\tikzgraphsset{,
|
| 1991 |
+
circular placement/.style={
|
| 1992 |
+
placement/place,
|
| 1993 |
+
placement/compute position/.code=\tikz@lib@graph@circular@pos,%
|
| 1994 |
+
placement/logical node depth/.code=\def\pgfmathresult{1},
|
| 1995 |
+
placement/logical node width/.code=\def\pgfmathresult{1},
|
| 1996 |
+
},
|
| 1997 |
+
clockwise/.style={
|
| 1998 |
+
circular placement,
|
| 1999 |
+
group polar shift={(-360/#1:0)}
|
| 2000 |
+
},
|
| 2001 |
+
clockwise/.default=\tikzgraphVnum,
|
| 2002 |
+
counterclockwise/.style={
|
| 2003 |
+
circular placement,
|
| 2004 |
+
group polar shift={(360/#1:0)}
|
| 2005 |
+
},
|
| 2006 |
+
counterclockwise/.default=\tikzgraphVnum,
|
| 2007 |
+
chain polar shift/.initial={(0:1cm)},
|
| 2008 |
+
group polar shift/.initial={(60:0)},
|
| 2009 |
+
radius/.initial=1cm,
|
| 2010 |
+
phase/.initial=90,
|
| 2011 |
+
}%
|
| 2012 |
+
|
| 2013 |
+
\def\tikz@lib@graph@circular@pos{%
|
| 2014 |
+
\pgfkeysgetvalue{/tikz/graphs/chain polar shift}\tikz@temp
|
| 2015 |
+
\expandafter\tikz@lib@graph@decompose@polar\tikz@temp%
|
| 2016 |
+
\pgf@process{\pgfpointscale{\pgfkeysvalueof{/tikz/graphs/placement/width}}{}}%
|
| 2017 |
+
\pgf@xa=\pgf@x%
|
| 2018 |
+
\pgf@ya=\pgf@y%
|
| 2019 |
+
\pgfkeysgetvalue{/tikz/graphs/group polar shift}\tikz@temp
|
| 2020 |
+
\expandafter\tikz@lib@graph@decompose@polar\tikz@temp%
|
| 2021 |
+
\pgf@process{\pgfpointscale{\pgfkeysvalueof{/tikz/graphs/placement/depth}}{}}%
|
| 2022 |
+
\advance\pgf@xa by\pgf@x%
|
| 2023 |
+
\advance\pgf@ya by\pgf@y%
|
| 2024 |
+
\pgfmathparse{\pgfkeysvalueof{/tikz/graphs/radius}}%
|
| 2025 |
+
\advance\pgf@ya by\pgfmathresult pt%
|
| 2026 |
+
\pgfmathsetmacro\tikz@temp{\the\pgf@xa+\pgfkeysvalueof{/tikz/graphs/phase}}%
|
| 2027 |
+
\edef\tikz@lib@graph@shift{(\tikz@temp:\the\pgf@ya)}
|
| 2028 |
+
\pgfkeys{/tikz/graphs/nodes/.expanded={shift={\tikz@lib@graph@shift}}}
|
| 2029 |
+
}%
|
| 2030 |
+
|
| 2031 |
+
|
| 2032 |
+
\def\tikz@lib@graph@decompose@polar(#1:#2){%
|
| 2033 |
+
\pgfmathsetlength\pgf@x{#1}%
|
| 2034 |
+
\pgfmathsetlength\pgf@y{#2}%
|
| 2035 |
+
}%
|
| 2036 |
+
|
| 2037 |
+
|
| 2038 |
+
\tikzgraphsset{
|
| 2039 |
+
grid placement/.style={
|
| 2040 |
+
placement/place,
|
| 2041 |
+
placement/compute position/.code=\tikz@lib@graph@grid@pos,%
|
| 2042 |
+
},
|
| 2043 |
+
}%
|
| 2044 |
+
|
| 2045 |
+
|
| 2046 |
+
\def\tikz@lib@graph@grid@pos{%
|
| 2047 |
+
\tikzgraphpreparewrapafter%
|
| 2048 |
+
\pgfkeysgetvalue{/tikz/graphs/placement/depth}\tikz@temp@depth%
|
| 2049 |
+
\pgfkeysgetvalue{/tikz/graphs/placement/width}\tikz@temp@width%
|
| 2050 |
+
\pgfmathsetmacro{\tikz@temp}{max(\tikz@temp@depth, \tikz@temp@width)}%
|
| 2051 |
+
\pgfmathsetmacro{\tikz@temp@col}{mod(\tikz@temp,\tikzgraphwrapafter)}%
|
| 2052 |
+
\pgfmathsetmacro{\tikz@temp@row}{div(\tikz@temp,\tikzgraphwrapafter)}%
|
| 2053 |
+
\pgfkeysgetvalue{/tikz/graphs/group shift}\tikz@temp%
|
| 2054 |
+
\expandafter\tikz@scan@one@point\expandafter\tikz@lib@graph@grid@pos@a\tikz@temp%
|
| 2055 |
+
\pgfkeysgetvalue{/tikz/graphs/chain shift}\tikz@temp%
|
| 2056 |
+
\expandafter\tikz@scan@one@point\expandafter\tikz@lib@graph@grid@pos@b\tikz@temp%
|
| 2057 |
+
\edef\tikz@lib@graph@shift{(\the\pgf@xa,\the\pgf@ya)}
|
| 2058 |
+
\pgfkeys{/tikz/graphs/nodes/.expanded={shift={\tikz@lib@graph@shift}}}
|
| 2059 |
+
}%
|
| 2060 |
+
|
| 2061 |
+
\def\tikz@lib@graph@grid@pos@a#1{\pgf@process{\pgfpointscale{\tikz@temp@row}{#1}}\pgf@xa=\pgf@x\relax\pgf@ya=\pgf@y\relax}%
|
| 2062 |
+
\def\tikz@lib@graph@grid@pos@b#1{\pgf@process{\pgfpointscale{\tikz@temp@col}{#1}}%
|
| 2063 |
+
\advance\pgf@xa by\pgf@x\relax
|
| 2064 |
+
\advance\pgf@ya by\pgf@y\relax}%
|
| 2065 |
+
|
| 2066 |
+
\tikzgraphsset{
|
| 2067 |
+
wrap after/.initial=0,
|
| 2068 |
+
V/.code={%
|
| 2069 |
+
\def\tikzgraphV{#1}%
|
| 2070 |
+
\c@pgf@counta=0\foreach \tikz@dummy in {#1} {\global\advance\c@pgf@counta by1\relax}%
|
| 2071 |
+
\edef\tikzgraphVnum{\the\c@pgf@counta}
|
| 2072 |
+
},
|
| 2073 |
+
V={1},
|
| 2074 |
+
n/.style={V={1,...,#1},name shore V/.style={name=V}},
|
| 2075 |
+
W/.code={%
|
| 2076 |
+
\def\tikzgraphW{#1}%
|
| 2077 |
+
\c@pgf@counta=0\foreach \tikz@dummy in {#1} {\global\advance\c@pgf@counta by1\relax}%
|
| 2078 |
+
\edef\tikzgraphWnum{\the\c@pgf@counta}
|
| 2079 |
+
},
|
| 2080 |
+
W={1},
|
| 2081 |
+
m/.style={W={1,...,#1},name shore W/.style={name=W}},
|
| 2082 |
+
name shore V/.style=,
|
| 2083 |
+
name shore W/.style=,
|
| 2084 |
+
}%
|
| 2085 |
+
|
| 2086 |
+
|
| 2087 |
+
|
| 2088 |
+
|
| 2089 |
+
\tikzgraphsset{quick/.is if=tikz@graph@quick}%
|
| 2090 |
+
\newif\iftikz@graph@quick
|
| 2091 |
+
|
| 2092 |
+
\def\tikz@lib@graphs@parse@quick@graph{
|
| 2093 |
+
\begingroup%
|
| 2094 |
+
\global\tikz@qnode@count0\relax%
|
| 2095 |
+
\let\tikzgraphnodepath\pgfutil@empty%
|
| 2096 |
+
\tikz@q@outertrue%
|
| 2097 |
+
\afterassignment\tikz@lib@graphs@quick@main\let\pgf@temp=%
|
| 2098 |
+
}%
|
| 2099 |
+
|
| 2100 |
+
\newcount\tikz@qnode@count
|
| 2101 |
+
\newif\iftikz@q@outer
|
| 2102 |
+
|
| 2103 |
+
\def\tikz@lib@graphs@quick@main{%
|
| 2104 |
+
\afterassignment\tikz@lib@graphs@quick@handle\let\pgf@let@token=%
|
| 2105 |
+
}%
|
| 2106 |
+
\def\tikz@lib@graphs@quick@handle{%
|
| 2107 |
+
\ifx\pgf@let@token"%
|
| 2108 |
+
\expandafter\tikz@lib@graphs@quick@first@node%
|
| 2109 |
+
\else%
|
| 2110 |
+
\expandafter\tikz@lib@graphs@quick@other%
|
| 2111 |
+
\fi%
|
| 2112 |
+
}%
|
| 2113 |
+
\def\tikz@lib@graphs@quick@other{%
|
| 2114 |
+
\let\tikz@next\tikz@lib@graphs@quick@error%
|
| 2115 |
+
\ifx\pgf@let@token\egroup%
|
| 2116 |
+
\let\tikz@next\tikz@lib@graphs@quick@end@group%
|
| 2117 |
+
\else%
|
| 2118 |
+
\ifx\pgf@let@token\bgroup%
|
| 2119 |
+
\let\tikz@next\tikz@lib@graphs@quick@start@group%
|
| 2120 |
+
\else%
|
| 2121 |
+
\ifx\pgf@let@token\par%
|
| 2122 |
+
\let\tikz@next\tikz@lib@graphs@quick@main%
|
| 2123 |
+
\fi%
|
| 2124 |
+
\fi
|
| 2125 |
+
\fi%
|
| 2126 |
+
\tikz@next%
|
| 2127 |
+
}%
|
| 2128 |
+
|
| 2129 |
+
\def\tikz@lib@graphs@quick@error#1{\tikzerror{Unexpected token '\string#1' in quick graph syntax}\tikz@lib@graphs@quick@main}%
|
| 2130 |
+
\def\tikz@lib@graphs@quick@start@group{%
|
| 2131 |
+
\pgfutil@ifnextchar[\tikz@lib@graphs@quick@start@group@{\tikzerror{Group
|
| 2132 |
+
in quick graph syntax must start with options.}}
|
| 2133 |
+
}%
|
| 2134 |
+
|
| 2135 |
+
\def\tikz@lib@graphs@quick@start@group@[#1]{%
|
| 2136 |
+
\begingroup%
|
| 2137 |
+
\tikz@q@outerfalse%
|
| 2138 |
+
\tikzgraphsset{#1}%
|
| 2139 |
+
\tikz@lib@graphs@quick@main%
|
| 2140 |
+
}%
|
| 2141 |
+
\def\tikz@lib@graphs@quick@end@group{%
|
| 2142 |
+
\iftikz@q@outer%
|
| 2143 |
+
\endgroup%
|
| 2144 |
+
\pgfutil@loop%
|
| 2145 |
+
\ifnum\tikz@qnode@count>0\relax%
|
| 2146 |
+
\expandafter\global\expandafter\let\csname tikz@gr@q@@\csname tikz@gr@qn@@\the\tikz@qnode@count\endcsname\endcsname\relax%
|
| 2147 |
+
\expandafter\global\expandafter\let\csname tikz@gr@qn@@\the\tikz@qnode@count\endcsname\relax%
|
| 2148 |
+
\global\advance\tikz@qnode@count by-1\relax%
|
| 2149 |
+
\pgfutil@repeat%
|
| 2150 |
+
\expandafter\tikz@lib@graph@main@done%
|
| 2151 |
+
\else%
|
| 2152 |
+
\endgroup%
|
| 2153 |
+
\expandafter\tikz@lib@graphs@end@group@%
|
| 2154 |
+
\fi%
|
| 2155 |
+
}%
|
| 2156 |
+
\def\tikz@lib@graphs@end@group@{%
|
| 2157 |
+
\pgfutil@ifnextchar;{\expandafter\tikz@lib@graphs@quick@main\pgfutil@gobble}{%
|
| 2158 |
+
\pgfutil@ifnextchar,{\expandafter\tikz@lib@graphs@quick@main\pgfutil@gobble}{%
|
| 2159 |
+
\tikzerror{Graph groups in quick syntax must be followed by a semicolon or a comma.}%
|
| 2160 |
+
}%
|
| 2161 |
+
}%
|
| 2162 |
+
}%
|
| 2163 |
+
|
| 2164 |
+
|
| 2165 |
+
\def\tikz@lib@graphs@quick@first@node{%
|
| 2166 |
+
\let\tikz@quick@prev@node\relax%
|
| 2167 |
+
\tikz@lib@graphs@quick@node%
|
| 2168 |
+
}%
|
| 2169 |
+
|
| 2170 |
+
\def\tikz@lib@graphs@quick@node#1"{%
|
| 2171 |
+
\def\tikzgraphnodename{#1}%
|
| 2172 |
+
\let\tikzgraphnodetext\tikzgraphnodename%
|
| 2173 |
+
\iftikzgraphsautonumbernodes
|
| 2174 |
+
\edef\tikzgraphnodename{\tikzgraphnodename\tikz@lib@auto@sep\the\tikz@lib@auto@number}%
|
| 2175 |
+
\global\advance\tikz@lib@auto@number by1\relax%
|
| 2176 |
+
\fi
|
| 2177 |
+
\pgfutil@ifnextchar/\tikz@lib@graphs@quick@text\tikz@lib@graphs@quick@opt%
|
| 2178 |
+
}%
|
| 2179 |
+
\def\tikz@lib@graphs@quick@text/"#1"{%
|
| 2180 |
+
\def\tikzgraphnodetext{#1}%
|
| 2181 |
+
\tikz@lib@graphs@quick@opt%
|
| 2182 |
+
}%
|
| 2183 |
+
\def\tikz@lib@graphs@quick@opt{%
|
| 2184 |
+
\pgfutil@ifnextchar[\tikz@lib@graphs@quick@withopt{\tikz@lib@graphs@quick@withopt[]}%
|
| 2185 |
+
}%
|
| 2186 |
+
\def\tikz@lib@graphs@quick@withopt[#1]{%
|
| 2187 |
+
\expandafter\ifx\csname tikz@gr@q@@\tikzgraphnodename\endcsname\relax%
|
| 2188 |
+
\global\advance\tikz@qnode@count by1\relax%
|
| 2189 |
+
\expandafter\global\expandafter\let\csname tikz@gr@q@@\tikzgraphnodename\endcsname\pgfutil@empty%
|
| 2190 |
+
\expandafter\global\expandafter\let\csname tikz@gr@qn@@\the\tikz@qnode@count\endcsname\tikzgraphnodename%
|
| 2191 |
+
\let\tikzgraphnodefullname\tikzgraphnodename%
|
| 2192 |
+
\let\tikzgraphnodeas\tikzgraphnodeas@default%
|
| 2193 |
+
\node [%
|
| 2194 |
+
name=\tikzgraphnodename,%
|
| 2195 |
+
graphs/redirect unknown to tikz,
|
| 2196 |
+
/tikz/graphs/.cd,%
|
| 2197 |
+
/tikz/graphs/@nodes styling,%
|
| 2198 |
+
#1]%
|
| 2199 |
+
{%
|
| 2200 |
+
\tikzgraphnodeas%
|
| 2201 |
+
};%
|
| 2202 |
+
\else%
|
| 2203 |
+
\tikzgdlatenodeoptionacallback{\tikzgraphnodename}%
|
| 2204 |
+
\node also[graphs/redirect unknown to tikz,/tikz/graphs/.cd,#1](\tikzgraphnodename);%
|
| 2205 |
+
\fi%
|
| 2206 |
+
\tikz@lig@graph@quikc@make@edge@if@necessary%
|
| 2207 |
+
\tikz@lib@graphs@quick@scan@after@node%
|
| 2208 |
+
}%
|
| 2209 |
+
|
| 2210 |
+
\def\tikz@lig@graph@quikc@make@edge@if@necessary{%
|
| 2211 |
+
\ifx\tikz@quick@prev@node\relax%
|
| 2212 |
+
\else%
|
| 2213 |
+
\tikz@lib@graphs@quick@make@edge%
|
| 2214 |
+
\fi%
|
| 2215 |
+
}%
|
| 2216 |
+
|
| 2217 |
+
\def\tikz@lib@graphs@quick@scan@after@node{%
|
| 2218 |
+
\pgfutil@ifnextchar,\tikz@lib@graphs@quick@comma{%
|
| 2219 |
+
\pgfutil@ifnextchar;\tikz@lib@graphs@quick@semi{%
|
| 2220 |
+
\pgfutil@ifnextchar\egroup{\tikz@lib@graphs@quick@semi;}{%
|
| 2221 |
+
\pgfutil@ifnextchar\par{\expandafter\tikz@lib@graphs@quick@scan@after@node\tikz@lib@graphs@quick@gobble@par}%
|
| 2222 |
+
\tikz@lib@graphs@quick@connector}}}%
|
| 2223 |
+
}%
|
| 2224 |
+
\long\def\tikz@lib@graphs@quick@gobble@par#1{}%
|
| 2225 |
+
|
| 2226 |
+
\def\tikz@lib@graphs@quick@comma,{\tikz@lib@graphs@quick@main}%
|
| 2227 |
+
\def\tikz@lib@graphs@quick@semi;{\tikz@lib@graphs@quick@main}%
|
| 2228 |
+
\def\tikz@lib@graphs@quick@connector#1#2{%
|
| 2229 |
+
\def\tikz@lib@graphs@quick@edge@kind{#1#2}%
|
| 2230 |
+
\pgfutil@ifnextchar>\tikz@lib@graphs@back@edge{%
|
| 2231 |
+
\pgfutil@ifnextchar[\tikz@lib@graphs@quick@connector@handle@opt{\tikz@lib@graphs@quick@connector@handle@opt[]}%
|
| 2232 |
+
}%
|
| 2233 |
+
}%
|
| 2234 |
+
\def\tikz@lib@graphs@back@edge#1{%
|
| 2235 |
+
\expandafter\def\expandafter\tikz@lib@graphs@quick@edge@kind\expandafter{\tikz@lib@graphs@quick@edge@kind#1}%
|
| 2236 |
+
\pgfutil@ifnextchar[\tikz@lib@graphs@quick@connector@handle@opt{\tikz@lib@graphs@quick@connector@handle@opt[]}%
|
| 2237 |
+
}%
|
| 2238 |
+
\def\tikz@lib@graphs@quick@connector@handle@opt[#1]{%
|
| 2239 |
+
\def\tikz@lib@graphs@quick@edge@options{#1}%
|
| 2240 |
+
\let\tikz@quick@prev@node\tikzgraphnodename%
|
| 2241 |
+
\tikz@lib@graphs@quick@scan@after@connector%
|
| 2242 |
+
}%
|
| 2243 |
+
\def\tikz@lib@graphs@quick@scan@after@connector{%
|
| 2244 |
+
\pgfutil@ifnextchar\par{\expandafter\tikz@lib@graphs@quick@scan@after@connector\tikz@lib@graphs@quick@gobble@par}{%
|
| 2245 |
+
\pgfutil@ifnextchar"{\expandafter\tikz@lib@graphs@quick@node\pgfutil@gobble}{%
|
| 2246 |
+
\tikzerror{Quotation marks expected after edge connector}%
|
| 2247 |
+
}%
|
| 2248 |
+
}%
|
| 2249 |
+
}%
|
| 2250 |
+
|
| 2251 |
+
\def\tikz@lib@graphs@quick@make@edge{%
|
| 2252 |
+
{
|
| 2253 |
+
\expandafter\tikz@lib@graphs@quick@make@edge@styling\expandafter{\tikz@lib@graphs@quick@edge@options}%
|
| 2254 |
+
\expandafter\expandafter\expandafter\tikz@lib@graphs@quick@make@edge@for%
|
| 2255 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@quick@prev@node\expandafter}\expandafter{\tikzgraphnodename}%
|
| 2256 |
+
}
|
| 2257 |
+
}%
|
| 2258 |
+
|
| 2259 |
+
\def\tikz@lib@graphs@quick@make@edge@styling#1{%
|
| 2260 |
+
\tikz@enable@edge@quotes%
|
| 2261 |
+
\tikzgraphsset{.unknown/.code=\tikz@lib@graph@unknown@edge@option{##1},#1}%
|
| 2262 |
+
}%
|
| 2263 |
+
|
| 2264 |
+
\def\tikz@lib@graphs@quick@make@edge@for#1#2{%
|
| 2265 |
+
\pgfkeysgetvalue{/tikz/graphs/@edges styling}\pgf@tempa
|
| 2266 |
+
\pgfkeysgetvalue{/tikz/graphs/@edges node}\pgf@temp@b
|
| 2267 |
+
\expandafter\expandafter\expandafter\tikz@lib@graphs@quick@make@edge@for@with%
|
| 2268 |
+
\expandafter\expandafter\expandafter{\expandafter\pgf@tempa\expandafter}\expandafter{\pgf@temp@b}{#1}{#2}%
|
| 2269 |
+
}%
|
| 2270 |
+
|
| 2271 |
+
\def\tikz@lib@graphs@quick@make@edge@for@with#1#2#3#4{%
|
| 2272 |
+
\tikzgraphsset{new \tikz@lib@graphs@quick@edge@kind={#3}{#4}{#1}{#2}}%
|
| 2273 |
+
}%
|
| 2274 |
+
|
| 2275 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/graphs/tikzlibrarygraphs.standard.code.tex
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibrarygraphs.standard.code.tex}
|
| 3 |
+
|
| 4 |
+
\usetikzlibrary{graphs}%
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
\tikzgraphsset{
|
| 9 |
+
declare={subgraph I_n}%
|
| 10 |
+
{
|
| 11 |
+
\foreach \tikz@lib@graph@node@num in \tikzgraphV
|
| 12 |
+
{ \tikz@lib@graph@node@num }
|
| 13 |
+
},
|
| 14 |
+
declare={subgraph I_nm}%
|
| 15 |
+
{
|
| 16 |
+
subgraph I_n [name shore V] -- [no edges]
|
| 17 |
+
subgraph I_n [name shore W, V/.expand once=\tikzgraphW]
|
| 18 |
+
},
|
| 19 |
+
declare={subgraph K_n}%
|
| 20 |
+
{
|
| 21 |
+
[clique]
|
| 22 |
+
subgraph I_n
|
| 23 |
+
},
|
| 24 |
+
declare={subgraph K_nm}%
|
| 25 |
+
{
|
| 26 |
+
[color class=shore V,
|
| 27 |
+
color class=shore W,
|
| 28 |
+
complete bipartite={shore V}{shore W}]
|
| 29 |
+
subgraph I_n [name shore V, shore V] -- [no edges]
|
| 30 |
+
subgraph I_n [name shore W, V/.expand once=\tikzgraphW, shore W]
|
| 31 |
+
},
|
| 32 |
+
declare={subgraph C_n}%
|
| 33 |
+
{
|
| 34 |
+
[cycle]
|
| 35 |
+
subgraph I_n
|
| 36 |
+
},
|
| 37 |
+
declare={subgraph P_n}%
|
| 38 |
+
{
|
| 39 |
+
[path]
|
| 40 |
+
subgraph I_n
|
| 41 |
+
},
|
| 42 |
+
declare={subgraph Grid_n}%
|
| 43 |
+
{
|
| 44 |
+
[grid]
|
| 45 |
+
subgraph I_n
|
| 46 |
+
},
|
| 47 |
+
p/.initial=0.5,
|
| 48 |
+
declare={subgraph G_np}%
|
| 49 |
+
{
|
| 50 |
+
[/utils/exec={
|
| 51 |
+
\pgfmathsetmacro\tikz@lib@lg@p{\pgfkeysvalueof{/tikz/graphs/p}}
|
| 52 |
+
\let\tikz@lib@gnp@edges\pgfutil@empty%
|
| 53 |
+
\foreach \tikz@lib@graph@node@a [count=\tikz@lib@g@count@a] in \tikzgraphV
|
| 54 |
+
\foreach \tikz@lib@graph@node@b [count=\tikz@lib@g@count@b] in \tikzgraphV
|
| 55 |
+
{
|
| 56 |
+
\ifnum\tikz@lib@g@count@a<\tikz@lib@g@count@b\relax
|
| 57 |
+
\pgfmathparse{rnd}
|
| 58 |
+
\ifdim\pgfmathresult pt<\tikz@lib@lg@p pt%
|
| 59 |
+
\ifx\tikz@lib@gnp@edges\pgfutil@empty
|
| 60 |
+
\xdef\tikz@lib@gnp@edges{\tikz@lib@graph@node@a--\tikz@lib@graph@node@b}%
|
| 61 |
+
\else
|
| 62 |
+
\xdef\tikz@lib@gnp@edges{\tikz@lib@gnp@edges,\tikz@lib@graph@node@a--\tikz@lib@graph@node@b}%
|
| 63 |
+
\fi
|
| 64 |
+
\fi
|
| 65 |
+
\fi
|
| 66 |
+
}
|
| 67 |
+
}]
|
| 68 |
+
\foreach \tikz@lg@temp in \tikz@lib@gnp@edges {
|
| 69 |
+
[parse/.expand once=\tikz@lg@temp]
|
| 70 |
+
}
|
| 71 |
+
},
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\toksdef\t@tikzexternal@tmpa=0
|
| 3 |
+
\toksdef\t@tikzexternal@tmpb=1
|
| 4 |
+
|
| 5 |
+
\newif\iftikzexternal@nestedflag
|
| 6 |
+
\newif\iftikzexternal@verboseuptodate
|
| 7 |
+
\newif\iftikzexternal@verboseio
|
| 8 |
+
\newif\iftikzexternal@genfigurelist
|
| 9 |
+
\newif\iftikzexternal@onlynamed
|
| 10 |
+
\newif\iftikzexternal@file@isuptodate
|
| 11 |
+
\newif\iftikzexternal@force@remake
|
| 12 |
+
\newif\iftikzexternal@optimize
|
| 13 |
+
\newif\iftikzexternal@export@enabled
|
| 14 |
+
\tikzexternal@export@enabledtrue
|
| 15 |
+
|
| 16 |
+
\gdef\c@tikzexternal@version{2}
|
| 17 |
+
|
| 18 |
+
\newif\iftikzexternalremakenext
|
| 19 |
+
\newif\iftikzexternal@verbose@optimize
|
| 20 |
+
\tikzexternal@verbose@optimizetrue
|
| 21 |
+
|
| 22 |
+
\newif\iftikzexternalexportnext
|
| 23 |
+
\tikzexternalexportnexttrue
|
| 24 |
+
|
| 25 |
+
\def\tikzifexternalizing#1#2{%
|
| 26 |
+
\ifpgf@external@grabshipout #1\else #2\fi
|
| 27 |
+
}%
|
| 28 |
+
\def\tikzifexternalizingnext#1#2{%
|
| 29 |
+
\ifpgf@external@grabshipout
|
| 30 |
+
\tikzexternalgetnextfilename\tikzexternal@temp
|
| 31 |
+
\tikzifexternaljobnamematches\tikzexternal@temp{#1}{#2}%
|
| 32 |
+
\else
|
| 33 |
+
#2%
|
| 34 |
+
\fi
|
| 35 |
+
}%
|
| 36 |
+
\def\tikzifexternalizingcurrent#1#2{%
|
| 37 |
+
\ifpgf@external@grabshipout
|
| 38 |
+
\tikzexternalgetcurrentfilename\tikzexternal@temp
|
| 39 |
+
\ifx\tikzexternal@temp\pgfutil@empty
|
| 40 |
+
#2%
|
| 41 |
+
\else
|
| 42 |
+
\tikzifexternaljobnamematches\tikzexternal@temp{#1}{#2}%
|
| 43 |
+
\fi
|
| 44 |
+
\else
|
| 45 |
+
#2%
|
| 46 |
+
\fi
|
| 47 |
+
}%
|
| 48 |
+
|
| 49 |
+
\def\tikzifexternaljobnamematches#1#2#3{%
|
| 50 |
+
\edef\pgf@tempa{\expandafter\string\csname#1\endcsname}%
|
| 51 |
+
\edef\pgf@tempb{\expandafter\string\csname\pgfactualjobname\endcsname}%
|
| 52 |
+
\ifx\pgf@tempa\pgf@tempb #2\else#3 \fi%
|
| 53 |
+
}%
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
\pgfutil@IfUndefined{pdfshellescape}{%
|
| 57 |
+
\pgfutil@IfUndefined{pdf@shellescape}{%
|
| 58 |
+
\def\tikzexternalcheckshellescape{0}%
|
| 59 |
+
}{%
|
| 60 |
+
\let\tikzexternalcheckshellescape=\pdf@shellescape
|
| 61 |
+
}%
|
| 62 |
+
}{%
|
| 63 |
+
\let\tikzexternalcheckshellescape=\pdfshellescape
|
| 64 |
+
}%
|
| 65 |
+
\ifnum\tikzexternalcheckshellescape=1
|
| 66 |
+
\def\tikzexternalcheckshellescape{\pgfkeysvalueof{/tikz/external/shell escape}\space}%
|
| 67 |
+
\else
|
| 68 |
+
\def\tikzexternalcheckshellescape{}%
|
| 69 |
+
\fi
|
| 70 |
+
|
| 71 |
+
\newif\iftikzexternal@auto@detect@jobname
|
| 72 |
+
|
| 73 |
+
\pgfqkeys{/tikz/external}{
|
| 74 |
+
figure list/.is if=tikzexternal@genfigurelist,
|
| 75 |
+
aux in dpth/.style={/pgf/images/aux in dpth={#1}},%
|
| 76 |
+
disable dependency files/.code={%
|
| 77 |
+
\let\tikzexternalfiledependsonfile@ACTIVE=\tikzexternalfiledependsonfile
|
| 78 |
+
},
|
| 79 |
+
mode/.is choice,
|
| 80 |
+
mode/only graphics/.code = {%
|
| 81 |
+
\def\tikzexternal@opmode{0}%
|
| 82 |
+
\pgfkeysalso{/pgf/images/aux in dpth=true}%
|
| 83 |
+
},
|
| 84 |
+
mode/no graphics/.code = {\def\tikzexternal@opmode{1}},
|
| 85 |
+
mode/only pictures/.code = {\def\tikzexternal@opmode{1}},
|
| 86 |
+
mode/graphics if exists/.code= {%
|
| 87 |
+
\def\tikzexternal@opmode{2}%
|
| 88 |
+
\pgfkeysalso{/pgf/images/aux in dpth=true}%
|
| 89 |
+
},
|
| 90 |
+
mode/list only/.code = {\def\tikzexternal@opmode{3}\tikzexternal@genfigurelisttrue},
|
| 91 |
+
mode/convert with system call/.code={%
|
| 92 |
+
\def\tikzexternal@opmode{4}%
|
| 93 |
+
\pgfkeysalso{/tikz/external/figure list=false,/pgf/images/aux in dpth=true}%
|
| 94 |
+
},
|
| 95 |
+
mode/list and make/.code = {%
|
| 96 |
+
\def\tikzexternal@opmode{5}%
|
| 97 |
+
\pgfkeysalso{/tikz/external/figure list=true,/pgf/images/aux in dpth=true}%
|
| 98 |
+
},
|
| 99 |
+
mode=convert with system call,
|
| 100 |
+
force remake/.is if=tikzexternal@force@remake,
|
| 101 |
+
force remake/.default=true,
|
| 102 |
+
failed ref warnings for/.initial={\ref,\cite,\pageref},
|
| 103 |
+
export next/.is if=tikzexternalexportnext,
|
| 104 |
+
export/.is if=tikzexternal@export@enabled,
|
| 105 |
+
remake next/.is if=tikzexternalremakenext,
|
| 106 |
+
remake next/.default=true,
|
| 107 |
+
verbose IO/.is if=tikzexternal@verboseio,
|
| 108 |
+
verbose IO/.default=true,
|
| 109 |
+
verbose IO=true,
|
| 110 |
+
verbose optimize/.is if=tikzexternal@verbose@optimize,
|
| 111 |
+
verbose up to date/.is if=tikzexternal@verboseuptodate,
|
| 112 |
+
verbose/.style={
|
| 113 |
+
verbose IO=#1,
|
| 114 |
+
verbose optimize=#1,
|
| 115 |
+
verbose up to date=#1,
|
| 116 |
+
},
|
| 117 |
+
shell escape/.initial=-shell-escape,
|
| 118 |
+
read main aux/.is if=pgfexternalreadmainaux,
|
| 119 |
+
image discarded text/.initial={%
|
| 120 |
+
[[ \textsc{Image Discarded Due To} \texttt{`/tikz/external/%
|
| 121 |
+
\ifcase\tikzexternal@opmode\relax
|
| 122 |
+
mode=only graphics%
|
| 123 |
+
\or
|
| 124 |
+
mode=no graphics%
|
| 125 |
+
\or
|
| 126 |
+
mode=graphics if exists%
|
| 127 |
+
\or
|
| 128 |
+
mode=list only%
|
| 129 |
+
\or
|
| 130 |
+
mode=convert with system call%
|
| 131 |
+
\or
|
| 132 |
+
mode=list and make%
|
| 133 |
+
\fi
|
| 134 |
+
'}~]]%
|
| 135 |
+
\pgfutil@ifundefined{tikzexternal@warning@at@end}{%
|
| 136 |
+
\pgfutil@ifundefined{AtEndDocument}{}{%
|
| 137 |
+
\AtEndDocument{%
|
| 138 |
+
\message{! Package tikz Warning: Some images are not up-to-date and need to be generated. }%
|
| 139 |
+
}%
|
| 140 |
+
}%
|
| 141 |
+
\gdef\tikzexternal@warning@at@end{1}%
|
| 142 |
+
}{}%
|
| 143 |
+
},
|
| 144 |
+
optimize/.is choice,
|
| 145 |
+
optimize/true/.code={%
|
| 146 |
+
\tikzexternal@optimizetrue
|
| 147 |
+
\iftikzexternal@optimize
|
| 148 |
+
\ifpgf@external@grabshipout
|
| 149 |
+
\tikzexternal@optimize@REPLACE
|
| 150 |
+
\fi
|
| 151 |
+
\fi
|
| 152 |
+
},
|
| 153 |
+
optimize/false/.code={%
|
| 154 |
+
\tikzexternal@optimizefalse%
|
| 155 |
+
\tikzexternal@optimize@RESTORE
|
| 156 |
+
},%
|
| 157 |
+
optimize=true,
|
| 158 |
+
optimize away text/.code={[ \textsc{\string#1\ optimized away because it does not contribute to exported PDF}]},
|
| 159 |
+
optimize/install/.code={},%
|
| 160 |
+
optimize/restore/.code={},%
|
| 161 |
+
optimize command away/.code 2 args={%
|
| 162 |
+
\expandafter\global\expandafter\let\csname\string#1@ORIG\endcsname=#1%
|
| 163 |
+
\pgfkeysalso{%
|
| 164 |
+
/tikz/external/optimize/install/.append code={%
|
| 165 |
+
\def#1{\tikzexternal@optimize@away@cmd{#1}{#2}}%
|
| 166 |
+
},
|
| 167 |
+
/tikz/external/optimize/restore/.append code={%
|
| 168 |
+
\expandafter\let\expandafter#1\csname\string#1@ORIG\endcsname
|
| 169 |
+
}
|
| 170 |
+
}%
|
| 171 |
+
\iftikzexternal@optimize
|
| 172 |
+
\ifpgf@external@grabshipout
|
| 173 |
+
\tikzexternal@optimize@REPLACE
|
| 174 |
+
\fi
|
| 175 |
+
\fi
|
| 176 |
+
},
|
| 177 |
+
optimize command away=\includegraphics,
|
| 178 |
+
optimize command away=\pgfincludeexternalgraphics,
|
| 179 |
+
optimize latex env away/.code={%
|
| 180 |
+
\expandafter\let\expandafter\pgf@tempa\csname #1\endcsname
|
| 181 |
+
\expandafter\global\expandafter\let\csname #1@ORIG\endcsname=\pgf@tempa%
|
| 182 |
+
\pgfkeysalso{%
|
| 183 |
+
/tikz/external/optimize/install/.append code={%
|
| 184 |
+
\pgfutil@namedef{#1}{\tikzexternal@optimize@away@latex@env{#1}}%
|
| 185 |
+
},
|
| 186 |
+
/tikz/external/optimize/restore/.append code={%
|
| 187 |
+
\pgfutil@namelet{#1}{#1@ORIG}%
|
| 188 |
+
}%
|
| 189 |
+
}%
|
| 190 |
+
},
|
| 191 |
+
only named/.is if=tikzexternal@onlynamed,
|
| 192 |
+
only named/.default=true,
|
| 193 |
+
figure name/.initial=\tikzexternal@realjob-figure,
|
| 194 |
+
reset counter/.code={%
|
| 195 |
+
\expandafter\gdef\csname c@tikzext@no@#1\endcsname{0}%
|
| 196 |
+
},%
|
| 197 |
+
prefix/.code={\tikzsetexternalprefix{#1}},
|
| 198 |
+
up to date check/.is choice,
|
| 199 |
+
up to date check/simple/.code={\def\tikzexternal@uptodate@mode{0}},
|
| 200 |
+
up to date check/md5/.code={\def\tikzexternal@uptodate@mode{1}},
|
| 201 |
+
up to date check/diff/.code={\def\tikzexternal@uptodate@mode{2}},
|
| 202 |
+
up to date check=md5,
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
\expandafter\def\csname tikzexternal@driver@pgfsys-luatex.def\endcsname{%
|
| 206 |
+
\pgfkeyssetvalue{/tikz/external/system call}{%
|
| 207 |
+
lualatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"%
|
| 208 |
+
}%
|
| 209 |
+
}%
|
| 210 |
+
\expandafter\def\csname tikzexternal@driver@pgfsys-pdftex.def\endcsname{%
|
| 211 |
+
\pgfutil@IfUndefined{directlua}{%
|
| 212 |
+
\pgfkeyssetvalue{/tikz/external/system call}{%
|
| 213 |
+
pdflatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"%
|
| 214 |
+
}%
|
| 215 |
+
}{%
|
| 216 |
+
\pgfkeyssetvalue{/tikz/external/system call}{%
|
| 217 |
+
lualatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"%
|
| 218 |
+
}%
|
| 219 |
+
}%
|
| 220 |
+
}%
|
| 221 |
+
\expandafter\def\csname tikzexternal@driver@pgfsys-xetex.def\endcsname{%
|
| 222 |
+
\pgfkeyssetvalue{/tikz/external/system call}{%
|
| 223 |
+
xelatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"%
|
| 224 |
+
}%
|
| 225 |
+
}%
|
| 226 |
+
\expandafter\def\csname tikzexternal@driver@pgfsys-dvips.def\endcsname{%
|
| 227 |
+
\pgfkeyssetvalue{/tikz/external/system call}{%
|
| 228 |
+
latex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource" %
|
| 229 |
+
&& dvips -o "\image".ps "\image".dvi %
|
| 230 |
+
}%
|
| 231 |
+
}%
|
| 232 |
+
|
| 233 |
+
\pgfutil@ifundefined{tikzexternal@driver@\pgfsysdriver}{%
|
| 234 |
+
\csname tikzexternal@driver@pgfsys-pdftex.def\endcsname
|
| 235 |
+
}{%
|
| 236 |
+
\csname tikzexternal@driver@\pgfsysdriver\endcsname
|
| 237 |
+
}%
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
\def\tikzsetfigurename#1{\pgfkeyssetvalue{/tikz/external/figure name}{#1}}%
|
| 241 |
+
\def\tikzappendtofigurename#1{\pgfkeys{/tikz/external/figure name/.add={}{#1}}}
|
| 242 |
+
|
| 243 |
+
\def\tikzsetexternalprefix#1{\def\tikzexternal@filenameprefix{#1}}
|
| 244 |
+
\tikzsetexternalprefix{}
|
| 245 |
+
|
| 246 |
+
\def\tikzexternalize{%
|
| 247 |
+
\pgfutil@ifnextchar[{%
|
| 248 |
+
\tikzexternalize@opt
|
| 249 |
+
}{%
|
| 250 |
+
\tikzexternalize@opt[]%
|
| 251 |
+
}%
|
| 252 |
+
}%
|
| 253 |
+
\def\tikzexternalize@opt[#1]{%
|
| 254 |
+
\pgfutil@ifnextchar\bgroup{%
|
| 255 |
+
\tikzexternal@auto@detect@jobnamefalse
|
| 256 |
+
\tikzexternalize@opt@withname[#1]%
|
| 257 |
+
}{%
|
| 258 |
+
\tikzexternal@auto@detect@jobnametrue
|
| 259 |
+
\pgfutil@ifundefined{tikzexternalrealjob}{%
|
| 260 |
+
\let\tikzexternalrealjob=\jobname
|
| 261 |
+
}{}%
|
| 262 |
+
\def\pgf@tempa{\tikzexternalize@opt@withname[#1]}%
|
| 263 |
+
\expandafter\pgf@tempa\expandafter{\tikzexternalrealjob}%
|
| 264 |
+
}%
|
| 265 |
+
}%
|
| 266 |
+
\def\tikzexternalize@opt@withname[#1]#2{%
|
| 267 |
+
\gdef\tikzexternalrealjob{#2}%
|
| 268 |
+
\if1\tikzexternalize@hasbeencalled
|
| 269 |
+
\else
|
| 270 |
+
\pgfqkeys{/tikz/external}{#1}%
|
| 271 |
+
\def\tikzexternal@realjob{#2}%
|
| 272 |
+
\tikzexternalauxlock@init
|
| 273 |
+
\pgfrealjobname{#2}%
|
| 274 |
+
\def\tikzexternalize@hasbeencalled{1}%
|
| 275 |
+
\tikzexternalenable
|
| 276 |
+
\def\tikzexternal@determineimgextension##1:##2\relax{\gdef\tikzexternalimgextension{##1}}%
|
| 277 |
+
\xdef\pgf@tempa{\pgfsys@imagesuffixlist}%
|
| 278 |
+
\expandafter\tikzexternal@determineimgextension\pgf@tempa:\relax
|
| 279 |
+
\pgfutil@ifundefined{includegraphics}{%
|
| 280 |
+
\let\tikzexternal@orig@includegraphics=\relax
|
| 281 |
+
}{%
|
| 282 |
+
\let\tikzexternal@orig@includegraphics=\includegraphics
|
| 283 |
+
}%
|
| 284 |
+
\let\tikzexternalfiledependsonfile=\tikzexternalfiledependsonfile@ACTIVE
|
| 285 |
+
\let\tikzpicturedependsonfile=\tikzpicturedependsonfile@ACTIVE
|
| 286 |
+
\fi
|
| 287 |
+
}
|
| 288 |
+
\def\tikzexternalize@hasbeencalled{0}%
|
| 289 |
+
|
| 290 |
+
\def\tikzifexternalizehasbeencalled#1#2{%
|
| 291 |
+
\if1\tikzexternalize@hasbeencalled
|
| 292 |
+
#1%
|
| 293 |
+
\else
|
| 294 |
+
#2%
|
| 295 |
+
\fi
|
| 296 |
+
}%
|
| 297 |
+
|
| 298 |
+
\def\tikzexternalauxlock@init{%
|
| 299 |
+
\if4\tikzexternal@opmode
|
| 300 |
+
\ifpgfexternalreadmainaux
|
| 301 |
+
\edef\pgf@tempa{\expandafter\string\csname\tikzexternal@realjob\endcsname}%
|
| 302 |
+
\edef\pgf@tempb{\expandafter\string\csname\jobname\endcsname}%
|
| 303 |
+
\ifx\pgf@tempa\pgf@tempb
|
| 304 |
+
\tikzexternalauxlock@setlock{0}%
|
| 305 |
+
\else
|
| 306 |
+
\tikzexternalauxlock@getlockvalue
|
| 307 |
+
\if1\tikzexternallocked
|
| 308 |
+
\pgfexternalreadmainauxfalse
|
| 309 |
+
\else
|
| 310 |
+
\pgfexternalreadmainauxtrue
|
| 311 |
+
\fi
|
| 312 |
+
\fi
|
| 313 |
+
\else
|
| 314 |
+
\def\tikzexternalauxlock@setlock##1{}%
|
| 315 |
+
\fi
|
| 316 |
+
\fi
|
| 317 |
+
}
|
| 318 |
+
\def\tikzexternalauxlock@getlockvalue{%
|
| 319 |
+
\openin\r@pgf@reada=\tikzexternal@realjob.auxlock
|
| 320 |
+
\ifeof\r@pgf@reada
|
| 321 |
+
\def\tikzexternallocked{0}%
|
| 322 |
+
\else
|
| 323 |
+
\read\r@pgf@reada to\pgf@tempa
|
| 324 |
+
\pgf@tempa
|
| 325 |
+
\pgfutil@ifundefined
|
| 326 |
+
{tikzexternallocked}
|
| 327 |
+
{\def\tikzexternallocked{1}}%
|
| 328 |
+
{}%
|
| 329 |
+
\fi
|
| 330 |
+
\closein\r@pgf@reada
|
| 331 |
+
}%
|
| 332 |
+
\def\tikzexternalauxlock@setlock#1{%
|
| 333 |
+
\immediate\openout\w@pgf@writea=\tikzexternal@realjob.auxlock
|
| 334 |
+
\immediate\write\w@pgf@writea{\noexpand\def\noexpand\tikzexternallocked{#1}}%
|
| 335 |
+
\immediate\closeout\w@pgf@writea
|
| 336 |
+
}
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
\def\pgf@external@grab@refundefinedtrue@code{%
|
| 340 |
+
\gdef\noexpand\tikzexternal@systemcall@reschedule@to@end@document{1}%
|
| 341 |
+
}%
|
| 342 |
+
|
| 343 |
+
\def\tikzexternalimgextension{}%
|
| 344 |
+
|
| 345 |
+
\def\tikzexternaldisable{%
|
| 346 |
+
\tikzexternaldisable@nofading
|
| 347 |
+
\pgfutil@ifundefined{tikzexternal@orig@tikzfadingfrompicture}
|
| 348 |
+
{}%
|
| 349 |
+
{%
|
| 350 |
+
\let\tikzfadingfrompicture=\tikzexternal@orig@tikzfadingfrompicture
|
| 351 |
+
\let\endtikzfadingfrompicture=\tikzexternal@orig@endtikzfadingfrompicture
|
| 352 |
+
\let\tikzfading=\tikzexternal@orig@tikzfading
|
| 353 |
+
}%
|
| 354 |
+
}%
|
| 355 |
+
\def\tikzexternaldisable@nofading{%
|
| 356 |
+
\let\tikz=\tikzexternal@origtikz
|
| 357 |
+
\tikzexternal@TEXDIALECT@restore@picture
|
| 358 |
+
\iftikzexternal@optimize
|
| 359 |
+
\ifpgf@external@grabshipout
|
| 360 |
+
\tikzexternal@optimize@RESTORE
|
| 361 |
+
\fi
|
| 362 |
+
\fi
|
| 363 |
+
}
|
| 364 |
+
\def\tikzexternalenable{%
|
| 365 |
+
\if\tikzexternalize@hasbeencalled1%
|
| 366 |
+
\let\tikz=\tikzexternal@tikz@replacement
|
| 367 |
+
\tikzexternal@TEXDIALECT@installreplacement@picture
|
| 368 |
+
\pgfutil@ifundefined{tikzfadingfrompicture}%
|
| 369 |
+
{}%
|
| 370 |
+
{%
|
| 371 |
+
\pgfutil@ifundefined{tikzexternal@orig@tikzfadingfrompicture}{%
|
| 372 |
+
\let\tikzexternal@orig@tikzfadingfrompicture=\tikzfadingfrompicture
|
| 373 |
+
\let\tikzexternal@orig@endtikzfadingfrompicture=\endtikzfadingfrompicture
|
| 374 |
+
\let\tikzexternal@orig@tikzfading=\tikzfading
|
| 375 |
+
}{}%
|
| 376 |
+
\def\tikzfadingfrompicture{%
|
| 377 |
+
\begingroup
|
| 378 |
+
\tikzexternaldisable@nofading
|
| 379 |
+
\tikzexternal@orig@tikzfadingfrompicture}%
|
| 380 |
+
\def\endtikzfadingfrompicture{%
|
| 381 |
+
\tikzexternal@orig@endtikzfadingfrompicture
|
| 382 |
+
\endgroup}%
|
| 383 |
+
\def\tikzfading[##1]{%
|
| 384 |
+
\begingroup
|
| 385 |
+
\tikzexternaldisable@nofading
|
| 386 |
+
\tikzexternal@orig@tikzfading[##1]%
|
| 387 |
+
\endgroup}%
|
| 388 |
+
}%
|
| 389 |
+
\iftikzexternal@optimize
|
| 390 |
+
\ifpgf@external@grabshipout
|
| 391 |
+
\tikzexternal@optimize@REPLACE
|
| 392 |
+
\fi
|
| 393 |
+
\fi
|
| 394 |
+
\fi
|
| 395 |
+
}%
|
| 396 |
+
|
| 397 |
+
\def\tikzsetnextfilename#1{\gdef\tikzexternal@nextfile{#1}}
|
| 398 |
+
\tikzsetnextfilename{}
|
| 399 |
+
|
| 400 |
+
|
| 401 |
+
\long\gdef\tikzexternal@TEXDIALECT@collectpicture#1#2\endtikzpicture{#1{#2}}
|
| 402 |
+
\def\tikzexternal@TEXDIALECT@begpicture{\tikzpicture}
|
| 403 |
+
\def\tikzexternal@TEXDIALECT@endpicture{\endtikzpicture}%
|
| 404 |
+
\def\tikzexternal@TEXDIALECT@installreplacement@picture{%
|
| 405 |
+
\let\tikzpicture=\tikzexternal@tikzpicture@replacement
|
| 406 |
+
}%
|
| 407 |
+
\def\tikzexternal@TEXDIALECT@restore@picture{%
|
| 408 |
+
\let\tikzpicture=\tikzexternal@origpicture
|
| 409 |
+
}%
|
| 410 |
+
|
| 411 |
+
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
\let\tikzexternal@origtikz=\tikz
|
| 415 |
+
\let\tikzexternal@origpicture=\tikzpicture
|
| 416 |
+
\let\tikzexternal@origendpicture=\endtikzpicture
|
| 417 |
+
\let\tikzexternal@curfilename=\relax
|
| 418 |
+
|
| 419 |
+
\def\tikzexternal@tikzpicture@replacement{%
|
| 420 |
+
\leavevmode
|
| 421 |
+
\global\tikzexternal@file@isuptodatetrue%
|
| 422 |
+
\tikzexternal@getnextfilename\tikzexternal@curfilename
|
| 423 |
+
\ifx\tikzexternal@curfilename\pgfutil@empty
|
| 424 |
+
\ifpgf@external@grabshipout
|
| 425 |
+
\iftikzexternal@optimize
|
| 426 |
+
\let\tikzexternal@next=\tikzexternal@skipfigure
|
| 427 |
+
\else
|
| 428 |
+
\let\tikzexternal@next=\tikzexternal@normalpicture@nographics
|
| 429 |
+
\fi
|
| 430 |
+
\else
|
| 431 |
+
\let\tikzexternal@next=\tikzexternal@normalpicture@nographics
|
| 432 |
+
\fi
|
| 433 |
+
\else
|
| 434 |
+
\ifpgf@external@grabshipout
|
| 435 |
+
\tikzifexternaljobnamematches\tikzexternal@curfilename{%
|
| 436 |
+
\let\tikzexternal@next=\tikzexternal@externalizefig
|
| 437 |
+
}{%
|
| 438 |
+
\iftikzexternal@optimize
|
| 439 |
+
\let\tikzexternal@next=\tikzexternal@skipfigure
|
| 440 |
+
\else
|
| 441 |
+
\let\tikzexternal@next=\tikzexternal@normalpicture@nographics
|
| 442 |
+
\fi
|
| 443 |
+
}%
|
| 444 |
+
\else
|
| 445 |
+
\ifcase\tikzexternal@opmode\relax
|
| 446 |
+
\let\tikzexternal@next=\tikzexternal@forcegraphics
|
| 447 |
+
\or
|
| 448 |
+
\let\tikzexternal@next=\tikzexternal@normalpicture@nographics
|
| 449 |
+
\or
|
| 450 |
+
\let\tikzexternal@next=\tikzexternal@externalizefig
|
| 451 |
+
\or
|
| 452 |
+
\let\tikzexternal@next=\tikzexternal@listmodepicture
|
| 453 |
+
\or
|
| 454 |
+
\let\tikzexternal@next=\tikzexternal@externalizefig@systemcall
|
| 455 |
+
\or
|
| 456 |
+
\let\tikzexternal@next=\tikzexternal@list@and@makefile@mode@picture
|
| 457 |
+
\fi
|
| 458 |
+
\fi
|
| 459 |
+
\fi
|
| 460 |
+
\tikzexternal@next
|
| 461 |
+
}%
|
| 462 |
+
|
| 463 |
+
\def\tikzexternal@tikz@replacement{%
|
| 464 |
+
\pgfutil@ifnextchar[{\tikzexternal@tikz@replacement@opt}{\tikzexternal@tikz@replacement@opt[]}%
|
| 465 |
+
}%
|
| 466 |
+
\def\tikzexternal@tikz@replacement@opt[#1]{%
|
| 467 |
+
\pgfutil@ifnextchar\bgroup{\tikzexternal@tikz@replacement@opt@{#1}}{\tikzexternal@tikz@replacement@opt@@{#1}}%
|
| 468 |
+
}
|
| 469 |
+
\long\def\tikzexternal@tikz@replacement@opt@#1#2{%
|
| 470 |
+
\tikzexternal@tikz@replacement@opt@process{#1}{#2}%
|
| 471 |
+
}%
|
| 472 |
+
\def\tikzexternal@tikz@replacement@opt@@#1{%
|
| 473 |
+
\def\tikz@next{\tikzexternal@tikz@replacement@collectnormalsemicolon{#1}}%
|
| 474 |
+
\ifnum\the\catcode`\;=\active\relax%
|
| 475 |
+
\def\tikz@next{\tikzexternal@tikz@replacement@collectactivesemicolon{#1}}%
|
| 476 |
+
\fi%
|
| 477 |
+
\tikz@next}
|
| 478 |
+
\long\def\tikzexternal@tikz@replacement@collectnormalsemicolon#1#2;{%
|
| 479 |
+
\tikzexternal@tikz@replacement@opt@process{#1}{#2;}%
|
| 480 |
+
}%
|
| 481 |
+
{
|
| 482 |
+
\catcode`\;=\active
|
| 483 |
+
\long\gdef\tikzexternal@tikz@replacement@collectactivesemicolon#1#2;{%
|
| 484 |
+
\tikzexternal@tikz@replacement@opt@process{#1}{#2;}%
|
| 485 |
+
}
|
| 486 |
+
}
|
| 487 |
+
\long\def\tikzexternal@tikz@replacement@opt@process#1#2{%
|
| 488 |
+
\begingroup
|
| 489 |
+
\t@tikzexternal@tmpa=\expandafter{\tikzexternal@TEXDIALECT@begpicture[#1]#2}%
|
| 490 |
+
\t@tikzexternal@tmpb=\expandafter{\tikzexternal@TEXDIALECT@endpicture}%
|
| 491 |
+
\xdef\pgf@tempa{\the\t@tikzexternal@tmpa\the\t@tikzexternal@tmpb}%
|
| 492 |
+
\endgroup
|
| 493 |
+
\pgf@tempa
|
| 494 |
+
}
|
| 495 |
+
|
| 496 |
+
\def\tikzexternal@getnextfilename@advancecount{%
|
| 497 |
+
\begingroup
|
| 498 |
+
\c@pgf@counta=\csname c@tikzext@no@\tikzexternal@figurename\endcsname\relax
|
| 499 |
+
\advance\c@pgf@counta by1
|
| 500 |
+
\expandafter\xdef\csname c@tikzext@no@\tikzexternal@figurename\endcsname{\the\c@pgf@counta}%
|
| 501 |
+
\endgroup
|
| 502 |
+
}%
|
| 503 |
+
|
| 504 |
+
\def\tikzexternalgetnextfilename#1{%
|
| 505 |
+
\begingroup
|
| 506 |
+
\let\tikzexternal@getnextfilename@advancecount\relax%
|
| 507 |
+
\let\tikzexternal@getnextfilename@resetglobals=\relax%
|
| 508 |
+
\def\tikzexternal@protocol@to@file##1{}%
|
| 509 |
+
\tikzexternal@getnextfilename#1%
|
| 510 |
+
\pgfmath@smuggleone#1%
|
| 511 |
+
\endgroup
|
| 512 |
+
}%
|
| 513 |
+
|
| 514 |
+
\def\tikzexternalgetcurrentfilename#1{%
|
| 515 |
+
\ifx\tikzexternal@curfilename\relax
|
| 516 |
+
\let#1=\pgfutil@empty
|
| 517 |
+
\else
|
| 518 |
+
\let#1=\tikzexternal@curfilename
|
| 519 |
+
\fi
|
| 520 |
+
}
|
| 521 |
+
|
| 522 |
+
\def\tikzexternal@getnextfilename#1{%
|
| 523 |
+
\let#1=\pgfutil@empty
|
| 524 |
+
\iftikzexternal@export@enabled
|
| 525 |
+
\iftikzexternalexportnext
|
| 526 |
+
\begingroup
|
| 527 |
+
\t@tikzexternal@tmpa=\expandafter{\tikzexternal@filenameprefix}%
|
| 528 |
+
\ifx\tikzexternal@nextfile\pgfutil@empty
|
| 529 |
+
\iftikzexternal@onlynamed
|
| 530 |
+
\xdef\pgf@tempa{}%
|
| 531 |
+
\else
|
| 532 |
+
\pgfkeysgetvalue{/tikz/external/figure name}\tikzexternal@figurename
|
| 533 |
+
\pgfutil@ifundefined{c@tikzext@no@\tikzexternal@figurename}{%
|
| 534 |
+
\expandafter\gdef\csname c@tikzext@no@\tikzexternal@figurename\endcsname{0}%
|
| 535 |
+
}{}%
|
| 536 |
+
\t@tikzexternal@tmpb=\expandafter{\tikzexternal@figurename}%
|
| 537 |
+
\xdef\pgf@tempa{\the\t@tikzexternal@tmpa\the\t@tikzexternal@tmpb\csname c@tikzext@no@\tikzexternal@figurename\endcsname}%
|
| 538 |
+
\tikzexternal@getnextfilename@advancecount
|
| 539 |
+
\fi
|
| 540 |
+
\else
|
| 541 |
+
\t@tikzexternal@tmpb=\expandafter{\tikzexternal@nextfile}%
|
| 542 |
+
\xdef\pgf@tempa{\the\t@tikzexternal@tmpa\the\t@tikzexternal@tmpb}%
|
| 543 |
+
\fi
|
| 544 |
+
\endgroup
|
| 545 |
+
\let#1=\pgf@tempa
|
| 546 |
+
\fi
|
| 547 |
+
\fi
|
| 548 |
+
\tikzexternal@getnextfilename@resetglobals%
|
| 549 |
+
\tikzexternal@protocol@to@file#1%
|
| 550 |
+
}%
|
| 551 |
+
|
| 552 |
+
\def\tikzexternal@getnextfilename@resetglobals{%
|
| 553 |
+
\global\let\tikzexternal@nextfile=\pgfutil@empty
|
| 554 |
+
\global\tikzexternalexportnexttrue
|
| 555 |
+
}%
|
| 556 |
+
|
| 557 |
+
\def\tikzexternal@protocol@to@file#1{%
|
| 558 |
+
\ifpgf@external@grabshipout%
|
| 559 |
+
\else
|
| 560 |
+
\iftikzexternal@genfigurelist
|
| 561 |
+
\edef\tikzexternal@temp{#1}%
|
| 562 |
+
\ifx\tikzexternal@temp\pgfutil@empty
|
| 563 |
+
\else
|
| 564 |
+
\pgfutil@ifundefined{tikzexternal@listmode@openedfile}{%
|
| 565 |
+
\message{Opening '\tikzexternal@realjob.figlist' for writing.}%
|
| 566 |
+
\begingroup
|
| 567 |
+
\globaldefs=1
|
| 568 |
+
\csname newwrite\endcsname\tikzexternal@outfile
|
| 569 |
+
\endgroup
|
| 570 |
+
\immediate\openout\tikzexternal@outfile=\tikzexternal@realjob.figlist\relax
|
| 571 |
+
\gdef\tikzexternal@listmode@openedfile{1}%
|
| 572 |
+
\if\tikzexternal@opmode5%
|
| 573 |
+
\tikzexternal@list@and@make@prepare
|
| 574 |
+
\fi
|
| 575 |
+
}{}%
|
| 576 |
+
\iftikzexternal@verboseio
|
| 577 |
+
\pgf@typeout{Writing '#1' to '\tikzexternal@realjob.figlist'.}%
|
| 578 |
+
\fi
|
| 579 |
+
\immediate\write\tikzexternal@outfile{#1}%
|
| 580 |
+
\if\tikzexternal@opmode5%
|
| 581 |
+
\tikzexternal@list@and@make@gentarget{#1}%
|
| 582 |
+
\fi
|
| 583 |
+
\fi
|
| 584 |
+
\fi
|
| 585 |
+
\fi
|
| 586 |
+
}%
|
| 587 |
+
|
| 588 |
+
\def\tikzexternal@list@and@make@gentarget#1{%
|
| 589 |
+
\tikzexternal@assemble@systemcall{#1}{\pgf@tempa}%
|
| 590 |
+
\def\tikzexternal@tempb{\pgfutilstrreplace{^^J}{^^J\tikzexternal@TABchar}}%
|
| 591 |
+
\expandafter\tikzexternal@tempb\expandafter{\pgf@tempa}%
|
| 592 |
+
\let\pgf@tempa=\pgfretval
|
| 593 |
+
\iftikzexternal@verboseio
|
| 594 |
+
\pgf@typeout{Writing '#1' to '\tikzexternal@realjob.makefile'.}%
|
| 595 |
+
\fi
|
| 596 |
+
\global\tikzexternal@file@isuptodatetrue%
|
| 597 |
+
\tikzexternal@checkforceremake%
|
| 598 |
+
\immediate\write\tikzexternal@outmakefile{#1\tikzexternalimgextension: \iftikzexternal@file@isuptodate\else FORCEREMAKE\fi}%
|
| 599 |
+
\immediate\write\tikzexternal@outmakefile{\tikzexternal@TABchar\pgf@tempa}%
|
| 600 |
+
\immediate\write\tikzexternal@outmakefile{}%
|
| 601 |
+
}
|
| 602 |
+
|
| 603 |
+
\def\tikzexternal@list@and@make@prepare{%
|
| 604 |
+
\iftikzexternal@verboseio
|
| 605 |
+
\pgf@typeout{Opening '\tikzexternal@realjob.makefile' for writing.}%
|
| 606 |
+
\fi
|
| 607 |
+
\begingroup
|
| 608 |
+
\globaldefs=1
|
| 609 |
+
\csname newwrite\endcsname\tikzexternal@outmakefile
|
| 610 |
+
\endgroup
|
| 611 |
+
\immediate\openout\tikzexternal@outmakefile=\tikzexternal@realjob.makefile\relax
|
| 612 |
+
\immediate\write\tikzexternal@outmakefile{ALL_FIGURE_NAMES=\tikzexternal@DOLLARchar(shell cat \tikzexternal@realjob.figlist)}%
|
| 613 |
+
\immediate\write\tikzexternal@outmakefile{ALL_FIGURES=\tikzexternal@DOLLARchar(ALL_FIGURE_NAMES:\tikzexternal@PERCENTchar=\tikzexternal@PERCENTchar\tikzexternalimgextension)}%
|
| 614 |
+
\immediate\write\tikzexternal@outmakefile{}%
|
| 615 |
+
\immediate\write\tikzexternal@outmakefile{allimages: \tikzexternal@DOLLARchar(ALL_FIGURES)}%
|
| 616 |
+
\immediate\write\tikzexternal@outmakefile{\tikzexternal@TABchar @echo All images exist now. Use make -B to re-generate them.}%
|
| 617 |
+
\immediate\write\tikzexternal@outmakefile{}%
|
| 618 |
+
\immediate\write\tikzexternal@outmakefile{FORCEREMAKE:}%
|
| 619 |
+
\immediate\write\tikzexternal@outmakefile{}%
|
| 620 |
+
\immediate\write\tikzexternal@outmakefile{-include $(ALL_FIGURE_NAMES:\tikzexternal@PERCENTchar=\tikzexternal@PERCENTchar.\tikzexternaldepext)}%
|
| 621 |
+
\immediate\write\tikzexternal@outmakefile{}%
|
| 622 |
+
\tikzexternalmakefiledefaultdeprule
|
| 623 |
+
\immediate\write\tikzexternal@outmakefile{}%
|
| 624 |
+
\tikzexternal@outmakefile@pendingcommands
|
| 625 |
+
\pgfutil@ifundefined{AtEndDocument}{}{%
|
| 626 |
+
\AtEndDocument{\pgf@typeout{===== mode=`list and make': Use 'make -f \tikzexternal@realjob.makefile' to generate all images. Then, re-run (pdf)latex \tikzexternal@realjob. =====}}%
|
| 627 |
+
}%
|
| 628 |
+
}%
|
| 629 |
+
\def\tikzexternaldepext{dep}
|
| 630 |
+
|
| 631 |
+
\def\tikzexternalmakefiledefaultdeprule{%
|
| 632 |
+
\immediate\write\tikzexternal@outmakefile{\tikzexternal@PERCENTchar.\tikzexternaldepext:}%
|
| 633 |
+
\immediate\write\tikzexternal@outmakefile{\tikzexternal@TABchar mkdir -p \tikzexternal@normal@dq $(dir $@)\tikzexternal@normal@dq}%
|
| 634 |
+
\immediate\write\tikzexternal@outmakefile{\tikzexternal@TABchar touch \tikzexternal@normal@dq $@\tikzexternal@normal@dq\space \tikzexternal@HASHchar\space will be filled later.}%
|
| 635 |
+
}%
|
| 636 |
+
|
| 637 |
+
\def\tikzexternalifwritesmakefile#1#2{%
|
| 638 |
+
\if5\tikzexternal@opmode #1\else #2\fi
|
| 639 |
+
}%
|
| 640 |
+
\def\tikzexternal@outmakefile@pendingcommands{}%
|
| 641 |
+
|
| 642 |
+
\def\tikzexternalwritetomakefile#1{%
|
| 643 |
+
\if\tikzexternal@opmode5%
|
| 644 |
+
\pgfutil@ifundefined{tikzexternal@outmakefile}{%
|
| 645 |
+
\expandafter\gdef\expandafter\tikzexternal@outmakefile@pendingcommands\expandafter{%
|
| 646 |
+
\tikzexternal@outmakefile@pendingcommands
|
| 647 |
+
\immediate\write\tikzexternal@outmakefile{#1}%
|
| 648 |
+
}%
|
| 649 |
+
}{%
|
| 650 |
+
\immediate\write\tikzexternal@outmakefile{#1}%
|
| 651 |
+
}%
|
| 652 |
+
\fi
|
| 653 |
+
}%
|
| 654 |
+
|
| 655 |
+
\def\tikzexternal@dep@file@name{}
|
| 656 |
+
|
| 657 |
+
\def\tikzexternalfiledependsonfile@ACTIVE#1#2{%
|
| 658 |
+
\begingroup
|
| 659 |
+
\def\tikzpicturedependsonfile@name{#1}%
|
| 660 |
+
\ifx\tikzpicturedependsonfile@name\pgfutil@empty
|
| 661 |
+
\else
|
| 662 |
+
\tikzifexternalizingcurrent
|
| 663 |
+
{\tikzexternalfiledependsonfile@append@to@dep@file{#1}{#2}}%
|
| 664 |
+
{\tikzexternalfiledependsonfile@append@to@makefile{#1}{#2}}%
|
| 665 |
+
\fi
|
| 666 |
+
\endgroup
|
| 667 |
+
}%
|
| 668 |
+
\def\tikzexternalfiledependsonfile#1#2{}%
|
| 669 |
+
|
| 670 |
+
\def\tikzexternalfiledependsonfile@append@to@dep@file#1#2{%
|
| 671 |
+
\tikzexternalgetcurrentfilename\tikzpicturedependsonfile@name
|
| 672 |
+
\edef\tikzpicturedependsonfile@name{\tikzpicturedependsonfile@name.\tikzexternaldepext}%
|
| 673 |
+
\ifx\tikzexternal@dep@file@name\tikzpicturedependsonfile@name
|
| 674 |
+
\else
|
| 675 |
+
\pgfutil@ifundefined{tikzexternal@dep@file}{%
|
| 676 |
+
\begingroup
|
| 677 |
+
\globaldefs=1
|
| 678 |
+
\csname newwrite\endcsname\tikzexternal@dep@file
|
| 679 |
+
\endgroup
|
| 680 |
+
}{}%
|
| 681 |
+
\ifx\tikzexternal@dep@file@name\pgfutil@empty
|
| 682 |
+
\else
|
| 683 |
+
\immediate\closeout\tikzexternal@dep@file
|
| 684 |
+
\fi
|
| 685 |
+
\global\let\tikzexternal@dep@file@name=\tikzpicturedependsonfile@name
|
| 686 |
+
\immediate\openout\tikzexternal@dep@file=\tikzexternal@dep@file@name\relax
|
| 687 |
+
\fi
|
| 688 |
+
\immediate\write\tikzexternal@dep@file{#1\tikzexternalimgextension: #2}%
|
| 689 |
+
}
|
| 690 |
+
|
| 691 |
+
\def\tikzexternalfiledependsonfile@append@to@makefile#1#2{%
|
| 692 |
+
\edef\tikzexternal@temp{#1\tikzexternalimgextension: #2}%
|
| 693 |
+
\expandafter\tikzexternalwritetomakefile\expandafter{\tikzexternal@temp}%
|
| 694 |
+
}
|
| 695 |
+
|
| 696 |
+
\def\tikzpicturedependsonfile@ACTIVE#1{%
|
| 697 |
+
\begingroup
|
| 698 |
+
\tikzexternalgetcurrentfilename\tikzpicturedependsonfile@name
|
| 699 |
+
\ifx\tikzpicturedependsonfile@name\pgfutil@empty
|
| 700 |
+
\tikzexternalgetnextfilename\tikzpicturedependsonfile@name
|
| 701 |
+
\fi
|
| 702 |
+
\expandafter\tikzexternalfiledependsonfile\expandafter{\tikzpicturedependsonfile@name}{#1}%
|
| 703 |
+
\endgroup
|
| 704 |
+
}%
|
| 705 |
+
\def\tikzpicturedependsonfile#1{}%
|
| 706 |
+
|
| 707 |
+
|
| 708 |
+
\def\tikzexternal@externalizefig{%
|
| 709 |
+
\ifpgf@external@grabshipout%
|
| 710 |
+
\expandafter\tikzexternal@externalizefig@GRAB%
|
| 711 |
+
\else
|
| 712 |
+
\expandafter\tikzexternal@externalizefig@mode@graphics@if@exists
|
| 713 |
+
\fi%
|
| 714 |
+
}
|
| 715 |
+
\def\tikzexternal@externalizefig@mode@graphics@if@exists{%
|
| 716 |
+
\gdef\pgf@filename{}%
|
| 717 |
+
\xdef\pgf@tempa{\noexpand\pgf@findfile\pgfsys@imagesuffixlist:+{\tikzexternal@curfilename}}%
|
| 718 |
+
\pgf@tempa
|
| 719 |
+
\ifx\pgf@filename\pgfutil@empty%
|
| 720 |
+
\expandafter\tikzexternal@normalpicture@nographics
|
| 721 |
+
\else
|
| 722 |
+
\expandafter\tikzexternal@forcegraphics
|
| 723 |
+
\fi
|
| 724 |
+
}%
|
| 725 |
+
|
| 726 |
+
|
| 727 |
+
\def\tikzexternal@optimize@away@cmd#1#2{%
|
| 728 |
+
\pgfutil@ifnextchar[{%
|
| 729 |
+
\tikzexternal@optimize@away@cmd@{#1}{#2}%
|
| 730 |
+
}{%
|
| 731 |
+
\tikzexternal@optimize@away@cmd@{#1}{#2}[]%
|
| 732 |
+
}%
|
| 733 |
+
}%
|
| 734 |
+
\def\tikzexternal@optimize@away@cmd@#1#2[#3]{%
|
| 735 |
+
\def\tikz@temp{#2}%
|
| 736 |
+
\ifx\tikz@temp\pgfutil@empty
|
| 737 |
+
\def\tikz@temp{\tikzexternal@optimize@away@cmd@auto{#1}{#3}}%
|
| 738 |
+
\else
|
| 739 |
+
\ifcase#2\relax
|
| 740 |
+
\def\tikzexternal@optimize@away@cmd@manual{%
|
| 741 |
+
\tikzexternal@optimize@away@cmd@@@{#1}{#3}{}%
|
| 742 |
+
}%
|
| 743 |
+
\or
|
| 744 |
+
\def\tikzexternal@optimize@away@cmd@manual##1{%
|
| 745 |
+
\tikzexternal@optimize@away@cmd@@@{#1}{#3}{{##1}}%
|
| 746 |
+
}%
|
| 747 |
+
\or
|
| 748 |
+
\def\tikzexternal@optimize@away@cmd@manual##1##2{%
|
| 749 |
+
\tikzexternal@optimize@away@cmd@@@{#1}{#3}{{##1}{##2}}%
|
| 750 |
+
}%
|
| 751 |
+
\or
|
| 752 |
+
\def\tikzexternal@optimize@away@cmd@manual##1##2##3{%
|
| 753 |
+
\tikzexternal@optimize@away@cmd@@@{#1}{#3}{{##1}{##2}{##3}}%
|
| 754 |
+
}%
|
| 755 |
+
\or
|
| 756 |
+
\def\tikzexternal@optimize@away@cmd@manual##1##2##3##4{%
|
| 757 |
+
\tikzexternal@optimize@away@cmd@@@{#1}{#3}{{##1}{##2}{##3}{##4}}%
|
| 758 |
+
}%
|
| 759 |
+
\or
|
| 760 |
+
\def\tikzexternal@optimize@away@cmd@manual##1##2##3##4##5{%
|
| 761 |
+
\tikzexternal@optimize@away@cmd@@@{#1}{#3}{{##1}{##2}{##3}{##4}{##5}}%
|
| 762 |
+
}%
|
| 763 |
+
\or
|
| 764 |
+
\def\tikzexternal@optimize@away@cmd@manual##1##2##3##4##5##6{%
|
| 765 |
+
\tikzexternal@optimize@away@cmd@@@{#1}{#3}{{##1}{##2}{##3}{##4}{##5}{##6}}%
|
| 766 |
+
}%
|
| 767 |
+
\or
|
| 768 |
+
\def\tikzexternal@optimize@away@cmd@manual##1##2##3##4##5##6##7{%
|
| 769 |
+
\tikzexternal@optimize@away@cmd@@@{#1}{#3}{{##1}{##2}{##3}{##4}{##5}{##6}{##7}}%
|
| 770 |
+
}%
|
| 771 |
+
\or
|
| 772 |
+
\def\tikzexternal@optimize@away@cmd@manual##1##2##3##4##5##6##7##8{%
|
| 773 |
+
\tikzexternal@optimize@away@cmd@@@{#1}{#3}{{##1}{##2}{##3}{##4}{##5}{##6}{##7}{##8}}%
|
| 774 |
+
}%
|
| 775 |
+
\or
|
| 776 |
+
\def\tikzexternal@optimize@away@cmd@manual##1##2##3##4##5##6##7##8##9{%
|
| 777 |
+
\tikzexternal@optimize@away@cmd@@@{#1}{#3}{{##1}{##2}{##3}{##4}{##5}{##6}{##7}{##8}{##9}}%
|
| 778 |
+
}%
|
| 779 |
+
\fi
|
| 780 |
+
\def\tikz@temp{\tikzexternal@optimize@away@cmd@manual}%
|
| 781 |
+
\fi
|
| 782 |
+
\tikz@temp
|
| 783 |
+
}%
|
| 784 |
+
\def\tikzexternal@optimize@away@cmd@auto#1#2{%
|
| 785 |
+
\pgfutil@ifnextchar\bgroup{%
|
| 786 |
+
\tikzexternal@optimize@away@cmd@auto@{#1}{#2}%
|
| 787 |
+
}{%
|
| 788 |
+
\tikzexternal@optimize@away@cmd@auto@{#1}{#2}{<no argument in curly braces>}%
|
| 789 |
+
}
|
| 790 |
+
}%
|
| 791 |
+
|
| 792 |
+
\def\tikzexternal@optimize@away@cmd@auto@#1#2#3{%
|
| 793 |
+
\tikzexternal@optimize@away@cmd@@@{#1}{#2}{{#3}}%
|
| 794 |
+
}%
|
| 795 |
+
\def\tikzexternal@optimize@away@cmd@@@#1#2#3{%
|
| 796 |
+
\begingroup
|
| 797 |
+
\toks0={#1[#2]#3}%
|
| 798 |
+
\iftikzexternal@verbose@optimize
|
| 799 |
+
\pgf@typeout{The command '\the\toks0' has been optimized away. Use '/tikz/external/optimize=false' to disable this.}%
|
| 800 |
+
\fi
|
| 801 |
+
\endgroup
|
| 802 |
+
\begingroup
|
| 803 |
+
\pgfkeysvalueof{/tikz/external/optimize away text/.@cmd}#1\pgfeov%
|
| 804 |
+
\endgroup
|
| 805 |
+
}%
|
| 806 |
+
|
| 807 |
+
\def\tikzexternal@optimize@away@latex@env#1{%
|
| 808 |
+
\def\tikzexternal@optimize@away@latex@env@{#1}%
|
| 809 |
+
\begingroup
|
| 810 |
+
\def\tikzexternal@laTeX@collect@until@end@tikzpicturetikzpicturestring{#1}%
|
| 811 |
+
\tikzexternal@TEXDIALECT@collectpicture\tikzexternal@optimize@away@latex@env@close
|
| 812 |
+
}%
|
| 813 |
+
\long\def\tikzexternal@optimize@away@latex@env@close#1{%
|
| 814 |
+
\iftikzexternal@verbose@optimize
|
| 815 |
+
\pgf@typeout{The complete contents of \string\begin{tikzexternal@optimize@away@latex@env@} up to the next \end{tikzexternal@optimize@away@latex@env@} has been optimized away because it does not contribute to the exported PDF. Use '/tikz/external/optimize=false' to disable this.}%
|
| 816 |
+
\fi
|
| 817 |
+
\endgroup
|
| 818 |
+
\expandafter\let\csname end\tikzexternal@optimize@away@latex@env@\endcsname=\relax
|
| 819 |
+
\expandafter\end\expandafter{\tikzexternal@optimize@away@latex@env@}%
|
| 820 |
+
}%
|
| 821 |
+
|
| 822 |
+
\def\tikzexternal@optimize@REPLACE{%
|
| 823 |
+
\pgfkeysvalueof{/tikz/external/optimize/install/.@cmd}\pgfeov
|
| 824 |
+
}%
|
| 825 |
+
|
| 826 |
+
\def\tikzexternal@optimize@RESTORE{%
|
| 827 |
+
\pgfkeysvalueof{/tikz/external/optimize/restore/.@cmd}\pgfeov
|
| 828 |
+
}%
|
| 829 |
+
|
| 830 |
+
\def\tikzexternal@closeenvironments{%
|
| 831 |
+
\let\endtikzpicture=\relax
|
| 832 |
+
\tikzexternal@TEXDIALECT@endpicture
|
| 833 |
+
\let\endtikzpicture=\tikzexternal@origendpicture
|
| 834 |
+
\let\tikzexternal@curfilename=\relax
|
| 835 |
+
}
|
| 836 |
+
|
| 837 |
+
\def\tikzexternal@skipfigure{%
|
| 838 |
+
\tikzexternal@TEXDIALECT@collectpicture\tikzexternal@skipfigure@@
|
| 839 |
+
}
|
| 840 |
+
\long\def\tikzexternal@skipfigure@@#1{%
|
| 841 |
+
\iftikzexternal@verbose@optimize
|
| 842 |
+
\pgf@typeout{A tikzpicture has been optimized away. Use '/tikz/external/optimize=false' to disable this.}%
|
| 843 |
+
\fi
|
| 844 |
+
\tikzexternal@closeenvironments
|
| 845 |
+
\pgfkeysvalueof{/tikz/external/optimize away text/.@cmd}tikzpicture\pgfeov%
|
| 846 |
+
}
|
| 847 |
+
|
| 848 |
+
\def\tikzexternal@normalpicture@nographics{%
|
| 849 |
+
\tikzexternal@nestedflagfalse
|
| 850 |
+
\let\tikzpicture=\tikzexternal@normalpicture@begreplace
|
| 851 |
+
\let\endtikzpicture=\tikzexternal@normalpicture@endreplace
|
| 852 |
+
\tikzpicture
|
| 853 |
+
}
|
| 854 |
+
\def\tikzexternal@normalpicture@begreplace{%
|
| 855 |
+
\begingroup
|
| 856 |
+
\tikzexternal@nestedflagtrue
|
| 857 |
+
\tikzexternal@origpicture
|
| 858 |
+
}
|
| 859 |
+
\def\tikzexternal@normalpicture@endreplace{%
|
| 860 |
+
\tikzexternal@origendpicture
|
| 861 |
+
\endgroup
|
| 862 |
+
\iftikzexternal@nestedflag
|
| 863 |
+
\else
|
| 864 |
+
\let\tikzpicture=\tikzexternal@tikzpicture@replacement
|
| 865 |
+
\let\endtikzpicture=\tikzexternal@origendpicture
|
| 866 |
+
\fi
|
| 867 |
+
}%
|
| 868 |
+
|
| 869 |
+
\def\tikzexternal@forcegraphics{%
|
| 870 |
+
\tikzexternal@TEXDIALECT@collectpicture\tikzexternal@forcegraphics@@
|
| 871 |
+
}
|
| 872 |
+
\long\def\tikzexternal@forcegraphics@@#1{\tikzexternal@forcegraphics@@@}%
|
| 873 |
+
\def\tikzexternal@forcegraphics@@@{%
|
| 874 |
+
\if5\tikzexternal@opmode
|
| 875 |
+
\let\tikz@refundefinedtrue@@=\G@refundefinedtrue
|
| 876 |
+
\gdef\G@refundefinedtrue{%
|
| 877 |
+
\tikz@refundefinedtrue@@
|
| 878 |
+
\tikzexternal@forceremake@undefined@reference@handler
|
| 879 |
+
}%
|
| 880 |
+
\fi
|
| 881 |
+
\expandafter\pgfincludeexternalgraphics\expandafter{\tikzexternal@curfilename}%
|
| 882 |
+
\if5\tikzexternal@opmode
|
| 883 |
+
\global\let\G@refundefinedtrue=\tikz@refundefinedtrue@@
|
| 884 |
+
\fi
|
| 885 |
+
\tikzexternal@closeenvironments
|
| 886 |
+
}
|
| 887 |
+
|
| 888 |
+
\def\tikzexternal@forceremake@undefined@reference@handler{%
|
| 889 |
+
\pgf@typeout{===== 'mode=list and make': encountered undefined reference in current picture. Adding dependency to FORCEREMAKE. Rerun make to update the picture.' ========^^J}%
|
| 890 |
+
\tikzpicturedependsonfile{FORCEREMAKE}%
|
| 891 |
+
}%
|
| 892 |
+
|
| 893 |
+
\def\tikzexternal@listmodepicture{%
|
| 894 |
+
\tikzexternal@TEXDIALECT@collectpicture\tikzexternal@listmodepicture@@
|
| 895 |
+
}
|
| 896 |
+
\long\def\tikzexternal@listmodepicture@@#1{\tikzexternal@listmodepicture@@@}
|
| 897 |
+
\def\tikzexternal@listmodepicture@@@{%
|
| 898 |
+
\pgfkeysvalueof{/tikz/external/image discarded text}%
|
| 899 |
+
\tikzexternal@closeenvironments
|
| 900 |
+
}
|
| 901 |
+
|
| 902 |
+
\def\tikzexternal@list@and@makefile@mode@picture{%
|
| 903 |
+
\tikzexternal@TEXDIALECT@collectpicture\tikzexternal@list@and@makefile@mode@picture@
|
| 904 |
+
}%
|
| 905 |
+
\long\def\tikzexternal@list@and@makefile@mode@picture@#1{%
|
| 906 |
+
\tikzexternal@check@uptodate@mode{#1}%
|
| 907 |
+
\gdef\pgf@filename{}%
|
| 908 |
+
\xdef\pgf@tempa{\noexpand\pgf@findfile\pgfsys@imagesuffixlist:+{\tikzexternal@curfilename}}%
|
| 909 |
+
\pgf@tempa
|
| 910 |
+
\ifx\pgf@filename\pgfutil@empty%
|
| 911 |
+
\expandafter\tikzexternal@listmodepicture@@@
|
| 912 |
+
\else
|
| 913 |
+
\expandafter\tikzexternal@forcegraphics@@@
|
| 914 |
+
\fi
|
| 915 |
+
}%
|
| 916 |
+
|
| 917 |
+
\def\tikzexternal@externalizefig@before@grab{%
|
| 918 |
+
\pgfutil@IfUndefined{TP@holdbox}{%
|
| 919 |
+
}{%
|
| 920 |
+
\global\setbox\TP@holdbox\vbox{}%
|
| 921 |
+
}%
|
| 922 |
+
}%
|
| 923 |
+
|
| 924 |
+
\def\tikzexternal@externalizefig@GRAB{%
|
| 925 |
+
\ifpgf@external@grabshipout
|
| 926 |
+
\iftikzexternal@optimize
|
| 927 |
+
\tikzexternal@optimize@RESTORE
|
| 928 |
+
\fi
|
| 929 |
+
\tikzexternal@externalizefig@before@grab
|
| 930 |
+
\fi
|
| 931 |
+
\def\tikzpicture{%
|
| 932 |
+
\def\tikzpicture{%
|
| 933 |
+
\begingroup
|
| 934 |
+
\def\endtikzpicture{%
|
| 935 |
+
\tikzexternal@origendpicture
|
| 936 |
+
\endgroup
|
| 937 |
+
}%
|
| 938 |
+
\tikzexternal@origpicture
|
| 939 |
+
}%
|
| 940 |
+
\pgf@external@grab{\tikzexternal@curfilename}%
|
| 941 |
+
\tikzexternal@origpicture
|
| 942 |
+
}%
|
| 943 |
+
\def\endtikzpicture{%
|
| 944 |
+
\tikzexternal@origendpicture
|
| 945 |
+
\pgf@externalend
|
| 946 |
+
\tikzexternal@ensure@nonempty@floats
|
| 947 |
+
\let\tikzpicture=\tikzexternal@tikzpicture@replacement
|
| 948 |
+
\let\endtikzpicture=\tikzexternal@origendpicture
|
| 949 |
+
\iftikzexternal@optimize
|
| 950 |
+
\ifpgf@external@grabshipout
|
| 951 |
+
\tikzexternal@optimize@REPLACE
|
| 952 |
+
\fi
|
| 953 |
+
\fi
|
| 954 |
+
}%
|
| 955 |
+
\tikzpicture
|
| 956 |
+
}%
|
| 957 |
+
|
| 958 |
+
\def\tikzexternal@ensure@nonempty@floats{%
|
| 959 |
+
tikzexternal: picture has been externalized. This text is required to avoid empty floats.
|
| 960 |
+
}%
|
| 961 |
+
|
| 962 |
+
\def\tikzexternal@externalizefig@systemcall{%
|
| 963 |
+
\tikzexternal@TEXDIALECT@collectpicture\tikzexternal@externalizefig@systemcall@@
|
| 964 |
+
}
|
| 965 |
+
|
| 966 |
+
{
|
| 967 |
+
\catcode`\"=12
|
| 968 |
+
\catcode`\'=12
|
| 969 |
+
\catcode`\;=12
|
| 970 |
+
\catcode`\&=12
|
| 971 |
+
\catcode`\-=12
|
| 972 |
+
\xdef\tikzexternal@normal@dq{"}
|
| 973 |
+
\xdef\tikzexternal@normal@sq{'}
|
| 974 |
+
\xdef\tikzexternal@normal@semic{;}
|
| 975 |
+
\xdef\tikzexternal@normal@and{&}
|
| 976 |
+
\xdef\tikzexternal@normal@dash{-}
|
| 977 |
+
\catcode`\"=13
|
| 978 |
+
\catcode`\'=13
|
| 979 |
+
\catcode`\;=13
|
| 980 |
+
\catcode`\&=13
|
| 981 |
+
\catcode`\-=13
|
| 982 |
+
\gdef\tikzexternal@activate@normal@dq{\let"=\tikzexternal@normal@dq}
|
| 983 |
+
\gdef\tikzexternal@activate@normal@sq{\let'=\tikzexternal@normal@sq}
|
| 984 |
+
\gdef\tikzexternal@activate@normal@semic{\let;=\tikzexternal@normal@semic}
|
| 985 |
+
\gdef\tikzexternal@activate@normal@and{\let&=\tikzexternal@normal@and}
|
| 986 |
+
\gdef\tikzexternal@activate@normal@dash{\let-=\tikzexternal@normal@dash}
|
| 987 |
+
\catcode`\|=0
|
| 988 |
+
\catcode`\\=12
|
| 989 |
+
|xdef|tikzexternal@normal@backslash{\}%
|
| 990 |
+
}
|
| 991 |
+
{
|
| 992 |
+
\catcode`\^^I=12
|
| 993 |
+
\catcode`\$=12
|
| 994 |
+
\catcode`\%=12
|
| 995 |
+
\catcode`\#=12
|
| 996 |
+
\gdef\tikzexternal@HASHchar{#}
|
| 997 |
+
\gdef\tikzexternal@TABchar{^^I}\gdef\tikzexternal@PERCENTchar{%}\xdef\tikzexternal@DOLLARchar{$}}
|
| 998 |
+
|
| 999 |
+
\def\tikzexternal@assemble@systemcall#1#2{%
|
| 1000 |
+
\begingroup
|
| 1001 |
+
\def\image{#1}%
|
| 1002 |
+
\iftikzexternal@auto@detect@jobname
|
| 1003 |
+
\edef\texsource{\string\def\string\tikzexternalrealjob{\tikzexternal@realjob}\string\input{\tikzexternal@realjob}}%
|
| 1004 |
+
\else
|
| 1005 |
+
\let\texsource=\tikzexternal@realjob
|
| 1006 |
+
\fi
|
| 1007 |
+
\ifnum\the\catcode`\"=13 \tikzexternal@activate@normal@dq\fi
|
| 1008 |
+
\ifnum\the\catcode`\'=13 \tikzexternal@activate@normal@sq\fi
|
| 1009 |
+
\ifnum\the\catcode`\;=13 \tikzexternal@activate@normal@semic\fi
|
| 1010 |
+
\ifnum\the\catcode`\-=13 \tikzexternal@activate@normal@dash\fi
|
| 1011 |
+
\let\\=\tikzexternal@normal@backslash
|
| 1012 |
+
\xdef#2{\pgfkeysvalueof{/tikz/external/system call}}%
|
| 1013 |
+
\endgroup
|
| 1014 |
+
}%
|
| 1015 |
+
\long\def\tikzexternal@externalizefig@systemcall@@#1{%
|
| 1016 |
+
\tikzexternal@externalizefig@systemcall@uptodatecheck{#1}%
|
| 1017 |
+
\tikzexternal@assemble@systemcall{\tikzexternal@curfilename}{\pgf@tempa}%
|
| 1018 |
+
\global\let\tikzexternal@cursyscall=\pgf@tempa
|
| 1019 |
+
\gdef\tikzexternal@typeset@picture@on@failure{1}%
|
| 1020 |
+
\iftikzexternal@file@isuptodate
|
| 1021 |
+
\iftikzexternal@verboseio
|
| 1022 |
+
\pgf@typeout{===== Image '\tikzexternal@curfilename' is up-to-date. ======}%
|
| 1023 |
+
\fi
|
| 1024 |
+
\let\pgf@filename=\tikzexternal@curfilename
|
| 1025 |
+
\else
|
| 1026 |
+
\begingroup
|
| 1027 |
+
\tikzexternalauxlock@setlock1%
|
| 1028 |
+
\tikzexternal@externalizefig@systemcall@call{\tikzexternal@cursyscall}%
|
| 1029 |
+
\tikzexternalauxlock@setlock0%
|
| 1030 |
+
\expandafter\tikzexternal@externalizefig@systemcall@assertsuccess\expandafter{\tikzexternal@cursyscall}%
|
| 1031 |
+
\pgfmath@smuggleone\pgf@filename
|
| 1032 |
+
\endgroup
|
| 1033 |
+
\fi
|
| 1034 |
+
\ifx\pgf@filename\pgfutil@empty
|
| 1035 |
+
\if1\tikzexternal@typeset@picture@on@failure
|
| 1036 |
+
\begingroup
|
| 1037 |
+
\toks0={%
|
| 1038 |
+
\tikzexternaldisable
|
| 1039 |
+
}%
|
| 1040 |
+
\toks1={%
|
| 1041 |
+
\tikzpicture
|
| 1042 |
+
#1%
|
| 1043 |
+
}%
|
| 1044 |
+
\toks2={%
|
| 1045 |
+
\tikzexternal@TEXDIALECT@endpicture
|
| 1046 |
+
\tikzexternalenable
|
| 1047 |
+
}%
|
| 1048 |
+
\xdef\tikzexternal@externalizefig@systemcall@next{%
|
| 1049 |
+
\the\toks0
|
| 1050 |
+
\noexpand\scantokens{\the\toks1 }%
|
| 1051 |
+
\the\toks2
|
| 1052 |
+
}%
|
| 1053 |
+
\endgroup
|
| 1054 |
+
\else
|
| 1055 |
+
\gdef\tikzexternal@externalizefig@systemcall@next{\tikzexternal@closeenvironments}%
|
| 1056 |
+
\fi
|
| 1057 |
+
\else
|
| 1058 |
+
\gdef\tikzexternal@systemcall@reschedule@to@end@document{0}%
|
| 1059 |
+
\expandafter\pgfincludeexternalgraphics\expandafter{\tikzexternal@curfilename}%
|
| 1060 |
+
\if1\tikzexternal@systemcall@reschedule@to@end@document
|
| 1061 |
+
\pgfutil@IfUndefined{AtVeryEndDocument}{%
|
| 1062 |
+
}{%
|
| 1063 |
+
\pgf@typeout{===== The previous system call resulted in undefined references inside of the output file. Rescheduling it for \string\end{document}. ========}%
|
| 1064 |
+
\expandafter\tikzexternal@externalizefig@systemcall@reschedule\expandafter{\tikzexternal@cursyscall}%
|
| 1065 |
+
}%
|
| 1066 |
+
\fi
|
| 1067 |
+
\gdef\tikzexternal@externalizefig@systemcall@next{\tikzexternal@closeenvironments}%
|
| 1068 |
+
\fi
|
| 1069 |
+
\tikzexternal@externalizefig@systemcall@next
|
| 1070 |
+
}%
|
| 1071 |
+
|
| 1072 |
+
\def\tikzexternal@externalizefig@systemcall@call#1{%
|
| 1073 |
+
\iftikzexternal@verboseio
|
| 1074 |
+
\pgf@typeout{===== 'mode=convert with system call': Invoking '#1' ========}%
|
| 1075 |
+
\fi
|
| 1076 |
+
\pgfutil@shellescape{#1}%
|
| 1077 |
+
}%
|
| 1078 |
+
|
| 1079 |
+
\def\tikzexternal@checkforceremake{%
|
| 1080 |
+
\iftikzexternal@force@remake
|
| 1081 |
+
\global\tikzexternal@file@isuptodatefalse
|
| 1082 |
+
\else
|
| 1083 |
+
\iftikzexternalremakenext
|
| 1084 |
+
\global\tikzexternal@file@isuptodatefalse
|
| 1085 |
+
\global\tikzexternalremakenextfalse
|
| 1086 |
+
\fi
|
| 1087 |
+
\fi
|
| 1088 |
+
}
|
| 1089 |
+
|
| 1090 |
+
\pgfutil@IfUndefined{pdfmdfivesum}{%
|
| 1091 |
+
}{%
|
| 1092 |
+
\let\tikzexternal@mdfivesum=\pdfmdfivesum
|
| 1093 |
+
}%
|
| 1094 |
+
|
| 1095 |
+
\long\def\tikzexternal@computemdfivesum#1{%
|
| 1096 |
+
\t@tikzexternal@tmpb={#1}%
|
| 1097 |
+
\edef\tikzexternal@temp{\the\t@tikzexternal@tmpb}%
|
| 1098 |
+
\edef\pgfretval{\tikzexternal@mdfivesum{\meaning\tikzexternal@temp}}%
|
| 1099 |
+
}
|
| 1100 |
+
\long\def\tikzexternal@computemdfivesum@diff@fallback#1{%
|
| 1101 |
+
\t@tikzexternal@tmpb={#1}%
|
| 1102 |
+
\edef\tikzexternal@temp{\the\t@tikzexternal@tmpb}%
|
| 1103 |
+
\edef\pgfretval{\meaning\tikzexternal@temp}%
|
| 1104 |
+
}
|
| 1105 |
+
|
| 1106 |
+
\long\def\tikzexternal@hashfct@serialize@std#1{%
|
| 1107 |
+
\noexpand\def\noexpand\tikzexternallastkey{#1}%
|
| 1108 |
+
}%
|
| 1109 |
+
|
| 1110 |
+
\long\def\tikzexternal@hashfct@serialize@tok#1{%
|
| 1111 |
+
\noexpand\begingroup
|
| 1112 |
+
\noexpand\toks0={#1}%
|
| 1113 |
+
\noexpand\xdef\noexpand\tikzexternallastkey{\noexpand\the\noexpand\toks0 }%
|
| 1114 |
+
\noexpand\endgroup
|
| 1115 |
+
}%
|
| 1116 |
+
|
| 1117 |
+
\def\tikzexternal@check@uptodate@ext{.md5}
|
| 1118 |
+
|
| 1119 |
+
\def\tikzexternal@check@uptodate@mode@warn@fallback{%
|
| 1120 |
+
\message{Package tikz Warning: The key 'up to date check=md5' is impossible, there is no macro to compute MD5. Falling back to 'up to date check=diff'.}%
|
| 1121 |
+
\global\let\tikzexternal@check@uptodate@mode@warn@fallback=\relax
|
| 1122 |
+
}%
|
| 1123 |
+
|
| 1124 |
+
\long\def\tikzexternal@check@uptodate@mode#1{%
|
| 1125 |
+
\if1\tikzexternal@uptodate@mode
|
| 1126 |
+
\pgfutil@IfUndefined{tikzexternal@mdfivesum}{%
|
| 1127 |
+
\tikzexternal@check@uptodate@mode@warn@fallback
|
| 1128 |
+
\def\tikzexternal@uptodate@mode{2}%
|
| 1129 |
+
}{}%
|
| 1130 |
+
\fi
|
| 1131 |
+
\ifcase\tikzexternal@uptodate@mode
|
| 1132 |
+
\let\tikzexternal@hashfct=\pgfutil@empty
|
| 1133 |
+
\let\tikzexternal@hashfct@serialize=\pgfutil@empty
|
| 1134 |
+
\or
|
| 1135 |
+
\let\tikzexternal@hashfct=\tikzexternal@computemdfivesum
|
| 1136 |
+
\let\tikzexternal@hashfct@serialize=\tikzexternal@hashfct@serialize@std
|
| 1137 |
+
\or
|
| 1138 |
+
\let\tikzexternal@hashfct=\tikzexternal@computemdfivesum@diff@fallback
|
| 1139 |
+
\let\tikzexternal@hashfct@serialize=\tikzexternal@hashfct@serialize@tok
|
| 1140 |
+
\fi
|
| 1141 |
+
\ifx\tikzexternal@hashfct\pgfutil@empty
|
| 1142 |
+
\else
|
| 1143 |
+
\tikzpicturedependsonfile{\tikzexternal@curfilename\tikzexternal@check@uptodate@ext}%
|
| 1144 |
+
\tikzexternal@hashfct{#1}%
|
| 1145 |
+
\let\tikzexternal@lastkey@new=\pgfretval
|
| 1146 |
+
\begingroup
|
| 1147 |
+
\global\let\tikzexternallastkey=\pgfutil@empty
|
| 1148 |
+
\openin\r@pgf@reada=\tikzexternal@curfilename\tikzexternal@check@uptodate@ext\relax %
|
| 1149 |
+
\ifeof\r@pgf@reada
|
| 1150 |
+
\else
|
| 1151 |
+
\endlinechar=-1 %
|
| 1152 |
+
\read\r@pgf@reada to\pgf@tempa
|
| 1153 |
+
\pgf@tempa
|
| 1154 |
+
\fi
|
| 1155 |
+
\closein\r@pgf@reada
|
| 1156 |
+
\let\tikzexternal@lastkey=\tikzexternallastkey
|
| 1157 |
+
\pgfmath@smuggleone\tikzexternal@lastkey
|
| 1158 |
+
\endgroup
|
| 1159 |
+
\edef\tikzexternal@lastkey@normalized{\meaning\tikzexternal@lastkey}%
|
| 1160 |
+
\edef\tikzexternal@lastkey@new@normalized{\meaning\tikzexternal@lastkey@new}%
|
| 1161 |
+
\iftikzexternal@verboseuptodate
|
| 1162 |
+
\pgf@typeout{Up-to-date check of \tikzexternal@curfilename: new \tikzexternal@lastkey@new@normalized; old \tikzexternal@lastkey@normalized.^^J}%
|
| 1163 |
+
\fi
|
| 1164 |
+
\ifx\tikzexternal@lastkey@normalized\tikzexternal@lastkey@new@normalized
|
| 1165 |
+
\tikzexternal@file@isuptodatetrue
|
| 1166 |
+
\else
|
| 1167 |
+
\tikzexternal@file@isuptodatefalse
|
| 1168 |
+
\immediate\openout\w@pgf@writea=\tikzexternal@curfilename\tikzexternal@check@uptodate@ext\relax%
|
| 1169 |
+
\immediate\write\w@pgf@writea{\tikzexternal@hashfct@serialize{\tikzexternal@lastkey@new}\tikzexternal@PERCENTchar}%
|
| 1170 |
+
\immediate\closeout\w@pgf@writea
|
| 1171 |
+
\fi
|
| 1172 |
+
\fi
|
| 1173 |
+
}
|
| 1174 |
+
|
| 1175 |
+
\long\def\tikzexternal@externalizefig@systemcall@uptodatecheck#1{%
|
| 1176 |
+
\tikzexternal@check@uptodate@mode{#1}%
|
| 1177 |
+
\tikzexternal@checkforceremake
|
| 1178 |
+
\iftikzexternal@file@isuptodate
|
| 1179 |
+
\gdef\pgf@filename{}%
|
| 1180 |
+
\xdef\pgf@tempa{\noexpand\pgf@findfile\pgfsys@imagesuffixlist:+{\tikzexternal@curfilename}}%
|
| 1181 |
+
\pgf@tempa
|
| 1182 |
+
\ifx\pgf@filename\pgfutil@empty%
|
| 1183 |
+
\global\tikzexternal@file@isuptodatefalse
|
| 1184 |
+
\fi
|
| 1185 |
+
\fi
|
| 1186 |
+
}%
|
| 1187 |
+
|
| 1188 |
+
\def\tikzexternal@externalizefig@systemcall@assertsuccess#1{%
|
| 1189 |
+
\gdef\pgf@filename{}%
|
| 1190 |
+
\xdef\pgf@tempa{\noexpand\pgf@findfile\pgfsys@imagesuffixlist:+{\tikzexternal@curfilename}}%
|
| 1191 |
+
\pgf@tempa
|
| 1192 |
+
\ifx\pgf@filename\pgfutil@empty%
|
| 1193 |
+
\tikzexternal@externalizefig@systemcall@handleexception{#1}%
|
| 1194 |
+
\fi
|
| 1195 |
+
}%
|
| 1196 |
+
\def\tikzexternal@externalizefig@systemcall@handleexception@msg#1{%
|
| 1197 |
+
\tikzerror{Sorry, the system call '#1' did NOT result in a usable output file '\tikzexternal@curfilename' (expected one of \pgfsys@imagesuffixlist). Please verify that you have enabled system calls. For pdflatex, this is 'pdflatex -shell-escape'. Sometimes it is also named 'write 18' or something like that. Or maybe the command simply failed? Error messages can be found in '\tikzexternal@curfilename.log'. If you continue now, I'll try to typeset the picture}{}%
|
| 1198 |
+
}
|
| 1199 |
+
\def\tikzexternal@externalizefig@systemcall@handleexception@retry@later#1{%
|
| 1200 |
+
\gdef\tikzexternal@systemcall@reschedule@to@end@document{0}%
|
| 1201 |
+
\expandafter\pgfexternalreaddpth\expandafter{\tikzexternal@curfilename}%
|
| 1202 |
+
\if1\tikzexternal@systemcall@reschedule@to@end@document
|
| 1203 |
+
\pgfutil@IfUndefined{AtVeryEndDocument}{%
|
| 1204 |
+
\tikzexternal@externalizefig@systemcall@handleexception@msg{#1}%
|
| 1205 |
+
}{%
|
| 1206 |
+
\pgf@typeout{===== The last system call resulted in an EMPTY output file. Maybe it is part of \string\ref. Rescheduling it for \string\end{document}. ========}%
|
| 1207 |
+
\gdef\tikzexternal@typeset@picture@on@failure{0}%
|
| 1208 |
+
\tikzexternal@externalizefig@systemcall@reschedule{#1}%
|
| 1209 |
+
}%
|
| 1210 |
+
\else
|
| 1211 |
+
\tikzexternal@externalizefig@systemcall@handleexception@msg{#1}%
|
| 1212 |
+
\fi
|
| 1213 |
+
}
|
| 1214 |
+
|
| 1215 |
+
\def\tikzexternal@externalizefig@systemcall@reschedule#1{%
|
| 1216 |
+
\t@tikzexternal@tmpb={%
|
| 1217 |
+
\global\let\tikzexternal@externalizefig@systemcall@handleexception=\tikzexternal@externalizefig@systemcall@handleexception@msg%
|
| 1218 |
+
\tikzexternal@externalizefig@systemcall@call{#1}%
|
| 1219 |
+
\tikzexternal@externalizefig@systemcall@assertsuccess{#1}%
|
| 1220 |
+
}%
|
| 1221 |
+
\xdef\pgfutil@tempa{%
|
| 1222 |
+
\noexpand\def\noexpand\tikzexternal@curfilename{\tikzexternal@curfilename}%
|
| 1223 |
+
\the\t@tikzexternal@tmpb
|
| 1224 |
+
}%
|
| 1225 |
+
\expandafter\AtVeryEndDocument\expandafter{\pgfutil@tempa}%
|
| 1226 |
+
\gdef\tikzexternal@has@rescheduled@something{1}%
|
| 1227 |
+
}%
|
| 1228 |
+
\let\tikzexternal@externalizefig@systemcall@handleexception=\tikzexternal@externalizefig@systemcall@handleexception@retry@later%
|
| 1229 |
+
|
| 1230 |
+
\def\tikzexternal@has@rescheduled@something{0}%
|
| 1231 |
+
\pgfutil@IfUndefined{AtVeryEndDocument}{}{%
|
| 1232 |
+
\AtVeryEndDocument{%
|
| 1233 |
+
\if1\tikzexternal@has@rescheduled@something
|
| 1234 |
+
\pgf@typeout{===== tikzexternal: \string\end{document} reached. Working on rescheduled images to resolve references... ========}%
|
| 1235 |
+
\fi
|
| 1236 |
+
}%
|
| 1237 |
+
}
|
| 1238 |
+
|
| 1239 |
+
\def\pgfexternal@error@no@shipout{%
|
| 1240 |
+
\begingroup
|
| 1241 |
+
\begingroup
|
| 1242 |
+
\immediate\openout\pgf@plotwrite=\pgfactualjobname.dpth
|
| 1243 |
+
\let\w@pgfexternal@auxout=\pgf@plotwrite
|
| 1244 |
+
\pgfexternalstorecommand@isexporting{\gdef\noexpand\tikzexternal@systemcall@reschedule@to@end@document{1}}%
|
| 1245 |
+
\immediate\closeout\pgf@plotwrite
|
| 1246 |
+
\endgroup
|
| 1247 |
+
\tikzexternal@assemble@systemcall{\pgfactualjobname}{\pgf@tempa}%
|
| 1248 |
+
\toks0=\expandafter{\pgf@tempa}%
|
| 1249 |
+
\tikzerror{Sorry, image externalization failed: the resulting image was EMPTY. I tried to externalize '\pgfactualjobname', but it seems there is no such image in the document!?
|
| 1250 |
+
\if\tikzexternal@opmode4 ^^J
|
| 1251 |
+
\space\space You are currently using 'mode=convert with system call'. This problem can happen if the image (or one of the images preceding it) was declared inside of a \string\label{} (i.e. in the .aux file): 'convert with system call' has no access to the main aux file.^^J
|
| 1252 |
+
\space\space Possible solutions in this case:^^J
|
| 1253 |
+
\space\space (a) Try using 'mode=list and make',^^J
|
| 1254 |
+
\space\space (b) Issue the externalization command '\the\toks0' *manually* (also check the preceding externalized images, perhaps the file name sequence is not correct).^^J
|
| 1255 |
+
\space\space Repeat: the resulting image was EMPTY, your attention is required
|
| 1256 |
+
\else
|
| 1257 |
+
\if\tikzexternal@opmode5 ^^J
|
| 1258 |
+
\space\space You are currently using 'mode=list and make'. Possible solutions:^^J
|
| 1259 |
+
\space\space (a) Try to delete `\tikzexternal@realjob.makefile'. Perhaps it is not up-to-date.^^J
|
| 1260 |
+
\space\space (b) Perhaps pictures are declared inside of \string\label{} and the .aux file is not up-to-date. Re-run latex, perhaps re-generate the graphics as well.^^J
|
| 1261 |
+
\space\space Repeat: the resulting image was EMPTY, your attention is required
|
| 1262 |
+
\fi
|
| 1263 |
+
\fi}%
|
| 1264 |
+
\endgroup
|
| 1265 |
+
}%
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary3d.code.tex
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibrary3d.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
\tikzdeclarecoordinatesystem{xyz cylindrical}
|
| 8 |
+
{%
|
| 9 |
+
\pgfset{/tikz/cs/.cd,angle=0,radius=0,z=0,#1}%
|
| 10 |
+
\pgfpointcylindrical{\tikz@cs@angle}{\tikz@cs@xradius}{\tikz@cs@z}%
|
| 11 |
+
}%
|
| 12 |
+
|
| 13 |
+
\tikzdeclarecoordinatesystem{xyz spherical}
|
| 14 |
+
{%
|
| 15 |
+
\pgfset{/tikz/cs/.cd,angle=0,radius=0,latitude=0,longitude=0,#1}%
|
| 16 |
+
\pgfpointspherical{\tikz@cs@angle}{\tikz@cs@latitude}{\tikz@cs@xradius}%
|
| 17 |
+
}%
|
| 18 |
+
|
| 19 |
+
\pgfset{/tikz/cs/longitude/.store in=\tikz@cs@angle}%
|
| 20 |
+
\pgfset{/tikz/cs/latitude/.store in=\tikz@cs@latitude}%
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
\tikzoption{plane origin}{\def\tikz@plane@origin{\tikz@scan@one@point\pgfutil@firstofone#1}}%
|
| 25 |
+
\tikzoption{plane x}{\def\tikz@plane@x{\tikz@scan@one@point\pgfutil@firstofone#1}}%
|
| 26 |
+
\tikzoption{plane y}{\def\tikz@plane@y{\tikz@scan@one@point\pgfutil@firstofone#1}}%
|
| 27 |
+
|
| 28 |
+
\let\tikz@plane@origin=\pgfpointorigin
|
| 29 |
+
\def\tikz@plane@x{\pgfpointxy{1}{0}}%
|
| 30 |
+
\def\tikz@plane@y{\pgfpointxy{0}{1}}%
|
| 31 |
+
|
| 32 |
+
\tikzoption{canvas is plane}[]{
|
| 33 |
+
\tikz@canvas@is@plane
|
| 34 |
+
}%
|
| 35 |
+
\tikzoption{canvas is xy plane at z}[]{%
|
| 36 |
+
\def\tikz@plane@origin{\pgfpointxyz{0}{0}{#1}}%
|
| 37 |
+
\def\tikz@plane@x{\pgfpointxyz{1}{0}{#1}}%
|
| 38 |
+
\def\tikz@plane@y{\pgfpointxyz{0}{1}{#1}}%
|
| 39 |
+
\tikz@canvas@is@plane
|
| 40 |
+
}%
|
| 41 |
+
\tikzoption{canvas is yx plane at z}[]{%
|
| 42 |
+
\def\tikz@plane@origin{\pgfpointxyz{0}{0}{#1}}%
|
| 43 |
+
\def\tikz@plane@x{\pgfpointxyz{0}{1}{#1}}%
|
| 44 |
+
\def\tikz@plane@y{\pgfpointxyz{1}{0}{#1}}%
|
| 45 |
+
\tikz@canvas@is@plane
|
| 46 |
+
}%
|
| 47 |
+
\tikzoption{canvas is xz plane at y}[]{%
|
| 48 |
+
\def\tikz@plane@origin{\pgfpointxyz{0}{#1}{0}}%
|
| 49 |
+
\def\tikz@plane@x{\pgfpointxyz{1}{#1}{0}}%
|
| 50 |
+
\def\tikz@plane@y{\pgfpointxyz{0}{#1}{1}}%
|
| 51 |
+
\tikz@canvas@is@plane
|
| 52 |
+
}%
|
| 53 |
+
\tikzoption{canvas is zx plane at y}[]{%
|
| 54 |
+
\def\tikz@plane@origin{\pgfpointxyz{0}{#1}{0}}%
|
| 55 |
+
\def\tikz@plane@x{\pgfpointxyz{0}{#1}{1}}%
|
| 56 |
+
\def\tikz@plane@y{\pgfpointxyz{1}{#1}{0}}%
|
| 57 |
+
\tikz@canvas@is@plane
|
| 58 |
+
}%
|
| 59 |
+
\tikzoption{canvas is yz plane at x}[]{%
|
| 60 |
+
\def\tikz@plane@origin{\pgfpointxyz{#1}{0}{0}}%
|
| 61 |
+
\def\tikz@plane@x{\pgfpointxyz{#1}{1}{0}}%
|
| 62 |
+
\def\tikz@plane@y{\pgfpointxyz{#1}{0}{1}}%
|
| 63 |
+
\tikz@canvas@is@plane
|
| 64 |
+
}%
|
| 65 |
+
\tikzoption{canvas is zy plane at x}[]{%
|
| 66 |
+
\def\tikz@plane@origin{\pgfpointxyz{#1}{0}{0}}%
|
| 67 |
+
\def\tikz@plane@x{\pgfpointxyz{#1}{0}{1}}%
|
| 68 |
+
\def\tikz@plane@y{\pgfpointxyz{#1}{1}{0}}%
|
| 69 |
+
\tikz@canvas@is@plane
|
| 70 |
+
}%
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
\def\tikz@canvas@is@plane{
|
| 76 |
+
\pgf@process{\tikz@plane@x}%
|
| 77 |
+
\pgf@xa=\pgf@x%
|
| 78 |
+
\pgf@ya=\pgf@y%
|
| 79 |
+
\pgf@process{\tikz@plane@y}%
|
| 80 |
+
\pgf@xb=\pgf@x%
|
| 81 |
+
\pgf@yb=\pgf@y%
|
| 82 |
+
\pgf@process{\tikz@plane@origin}%
|
| 83 |
+
\edef\pgf@marshal{\noexpand\tikz@addtransform{%
|
| 84 |
+
\noexpand\pgftransformtriangle
|
| 85 |
+
{\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}}
|
| 86 |
+
{\noexpand\pgfqpoint{\the\pgf@xa}{\the\pgf@ya}}
|
| 87 |
+
{\noexpand\pgfqpoint{\the\pgf@xb}{\the\pgf@yb}}
|
| 88 |
+
\noexpand\pgftransformscale{0.035146}%
|
| 89 |
+
\noexpand\pgfsetxvec{\noexpand\pgfpoint{1cm}{0cm}}%
|
| 90 |
+
\noexpand\pgfsetyvec{\noexpand\pgfpoint{0cm}{1cm}}%
|
| 91 |
+
\noexpand\pgfsetzvec{\noexpand\pgfpoint{0cm}{0cm}}%
|
| 92 |
+
}}%
|
| 93 |
+
\pgf@marshal%
|
| 94 |
+
}%
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryangles.code.tex
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibraryangles.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
\tikzset{
|
| 6 |
+
pics/angle/.style = {
|
| 7 |
+
setup code = \tikz@lib@angle@parse#1\pgf@stop,
|
| 8 |
+
code = {},
|
| 9 |
+
background code = \tikz@lib@angle@background#1\pgf@stop,
|
| 10 |
+
foreground code = \tikz@lib@angle@foreground#1\pgf@stop,
|
| 11 |
+
},
|
| 12 |
+
pics/right angle/.style = {
|
| 13 |
+
setup code = \tikz@lib@angle@parse#1\pgf@stop,
|
| 14 |
+
code = {},
|
| 15 |
+
background code = \tikz@lib@rightangle@background#1\pgf@stop,
|
| 16 |
+
foreground code = \tikz@lib@rightangle@foreground#1\pgf@stop,
|
| 17 |
+
},
|
| 18 |
+
pics/angle/.default=A--B--C,
|
| 19 |
+
angle eccentricity/.initial=.6,
|
| 20 |
+
angle radius/.initial=5mm,
|
| 21 |
+
}%
|
| 22 |
+
|
| 23 |
+
\def\tikz@lib@angle@background#1--#2--#3\pgf@stop{%
|
| 24 |
+
\path [name prefix ..] [pic actions, draw=none] (#2.center)
|
| 25 |
+
-- ++(\tikz@start@angle@temp:\tikz@lib@angle@rad pt)
|
| 26 |
+
arc [start angle=\tikz@start@angle@temp, end
|
| 27 |
+
angle=\tikz@end@angle@temp, radius=\tikz@lib@angle@rad pt] -- cycle;
|
| 28 |
+
}%
|
| 29 |
+
|
| 30 |
+
\def\tikz@lib@angle@foreground#1--#2--#3\pgf@stop{%
|
| 31 |
+
\path [name prefix ..] [pic actions, fill=none, shade=none]
|
| 32 |
+
([shift={(\tikz@start@angle@temp:\tikz@lib@angle@rad pt)}]#2.center)
|
| 33 |
+
arc [start angle=\tikz@start@angle@temp, end
|
| 34 |
+
angle=\tikz@end@angle@temp, radius=\tikz@lib@angle@rad pt];
|
| 35 |
+
\ifx\tikzpictext\relax\else%
|
| 36 |
+
\def\pgf@temp{\node()[name prefix
|
| 37 |
+
..,at={([shift={({.5*\tikz@start@angle@temp+.5*\tikz@end@angle@temp}:\pgfkeysvalueof{/tikz/angle
|
| 38 |
+
eccentricity}*\tikz@lib@angle@rad pt)}]#2.center)}]}
|
| 39 |
+
\expandafter\pgf@temp\expandafter[\tikzpictextoptions]{\tikzpictext};%
|
| 40 |
+
\fi
|
| 41 |
+
}%
|
| 42 |
+
|
| 43 |
+
\def\tikz@lib@rightangle@background#1--#2--#3\pgf@stop{%
|
| 44 |
+
\path [name prefix ..] [pic actions, draw=none] (#2.center)
|
| 45 |
+
-- ++(\tikz@start@angle@temp:\tikz@lib@angle@rad pt)
|
| 46 |
+
-- ++(\tikz@end@angle@temp:\tikz@lib@angle@rad pt)
|
| 47 |
+
-- ++(\tikz@start@angle@temp:-\tikz@lib@angle@rad pt)
|
| 48 |
+
-- cycle;
|
| 49 |
+
}%
|
| 50 |
+
|
| 51 |
+
\def\tikz@lib@rightangle@foreground#1--#2--#3\pgf@stop{%
|
| 52 |
+
\path [name prefix ..] [pic actions, fill=none, shade=none]
|
| 53 |
+
([shift={(\tikz@start@angle@temp:\tikz@lib@angle@rad pt)}]#2.center)
|
| 54 |
+
-- ++(\tikz@end@angle@temp:\tikz@lib@angle@rad pt)
|
| 55 |
+
-- ++(\tikz@start@angle@temp:-\tikz@lib@angle@rad pt);
|
| 56 |
+
\ifx\tikzpictext\relax\else%
|
| 57 |
+
\def\pgf@temp{\node()[name prefix
|
| 58 |
+
..,at={([shift={({.5*\tikz@start@angle@temp+.5*\tikz@end@angle@temp}:\pgfkeysvalueof{/tikz/angle
|
| 59 |
+
eccentricity}*1.4142136*\tikz@lib@angle@rad pt)}]#2.center)}]}
|
| 60 |
+
\expandafter\pgf@temp\expandafter[\tikzpictextoptions]{\tikzpictext};%
|
| 61 |
+
\fi
|
| 62 |
+
}%
|
| 63 |
+
|
| 64 |
+
\def\tikz@lib@angle@parse#1--#2--#3\pgf@stop{%
|
| 65 |
+
\pgfmathsetmacro\tikz@lib@angle@rad{\pgfkeysvalueof{/tikz/angle radius}}
|
| 66 |
+
\ifdim\tikz@lib@angle@rad pt>0pt\else\def\tikz@lib@angle@rad{12}\fi%
|
| 67 |
+
\pgf@process{\pgfpointanchor{#2}{center}}%
|
| 68 |
+
\pgf@xa=\pgf@x%
|
| 69 |
+
\pgf@ya=\pgf@y%
|
| 70 |
+
\pgf@process{\pgfpointanchor{#1}{center}}%
|
| 71 |
+
\pgf@xb=\pgf@x%
|
| 72 |
+
\pgf@yb=\pgf@y%
|
| 73 |
+
\pgf@process{\pgfpointanchor{#3}{center}}%
|
| 74 |
+
\pgf@xc=\pgf@x%
|
| 75 |
+
\pgf@yc=\pgf@y%
|
| 76 |
+
\advance\pgf@xb by-\pgf@xa%
|
| 77 |
+
\advance\pgf@yb by-\pgf@ya%
|
| 78 |
+
\advance\pgf@xc by-\pgf@xa%
|
| 79 |
+
\advance\pgf@yc by-\pgf@ya%
|
| 80 |
+
\pgfmathsetmacro{\tikz@start@angle@temp}{atan2(\the\pgf@yb,\the\pgf@xb)}
|
| 81 |
+
\pgfmathsetmacro{\tikz@end@angle@temp}{atan2(\the\pgf@yc,\the\pgf@xc)}
|
| 82 |
+
\ifdim\tikz@end@angle@temp pt<\tikz@start@angle@temp pt%
|
| 83 |
+
\pgfmathsetmacro{\tikz@start@angle@temp}{\tikz@start@angle@temp-360}%
|
| 84 |
+
\fi%
|
| 85 |
+
}%
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryanimations.code.tex
ADDED
|
@@ -0,0 +1,790 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibraryanimations.code.tex}
|
| 3 |
+
|
| 4 |
+
\usepgfmodule{animations}%
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
\def\tikz@collect@scope@anims#1{%
|
| 10 |
+
\let\tikz@scope@anims\pgfutil@empty%
|
| 11 |
+
\let\tikz@collect@command#1%
|
| 12 |
+
\tikz@collect@scope@anims@parse%
|
| 13 |
+
}%
|
| 14 |
+
\def\tikz@collect@scope@anims@parse{%
|
| 15 |
+
\pgfutil@ifnextchar[{\tikz@collect@scope@anims@opt}{%
|
| 16 |
+
\pgfutil@ifnextchar:{\tikz@collect@scope@anims@go}{%
|
| 17 |
+
\tikz@collect@scope@anims@done}}%
|
| 18 |
+
}%
|
| 19 |
+
\def\tikz@collect@scope@anims@done{%
|
| 20 |
+
\expandafter\tikz@collect@command\expandafter[\tikz@scope@anims]%
|
| 21 |
+
}%
|
| 22 |
+
\def\tikz@collect@scope@anims@opt[{%
|
| 23 |
+
\expandafter\tikz@collect@command\expandafter[\tikz@scope@anims%
|
| 24 |
+
}%
|
| 25 |
+
\def\tikz@collect@scope@anims@go:#1=#2{%
|
| 26 |
+
\expandafter\def\expandafter\tikz@scope@anims\expandafter{\tikz@scope@anims animate={myself:={:{#1}={#2}}},}%
|
| 27 |
+
\tikz@collect@scope@anims@parse%
|
| 28 |
+
}%
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
\def\tikzanimateset{\pgfqkeys{/tikz/animate}}%
|
| 35 |
+
\tikzanimateset{
|
| 36 |
+
.code={
|
| 37 |
+
\pgfkeys{/handlers/first char syntax=true}
|
| 38 |
+
\pgfkeyssetvalue{/handlers/first char syntax/\expandafter\meaning\string"}{\tikz@animation@value}%
|
| 39 |
+
\def\tikz@anim@t{0}%
|
| 40 |
+
\def\tikz@anim@t@base{0}%
|
| 41 |
+
\def\tikz@anim@t@current{0}%
|
| 42 |
+
\tikzanimateset{#1}
|
| 43 |
+
},
|
| 44 |
+
scope/.code=\tikz@anim@scope{#1}{}{},
|
| 45 |
+
sync/.code=\tikz@anim@sync@scope{#1}{}{},
|
| 46 |
+
entry/.code=\tikz@anim@make@entry,
|
| 47 |
+
object/.code=\tikz@anim@set@object{#1},
|
| 48 |
+
attribute/.code=\tikz@anim@set@attr{#1},
|
| 49 |
+
id/.code=\tikz@anim@set@id{#1},
|
| 50 |
+
time/.code=\tikz@anim@set@time{#1},
|
| 51 |
+
value/.code=\tikz@anim@add{\tikz@anim@value{#1}},%
|
| 52 |
+
remember/.code=\pgfmathadd@{\tikz@anim@t}{\tikz@anim@t@base}\global\let#1\pgfmathresult,
|
| 53 |
+
resume/.code=\tikz@anim@resume{#1},
|
| 54 |
+
fork/.code={\tikz@anim@parse@time{#1}\pgfmathadd@\tikz@anim@t\tikz@anim@t@base\let\tikz@anim@t@base\pgfmathresult\def\tikz@anim@t{0}},
|
| 55 |
+
fork/.default = 0later,
|
| 56 |
+
base/.style={scope={/utils/exec=\let\tikz@animation@time\tikz@anim@base@text,#1,entry}},
|
| 57 |
+
}%
|
| 58 |
+
|
| 59 |
+
\tikzset{
|
| 60 |
+
make snapshot of/.code=\edef\tikz@temp{#1}\ifx\tikz@temp\pgfutil@empty\else\pgfsnapshot{#1}\fi,
|
| 61 |
+
make snapshot after/.code=\edef\tikz@temp{#1}\ifx\tikz@temp\pgfutil@empty\else\pgfsnapshotafter{#1}\fi,
|
| 62 |
+
make snapshot if necessary/.code=\ifpgfsysanimationsupported\else\pgfsnapshot{#1}\fi,
|
| 63 |
+
make snapshot if necessary/.default=0s,
|
| 64 |
+
}%
|
| 65 |
+
|
| 66 |
+
\def\tikz@anim@scope#1#2#3{%
|
| 67 |
+
{#2\tikzanimateset{#1}#3}%
|
| 68 |
+
}%
|
| 69 |
+
\def\tikz@anim@sync@scope#1#2#3{%
|
| 70 |
+
{%
|
| 71 |
+
#2%
|
| 72 |
+
\tikzanimateset{#1}%
|
| 73 |
+
#3%
|
| 74 |
+
\pgfmathadd@{\tikz@anim@t}{\tikz@anim@t@base}%
|
| 75 |
+
\expandafter%
|
| 76 |
+
}\expandafter\pgfmathsubtract@\expandafter{\pgfmathresult}{\tikz@anim@t@base}%
|
| 77 |
+
\tikz@anim@set@time{\pgfmathresult}%
|
| 78 |
+
}%
|
| 79 |
+
|
| 80 |
+
\def\tikz@anim@set@time#1{%
|
| 81 |
+
\tikz@anim@parse@time{#1}%
|
| 82 |
+
\let\tikz@anim@t@current\tikz@anim@t%
|
| 83 |
+
\pgfmathadd@\tikz@anim@t\tikz@anim@t@base%
|
| 84 |
+
\let\tikz@animation@time\pgfmathresult%
|
| 85 |
+
}%
|
| 86 |
+
|
| 87 |
+
\def\tikz@anim@value#1{%
|
| 88 |
+
\def\tikz@anim@result{#1}
|
| 89 |
+
\ifx\tikz@anim@result\pgf@special@current@text%
|
| 90 |
+
\else%
|
| 91 |
+
\ifx\tikz@animation@parser\relax%
|
| 92 |
+
\else%
|
| 93 |
+
\tikz@animation@parser{#1}%
|
| 94 |
+
\fi%
|
| 95 |
+
\fi%
|
| 96 |
+
}%
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
\def\tikz@anim@resume#1{%
|
| 100 |
+
\pgfparsetime{#1}%
|
| 101 |
+
\pgfmathsubtract@{\pgftimeresult}{\tikz@anim@t@base}%
|
| 102 |
+
\tikz@anim@set@time{\pgfmathresult}%
|
| 103 |
+
}%
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
\def\tikz@animation@syntax@check#1#2{%
|
| 108 |
+
\def\tikz@animation@rest{#1}%
|
| 109 |
+
\expandafter\pgfutil@in@\expandafter:\expandafter{\tikz@key}%
|
| 110 |
+
\ifpgfutil@in@%
|
| 111 |
+
\expandafter\tikz@anim@parse@colon\tikz@key\pgf@stop%
|
| 112 |
+
\else%
|
| 113 |
+
#2%
|
| 114 |
+
\fi%
|
| 115 |
+
}%
|
| 116 |
+
|
| 117 |
+
\def\tikz@anim@parse@colon#1:#2\pgf@stop{%
|
| 118 |
+
\expandafter\tikz@anim@sync@scope\expandafter{\tikz@animation@rest}{%
|
| 119 |
+
\tikz@anim@set@object{#1}%
|
| 120 |
+
\pgfutil@in@_{#2}%
|
| 121 |
+
\ifpgfutil@in@%
|
| 122 |
+
\tikz@anim@parse@under#2\pgf@stop%
|
| 123 |
+
\else%
|
| 124 |
+
\tikz@anim@parse@under#2_\pgf@stop%
|
| 125 |
+
\fi%
|
| 126 |
+
}{\tikz@anim@make@entry}%
|
| 127 |
+
}%
|
| 128 |
+
|
| 129 |
+
\def\tikz@anim@parse@under#1_#2\pgf@stop{%
|
| 130 |
+
\tikz@anim@set@attr{#1}%
|
| 131 |
+
\tikz@anim@set@id{#2}%
|
| 132 |
+
}%
|
| 133 |
+
|
| 134 |
+
\def\tikz@anim@set@attr#1{%
|
| 135 |
+
\pgfkeys@spdef\tikz@anim@a{#1}%
|
| 136 |
+
\ifx\tikz@anim@a\pgfutil@empty%
|
| 137 |
+
\else%
|
| 138 |
+
\let\tikz@anim@tl@attributes\tikz@anim@a%
|
| 139 |
+
\fi%
|
| 140 |
+
}%
|
| 141 |
+
|
| 142 |
+
\def\tikz@anim@set@id#1{%
|
| 143 |
+
\pgfkeys@spdef\tikz@anim@a{#1}%
|
| 144 |
+
\ifx\tikz@anim@a\pgfutil@empty%
|
| 145 |
+
\else%
|
| 146 |
+
\let\tikz@anim@tl@id\tikz@anim@a%
|
| 147 |
+
\fi%
|
| 148 |
+
}%
|
| 149 |
+
|
| 150 |
+
\def\tikz@anim@set@object#1{%
|
| 151 |
+
\pgfkeys@spdef\tikz@anim@a{#1}%
|
| 152 |
+
\ifx\tikz@anim@a\pgfutil@empty%
|
| 153 |
+
\else%
|
| 154 |
+
\let\tikz@anim@tl@objects\tikz@anim@a%
|
| 155 |
+
\fi%
|
| 156 |
+
}%
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
|
| 160 |
+
\def\tikz@animation@value#1{%
|
| 161 |
+
\tikz@animation@value@parser#1\pgf@stop%
|
| 162 |
+
}%
|
| 163 |
+
|
| 164 |
+
\def\tikz@animation@value@parser"#1"{%
|
| 165 |
+
\def\tikz@animation@value@head{#1}%
|
| 166 |
+
\pgfutil@ifnextchar\pgf@stop{\tikz@animation@value@rest=}{%
|
| 167 |
+
\pgfutil@ifnextchar b\tikz@animation@value@rest@base\tikz@animation@value@rest%
|
| 168 |
+
}%
|
| 169 |
+
}%
|
| 170 |
+
\def\tikz@animation@value@rest=#1\pgf@stop{%
|
| 171 |
+
\tikz@anim@sync@scope{#1}{\expandafter\tikz@anim@add\expandafter{\expandafter\tikz@anim@value\expandafter{\tikz@animation@value@head}}}{\tikz@anim@make@entry}%
|
| 172 |
+
}%
|
| 173 |
+
|
| 174 |
+
\def\tikz@animation@value@rest@base base{%
|
| 175 |
+
\tikz@anim@sync@scope{}{\let\tikz@animation@time\tikz@anim@base@text\expandafter\tikz@anim@add\expandafter{\expandafter\tikz@anim@value\expandafter{\tikz@animation@value@head}}}{\tikz@anim@make@entry}%
|
| 176 |
+
\pgfutil@ifnextchar\pgf@stop{\tikz@animation@value@rest=}{\tikz@animation@value@rest}%
|
| 177 |
+
}%
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
\def\tikz@anim@simple@parse#1{} %
|
| 184 |
+
|
| 185 |
+
\def\tikz@anim@slant@parse#1{\pgfmathsetmacro\tikz@anim@result{atan(#1)}}%
|
| 186 |
+
|
| 187 |
+
\def\tikz@anim@dashpattern@parse#1{%
|
| 188 |
+
\pgfmathsetmacro\tikz@anim@dash@phase{\tikz@dashphase}%
|
| 189 |
+
\def\tikz@dashpattern{}%
|
| 190 |
+
\expandafter\tikz@scandashon\pgfutil@gobble#1o\@nil%
|
| 191 |
+
\edef\tikz@anim@result{{\tikz@dashpattern}{\tikz@anim@dash@phase pt}}%
|
| 192 |
+
}%
|
| 193 |
+
\def\tikz@anim@dashoffset@parse#1{%
|
| 194 |
+
\pgfmathparse{#1}%
|
| 195 |
+
\edef\tikz@anim@result{{\tikz@dashpattern}{\pgfmathresult pt}}%
|
| 196 |
+
}%
|
| 197 |
+
\def\tikz@anim@dash@parse#1{%
|
| 198 |
+
\tikz@anim@dash@parse@#1\pgf@stop%
|
| 199 |
+
}%
|
| 200 |
+
\def\tikz@anim@dash@parse@#1phase#2\pgf@stop{%
|
| 201 |
+
\pgfmathsetmacro\tikz@anim@dash@phase{#2}%
|
| 202 |
+
\def\tikz@dashpattern{}%
|
| 203 |
+
\expandafter\tikz@scandashon\pgfutil@gobble#1o\@nil%
|
| 204 |
+
\edef\tikz@anim@result{{\tikz@dashpattern}{\tikz@anim@dash@phase pt}}%
|
| 205 |
+
}%
|
| 206 |
+
|
| 207 |
+
\def\tikz@anim@xshift@parse#1{\pgfmathparse{#1}\edef\tikz@anim@result{\noexpand\pgfqpoint{\pgfmathresult pt}{0pt}}}%
|
| 208 |
+
\def\tikz@anim@yshift@parse#1{\pgfmathparse{#1}\edef\tikz@anim@result{\noexpand\pgfqpoint{0pt}{\pgfmathresult pt}}}%
|
| 209 |
+
|
| 210 |
+
\def\tikz@anim@xscale@parse#1{\pgfmathparse{#1}\edef\tikz@anim@result{\pgfmathresult,1}}%
|
| 211 |
+
\def\tikz@anim@yscale@parse#1{\pgfmathparse{#1}\edef\tikz@anim@result{1,\pgfmathresult}}%
|
| 212 |
+
|
| 213 |
+
\def\tikz@anim@shift@parse#1{\tikz@scan@one@point\tikz@anim@do@shift#1}%
|
| 214 |
+
\def\tikz@anim@do@shift#1{\def\tikz@anim@result{#1}}%
|
| 215 |
+
|
| 216 |
+
\def\tikz@anim@position@parse#1{%
|
| 217 |
+
\begingroup%
|
| 218 |
+
\let\tikz@transform=\relax%
|
| 219 |
+
\pgf@xc-\pgf@pt@x%
|
| 220 |
+
\pgf@yc-\pgf@pt@y%
|
| 221 |
+
\pgfsettransform\tikz@anim@saved@transform%
|
| 222 |
+
\tikz@scan@one@point\tikz@anim@do@position#1}%
|
| 223 |
+
\def\tikz@anim@do@position#1{%
|
| 224 |
+
\pgf@process{\pgfpointtransformed{#1}}%
|
| 225 |
+
\advance\pgf@x by\pgf@xc%
|
| 226 |
+
\advance\pgf@y by\pgf@yc%
|
| 227 |
+
\xdef\tikz@anim@temp{\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}}%
|
| 228 |
+
\endgroup%
|
| 229 |
+
\let\tikz@anim@result\tikz@anim@temp%
|
| 230 |
+
}%
|
| 231 |
+
|
| 232 |
+
\def\tikz@anim@view@parse#1{\tikz@anim@view@parse@#1\pgf@stop}%
|
| 233 |
+
\def\tikz@anim@view@parse@{%
|
| 234 |
+
\pgfutil@ifnextchar({\tikz@scan@one@point\tikz@anim@view@parse@a}{\tikz@anim@view@node}%
|
| 235 |
+
}%
|
| 236 |
+
\def\tikz@anim@view@parse@a#1{%
|
| 237 |
+
\def\tikz@anim@result{{#1}}%
|
| 238 |
+
\pgfutil@ifnextchar r{\tikz@anim@view@parsed@rec}{\tikz@scan@one@point\tikz@anim@view@parse@b}%
|
| 239 |
+
}%
|
| 240 |
+
\def\tikz@anim@view@parsed@rec rectangle{\tikz@scan@one@point\tikz@anim@view@parse@b}%
|
| 241 |
+
\def\tikz@anim@view@parse@b#1{%
|
| 242 |
+
\expandafter\def\expandafter\tikz@anim@result\expandafter{\tikz@anim@result{#1}}%
|
| 243 |
+
\pgfutil@ifnextchar\pgf@stop\pgfutil@gobble{\tikzerror{Wrong view syntax}}%
|
| 244 |
+
}%
|
| 245 |
+
\def\tikz@anim@view@node#1\pgf@stop{%
|
| 246 |
+
\expandafter\ifx\csname pgf@sh@ns@#1\endcsname\relax%
|
| 247 |
+
\tikzerror{Undefined node '#1'}%
|
| 248 |
+
\else%
|
| 249 |
+
{%
|
| 250 |
+
\pgf@process{\pgfpointanchor{#1}{west}}%
|
| 251 |
+
\pgf@xa\pgf@x \pgf@ya\pgf@y
|
| 252 |
+
\pgf@xb\pgf@x \pgf@yb\pgf@y
|
| 253 |
+
\pgf@process{\pgfpointanchor{#1}{north}}%
|
| 254 |
+
\ifdim\pgf@x<\pgf@xa \pgf@xa=\pgf@x\fi%
|
| 255 |
+
\ifdim\pgf@x>\pgf@xb \pgf@xb=\pgf@x\fi%
|
| 256 |
+
\ifdim\pgf@y<\pgf@ya \pgf@ya=\pgf@y\fi%
|
| 257 |
+
\ifdim\pgf@y>\pgf@yb \pgf@yb=\pgf@y\fi%
|
| 258 |
+
\pgf@process{\pgfpointanchor{#1}{south}}%
|
| 259 |
+
\ifdim\pgf@x<\pgf@xa \pgf@xa=\pgf@x\fi%
|
| 260 |
+
\ifdim\pgf@x>\pgf@xb \pgf@xb=\pgf@x\fi%
|
| 261 |
+
\ifdim\pgf@y<\pgf@ya \pgf@ya=\pgf@y\fi%
|
| 262 |
+
\ifdim\pgf@y>\pgf@yb \pgf@yb=\pgf@y\fi%
|
| 263 |
+
\pgf@process{\pgfpointanchor{#1}{east}}%
|
| 264 |
+
\ifdim\pgf@x<\pgf@xa \pgf@xa=\pgf@x\fi%
|
| 265 |
+
\ifdim\pgf@x>\pgf@xb \pgf@xb=\pgf@x\fi%
|
| 266 |
+
\ifdim\pgf@y<\pgf@ya \pgf@ya=\pgf@y\fi%
|
| 267 |
+
\ifdim\pgf@y>\pgf@yb \pgf@yb=\pgf@y\fi%
|
| 268 |
+
\xdef\tikz@anim@result{{\noexpand\pgfqpoint{\the\pgf@xa}{\the\pgf@ya}}{\noexpand\pgfqpoint{\the\pgf@xb}{\the\pgf@yb}}}
|
| 269 |
+
}%
|
| 270 |
+
\fi%
|
| 271 |
+
}%
|
| 272 |
+
|
| 273 |
+
\def\tikz@anim@path@parse#1{%
|
| 274 |
+
{%
|
| 275 |
+
\setbox0=\hbox{{%
|
| 276 |
+
\pgfinterruptpath%
|
| 277 |
+
\expandafter\tikz@scan@next@command#1\pgf@stop%
|
| 278 |
+
\pgfsyssoftpath@getcurrentpath\tikz@anim@result%
|
| 279 |
+
\pgfprocessround{\tikz@anim@result}{\tikz@anim@result}%
|
| 280 |
+
\global\let\tikz@anim@result\tikz@anim@result%
|
| 281 |
+
\endpgfinterruptpath%
|
| 282 |
+
}}%
|
| 283 |
+
}%
|
| 284 |
+
}%
|
| 285 |
+
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
\def\tikz@anim@along#1#2{%
|
| 289 |
+
{%
|
| 290 |
+
\setbox0=\hbox{{%
|
| 291 |
+
\pgfinterruptpath%
|
| 292 |
+
\pgf@relevantforpicturesizefalse%
|
| 293 |
+
\iftikz@anim@is@position%
|
| 294 |
+
\let\tikz@transform=\relax%
|
| 295 |
+
\pgf@x-\pgf@pt@x%
|
| 296 |
+
\pgf@y-\pgf@pt@y%
|
| 297 |
+
\edef\tikz@anim@along@shift{\pgf@xc\the\pgf@x\pgf@yc\the\pgf@y}%
|
| 298 |
+
\pgfsettransformentries#1%
|
| 299 |
+
\else%
|
| 300 |
+
\pgftransformreset%
|
| 301 |
+
\fi
|
| 302 |
+
\tikz@scan@next@command#2\pgf@stop%
|
| 303 |
+
\pgfsyssoftpath@getcurrentpath\tikz@anim@parsed@path%
|
| 304 |
+
\pgfprocessround{\tikz@anim@parsed@path}{\tikz@anim@parsed@path}%
|
| 305 |
+
\iftikz@anim@is@position%
|
| 306 |
+
\tikz@anim@shift@path%
|
| 307 |
+
\global\let\tikz@anim@parsed@path\tikz@anim@patched@path%
|
| 308 |
+
\else%
|
| 309 |
+
\global\let\tikz@anim@parsed@path\tikz@anim@parsed@path%
|
| 310 |
+
\fi%
|
| 311 |
+
\endpgfinterruptpath%
|
| 312 |
+
}}%
|
| 313 |
+
}%
|
| 314 |
+
\pgfanimationset{along softpath/.expand once=\tikz@anim@parsed@path}%
|
| 315 |
+
}%
|
| 316 |
+
|
| 317 |
+
\def\tikz@anim@shift@path{%
|
| 318 |
+
\let\tikz@anim@patched@path\pgfutil@empty%
|
| 319 |
+
\tikz@anim@along@shift%
|
| 320 |
+
\expandafter\tikz@anim@shift@path@\tikz@anim@parsed@path\pgf@stop%
|
| 321 |
+
}%
|
| 322 |
+
\def\tikz@anim@shift@path@{%
|
| 323 |
+
\pgfutil@ifnextchar\pgf@stop\pgfutil@gobble{%
|
| 324 |
+
\pgfutil@ifnextchar\bgroup\tikz@anim@shift@path@sub\tikz@anim@shift@path@copy}%
|
| 325 |
+
}%
|
| 326 |
+
\def\tikz@anim@shift@path@copy#1{%
|
| 327 |
+
\expandafter\def\expandafter\tikz@anim@patched@path\expandafter{\tikz@anim@patched@path#1}%
|
| 328 |
+
\tikz@anim@shift@path@%
|
| 329 |
+
}%
|
| 330 |
+
\def\tikz@anim@shift@path@sub#1#2{%
|
| 331 |
+
\pgf@x#1%
|
| 332 |
+
\pgf@y#2%
|
| 333 |
+
\advance\pgf@x by\pgf@xc%
|
| 334 |
+
\advance\pgf@y by\pgf@yc%
|
| 335 |
+
\edef\tikz@temp{{\the\pgf@x}{\the\pgf@y}}%
|
| 336 |
+
\expandafter\tikz@anim@shift@path@copy\expandafter{\tikz@temp}%
|
| 337 |
+
}%
|
| 338 |
+
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
\def\tikz@anim@parse@origin#1{%
|
| 342 |
+
\tikz@scan@one@point\tikz@anim@parse@origin@#1\relax%
|
| 343 |
+
}%
|
| 344 |
+
\def\tikz@anim@parse@origin@#1{\tikz@anim@add{\pgfanimationset{origin={#1}}}}%
|
| 345 |
+
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
\def\tikz@anim@tl@objects{}%
|
| 349 |
+
\def\tikz@anim@tl@attributes{}%
|
| 350 |
+
\def\tikz@anim@tl@id{default}%
|
| 351 |
+
|
| 352 |
+
\let\tikz@anim@tl@exec@options\pgfutil@empty
|
| 353 |
+
\let\tikz@anim@tl@early@options\pgfutil@empty
|
| 354 |
+
|
| 355 |
+
\def\tikz@anim@add@early#1{\expandafter\def\expandafter\tikz@anim@tl@early@options\expandafter{\tikz@anim@tl@early@options#1}}%
|
| 356 |
+
\def\tikz@anim@add@once@early#1{%
|
| 357 |
+
\global\advance\tikz@anim@once@count by1\relax%
|
| 358 |
+
\expandafter\expandafter\expandafter\def\expandafter\expandafter\expandafter\tikz@anim@tl@early@options%
|
| 359 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@anim@tl@early@options\expandafter\tikz@anim@exec@once\expandafter{\the\tikz@anim@once@count}{#1}}%
|
| 360 |
+
}%
|
| 361 |
+
\def\tikz@anim@add#1{\expandafter\def\expandafter\tikz@anim@tl@exec@options\expandafter{\tikz@anim@tl@exec@options#1}}%
|
| 362 |
+
\def\tikz@anim@add@once#1{%
|
| 363 |
+
\global\advance\tikz@anim@once@count by1\relax%
|
| 364 |
+
\expandafter\expandafter\expandafter\def\expandafter\expandafter\expandafter\tikz@anim@tl@exec@options%
|
| 365 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@anim@tl@exec@options\expandafter\tikz@anim@exec@once\expandafter{\the\tikz@anim@once@count}{#1}}%
|
| 366 |
+
}%
|
| 367 |
+
\newcount\tikz@anim@once@count%
|
| 368 |
+
\def\tikz@anim@exec@once#1#2{%
|
| 369 |
+
\expandafter\ifx\csname tikz@anim@once@#1\endcsname\pgf@stop%
|
| 370 |
+
\else%
|
| 371 |
+
\expandafter\let\csname tikz@anim@once@#1\endcsname\pgf@stop%
|
| 372 |
+
#2%
|
| 373 |
+
\fi%
|
| 374 |
+
}%
|
| 375 |
+
|
| 376 |
+
\newif\iftikz@anim@do@entry
|
| 377 |
+
|
| 378 |
+
\def\tikz@anim@make@entry{%
|
| 379 |
+
\tikz@anim@do@entrytrue%
|
| 380 |
+
\ifx\tikz@anim@tl@objects\pgfutil@empty\tikz@anim@do@entryfalse\fi%
|
| 381 |
+
\ifx\tikz@anim@tl@attributes\pgfutil@empty\tikz@anim@do@entryfalse\fi%
|
| 382 |
+
\ifx\tikz@anim@tl@exec@options\pgfutil@empty\ifx\tikz@anim@tl@early@options\pgfutil@empty\tikz@anim@do@entryfalse\fi\fi%
|
| 383 |
+
\iftikz@anim@do@entry%
|
| 384 |
+
\foreach\tikz@anim@tl@object in\tikz@anim@tl@objects{%
|
| 385 |
+
\expandafter\tikzanimationattributesset\expandafter{\tikz@anim@tl@attributes}%
|
| 386 |
+
}%
|
| 387 |
+
\fi%
|
| 388 |
+
}%
|
| 389 |
+
|
| 390 |
+
\def\tikzanimationattributesset#1{\pgfqkeys{/tikz/animate/attributes}{#1}}%
|
| 391 |
+
|
| 392 |
+
\tikzanimationattributesset{
|
| 393 |
+
.unknown/.code={
|
| 394 |
+
\let\tikz@anim@attribute@name\pgfkeyscurrentname
|
| 395 |
+
\expandafter\let\expandafter\pgf@temp\csname tikz@anim@def@pgf@attr@\tikz@anim@attribute@name\endcsname%
|
| 396 |
+
\ifx\pgf@temp\relax%
|
| 397 |
+
\tikzerror{Unknown animation attribute '\tikz@anim@attribute@name'}%
|
| 398 |
+
\else%
|
| 399 |
+
\expandafter\tikz@timeline@config\expandafter\tikz@anim@tl@object\expandafter\tikz@anim@attribute@name\expandafter\tikz@anim@tl@id\expandafter{\tikz@anim@configs}%
|
| 400 |
+
\edef\pgf@marshal{\noexpand\tikz@timeline@entry{\tikz@anim@tl@object}{\tikz@anim@attribute@name}{\tikz@anim@tl@id}}%
|
| 401 |
+
\expandafter\expandafter\expandafter\def\expandafter\expandafter\expandafter\pgf@marshal\expandafter\expandafter\expandafter{\expandafter\pgf@marshal\expandafter{\tikz@anim@tl@early@options}}%
|
| 402 |
+
\expandafter\expandafter\expandafter\pgf@marshal\expandafter\expandafter\expandafter{\expandafter\expandafter\expandafter\tikz@anim@entry\expandafter\expandafter\expandafter{\expandafter\tikz@anim@tl@exec@options\expandafter\def\expandafter\tikz@animation@time\expandafter{\tikz@animation@time}}}%
|
| 403 |
+
\fi%
|
| 404 |
+
}
|
| 405 |
+
}%
|
| 406 |
+
\let\tikz@anim@configs\pgfutil@empty
|
| 407 |
+
|
| 408 |
+
\def\tikz@anim@entry#1{%
|
| 409 |
+
\let\tikz@anim@result\pgfutil@empty%
|
| 410 |
+
\pgf@anim@reset@linear%
|
| 411 |
+
#1%
|
| 412 |
+
\ifx\tikz@anim@result\pgfutil@empty%
|
| 413 |
+
\else%
|
| 414 |
+
\ifx\tikz@animation@time\pgfutil@empty%
|
| 415 |
+
\else%
|
| 416 |
+
\ifx\tikz@animation@time\tikz@anim@base@text%
|
| 417 |
+
\expandafter\pgf@anim@base\expandafter{\tikz@anim@result}%
|
| 418 |
+
\else%
|
| 419 |
+
\expandafter\expandafter\expandafter\pgf@anim@entry%
|
| 420 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@animation@time\expandafter}\expandafter{\tikz@anim@result}%
|
| 421 |
+
\fi%
|
| 422 |
+
\fi%
|
| 423 |
+
\fi%
|
| 424 |
+
}%
|
| 425 |
+
\let\tikz@animation@time\pgfutil@empty%
|
| 426 |
+
\def\tikz@anim@base@text{base}%
|
| 427 |
+
|
| 428 |
+
\tikzanimateset{
|
| 429 |
+
.unknown/.code={%
|
| 430 |
+
\let\tikz@key\pgfkeyscurrentname%
|
| 431 |
+
\tikz@animation@syntax@check{#1}{\tikz@anim@options{#1}}%
|
| 432 |
+
}
|
| 433 |
+
}%
|
| 434 |
+
|
| 435 |
+
|
| 436 |
+
\def\tikz@anim@options#1{
|
| 437 |
+
\let\tikz@anim@key\pgfkeyscurrentname%
|
| 438 |
+
\pgfqkeys{/tikz/animate/options}{\tikz@anim@key/.try={#1}}%
|
| 439 |
+
\ifpgfkeyssuccess%
|
| 440 |
+
\else%
|
| 441 |
+
\def\tikz@anim@unparsed@value{#1}%
|
| 442 |
+
\expandafter\tikz@anim@time@test\tikz@anim@key\pgf@stop%
|
| 443 |
+
\fi%
|
| 444 |
+
}%
|
| 445 |
+
|
| 446 |
+
\tikzanimateset{
|
| 447 |
+
options/.cd,
|
| 448 |
+
name/.code=\tikz@anim@add{\pgfanimationset{name={#1}}},
|
| 449 |
+
forever/.code=\tikz@anim@add{\pgfanimationset{freeze at end}},
|
| 450 |
+
freeze/.code=\tikz@anim@add{\pgfanimationset{freeze at end}},
|
| 451 |
+
restart/.code=\tikz@anim@add{\pgfanimationset{restart={#1}}},
|
| 452 |
+
repeats/.code=\tikz@anim@add{\pgfanimationset{repeats={#1}}},
|
| 453 |
+
repeats/.default=,
|
| 454 |
+
repeat/.code=\tikz@anim@add{\pgfanimationset{repeats={#1}}},
|
| 455 |
+
repeat/.default=,
|
| 456 |
+
begin/.code=\tikz@anim@add@once{\pgfanimationset{begin={#1}}},
|
| 457 |
+
end/.code=\tikz@anim@add@once{\pgfanimationset{end={#1}}},
|
| 458 |
+
begin on/.code=\tikz@anim@event{begin}{#1},
|
| 459 |
+
end on/.code=\tikz@anim@event{begin}{#1},
|
| 460 |
+
begin snapshot/.code=\tikz@anim@add{\pgfanimationset{begin snapshot={#1}}},
|
| 461 |
+
origin/.code=\tikz@anim@parse@origin{#1},
|
| 462 |
+
transform/.code=\tikz@anim@add{\pgfanimationset{transform={\let\tikz@transform\relax\tikzset{#1}}}},
|
| 463 |
+
along/.code=\tikz@anim@handle@along#1\pgf@stop,
|
| 464 |
+
entry control/.code=\tikz@anim@add{\pgfanimationset{entry control={#1}}},
|
| 465 |
+
exit control/.code=\tikz@anim@add{\pgfanimationset{exit control={#1}}},
|
| 466 |
+
stay/.code=\tikz@anim@add{\pgfanimationset{stay}},
|
| 467 |
+
jump/.code=\tikz@anim@add{\pgfanimationset{jump}},
|
| 468 |
+
ease/.style={
|
| 469 |
+
entry control={1-(#1)}{1},
|
| 470 |
+
exit control={#1}{0}
|
| 471 |
+
},
|
| 472 |
+
ease/.default=0.5,
|
| 473 |
+
ease in/.style={
|
| 474 |
+
entry control={1-(#1)}{1},
|
| 475 |
+
},
|
| 476 |
+
ease in/.default=0.5,
|
| 477 |
+
ease out/.style={
|
| 478 |
+
exit control={#1}{0},
|
| 479 |
+
},
|
| 480 |
+
ease out/.default=0.5,
|
| 481 |
+
arrows/.code=\tikz@anim@add@early{\pgfanimationset{arrows={#1}}},
|
| 482 |
+
shorten >/.code=\tikz@anim@add@early{\pgfanimationset{shorten >={#1}}},
|
| 483 |
+
shorten </.code=\tikz@anim@add@early{\pgfanimationset{snorten <={#1}}},
|
| 484 |
+
}%
|
| 485 |
+
\newif\iftikz@anim@along
|
| 486 |
+
|
| 487 |
+
\def\tikz@anim@t{0}%
|
| 488 |
+
|
| 489 |
+
\def\tikz@anim@handle@along#1{%
|
| 490 |
+
\pgfutil@ifnextchar s{\tikz@anim@handle@sloped{#1}}{\tikz@anim@handle@upright{#1}}%
|
| 491 |
+
}%
|
| 492 |
+
\def\tikz@anim@handle@sloped#1sloped{%
|
| 493 |
+
\pgfgettransform\tikz@anim@trans@pre%
|
| 494 |
+
\expandafter\tikz@anim@add@once%
|
| 495 |
+
\expandafter{%
|
| 496 |
+
\expandafter\tikz@anim@along\expandafter{\tikz@anim@trans@pre}{#1}%
|
| 497 |
+
\pgfsysanimkeycanvastransform{%
|
| 498 |
+
\pgf@xc\pgf@pt@x%
|
| 499 |
+
\pgf@yc\pgf@pt@y%
|
| 500 |
+
\pgftransformreset%
|
| 501 |
+
\pgf@pt@x\pgf@xc%
|
| 502 |
+
\pgf@pt@y\pgf@yc%
|
| 503 |
+
{\pgflowlevelsynccm}%
|
| 504 |
+
}{\pgftransforminvert\pgflowlevelsynccm}%
|
| 505 |
+
\pgfanimationset{rotate along=true}%
|
| 506 |
+
}%
|
| 507 |
+
\def\tikz@anim@configs{\tikz@anim@alongtrue}%
|
| 508 |
+
\tikz@anim@handle@in%
|
| 509 |
+
}%
|
| 510 |
+
\def\tikz@anim@handle@upright#1upright{%
|
| 511 |
+
\pgfgettransform\tikz@anim@trans@pre%
|
| 512 |
+
\expandafter\tikz@anim@add@once%
|
| 513 |
+
\expandafter{%
|
| 514 |
+
\expandafter\tikz@anim@along\expandafter{\tikz@anim@trans@pre}{#1}%
|
| 515 |
+
\pgfsysanimkeycanvastransform{}{}%
|
| 516 |
+
}%
|
| 517 |
+
\def\tikz@anim@configs{\tikz@anim@alongtrue}%
|
| 518 |
+
\tikz@anim@handle@in%
|
| 519 |
+
}%
|
| 520 |
+
\def\tikz@anim@handle@in{%
|
| 521 |
+
\pgfutil@ifnextchar i{\tikz@anim@handle@in@yes}{\tikz@anim@handle@in@no}%
|
| 522 |
+
}%
|
| 523 |
+
\def\tikz@anim@handle@in@no\pgf@stop{}%
|
| 524 |
+
\def\tikz@anim@handle@in@yes in#1\pgf@stop{%
|
| 525 |
+
\tikzanimateset{scope={time=0,value=0,entry,time=#1,value=1,entry}}%
|
| 526 |
+
}%
|
| 527 |
+
|
| 528 |
+
|
| 529 |
+
|
| 530 |
+
\def\tikz@anim@event#1#2{%
|
| 531 |
+
{%
|
| 532 |
+
\let\pgf@anim@id\pgfutil@empty%
|
| 533 |
+
\pgfqkeys{/pgf/animation/events}{#2}%
|
| 534 |
+
\expandafter}%
|
| 535 |
+
\expandafter\def\expandafter\tikz@anim@temp@id\expandafter{\pgf@anim@id}%
|
| 536 |
+
\ifx\tikz@anim@temp@id\pgfutil@empty%
|
| 537 |
+
\def\tikz@temp{#1 on={of id=\tikz@anim@current@id,#2}}%
|
| 538 |
+
\else
|
| 539 |
+
\expandafter\tikz@anim@event@setter\expandafter{\tikz@anim@temp@id}{#1}{#2}%
|
| 540 |
+
\fi%
|
| 541 |
+
\expandafter\tikz@anim@add@once\expandafter{\expandafter\pgfanimationset\expandafter{\tikz@temp}}%
|
| 542 |
+
}%
|
| 543 |
+
\def\tikz@anim@event@setter#1#2#3{%
|
| 544 |
+
\def\tikz@temp{#2 on={#3,of id=#1}}%
|
| 545 |
+
}%
|
| 546 |
+
|
| 547 |
+
\def\tikz@anim@time@test#1#2\pgf@stop{%
|
| 548 |
+
\edef\tikz@temp{\meaning#1}%
|
| 549 |
+
\expandafter\ifx\csname tikz@anim@test@\tikz@temp\endcsname\relax%
|
| 550 |
+
\tikzerror{I do not know the timing key '#1#2' to which you passed '\tikz@anim@unparsed@value'}%
|
| 551 |
+
\else%
|
| 552 |
+
\expandafter\tikz@anim@sync@scope\expandafter{\tikz@anim@unparsed@value}{\tikz@anim@set@time{#1#2}}{\tikz@anim@make@entry}%
|
| 553 |
+
\fi%
|
| 554 |
+
}%
|
| 555 |
+
|
| 556 |
+
\def\tikz@anim@parse@time#1{%
|
| 557 |
+
\pgfutil@in@{later\pgf@stop}{#1\pgf@stop}%
|
| 558 |
+
\ifpgfutil@in@%
|
| 559 |
+
\tikz@anim@parse@later#1\pgf@stop%
|
| 560 |
+
\else%
|
| 561 |
+
\pgfparsetime{#1}\let\tikz@anim@t\pgftimeresult%
|
| 562 |
+
\fi%
|
| 563 |
+
}%
|
| 564 |
+
\def\tikz@anim@parse@later#1later\pgf@stop{%
|
| 565 |
+
\pgfparsetime{#1+\tikz@anim@t@current}\let\tikz@anim@t\pgftimeresult%
|
| 566 |
+
}%
|
| 567 |
+
|
| 568 |
+
\expandafter\let\csname tikz@anim@test@the character 0\endcsname\pgfutil@empty
|
| 569 |
+
\expandafter\let\csname tikz@anim@test@the character 1\endcsname\pgfutil@empty
|
| 570 |
+
\expandafter\let\csname tikz@anim@test@the character 2\endcsname\pgfutil@empty
|
| 571 |
+
\expandafter\let\csname tikz@anim@test@the character 3\endcsname\pgfutil@empty
|
| 572 |
+
\expandafter\let\csname tikz@anim@test@the character 4\endcsname\pgfutil@empty
|
| 573 |
+
\expandafter\let\csname tikz@anim@test@the character 5\endcsname\pgfutil@empty
|
| 574 |
+
\expandafter\let\csname tikz@anim@test@the character 6\endcsname\pgfutil@empty
|
| 575 |
+
\expandafter\let\csname tikz@anim@test@the character 7\endcsname\pgfutil@empty
|
| 576 |
+
\expandafter\let\csname tikz@anim@test@the character 8\endcsname\pgfutil@empty
|
| 577 |
+
\expandafter\let\csname tikz@anim@test@the character 9\endcsname\pgfutil@empty
|
| 578 |
+
\expandafter\let\csname tikz@anim@test@the character -\endcsname\pgfutil@empty
|
| 579 |
+
\expandafter\let\csname tikz@anim@test@the character +\endcsname\pgfutil@empty
|
| 580 |
+
\expandafter\let\csname tikz@anim@test@the character .\endcsname\pgfutil@empty
|
| 581 |
+
\expandafter\let\csname tikz@anim@test@the character (\endcsname\pgfutil@empty
|
| 582 |
+
|
| 583 |
+
|
| 584 |
+
|
| 585 |
+
|
| 586 |
+
|
| 587 |
+
|
| 588 |
+
\def\tikzanimationdefineattribute#1#2{%
|
| 589 |
+
\expandafter\def\csname tikz@anim@def@pgf@attr@#1\endcsname{#1}%
|
| 590 |
+
\expandafter\let\csname tikz@anim@def@no@node@#1\endcsname\pgfutil@empty
|
| 591 |
+
\expandafter\let\csname tikz@anim@def@is@node@#1\endcsname\pgfutil@empty
|
| 592 |
+
\expandafter\let\csname tikz@anim@def@code@#1\endcsname\pgfutil@empty
|
| 593 |
+
\expandafter\let\csname tikz@anim@def@parser@#1\endcsname\tikz@anim@simple@parse
|
| 594 |
+
\def\tikz@anim@attr{#1}%
|
| 595 |
+
\pgfkeys{/tikz/animate/@attrdef/.cd,#2}%
|
| 596 |
+
}%
|
| 597 |
+
|
| 598 |
+
\pgfkeys{/tikz/animate/@attrdef/.cd,
|
| 599 |
+
pgf attribute name/.code=\expandafter\def\csname tikz@anim@def@pgf@attr@\tikz@anim@attr\endcsname{#1},
|
| 600 |
+
pgf attribute name scope/.code=\expandafter\def\csname tikz@anim@def@pgf@attr@@scope@\tikz@anim@attr\endcsname{#1},
|
| 601 |
+
pgf attribute name node/.code=\expandafter\def\csname tikz@anim@def@pgf@attr@@node@\tikz@anim@attr\endcsname{#1},
|
| 602 |
+
scope type/.code=\expandafter\def\csname tikz@anim@def@no@node@\tikz@anim@attr\endcsname{#1},
|
| 603 |
+
node type/.code=\expandafter\def\csname tikz@anim@def@is@node@\tikz@anim@attr\endcsname{#1},
|
| 604 |
+
code/.code=\expandafter\def\csname tikz@anim@def@code@\tikz@anim@attr\endcsname{#1},
|
| 605 |
+
setup/.code=\expandafter\def\csname tikz@anim@def@setup@\tikz@anim@attr\endcsname{#1},
|
| 606 |
+
parser/.code=\expandafter\def\csname tikz@anim@def@parser@\tikz@anim@attr\endcsname{#1},
|
| 607 |
+
}%
|
| 608 |
+
|
| 609 |
+
|
| 610 |
+
|
| 611 |
+
\def\tikzanimationdefineattributelist#1#2{%
|
| 612 |
+
\tikzanimationattributesset{#1/.style={#2}}%
|
| 613 |
+
}%
|
| 614 |
+
|
| 615 |
+
|
| 616 |
+
|
| 617 |
+
|
| 618 |
+
|
| 619 |
+
|
| 620 |
+
\tikzanimationdefineattributelist{color}{@color,text}%
|
| 621 |
+
\tikzanimationdefineattribute{@color}{pgf attribute name=color,node type=.background}%
|
| 622 |
+
\tikzanimationdefineattribute{dash pattern}{pgf attribute name=dash,parser=dashpattern, node type=.background}%
|
| 623 |
+
\tikzanimationdefineattribute{dash phase}{pgf attribute name=dash,parser=dashoffset, node type=.background}%
|
| 624 |
+
\tikzanimationdefineattribute{dash}{parser=dash, node type=.background}%
|
| 625 |
+
\tikzanimationdefineattribute{draw opacity}{pgf attribute name=stroke opacity}%
|
| 626 |
+
\tikzanimationdefineattribute{draw}{pgf attribute name=stroke, node type=.background}%
|
| 627 |
+
\tikzanimationdefineattribute{fill opacity}{}%
|
| 628 |
+
\tikzanimationdefineattribute{fill}{node type=.background}%
|
| 629 |
+
\tikzanimationdefineattribute{line width}{node type=.background}%
|
| 630 |
+
\tikzanimationdefineattribute{path}{pgf attribute name=softpath, scope type=.path, node type=.background.path, parser=path}%
|
| 631 |
+
\tikzanimationdefineattribute{opacity}{}%
|
| 632 |
+
\tikzanimationdefineattribute{position}{%
|
| 633 |
+
pgf attribute name=\iftikz@anim@along motion\else translate\fi,
|
| 634 |
+
parser=\iftikz@anim@along simple\else position\fi,
|
| 635 |
+
setup=\tikz@anim@position@setup,
|
| 636 |
+
}%
|
| 637 |
+
\tikzanimationdefineattribute{rotate}{}%
|
| 638 |
+
\tikzanimationdefineattribute{scale}{}%
|
| 639 |
+
\tikzanimationdefineattribute{shift}{
|
| 640 |
+
pgf attribute name=\iftikz@anim@along motion\else translate\fi,
|
| 641 |
+
parser=\iftikz@anim@along simple\else shift\fi
|
| 642 |
+
}%
|
| 643 |
+
\tikzanimationdefineattribute{stage}{}%
|
| 644 |
+
\tikzanimationdefineattribute{text opacity}{pgf attribute name=fill opacity, node type=.text, pgf attribute name scope=none}%
|
| 645 |
+
\tikzanimationdefineattribute{text}{pgf attribute name=color, node type=.text, pgf attribute name scope=none}%
|
| 646 |
+
\tikzanimationdefineattribute{view}{scope type=.view, parser=view}%
|
| 647 |
+
\tikzanimationdefineattribute{visible}{}%
|
| 648 |
+
\tikzanimationdefineattribute{xshift}{pgf attribute name=translate, parser=xshift}%
|
| 649 |
+
\tikzanimationdefineattribute{xscale}{pgf attribute name=scale, parser=xscale}%
|
| 650 |
+
\tikzanimationdefineattribute{xskew}{}%
|
| 651 |
+
\tikzanimationdefineattribute{xslant}{pgf attribute name=xskew, parser=slant}%
|
| 652 |
+
\tikzanimationdefineattribute{yshift}{pgf attribute name=translate, parser=yshift}%
|
| 653 |
+
\tikzanimationdefineattribute{yskew}{}%
|
| 654 |
+
\tikzanimationdefineattribute{yslant}{pgf attribute name=yskew, parser=slant}%
|
| 655 |
+
\tikzanimationdefineattribute{yscale}{pgf attribute name=scale, parser=yscale}%
|
| 656 |
+
|
| 657 |
+
|
| 658 |
+
\def\tikz@anim@position@setup{%
|
| 659 |
+
\pgfgettransform\tikz@anim@saved@transform%
|
| 660 |
+
\expandafter\def\expandafter\tikz@temp\expandafter{%
|
| 661 |
+
\expandafter\def\expandafter\tikz@anim@saved@transform\expandafter{\tikz@anim@saved@transform}%
|
| 662 |
+
\pgfsysanimkeycanvastransform{}{}%
|
| 663 |
+
\tikz@anim@is@positiontrue%
|
| 664 |
+
}%
|
| 665 |
+
\expandafter\expandafter\expandafter\def%
|
| 666 |
+
\expandafter\expandafter\expandafter\tikz@anim@initial@options%
|
| 667 |
+
\expandafter\expandafter\expandafter{\expandafter\tikz@temp\tikz@anim@initial@options}%
|
| 668 |
+
}%
|
| 669 |
+
\newif\iftikz@anim@is@position
|
| 670 |
+
|
| 671 |
+
|
| 672 |
+
|
| 673 |
+
\def\tikz@anim@id@hook{%
|
| 674 |
+
\expandafter\ifx\csname tikz@anim@att@\tikz@id@name\endcsname\relax%
|
| 675 |
+
\expandafter\ifx\csname tikz@anim@att@\tikz@auto@id\endcsname\relax%
|
| 676 |
+
\else%
|
| 677 |
+
\ifx\tikz@id@name\pgfutil@empty%
|
| 678 |
+
\def\tikz@id@name{@auto}%
|
| 679 |
+
\fi%
|
| 680 |
+
\pgfidrefnextuse\tikz@anim@current@id\tikz@id@name%
|
| 681 |
+
\csname tikz@anim@att@\tikz@auto@id\endcsname%
|
| 682 |
+
\expandafter\global\expandafter\let\csname tikz@anim@att@\tikz@auto@id\endcsname\relax%
|
| 683 |
+
\fi%
|
| 684 |
+
\else%
|
| 685 |
+
\pgfidrefnextuse\tikz@anim@current@id\tikz@id@name%
|
| 686 |
+
\csname tikz@anim@att@\tikz@id@name\endcsname%
|
| 687 |
+
\csname tikz@anim@att@\tikz@auto@id\endcsname%
|
| 688 |
+
\expandafter\global\expandafter\let\csname tikz@anim@att@\tikz@id@name\endcsname\relax%
|
| 689 |
+
\expandafter\global\expandafter\let\csname tikz@anim@att@\tikz@auto@id\endcsname\relax%
|
| 690 |
+
\fi%
|
| 691 |
+
}%
|
| 692 |
+
|
| 693 |
+
\expandafter\def\expandafter\tikz@id@hook\expandafter{\tikz@id@hook\tikz@anim@id@hook}%
|
| 694 |
+
|
| 695 |
+
|
| 696 |
+
|
| 697 |
+
|
| 698 |
+
\def\tikzanimationattachto#1#2{%
|
| 699 |
+
{%
|
| 700 |
+
\def\tikz@anim@name{#1}%
|
| 701 |
+
\ifx\tikz@anim@name\pgfutil@empty%
|
| 702 |
+
\tikzerror{Trying to attach an animation to an unnamed object. This should not happen.}%
|
| 703 |
+
\else%
|
| 704 |
+
\expandafter\ifx\csname tikz@anim@att@\tikz@anim@name\endcsname\relax%
|
| 705 |
+
\expandafter\gdef\csname tikz@anim@att@\tikz@anim@name\endcsname{#2}%
|
| 706 |
+
\else%
|
| 707 |
+
\expandafter\let\expandafter\tikz@temp\csname tikz@anim@att@\tikz@anim@name\endcsname%
|
| 708 |
+
\expandafter\def\expandafter\tikz@temp\expandafter{\tikz@temp#2}%
|
| 709 |
+
\expandafter\global\expandafter\let\csname tikz@anim@att@\tikz@anim@name\endcsname\tikz@temp%
|
| 710 |
+
\fi%
|
| 711 |
+
\fi%
|
| 712 |
+
}%
|
| 713 |
+
}%
|
| 714 |
+
\def\tikz@auto@id{myself}%
|
| 715 |
+
\expandafter\let\csname tikz@anim@att@\tikz@auto@id\endcsname\relax%
|
| 716 |
+
|
| 717 |
+
|
| 718 |
+
|
| 719 |
+
\def\tikz@timeline@config#1#2#3#4{%
|
| 720 |
+
\expandafter\def\expandafter\tikz@temp\expandafter{\csname tikz@a@conf@#1@#2@#3\endcsname}%
|
| 721 |
+
\expandafter\ifx\tikz@temp\relax%
|
| 722 |
+
\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\gdef\expandafter\expandafter\expandafter\tikz@temp\expandafter\expandafter\expandafter{\expandafter\expandafter\expandafter\global\expandafter\let\tikz@temp\relax}%
|
| 723 |
+
\fi%
|
| 724 |
+
\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\expandafter\gdef\expandafter\expandafter\expandafter\tikz@temp\expandafter\expandafter\expandafter{\tikz@temp#4}%
|
| 725 |
+
}%
|
| 726 |
+
|
| 727 |
+
|
| 728 |
+
|
| 729 |
+
|
| 730 |
+
\def\tikz@timeline@entry#1#2#3#4#5{%
|
| 731 |
+
\expandafter\ifx\csname tikz@a@tlo@#1\endcsname\relax%
|
| 732 |
+
\edef\pgf@marshal{\noexpand\tikzanimationattachto{#1}{\expandafter\noexpand\csname tikz@a@tlo@#1\endcsname}}%
|
| 733 |
+
\pgf@marshal%
|
| 734 |
+
\expandafter\gdef\csname tikz@a@tlo@#1\endcsname{\tikz@anim@cleanup{#1}}%
|
| 735 |
+
\fi%
|
| 736 |
+
\expandafter\ifx\csname tikz@a@tlc@#1@#2@#3\endcsname\relax%
|
| 737 |
+
\def\tikz@anim@initial@early@options{#4}%
|
| 738 |
+
\def\tikz@anim@initial@options{#5}%
|
| 739 |
+
\csname tikz@anim@def@setup@#2\endcsname%
|
| 740 |
+
\expandafter\global\expandafter\let\csname tikz@a@tlc@#1@#2@#3\endcsname\tikz@anim@initial@options%
|
| 741 |
+
\expandafter\global\expandafter\let\csname tikz@a@tld@#1@#2@#3\endcsname\tikz@anim@initial@early@options%
|
| 742 |
+
\expandafter\let\expandafter\pgf@temp\csname tikz@a@tlo@#1\endcsname%
|
| 743 |
+
\expandafter\def\expandafter\pgf@temp@name\expandafter{\tikz@anim@create{#1}{#2}{#3}}%
|
| 744 |
+
\expandafter\expandafter\expandafter\def\expandafter\expandafter\expandafter\pgf@temp\expandafter\expandafter\expandafter{\expandafter\pgf@temp\pgf@temp@name}%
|
| 745 |
+
\expandafter\global\expandafter\let\csname tikz@a@tlo@#1\endcsname\pgf@temp%
|
| 746 |
+
\else%
|
| 747 |
+
\expandafter\let\expandafter\pgf@temp\csname tikz@a@tld@#1@#2@#3\endcsname%
|
| 748 |
+
\expandafter\def\expandafter\pgf@temp\expandafter{\pgf@temp#4}%
|
| 749 |
+
\expandafter\global\expandafter\let\csname tikz@a@tld@#1@#2@#3\endcsname\pgf@temp%
|
| 750 |
+
\expandafter\let\expandafter\pgf@temp\csname tikz@a@tlc@#1@#2@#3\endcsname%
|
| 751 |
+
\expandafter\def\expandafter\pgf@temp\expandafter{\pgf@temp#5}%
|
| 752 |
+
\expandafter\global\expandafter\let\csname tikz@a@tlc@#1@#2@#3\endcsname\pgf@temp%
|
| 753 |
+
\fi%
|
| 754 |
+
}%
|
| 755 |
+
|
| 756 |
+
|
| 757 |
+
\def\tikz@anim@cleanup#1{%
|
| 758 |
+
\expandafter\global\expandafter\let\csname tikz@a@tlo@#1\endcsname\relax%
|
| 759 |
+
}%
|
| 760 |
+
|
| 761 |
+
\def\tikz@anim@create#1#2#3{%
|
| 762 |
+
\csname tikz@a@conf@#1@#2@#3\endcsname%
|
| 763 |
+
\iftikz@is@node%
|
| 764 |
+
\expandafter\let\expandafter\tikz@temp\csname tikz@anim@def@pgf@attr@@node@#2\endcsname%
|
| 765 |
+
\else%
|
| 766 |
+
\expandafter\let\expandafter\tikz@temp\csname tikz@anim@def@pgf@attr@@scope@#2\endcsname%
|
| 767 |
+
\fi%
|
| 768 |
+
\ifx\tikz@temp\relax%
|
| 769 |
+
\expandafter\let\expandafter\tikz@temp\csname tikz@anim@def@pgf@attr@#2\endcsname%
|
| 770 |
+
\fi%
|
| 771 |
+
\expandafter\pgfanimateattributecode\expandafter{\tikz@temp}{%
|
| 772 |
+
\iftikz@is@node%
|
| 773 |
+
\edef\tikz@anim@whom{\tikz@id@name\csname tikz@anim@def@is@node@#2\endcsname}%
|
| 774 |
+
\else%
|
| 775 |
+
\edef\tikz@anim@whom{\tikz@id@name\csname tikz@anim@def@no@node@#2\endcsname}%
|
| 776 |
+
\fi%
|
| 777 |
+
\pgfanimationset{whom=\tikz@anim@whom}%
|
| 778 |
+
\expandafter\let\expandafter\tikz@animation@parser\csname tikz@anim@\csname tikz@anim@def@parser@#2\endcsname @parse\endcsname%
|
| 779 |
+
\csname tikz@anim@def@code@#2\endcsname%
|
| 780 |
+
\csname tikz@a@tld@#1@#2@#3\endcsname%
|
| 781 |
+
\csname tikz@a@tlc@#1@#2@#3\endcsname%
|
| 782 |
+
}%
|
| 783 |
+
\expandafter\global\expandafter\let\csname tikz@a@tlc@#1@#2@#3\endcsname\relax%
|
| 784 |
+
\expandafter\global\expandafter\let\csname tikz@a@tld@#1@#2@#3\endcsname\relax%
|
| 785 |
+
}%
|
| 786 |
+
|
| 787 |
+
|
| 788 |
+
|
| 789 |
+
|
| 790 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryarrows.code.tex
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibraryarrows.code.tex}
|
| 3 |
+
|
| 4 |
+
\usepgflibrary{arrows}%
|
| 5 |
+
|
| 6 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryautomata.code.tex
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibraryautomata.code.tex}
|
| 3 |
+
|
| 4 |
+
\usetikzlibrary{shapes.multipart}%
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
\tikzset{every state/.style= {}}%
|
| 8 |
+
|
| 9 |
+
\tikzset{state without output/.style= {circle,draw,minimum size=2.5em,every state}}%
|
| 10 |
+
\tikzset{state with output/.style= {circle split,draw,minimum size=2.5em,every state}}%
|
| 11 |
+
|
| 12 |
+
\tikzset{accepting by arrow/.style= {after node path=
|
| 13 |
+
{
|
| 14 |
+
{
|
| 15 |
+
[to path=
|
| 16 |
+
{
|
| 17 |
+
[->,double=none,every accepting by arrow]
|
| 18 |
+
--
|
| 19 |
+
([shift=(\tikz@accepting@angle:\tikz@accepting@distance)]\tikztostart.\tikz@accepting@angle)
|
| 20 |
+
node [shape=rectangle,anchor=\tikz@accepting@anchor] {\tikz@accepting@text}
|
| 21 |
+
}]
|
| 22 |
+
edge ()
|
| 23 |
+
}
|
| 24 |
+
}}}%
|
| 25 |
+
\tikzset{every accepting by arrow/.style={}}%
|
| 26 |
+
\tikzset{accepting by double/.style= {double,outer sep=.5\pgflinewidth+.3pt}} %
|
| 27 |
+
|
| 28 |
+
\tikzset{initial by arrow/.style= {after node path=
|
| 29 |
+
{
|
| 30 |
+
{
|
| 31 |
+
[to path=
|
| 32 |
+
{
|
| 33 |
+
[->,double=none,every initial by arrow]
|
| 34 |
+
([shift=(\tikz@initial@angle:\tikz@initial@distance)]\tikztostart.\tikz@initial@angle)
|
| 35 |
+
node [shape=rectangle,anchor=\tikz@initial@anchor] {\tikz@initial@text}
|
| 36 |
+
-- (\tikztostart)}]
|
| 37 |
+
edge ()
|
| 38 |
+
}
|
| 39 |
+
}}}%
|
| 40 |
+
\tikzset{every initial by arrow/.style={}}%
|
| 41 |
+
|
| 42 |
+
\tikzset{initial by diamond/.style={shape=diamond}}%
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
\tikzoption{initial text}{\tikzaddafternodepathoption{\def\tikz@initial@text{#1}}}%
|
| 46 |
+
\tikzoption{accepting text}{\tikzaddafternodepathoption{\def\tikz@accepting@text{#1}}}%
|
| 47 |
+
|
| 48 |
+
\tikzoption{initial where}{\tikzaddafternodepathoption{\csname tikz@initial@compute@#1\endcsname}}%
|
| 49 |
+
\tikzoption{accepting where}{\tikzaddafternodepathoption{\csname tikz@accepting@compute@#1\endcsname}}%
|
| 50 |
+
|
| 51 |
+
\tikzoption{initial distance}{\tikzaddafternodepathoption{\def\tikz@initial@distance{#1}}}%
|
| 52 |
+
\tikzoption{accepting distance}{\tikzaddafternodepathoption{\def\tikz@accepting@distance{#1}}}%
|
| 53 |
+
|
| 54 |
+
\def\tikz@initial@text{start}%
|
| 55 |
+
\def\tikz@accepting@text{}%
|
| 56 |
+
|
| 57 |
+
\def\tikz@initial@distance{3ex}%
|
| 58 |
+
\def\tikz@accepting@distance{3ex}%
|
| 59 |
+
|
| 60 |
+
\def\tikz@initial@compute@above{\def\tikz@initial@angle{90}\def\tikz@initial@anchor{south}}%
|
| 61 |
+
\def\tikz@initial@compute@below{\def\tikz@initial@angle{270}\def\tikz@initial@anchor{north}}%
|
| 62 |
+
\def\tikz@initial@compute@left{\def\tikz@initial@angle{180}\def\tikz@initial@anchor{east}}%
|
| 63 |
+
\def\tikz@initial@compute@right{\def\tikz@initial@angle{0}\def\tikz@initial@anchor{west}}%
|
| 64 |
+
|
| 65 |
+
\def\tikz@initial@angle{180}%
|
| 66 |
+
\def\tikz@initial@anchor{east}%
|
| 67 |
+
|
| 68 |
+
\def\tikz@accepting@compute@above{\def\tikz@accepting@angle{90}\def\tikz@accepting@anchor{south}}%
|
| 69 |
+
\def\tikz@accepting@compute@below{\def\tikz@accepting@angle{270}\def\tikz@accepting@anchor{north}}%
|
| 70 |
+
\def\tikz@accepting@compute@left{\def\tikz@accepting@angle{180}\def\tikz@accepting@anchor{east}}%
|
| 71 |
+
\def\tikz@accepting@compute@right{\def\tikz@accepting@angle{0}\def\tikz@accepting@anchor{west}}%
|
| 72 |
+
|
| 73 |
+
\def\tikz@accepting@angle{0}%
|
| 74 |
+
\def\tikz@accepting@anchor{west}%
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
\tikzset{initial above/.style= {initial by arrow,initial where=above}}%
|
| 78 |
+
\tikzset{initial below/.style= {initial by arrow,initial where=below}}%
|
| 79 |
+
\tikzset{initial left/.style= {initial by arrow,initial where=left}}%
|
| 80 |
+
\tikzset{initial right/.style= {initial by arrow,initial where=right}}%
|
| 81 |
+
|
| 82 |
+
\tikzset{accepting above/.style= {accepting by arrow,accepting where=above}}%
|
| 83 |
+
\tikzset{accepting below/.style= {accepting by arrow,accepting where=below}}%
|
| 84 |
+
\tikzset{accepting left/.style= {accepting by arrow,accepting where=left}}%
|
| 85 |
+
\tikzset{accepting right/.style= {accepting by arrow,accepting where=right}}%
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
\tikzset{state/.style= {state without output}}%
|
| 90 |
+
\tikzset{accepting/.style= {accepting by double}}%
|
| 91 |
+
\tikzset{initial/.style= {initial by arrow}}%
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarybabel.code.tex
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibrarybabel.code.tex}
|
| 3 |
+
|
| 4 |
+
\tikzset{
|
| 5 |
+
handle active characters in code,
|
| 6 |
+
handle active characters in nodes,
|
| 7 |
+
}%
|
| 8 |
+
|
| 9 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarybackgrounds.code.tex
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibrarybackgrounds.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
\pgfdeclarelayer{background}%
|
| 7 |
+
\pgfsetlayers{background,main}%
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
\tikzset{on background layer/.style={
|
| 11 |
+
execute at begin scope={%
|
| 12 |
+
\pgfonlayer{background}%
|
| 13 |
+
\let\tikz@options=\pgfutil@empty%
|
| 14 |
+
\tikzset{every on background layer/.try,#1}%
|
| 15 |
+
\tikz@options},
|
| 16 |
+
execute at end scope={\endpgfonlayer}
|
| 17 |
+
}
|
| 18 |
+
}%
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
\tikzset{background rectangle/.style= {draw}}%
|
| 23 |
+
\tikzset{background top/.style= {draw}}%
|
| 24 |
+
\tikzset{background bottom/.style= {draw}}%
|
| 25 |
+
\tikzset{background left/.style= {draw}}%
|
| 26 |
+
\tikzset{background right/.style= {draw}}%
|
| 27 |
+
\tikzset{background grid/.style= {help lines,draw}}%
|
| 28 |
+
|
| 29 |
+
\tikzoption{inner frame sep}{\def\tikz@framexsep{#1}\def\tikz@frameysep{#1}}%
|
| 30 |
+
\tikzoption{inner frame xsep}{\def\tikz@framexsep{#1}}%
|
| 31 |
+
\tikzoption{inner frame ysep}{\def\tikz@frameysep{#1}}%
|
| 32 |
+
\def\tikz@framexsep{1ex}%
|
| 33 |
+
\def\tikz@frameysep{1ex}%
|
| 34 |
+
|
| 35 |
+
\tikzoption{outer frame sep}{\def\tikz@outerframexsep{#1}\def\tikz@outerframeysep{#1}}%
|
| 36 |
+
\tikzoption{outer frame xsep}{\def\tikz@outerframexsep{#1}}%
|
| 37 |
+
\tikzoption{outer frame ysep}{\def\tikz@outerframeysep{#1}}%
|
| 38 |
+
\def\tikz@outerframexsep{0ex}%
|
| 39 |
+
\def\tikz@outerframeysep{0ex}%
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
\tikzset{loose background/.style= {inner frame sep=2ex}}%
|
| 44 |
+
\tikzset{tight background/.style= {inner frame sep=0ex}}%
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
\tikzset{framed/.style= {style=show background rectangle}}%
|
| 50 |
+
\tikzset{gridded/.style= {style=show background grid}}%
|
| 51 |
+
|
| 52 |
+
\tikzset{show background rectangle/.style={execute at end picture=\tikz@background@framed}}%
|
| 53 |
+
\tikzset{show background top/.style= {execute at end picture=\tikz@background@top}}%
|
| 54 |
+
\tikzset{show background bottom/.style= {execute at end picture=\tikz@background@bottom}}%
|
| 55 |
+
\tikzset{show background left/.style= {execute at end picture=\tikz@background@left}}%
|
| 56 |
+
\tikzset{show background right/.style= {execute at end picture=\tikz@background@right}}%
|
| 57 |
+
\tikzset{show background grid/.style= {execute at end picture=\tikz@background@grid}}%
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
\def\tikz@background@save{%
|
| 62 |
+
\pgftransformreset%
|
| 63 |
+
\ifx\tikz@bg@minx\@undefined%
|
| 64 |
+
\pgf@xb=\pgf@picminx%
|
| 65 |
+
\pgf@yb=\pgf@picminy%
|
| 66 |
+
\pgf@xc=\pgf@picmaxx%
|
| 67 |
+
\pgf@yc=\pgf@picmaxy%
|
| 68 |
+
\pgfmathsetlength{\pgf@x}{\tikz@framexsep}%
|
| 69 |
+
\pgfmathsetlength{\pgf@y}{\tikz@frameysep}%
|
| 70 |
+
\advance\pgf@xb by-\pgf@x%
|
| 71 |
+
\advance\pgf@yb by-\pgf@y%
|
| 72 |
+
\advance\pgf@xc by\pgf@x%
|
| 73 |
+
\advance\pgf@yc by\pgf@y%
|
| 74 |
+
\edef\tikz@bg@minx{\the\pgf@xb}%
|
| 75 |
+
\edef\tikz@bg@miny{\the\pgf@yb}%
|
| 76 |
+
\edef\tikz@bg@maxx{\the\pgf@xc}%
|
| 77 |
+
\edef\tikz@bg@maxy{\the\pgf@yc}%
|
| 78 |
+
\pgfmathsetlength{\pgf@x}{\tikz@outerframexsep}%
|
| 79 |
+
\pgfmathsetlength{\pgf@y}{\tikz@outerframeysep}%
|
| 80 |
+
\advance\pgf@xb by-\pgf@x%
|
| 81 |
+
\advance\pgf@yb by-\pgf@y%
|
| 82 |
+
\advance\pgf@xc by\pgf@x%
|
| 83 |
+
\advance\pgf@yc by\pgf@y%
|
| 84 |
+
\edef\tikz@bg@outerminx{\the\pgf@xb}%
|
| 85 |
+
\edef\tikz@bg@outerminy{\the\pgf@yb}%
|
| 86 |
+
\edef\tikz@bg@outermaxx{\the\pgf@xc}%
|
| 87 |
+
\edef\tikz@bg@outermaxy{\the\pgf@yc}%
|
| 88 |
+
\fi%
|
| 89 |
+
}%
|
| 90 |
+
|
| 91 |
+
\def\tikz@background@framed{%
|
| 92 |
+
\tikz@background@save%
|
| 93 |
+
\pgfonlayer{background}
|
| 94 |
+
\path[style=background rectangle] (\tikz@bg@minx,\tikz@bg@miny) rectangle (\tikz@bg@maxx,\tikz@bg@maxy);
|
| 95 |
+
\endpgfonlayer
|
| 96 |
+
}%
|
| 97 |
+
|
| 98 |
+
\def\tikz@background@top{%
|
| 99 |
+
\tikz@background@save%
|
| 100 |
+
\pgfonlayer{background}
|
| 101 |
+
\path[style=background top] (\tikz@bg@outerminx,\tikz@bg@maxy) -- (\tikz@bg@outermaxx,\tikz@bg@maxy);
|
| 102 |
+
\endpgfonlayer
|
| 103 |
+
}%
|
| 104 |
+
|
| 105 |
+
\def\tikz@background@bottom{%
|
| 106 |
+
\tikz@background@save%
|
| 107 |
+
\pgfonlayer{background}
|
| 108 |
+
\path[style=background bottom] (\tikz@bg@outerminx,\tikz@bg@miny) -- (\tikz@bg@outermaxx,\tikz@bg@miny);
|
| 109 |
+
\endpgfonlayer
|
| 110 |
+
}%
|
| 111 |
+
|
| 112 |
+
\def\tikz@background@left{%
|
| 113 |
+
\tikz@background@save%
|
| 114 |
+
\pgfonlayer{background}
|
| 115 |
+
\path[style=background left] (\tikz@bg@minx,\tikz@bg@outerminy) -- (\tikz@bg@minx,\tikz@bg@outermaxy);
|
| 116 |
+
\endpgfonlayer
|
| 117 |
+
}%
|
| 118 |
+
|
| 119 |
+
\def\tikz@background@right{%
|
| 120 |
+
\tikz@background@save%
|
| 121 |
+
\pgfonlayer{background}
|
| 122 |
+
\path[style=background right] (\tikz@bg@maxx,\tikz@bg@outerminy) -- (\tikz@bg@maxx,\tikz@bg@outermaxy);
|
| 123 |
+
\endpgfonlayer
|
| 124 |
+
}%
|
| 125 |
+
|
| 126 |
+
\def\tikz@background@grid{%
|
| 127 |
+
\tikz@background@save%
|
| 128 |
+
\pgfonlayer{background}
|
| 129 |
+
\path[style=background grid] (\tikz@bg@minx,\tikz@bg@miny) grid (\tikz@bg@maxx,\tikz@bg@maxy);
|
| 130 |
+
\endpgfonlayer
|
| 131 |
+
}%
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarybending.code.tex
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibrarybending.code.tex}
|
| 3 |
+
|
| 4 |
+
\usepgfmodule{bending}%
|
| 5 |
+
\tikzset{arrows=[flex]}%
|
| 6 |
+
|
| 7 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarycalc.code.tex
ADDED
|
@@ -0,0 +1,455 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibrarycalc.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
\def\tikz@let@command et{%
|
| 8 |
+
\let\p=\tikz@cc@dop%
|
| 9 |
+
\let\x=\tikz@cc@dox%
|
| 10 |
+
\let\y=\tikz@cc@doy%
|
| 11 |
+
\let\n=\tikz@cc@don%
|
| 12 |
+
\pgfutil@ifnextchar i{\tikz@cc@stop@let}{\tikz@cc@handle@line}%
|
| 13 |
+
}%
|
| 14 |
+
\def\tikz@cc@handle@line{%
|
| 15 |
+
\pgfutil@ifnextchar\p{%
|
| 16 |
+
\tikz@cc@handle@coor%
|
| 17 |
+
}{%
|
| 18 |
+
\pgfutil@ifnextchar\n{%
|
| 19 |
+
\tikz@cc@handle@num%
|
| 20 |
+
}{%
|
| 21 |
+
\pgfutil@ifnextchar i{%
|
| 22 |
+
\tikz@cc@stop@let
|
| 23 |
+
}{%
|
| 24 |
+
\tikzerror{``\string\p'' or ``\string\n'' expected}%
|
| 25 |
+
}%
|
| 26 |
+
}%
|
| 27 |
+
}%
|
| 28 |
+
}%
|
| 29 |
+
\def\tikz@cc@handle@num\n#1#2=#3{%
|
| 30 |
+
\pgfmathparse{#3}%
|
| 31 |
+
\expandafter\edef\csname tikz@cc@n@#1\endcsname{\pgfmathresult\ifpgfmathunitsdeclared pt\fi}
|
| 32 |
+
\pgfutil@ifnextchar,{\tikz@cc@handle@nextline}{\tikz@cc@stop@let}%
|
| 33 |
+
}%
|
| 34 |
+
\def\tikz@cc@handle@coor\p#1#2={%
|
| 35 |
+
\def\tikz@cc@coord@name{#1}%
|
| 36 |
+
\tikz@scan@one@point\tikz@cc@dolet%
|
| 37 |
+
}%
|
| 38 |
+
\def\tikz@cc@dolet#1{%
|
| 39 |
+
\pgf@process{#1}%
|
| 40 |
+
\expandafter\edef\csname tikz@cc@p@\tikz@cc@coord@name\endcsname{\the\pgf@x,\the\pgf@y}%
|
| 41 |
+
\expandafter\edef\csname tikz@cc@x@\tikz@cc@coord@name\endcsname{\the\pgf@x}%
|
| 42 |
+
\expandafter\edef\csname tikz@cc@y@\tikz@cc@coord@name\endcsname{\the\pgf@y}%
|
| 43 |
+
\pgfutil@ifnextchar,{\tikz@cc@handle@nextline}{\tikz@cc@stop@let}%
|
| 44 |
+
}%
|
| 45 |
+
\def\tikz@cc@handle@nextline,{%
|
| 46 |
+
\tikz@cc@handle@line%
|
| 47 |
+
}%
|
| 48 |
+
\def\tikz@cc@stop@let in{%
|
| 49 |
+
\tikz@scan@next@command%
|
| 50 |
+
}%
|
| 51 |
+
|
| 52 |
+
\def\tikz@cc@dop#1{\csname tikz@cc@p@#1\endcsname}%
|
| 53 |
+
\def\tikz@cc@dox#1{\csname tikz@cc@x@#1\endcsname}%
|
| 54 |
+
\def\tikz@cc@doy#1{\csname tikz@cc@y@#1\endcsname}%
|
| 55 |
+
\def\tikz@cc@don#1{\csname tikz@cc@n@#1\endcsname}%
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
\def\tikz@parse@calculator#1(${%
|
| 61 |
+
\def\tikz@cc@command{#1}%
|
| 62 |
+
\begingroup%
|
| 63 |
+
\pgf@xa=0pt%
|
| 64 |
+
\pgf@ya=0pt%
|
| 65 |
+
\tikz@cc@parse+%
|
| 66 |
+
}%
|
| 67 |
+
|
| 68 |
+
\def\tikz@cc@parse{%
|
| 69 |
+
\pgfutil@ifnextchar${%
|
| 70 |
+
\tikz@cc@end%
|
| 71 |
+
}
|
| 72 |
+
{\pgfutil@ifnextchar+{%
|
| 73 |
+
\tikz@cc@add%
|
| 74 |
+
}{%
|
| 75 |
+
\pgfutil@ifnextchar-{%
|
| 76 |
+
\tikz@cc@sub%
|
| 77 |
+
}{%
|
| 78 |
+
\tikzerror{+ or - expected}%
|
| 79 |
+
\tikz@cc@end$%
|
| 80 |
+
}%
|
| 81 |
+
}%
|
| 82 |
+
}%
|
| 83 |
+
}%
|
| 84 |
+
|
| 85 |
+
\def\tikz@cc@end$#1){%
|
| 86 |
+
\xdef\tikz@marshal{\noexpand\pgfqpoint{\the\pgf@xa}{\the\pgf@ya}}%
|
| 87 |
+
\endgroup%
|
| 88 |
+
\expandafter\tikz@cc@command\expandafter{\tikz@marshal}%
|
| 89 |
+
}%
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
\def\tikz@cc@add+{%
|
| 93 |
+
\def\tikz@cc@factor{1}%
|
| 94 |
+
\tikz@cc@factororcoordinate%
|
| 95 |
+
}%
|
| 96 |
+
\def\tikz@cc@sub-{%
|
| 97 |
+
\def\tikz@cc@factor{-1}%
|
| 98 |
+
\tikz@cc@factororcoordinate%
|
| 99 |
+
}%
|
| 100 |
+
|
| 101 |
+
\def\tikz@cc@factororcoordinate{%
|
| 102 |
+
\pgfutil@ifnextchar({%
|
| 103 |
+
\tikz@cc@coordinate%
|
| 104 |
+
}{%
|
| 105 |
+
\tikz@cc@parse@factor%
|
| 106 |
+
}%
|
| 107 |
+
}%
|
| 108 |
+
|
| 109 |
+
\def\tikz@cc@parse@factor#1*({%
|
| 110 |
+
\pgfmathparse{#1*\tikz@cc@factor}%
|
| 111 |
+
\let\tikz@cc@factor=\pgfmathresult%
|
| 112 |
+
\tikz@cc@coordinate(%
|
| 113 |
+
}%
|
| 114 |
+
|
| 115 |
+
\def\tikz@cc@coordinate{%
|
| 116 |
+
\tikz@scan@absolute\tikz@cc@after@coordinate%
|
| 117 |
+
}%
|
| 118 |
+
\def\tikz@cc@after@coordinate#1{%
|
| 119 |
+
\pgf@process{#1}%
|
| 120 |
+
\pgf@xb=\pgf@x%
|
| 121 |
+
\pgf@yb=\pgf@y%
|
| 122 |
+
\tikz@cc@mid@checks%
|
| 123 |
+
}%
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
\def\tikz@cc@mid@checks{%
|
| 128 |
+
\ifnum\the\catcode`\!=\active\relax
|
| 129 |
+
\expandafter\tikz@cc@mid@checks@active
|
| 130 |
+
\else
|
| 131 |
+
\expandafter\tikz@cc@mid@checks@nonactive
|
| 132 |
+
\fi
|
| 133 |
+
}%
|
| 134 |
+
|
| 135 |
+
\def\tikz@cc@mid@checks@nonactive{%
|
| 136 |
+
\pgfutil@ifnextchar!{%
|
| 137 |
+
\tikz@cc@mid@nonactive%
|
| 138 |
+
}{%
|
| 139 |
+
\advance\pgf@xa by\tikz@cc@factor\pgf@xb
|
| 140 |
+
\advance\pgf@ya by\tikz@cc@factor\pgf@yb
|
| 141 |
+
\tikz@cc@parse%
|
| 142 |
+
}%
|
| 143 |
+
}%
|
| 144 |
+
|
| 145 |
+
\def\tikz@cc@mid@nonactive!{%
|
| 146 |
+
\pgfutil@ifnextchar({%
|
| 147 |
+
\tikz@scan@one@point\tikz@cc@project%
|
| 148 |
+
}{%
|
| 149 |
+
\tikz@cc@mid@num@nonactive%
|
| 150 |
+
}%
|
| 151 |
+
}%
|
| 152 |
+
|
| 153 |
+
\begingroup
|
| 154 |
+
\catcode`\!=\active
|
| 155 |
+
\gdef\tikz@cc@mid@checks@active{%
|
| 156 |
+
\pgfutil@ifnextchar!{%
|
| 157 |
+
\tikz@cc@mid@active%
|
| 158 |
+
}{%
|
| 159 |
+
\advance\pgf@xa by\tikz@cc@factor\pgf@xb
|
| 160 |
+
\advance\pgf@ya by\tikz@cc@factor\pgf@yb
|
| 161 |
+
\tikz@cc@parse%
|
| 162 |
+
}%
|
| 163 |
+
}%
|
| 164 |
+
|
| 165 |
+
\gdef\tikz@cc@mid@active!{%
|
| 166 |
+
\pgfutil@ifnextchar({%
|
| 167 |
+
\tikz@scan@one@point\tikz@cc@project%
|
| 168 |
+
}{%
|
| 169 |
+
\tikz@cc@mid@num@active%
|
| 170 |
+
}%
|
| 171 |
+
}%
|
| 172 |
+
\endgroup
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
\def\tikz@cc@mid@num@nonactive#1!{\tikz@cc@mid@num{#1}}%
|
| 176 |
+
|
| 177 |
+
\begingroup
|
| 178 |
+
\catcode`\!=\active
|
| 179 |
+
\gdef\tikz@cc@mid@num@active#1!{\tikz@cc@mid@num{#1}}%
|
| 180 |
+
\endgroup
|
| 181 |
+
|
| 182 |
+
\def\tikz@cc@mid@num#1{%
|
| 183 |
+
\pgfmathparse{#1}%
|
| 184 |
+
\ifpgfmathunitsdeclared%
|
| 185 |
+
\let\tikz@cc@mid@unit=\pgfmathresult%
|
| 186 |
+
\expandafter\tikz@cc@scan@rot\expandafter\tikz@cc@after@unit%
|
| 187 |
+
\else%
|
| 188 |
+
\let\tikz@cc@mid@factor=\pgfmathresult%
|
| 189 |
+
\pgfmathparse{1-\tikz@cc@mid@factor}%
|
| 190 |
+
\let\tikz@cc@mid@factor@one=\pgfmathresult%
|
| 191 |
+
\expandafter\tikz@cc@scan@rot\expandafter\tikz@cc@after@num%
|
| 192 |
+
\fi%
|
| 193 |
+
}%
|
| 194 |
+
|
| 195 |
+
\def\tikz@cc@after@num#1{%
|
| 196 |
+
\pgf@process{#1}%
|
| 197 |
+
\pgf@xb=\tikz@cc@mid@factor@one\pgf@xb%
|
| 198 |
+
\pgf@yb=\tikz@cc@mid@factor@one\pgf@yb%
|
| 199 |
+
\advance\pgf@xb by\tikz@cc@mid@factor\pgf@x%
|
| 200 |
+
\advance\pgf@yb by\tikz@cc@mid@factor\pgf@y%
|
| 201 |
+
\tikz@cc@mid@checks%
|
| 202 |
+
}%
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
\def\tikz@cc@after@unit#1{%
|
| 208 |
+
\pgf@process{#1}%
|
| 209 |
+
\advance\pgf@x by-\pgf@xb%
|
| 210 |
+
\advance\pgf@y by-\pgf@yb%
|
| 211 |
+
\pgf@process{\pgfpointnormalised{}}%
|
| 212 |
+
\advance\pgf@xb by\tikz@cc@mid@unit\pgf@x%
|
| 213 |
+
\advance\pgf@yb by\tikz@cc@mid@unit\pgf@y%
|
| 214 |
+
\tikz@cc@mid@checks%
|
| 215 |
+
}%
|
| 216 |
+
|
| 217 |
+
\def\tikz@cc@project#1{%
|
| 218 |
+
\pgf@process{#1}%
|
| 219 |
+
\pgf@xc=\pgf@x%
|
| 220 |
+
\pgf@yc=\pgf@y%
|
| 221 |
+
\begingroup
|
| 222 |
+
\ifnum\the\catcode`\!=\active
|
| 223 |
+
\def\tikz@next{%
|
| 224 |
+
\endgroup
|
| 225 |
+
\expandafter\tikz@cc@scan@rot\expandafter\tikz@cc@after@project
|
| 226 |
+
\tikz@cc@scan@ex@active}%
|
| 227 |
+
\else
|
| 228 |
+
\def\tikz@next{%
|
| 229 |
+
\endgroup
|
| 230 |
+
\expandafter\tikz@cc@scan@rot\expandafter\tikz@cc@after@project
|
| 231 |
+
\tikz@cc@scan@ex@nonactive}%
|
| 232 |
+
\fi
|
| 233 |
+
\tikz@next%
|
| 234 |
+
}%
|
| 235 |
+
|
| 236 |
+
\def\tikz@cc@scan@ex@nonactive!{}%
|
| 237 |
+
|
| 238 |
+
\begingroup
|
| 239 |
+
\catcode`\!=\active
|
| 240 |
+
\gdef\tikz@cc@scan@ex@active!{}%
|
| 241 |
+
\endgroup
|
| 242 |
+
|
| 243 |
+
\def\tikz@cc@after@project#1{%
|
| 244 |
+
\pgf@process{#1}%
|
| 245 |
+
\advance\pgf@x by-\pgf@xb%
|
| 246 |
+
\advance\pgf@y by-\pgf@yb%
|
| 247 |
+
\advance\pgf@xc by-\pgf@xb%
|
| 248 |
+
\advance\pgf@yc by-\pgf@yb%
|
| 249 |
+
\pgf@process{\pgfpointnormalised{}}%
|
| 250 |
+
\pgf@xc=\pgf@sys@tonumber{\pgf@xc}\pgf@x%
|
| 251 |
+
\advance\pgf@xc by\pgf@sys@tonumber{\pgf@yc}\pgf@y%
|
| 252 |
+
\advance\pgf@xb by\pgf@sys@tonumber{\pgf@xc}\pgf@x%
|
| 253 |
+
\advance\pgf@yb by\pgf@sys@tonumber{\pgf@xc}\pgf@y%
|
| 254 |
+
\tikz@cc@mid@checks%
|
| 255 |
+
}%
|
| 256 |
+
|
| 257 |
+
|
| 258 |
+
\def\tikz@cc@scan@rot#1{%
|
| 259 |
+
\pgfutil@ifnextchar({%
|
| 260 |
+
\tikz@scan@one@point#1%
|
| 261 |
+
}%
|
| 262 |
+
{%
|
| 263 |
+
\def\tikz@cc@scan@rot@cmd{#1}%
|
| 264 |
+
\ifnum\the\catcode`\:=\active\relax
|
| 265 |
+
\expandafter\tikz@cc@scan@one@rot@active%
|
| 266 |
+
\else
|
| 267 |
+
\expandafter\tikz@cc@scan@one@rot@nonactive%
|
| 268 |
+
\fi
|
| 269 |
+
}%
|
| 270 |
+
}%
|
| 271 |
+
|
| 272 |
+
\def\tikz@cc@scan@one@rot@nonactive#1:{%
|
| 273 |
+
\def\tikz@cc@scan@rot@angle{#1}%
|
| 274 |
+
\tikz@scan@one@point\tikz@cc@handle@rot%
|
| 275 |
+
}%
|
| 276 |
+
|
| 277 |
+
\begingroup
|
| 278 |
+
\catcode`\:=\active
|
| 279 |
+
\gdef\tikz@cc@scan@one@rot@active#1:{%
|
| 280 |
+
\def\tikz@cc@scan@rot@angle{#1}%
|
| 281 |
+
\tikz@scan@one@point\tikz@cc@handle@rot%
|
| 282 |
+
}%
|
| 283 |
+
\endgroup
|
| 284 |
+
|
| 285 |
+
\def\tikz@cc@handle@rot#1{%
|
| 286 |
+
\pgf@process{#1}%
|
| 287 |
+
{%
|
| 288 |
+
\pgftransformreset%
|
| 289 |
+
\pgf@xc=\pgf@x%
|
| 290 |
+
\pgf@yc=\pgf@y%
|
| 291 |
+
\pgftransformshift{\pgfqpoint{\pgf@xb}{\pgf@yb}}%
|
| 292 |
+
\pgftransformrotate{\tikz@cc@scan@rot@angle}%
|
| 293 |
+
\pgftransformshift{\pgfqpoint{-\pgf@xb}{-\pgf@yb}}%
|
| 294 |
+
\pgfpointtransformed{\pgfqpoint{\pgf@xc}{\pgf@yc}}%
|
| 295 |
+
\expandafter
|
| 296 |
+
}%
|
| 297 |
+
\edef\tikz@marshal{\noexpand\tikz@cc@scan@rot@cmd{\noexpand\pgfqpoint{\the\pgf@x}{\the\pgf@y}}}%
|
| 298 |
+
\tikz@marshal%
|
| 299 |
+
}%
|
| 300 |
+
|
| 301 |
+
|
| 302 |
+
|
| 303 |
+
|
| 304 |
+
|
| 305 |
+
|
| 306 |
+
\tikzdeclarecoordinatesystem{tangent}
|
| 307 |
+
{%
|
| 308 |
+
\tikzset{cs/.cd,#1}%
|
| 309 |
+
\expandafter\ifx\csname tikz@tangent@\tikz@cs@type\endcsname\relax%
|
| 310 |
+
\tikzerror{I do not know how to compute the tangent to
|
| 311 |
+
a \tikz@cs@type}%
|
| 312 |
+
\pgfpointorigin%
|
| 313 |
+
\else%
|
| 314 |
+
\expandafter\tikz@scan@one@point\expandafter\tikz@lib@do@tangent\tikz@cs@point%
|
| 315 |
+
\fi%
|
| 316 |
+
}%
|
| 317 |
+
|
| 318 |
+
\tikzset{cs/node/.code=\tikz@cs@unpack{\tikz@cs@node}{\tikz@cs@type}{#1}}%
|
| 319 |
+
\tikzset{cs/point/.store in=\tikz@cs@point}%
|
| 320 |
+
|
| 321 |
+
\def\tikz@lib@do@tangent{\csname tikz@tangent@\tikz@cs@type\endcsname}%
|
| 322 |
+
|
| 323 |
+
\def\tikz@tangent@coordinate#1{%
|
| 324 |
+
\pgfpointanchor{\tikz@cs@node}{center}%
|
| 325 |
+
}%
|
| 326 |
+
|
| 327 |
+
\def\tikz@tangent@circle#1{%
|
| 328 |
+
{%
|
| 329 |
+
\pgf@process{\pgfpointtransformed{#1}}%
|
| 330 |
+
\pgf@xa=\pgf@x%
|
| 331 |
+
\pgf@ya=\pgf@y%
|
| 332 |
+
\pgf@process{\pgfpointtransformed{\pgfpointanchor{\tikz@cs@node}{center}}}%
|
| 333 |
+
\advance\pgf@xa by-\pgf@x%
|
| 334 |
+
\advance\pgf@ya by-\pgf@y%
|
| 335 |
+
\pgftransformreset%
|
| 336 |
+
\pgftransformshift{\pgfpointanchor{\tikz@cs@node}{center}}%
|
| 337 |
+
\pgf@process{\pgfpointanchor{\tikz@cs@node}{east}}%
|
| 338 |
+
\pgf@xc=\pgf@x%
|
| 339 |
+
\pgfmathparse{veclen(\the\pgf@xa,\the\pgf@ya)}
|
| 340 |
+
\pgfmathparse{acos(\the\pgf@xc/\pgfmathresult)}
|
| 341 |
+
\ifnum\pgfkeysvalueof{/tikz/cs/solution}>1\relax%
|
| 342 |
+
\pgfmathparse{0-\pgfmathresult}%
|
| 343 |
+
\fi%
|
| 344 |
+
\let\tikz@lib@temp=\pgfmathresult%
|
| 345 |
+
\pgf@process{\pgfpointnormalised{\pgfqpoint{\pgf@xa}{\pgf@ya}}}%
|
| 346 |
+
\pgf@ya=-\pgf@y%
|
| 347 |
+
\pgftransformcm{\pgf@sys@tonumber{\pgf@x}}{\pgf@sys@tonumber{\pgf@y}}{\pgf@sys@tonumber{\pgf@ya}}{\pgf@sys@tonumber{\pgf@x}}{\pgfpointorigin}%
|
| 348 |
+
\pgf@process{\pgfpointtransformed{\pgfpointpolar{\tikz@lib@temp}{\the\pgf@xc}}}%
|
| 349 |
+
}%
|
| 350 |
+
{%
|
| 351 |
+
\pgftransforminvert%
|
| 352 |
+
\pgf@process{\pgfpointtransformed{}}%
|
| 353 |
+
}%
|
| 354 |
+
}%
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
\def\tikz@intersect@circle@and@circle{%
|
| 360 |
+
{%
|
| 361 |
+
\pgftransformreset%
|
| 362 |
+
\pgf@process{\pgfpointanchor{\tikz@cs@node@a}{center}}%
|
| 363 |
+
\pgf@xa=\pgf@x%
|
| 364 |
+
\pgf@ya=\pgf@y%
|
| 365 |
+
\pgf@process{\pgfpointanchor{\tikz@cs@node@a}{east}}%
|
| 366 |
+
\advance\pgf@x by-\pgf@xa%
|
| 367 |
+
\pgf@xc=\pgf@x%
|
| 368 |
+
\pgf@process{\pgfpointanchor{\tikz@cs@node@b}{center}}%
|
| 369 |
+
\pgf@xb=\pgf@x%
|
| 370 |
+
\pgf@yb=\pgf@y%
|
| 371 |
+
\pgf@process{\pgfpointanchor{\tikz@cs@node@b}{east}}%
|
| 372 |
+
\advance\pgf@x by-\pgf@xb%
|
| 373 |
+
\pgf@yc=\pgf@x%
|
| 374 |
+
\pgf@process{%
|
| 375 |
+
\pgfpointintersectionofcircles{\pgfqpoint{\pgf@xa}{\pgf@ya}}{\pgfqpoint{\pgf@xb}{\pgf@yb}}{\pgf@xc}{\pgf@yc}{\pgfkeysvalueof{/tikz/cs/solution}}%
|
| 376 |
+
}%
|
| 377 |
+
}%
|
| 378 |
+
{%
|
| 379 |
+
\pgftransforminvert%
|
| 380 |
+
\pgf@process{\pgfpointtransformed{}}%
|
| 381 |
+
}%
|
| 382 |
+
}%
|
| 383 |
+
|
| 384 |
+
|
| 385 |
+
\def\tikz@intersect@line@and@circle{%
|
| 386 |
+
{%
|
| 387 |
+
\expandafter\tikz@scan@one@point\expandafter\tikz@parse@line\tikz@cs@line@a%
|
| 388 |
+
\pgf@process{\pgfpointtransformed{}}%
|
| 389 |
+
\pgf@xb=\pgf@x%
|
| 390 |
+
\pgf@yb=\pgf@y%
|
| 391 |
+
\pgf@process{\pgfpointtransformed{\pgfqpoint{\pgf@xc}{\pgf@yc}}}%
|
| 392 |
+
\pgf@xa=\pgf@x%
|
| 393 |
+
\pgf@ya=\pgf@y%
|
| 394 |
+
\pgf@process{\pgfpointtransformed{\pgfpointanchor{\tikz@cs@node@b}{center}}}%
|
| 395 |
+
\advance\pgf@xa by-\pgf@x%
|
| 396 |
+
\advance\pgf@ya by-\pgf@y%
|
| 397 |
+
\advance\pgf@xb by-\pgf@x%
|
| 398 |
+
\advance\pgf@yb by-\pgf@y%
|
| 399 |
+
\pgftransformreset%
|
| 400 |
+
\pgftransformshift{\pgfpointanchor{\tikz@cs@node@b}{center}}%
|
| 401 |
+
\pgf@process{\pgfpointanchor{\tikz@cs@node@b}{east}}%
|
| 402 |
+
\edef\tikz@lib@saved@radius{\pgf@sys@tonumber{\pgf@x}}%
|
| 403 |
+
\pgf@x=\pgf@xb%
|
| 404 |
+
\pgf@y=\pgf@yb%
|
| 405 |
+
\advance\pgf@x by-\pgf@xa%
|
| 406 |
+
\advance\pgf@y by-\pgf@ya%
|
| 407 |
+
\pgf@process{\pgfpointnormalised{}}%
|
| 408 |
+
\pgf@xc=\pgf@sys@tonumber{\pgf@xa}\pgf@x%
|
| 409 |
+
\advance\pgf@xc by\pgf@sys@tonumber{\pgf@ya}\pgf@y%
|
| 410 |
+
\pgf@xc=-\pgf@xc%
|
| 411 |
+
\advance\pgf@xa by\pgf@sys@tonumber{\pgf@xc}\pgf@x%
|
| 412 |
+
\advance\pgf@ya by\pgf@sys@tonumber{\pgf@xc}\pgf@y%
|
| 413 |
+
\pgf@xc=\pgf@x%
|
| 414 |
+
\pgf@yc=\pgf@y%
|
| 415 |
+
\pgf@xb=\tikz@lib@saved@radius pt%
|
| 416 |
+
\c@pgf@counta=1\relax%
|
| 417 |
+
\loop%
|
| 418 |
+
\ifdim\pgf@xb>50pt%
|
| 419 |
+
\multiply\c@pgf@counta by2\relax%
|
| 420 |
+
\divide\pgf@xa by2\relax%
|
| 421 |
+
\divide\pgf@ya by2\relax%
|
| 422 |
+
\divide\pgf@xb by2\relax%
|
| 423 |
+
\repeat%
|
| 424 |
+
\pgf@xb=\pgf@sys@tonumber{\pgf@xb}\pgf@xb%
|
| 425 |
+
\pgf@yb=\pgf@sys@tonumber{\pgf@xa}\pgf@xa%
|
| 426 |
+
\advance\pgf@xb by-\pgf@yb%
|
| 427 |
+
\pgf@yb=\pgf@sys@tonumber{\pgf@ya}\pgf@ya%
|
| 428 |
+
\advance\pgf@xb by-\pgf@yb%
|
| 429 |
+
\ifdim\pgf@xb<0pt%
|
| 430 |
+
\pgf@xb=0pt%
|
| 431 |
+
\fi%
|
| 432 |
+
\pgfmathsqrt@{\pgf@sys@tonumber{\pgf@xb}}%
|
| 433 |
+
\pgfmathmultiply@{\pgfmathresult}{\the\c@pgf@counta}%
|
| 434 |
+
\multiply\pgf@xa by\c@pgf@counta\relax%
|
| 435 |
+
\multiply\pgf@ya by\c@pgf@counta\relax%
|
| 436 |
+
\ifnum\pgfkeysvalueof{/tikz/cs/solution}>1\relax%
|
| 437 |
+
\pgfmathsubtract{0}{\pgfmathresult}%
|
| 438 |
+
\fi%
|
| 439 |
+
\advance\pgf@xa by \pgfmathresult\pgf@xc%
|
| 440 |
+
\advance\pgf@ya by \pgfmathresult\pgf@yc%
|
| 441 |
+
\pgf@process{\pgfpointtransformed{\pgfqpoint{\pgf@xa}{\pgf@ya}}}%
|
| 442 |
+
}%
|
| 443 |
+
{%
|
| 444 |
+
\pgftransforminvert%
|
| 445 |
+
\pgf@process{\pgfpointtransformed{}}%
|
| 446 |
+
}%
|
| 447 |
+
}%
|
| 448 |
+
|
| 449 |
+
\def\tikz@intersect@circle@and@line{%
|
| 450 |
+
{%
|
| 451 |
+
\let\tikz@cs@node@b=\tikz@cs@node@a%
|
| 452 |
+
\let\tikz@cs@line@a=\tikz@cs@line@b%
|
| 453 |
+
\tikz@intersect@line@and@circle%
|
| 454 |
+
}%
|
| 455 |
+
}%
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarycalendar.code.tex
ADDED
|
@@ -0,0 +1,398 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibrarycalendar.code.tex}
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
\pgfutil@usemodule{pgfcalendar}
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
\tikzoption{dates}{\tikz@lib@cal@parse#1\relax}
|
| 10 |
+
\def\tikz@lib@cal@parse#1to#2\relax{%
|
| 11 |
+
\def\tikz@lib@cal@start{#1}
|
| 12 |
+
\def\tikz@lib@cal@end{#2}%
|
| 13 |
+
}
|
| 14 |
+
\tikzoption{execute at begin day scope}{\expandafter\def\expandafter\tikz@atbegin@day\expandafter{\tikz@atbegin@day#1}}
|
| 15 |
+
\tikzoption{execute at end day scope}{%
|
| 16 |
+
\def\pgf@temp{#1}%
|
| 17 |
+
\expandafter\expandafter\expandafter\def%
|
| 18 |
+
\expandafter\expandafter\expandafter\tikz@atend@day%
|
| 19 |
+
\expandafter\expandafter\expandafter{\expandafter\pgf@temp\tikz@atend@day}}
|
| 20 |
+
\tikzoption{execute before day scope}{\expandafter\def\expandafter\tikz@before@day\expandafter{\tikz@before@day#1}}
|
| 21 |
+
\tikzoption{execute after day scope}{\expandafter\def\expandafter\tikz@after@day\expandafter{\tikz@after@day#1}}
|
| 22 |
+
|
| 23 |
+
\let\tikz@atbegin@day=\pgfutil@empty
|
| 24 |
+
\let\tikz@atend@day=\pgfutil@empty
|
| 25 |
+
\let\tikz@before@day=\pgfutil@empty
|
| 26 |
+
\let\tikz@after@day=\pgfutil@empty
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
\tikzoption{day xshift}{\def\tikz@lib@cal@xshift{#1}}
|
| 34 |
+
\tikzoption{day yshift}{\def\tikz@lib@cal@yshift{#1}}
|
| 35 |
+
|
| 36 |
+
\def\tikz@lib@cal@yshift{3ex}
|
| 37 |
+
\def\tikz@lib@cal@xshift{3.5ex}
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
\tikzoption{month xshift}{\def\tikz@lib@cal@month@xshift{#1}}
|
| 42 |
+
\tikzoption{month yshift}{\def\tikz@lib@cal@month@yshift{#1}}
|
| 43 |
+
|
| 44 |
+
\def\tikz@lib@cal@month@yshift{9ex}
|
| 45 |
+
\def\tikz@lib@cal@month@xshift{9ex}
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
\tikzoption{day code}{\def\tikzdaycode{#1}}
|
| 52 |
+
\tikzoption{day text}{\def\tikzdaytext{#1}}
|
| 53 |
+
\tikzoption{days}{\tikzset{every day/.append style={#1}}}
|
| 54 |
+
\tikzset{every day/.style={anchor=base east}}
|
| 55 |
+
|
| 56 |
+
\tikzoption{month code}{\def\tikzmonthcode{#1}}
|
| 57 |
+
\tikzoption{month text}{\def\tikzmonthtext{#1}}
|
| 58 |
+
\tikzset{every month/.style={}}
|
| 59 |
+
|
| 60 |
+
\tikzoption{year code}{\def\tikzyearcode{#1}}
|
| 61 |
+
\tikzoption{year text}{\def\tikzyeartext{#1}}
|
| 62 |
+
\tikzset{every year/.style={}}
|
| 63 |
+
|
| 64 |
+
\def\tikzdaycode{\node[name=\pgfcalendarsuggestedname,every day]{\tikzdaytext};}
|
| 65 |
+
\def\tikzmonthcode{\node[every month]{\tikzmonthtext};}
|
| 66 |
+
\def\tikzyearcode{\node[every year]{\tikzyeartext};}
|
| 67 |
+
|
| 68 |
+
\def\tikzdaytext{\%d-}
|
| 69 |
+
\def\tikzmonthtext{\%mt}
|
| 70 |
+
\def\tikzyeartext{\%y0}
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
\tikzoption{tikz@lib@cal@width}{\def\tikz@lib@cal@width{#1}}
|
| 75 |
+
|
| 76 |
+
\def\tikz@lib@cal@width{1}
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
\tikzset{day list downward/.style={%
|
| 80 |
+
execute before day scope={
|
| 81 |
+
\ifdate{day of month=1}{\ifdate{equals=\pgfcalendarbeginiso}{}
|
| 82 |
+
{%
|
| 83 |
+
\pgfmathsetlength{\pgf@y}{\tikz@lib@cal@month@yshift}%
|
| 84 |
+
\pgftransformyshift{-\pgf@y}
|
| 85 |
+
}%
|
| 86 |
+
}{}%
|
| 87 |
+
},
|
| 88 |
+
execute after day scope={\pgfmathsetlength{\pgf@y}{\tikz@lib@cal@yshift}\pgftransformyshift{-\pgf@y}},
|
| 89 |
+
tikz@lib@cal@width=1
|
| 90 |
+
}}
|
| 91 |
+
\tikzset{day list upward/.style={%
|
| 92 |
+
execute before day scope={
|
| 93 |
+
\ifdate{day of month=1}{\ifdate{equals=\pgfcalendarbeginiso}{}
|
| 94 |
+
{%
|
| 95 |
+
\pgftransformyshift{\tikz@lib@cal@month@yshift}%
|
| 96 |
+
}%
|
| 97 |
+
}{}%
|
| 98 |
+
},
|
| 99 |
+
execute after day scope={\pgftransformyshift\tikz@lib@cal@yshift},
|
| 100 |
+
tikz@lib@cal@width=1
|
| 101 |
+
}}
|
| 102 |
+
\tikzset{day list right/.style={%
|
| 103 |
+
execute before day scope={
|
| 104 |
+
\ifdate{day of month=1}{\ifdate{equals=\pgfcalendarbeginiso}{}
|
| 105 |
+
{%
|
| 106 |
+
\pgftransformxshift{\tikz@lib@cal@month@xshift}%
|
| 107 |
+
}%
|
| 108 |
+
}{}%
|
| 109 |
+
},
|
| 110 |
+
execute after day scope={\pgftransformxshift\tikz@lib@cal@xshift},
|
| 111 |
+
tikz@lib@cal@width=30%
|
| 112 |
+
}}
|
| 113 |
+
|
| 114 |
+
\tikzset{day list left/.style={%
|
| 115 |
+
execute before day scope={
|
| 116 |
+
\ifdate{day of month=1}{\ifdate{equals=\pgfcalendarbeginiso}{}
|
| 117 |
+
{%
|
| 118 |
+
\pgfmathsetlength{\pgf@x}{\tikz@lib@cal@month@xshift}
|
| 119 |
+
\pgftransformxshift{-\pgf@x}%
|
| 120 |
+
}%
|
| 121 |
+
}{}%
|
| 122 |
+
},
|
| 123 |
+
execute after day scope={
|
| 124 |
+
\pgfmathsetlength{\pgf@x}{\tikz@lib@cal@xshift}
|
| 125 |
+
\pgftransformxshift{-\pgf@x}%
|
| 126 |
+
},
|
| 127 |
+
tikz@lib@cal@width=30%
|
| 128 |
+
}}
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
\tikzset{week list/.style={%
|
| 134 |
+
execute before day scope={%
|
| 135 |
+
\ifdate{day of month=1}{\ifdate{equals=\pgfcalendarbeginiso}{}
|
| 136 |
+
{%
|
| 137 |
+
\pgfmathsetlength{\pgf@y}{\tikz@lib@cal@month@yshift}%
|
| 138 |
+
\pgftransformyshift{-\pgf@y}
|
| 139 |
+
}%
|
| 140 |
+
}{}%
|
| 141 |
+
},
|
| 142 |
+
execute at begin day scope={%
|
| 143 |
+
\pgfmathsetlength\pgf@x{\tikz@lib@cal@xshift}%
|
| 144 |
+
\pgf@x=\pgfcalendarcurrentweekday\pgf@x%
|
| 145 |
+
\pgftransformxshift{\pgf@x}%
|
| 146 |
+
},
|
| 147 |
+
execute after day scope={%
|
| 148 |
+
\ifdate{Sunday}{%
|
| 149 |
+
\pgfmathsetlength{\pgf@y}{\tikz@lib@cal@yshift}%
|
| 150 |
+
\pgftransformyshift{-\pgf@y}
|
| 151 |
+
}{}%
|
| 152 |
+
},
|
| 153 |
+
tikz@lib@cal@width=7
|
| 154 |
+
}}
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
\tikzset{month list/.style={%
|
| 160 |
+
execute before day scope={%
|
| 161 |
+
\ifdate{day of month=1}{\ifdate{equals=\pgfcalendarbeginiso}{}
|
| 162 |
+
{%
|
| 163 |
+
\pgfmathsetlength{\pgf@y}{\tikz@lib@cal@month@yshift}%
|
| 164 |
+
\pgftransformyshift{-\pgf@y}
|
| 165 |
+
}%
|
| 166 |
+
}{}%
|
| 167 |
+
\ifdate{day of month=1}
|
| 168 |
+
{%
|
| 169 |
+
\edef\tikz@lib@cal@month@list@start{\pgfcalendarcurrentweekday}%
|
| 170 |
+
}{}%
|
| 171 |
+
\ifdate{equals=\pgfcalendarbeginiso}%
|
| 172 |
+
{%
|
| 173 |
+
{%
|
| 174 |
+
\c@pgf@counta=\pgfcalendarcurrentjulian%
|
| 175 |
+
\advance\c@pgf@counta by-\pgfcalendarcurrentday%
|
| 176 |
+
\advance\c@pgf@counta by1\relax%
|
| 177 |
+
\pgfcalendarjuliantoweekday{\c@pgf@counta}{\c@pgf@countb}%
|
| 178 |
+
\xdef\pgf@temp{\the\c@pgf@countb}%
|
| 179 |
+
}%
|
| 180 |
+
\let\tikz@lib@cal@month@list@start=\pgf@temp%
|
| 181 |
+
}{}%
|
| 182 |
+
},
|
| 183 |
+
execute at begin day scope={%
|
| 184 |
+
\pgfmathsetlength\pgf@xa{\tikz@lib@cal@xshift}%
|
| 185 |
+
\pgf@xb=\pgfcalendarcurrentday\pgf@xa%
|
| 186 |
+
\advance\pgf@xb by\tikz@lib@cal@month@list@start\pgf@xa%
|
| 187 |
+
\advance\pgf@xb by-\pgf@xa\relax%
|
| 188 |
+
\pgftransformxshift{\pgf@xb}%
|
| 189 |
+
},
|
| 190 |
+
tikz@lib@cal@width=37
|
| 191 |
+
}}
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
|
| 197 |
+
\tikzset{month label left/.style={%
|
| 198 |
+
execute before day scope={\ifdate{day of month=1}{\tikzmonthcode}{}},
|
| 199 |
+
every month/.append style={anchor=base east,xshift=-3.5ex}
|
| 200 |
+
}}
|
| 201 |
+
|
| 202 |
+
\tikzset{month label left vertical/.style={%
|
| 203 |
+
execute before day scope={\ifdate{day of month=1}{\tikzmonthcode}{}},
|
| 204 |
+
every month/.append style={anchor=base east,xshift=-4.5ex,yshift=2.25ex,rotate=90}
|
| 205 |
+
}}
|
| 206 |
+
|
| 207 |
+
\tikzset{month label right/.style={%
|
| 208 |
+
execute before day scope={\ifdate{day of month=1}{%
|
| 209 |
+
{%
|
| 210 |
+
\pgfmathsetlength{\pgf@xa}{\tikz@lib@cal@xshift}%
|
| 211 |
+
\pgftransformxshift{\tikz@lib@cal@width\pgf@xa}%
|
| 212 |
+
\pgftransformxshift{-\pgf@xa}%
|
| 213 |
+
\tikzmonthcode%
|
| 214 |
+
}}{}},
|
| 215 |
+
every month/.append style={anchor=base west,xshift=1ex}
|
| 216 |
+
}}
|
| 217 |
+
|
| 218 |
+
\tikzset{month label right vertical/.style={%
|
| 219 |
+
execute before day scope={\ifdate{day of month=1}{%
|
| 220 |
+
{%
|
| 221 |
+
\pgfmathsetlength{\pgf@xa}{\tikz@lib@cal@xshift}%
|
| 222 |
+
\pgftransformxshift{\tikz@lib@cal@width\pgf@xa}%
|
| 223 |
+
\pgftransformxshift{-\pgf@xa}%
|
| 224 |
+
\tikzmonthcode%
|
| 225 |
+
}}{}},
|
| 226 |
+
every month/.append style={anchor=base west,xshift=2ex,yshift=2.25ex,rotate=-90}
|
| 227 |
+
}}
|
| 228 |
+
|
| 229 |
+
\tikzset{month label above centered/.style={%
|
| 230 |
+
execute before day scope={%
|
| 231 |
+
\ifdate{day of month=1}{%
|
| 232 |
+
{
|
| 233 |
+
\pgfmathsetlength{\pgf@xa}{\tikz@lib@cal@xshift}%
|
| 234 |
+
\pgf@xb=\tikz@lib@cal@width\pgf@xa%
|
| 235 |
+
\advance\pgf@xb by-\pgf@xa%
|
| 236 |
+
\pgf@xb=.5\pgf@xb%
|
| 237 |
+
\pgftransformxshift{\pgf@xb}%
|
| 238 |
+
\pgftransformxshift{-1.5ex}%
|
| 239 |
+
\pgfmathsetlength{\pgf@y}{\tikz@lib@cal@yshift}%
|
| 240 |
+
\pgftransformyshift{1.25\pgf@y}
|
| 241 |
+
\tikzmonthcode%
|
| 242 |
+
}
|
| 243 |
+
}{}},
|
| 244 |
+
every month/.append style={anchor=base}
|
| 245 |
+
}}
|
| 246 |
+
|
| 247 |
+
\tikzset{month label above left/.style={%
|
| 248 |
+
execute before day scope={%
|
| 249 |
+
\ifdate{day of month=1}{%
|
| 250 |
+
{
|
| 251 |
+
\pgftransformxshift{-3.25ex}%
|
| 252 |
+
\pgfmathsetlength{\pgf@y}{\tikz@lib@cal@yshift}%
|
| 253 |
+
\pgftransformyshift{1.25\pgf@y}
|
| 254 |
+
\tikzmonthcode%
|
| 255 |
+
}
|
| 256 |
+
}{}},
|
| 257 |
+
every month/.append style={anchor=base west}
|
| 258 |
+
}}
|
| 259 |
+
|
| 260 |
+
|
| 261 |
+
|
| 262 |
+
\tikzset{month label above right/.style={%
|
| 263 |
+
execute before day scope={%
|
| 264 |
+
\ifdate{day of month=1}{%
|
| 265 |
+
{
|
| 266 |
+
\pgfmathsetlength{\pgf@xa}{\tikz@lib@cal@xshift}%
|
| 267 |
+
\pgf@xb=\tikz@lib@cal@width\pgf@xa%
|
| 268 |
+
\advance\pgf@xb by-\pgf@xa%
|
| 269 |
+
\pgftransformxshift{\pgf@xb}%
|
| 270 |
+
\pgfmathsetlength{\pgf@y}{\tikz@lib@cal@yshift}%
|
| 271 |
+
\pgftransformyshift{1.25\pgf@y}
|
| 272 |
+
\tikzmonthcode%
|
| 273 |
+
}
|
| 274 |
+
}{}},
|
| 275 |
+
every month/.append style={anchor=base east}
|
| 276 |
+
}}
|
| 277 |
+
|
| 278 |
+
\tikzset{month label below centered/.style={%
|
| 279 |
+
execute before day scope={%
|
| 280 |
+
\ifdate{day of month=1}{%
|
| 281 |
+
{
|
| 282 |
+
\pgfmathsetlength{\pgf@xa}{\tikz@lib@cal@xshift}%
|
| 283 |
+
\pgf@xb=\tikz@lib@cal@width\pgf@xa%
|
| 284 |
+
\advance\pgf@xb by-\pgf@xa%
|
| 285 |
+
\pgf@xb=.5\pgf@xb%
|
| 286 |
+
\pgftransformxshift{\pgf@xb}%
|
| 287 |
+
\pgftransformxshift{-1.5ex}%
|
| 288 |
+
\pgfmathsetlength{\pgf@y}{\tikz@lib@cal@yshift}%
|
| 289 |
+
\pgftransformyshift{-1.25\pgf@y}
|
| 290 |
+
\tikzmonthcode%
|
| 291 |
+
}
|
| 292 |
+
}{}},
|
| 293 |
+
every month/.append style={anchor=base}
|
| 294 |
+
}}
|
| 295 |
+
|
| 296 |
+
\tikzset{month label below left/.style={%
|
| 297 |
+
execute before day scope={%
|
| 298 |
+
\ifdate{day of month=1}{%
|
| 299 |
+
{
|
| 300 |
+
\pgftransformxshift{-3.25ex}%
|
| 301 |
+
\pgfmathsetlength{\pgf@y}{\tikz@lib@cal@yshift}%
|
| 302 |
+
\pgftransformyshift{-1.25\pgf@y}
|
| 303 |
+
\tikzmonthcode%
|
| 304 |
+
}
|
| 305 |
+
}{}},
|
| 306 |
+
every month/.append style={anchor=base west}
|
| 307 |
+
}}
|
| 308 |
+
|
| 309 |
+
|
| 310 |
+
|
| 311 |
+
|
| 312 |
+
\def\tikz@lib@cal@calendar{%
|
| 313 |
+
\begingroup%
|
| 314 |
+
\let\tikz@lib@cal@ifs=\pgfutil@empty%
|
| 315 |
+
\tikz@resetexpandcount
|
| 316 |
+
\tikzset{name=,at={(0,0)}}%
|
| 317 |
+
\let\%=\pgfcalendarshorthand%
|
| 318 |
+
\tikzset{every calendar/.try}%
|
| 319 |
+
\tikz@lib@cal@scanner%
|
| 320 |
+
}
|
| 321 |
+
|
| 322 |
+
\def\tikz@lib@cal@scanner{%
|
| 323 |
+
\afterassignment\tikz@lib@cal@handle\let\pgf@let@token=%
|
| 324 |
+
}
|
| 325 |
+
|
| 326 |
+
\def\tikz@lib@cal@handle{%
|
| 327 |
+
\pgfutil@switch\pgfutil@ifx\pgf@let@token{%
|
| 328 |
+
{;}{\let\pgfutil@next\tikz@lib@cal@stop}%
|
| 329 |
+
{(}{\let\pgfutil@next\tikz@lib@cal@name}%
|
| 330 |
+
{a}{\let\pgfutil@next\tikz@lib@cal@at}%
|
| 331 |
+
{[}{\let\pgfutil@next\tikz@lib@cal@option}%
|
| 332 |
+
{i}{\let\pgfutil@next\tikz@lib@cal@if}%
|
| 333 |
+
}{\tikz@resetexpandcount\pgfutil@next}{\tikz@lib@cal@expand}%
|
| 334 |
+
}
|
| 335 |
+
\def\tikz@lib@cal@expand{%
|
| 336 |
+
\advance\tikz@expandcount by -1
|
| 337 |
+
\ifnum\tikz@expandcount<0\relax%
|
| 338 |
+
\tikzerror{Giving up on this calendar}%
|
| 339 |
+
\let\pgfutil@next=\tikz@lib@cal@end%
|
| 340 |
+
\else%
|
| 341 |
+
\let\pgfutil@next=\tikz@lib@cal@@expand
|
| 342 |
+
\fi%
|
| 343 |
+
\pgfutil@next}
|
| 344 |
+
|
| 345 |
+
\def\tikz@lib@cal@@expand{\expandafter\tikz@lib@cal@scanner\pgf@let@token}
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
\def\tikz@lib@cal@name#1){%
|
| 349 |
+
\tikzset{name=#1}%
|
| 350 |
+
\tikz@lib@cal@scanner%
|
| 351 |
+
}
|
| 352 |
+
\def\tikz@lib@cal@at t#1(#2){%
|
| 353 |
+
\tikzset{at={(#2)}}%
|
| 354 |
+
\tikz@lib@cal@scanner%
|
| 355 |
+
}
|
| 356 |
+
\def\tikz@lib@cal@option#1]{%
|
| 357 |
+
\tikzset{#1}%
|
| 358 |
+
\tikz@lib@cal@scanner%
|
| 359 |
+
}
|
| 360 |
+
\def\tikz@lib@cal@if f#1(#2){%
|
| 361 |
+
\pgfutil@ifnextchar[{\tikz@lib@cal@if@opt{#2}}{\tikz@lib@cal@if@code{#2}}}%
|
| 362 |
+
|
| 363 |
+
\def\tikz@lib@cal@if@opt#1[#2]{\tikz@lib@cal@if@code{#1}{\tikzset{#2}}}
|
| 364 |
+
\def\tikz@lib@cal@if@code#1#2{%
|
| 365 |
+
\pgfutil@ifnextchar e{\tikz@lib@cal@if@else{#1}{#2}}{\tikz@lib@cal@if@else{#1}{#2}else{}}}
|
| 366 |
+
|
| 367 |
+
\def\tikz@lib@cal@if@else#1#2else{%
|
| 368 |
+
\pgfutil@ifnextchar[{\tikz@lib@cal@if@else@opt{#1}{#2}}{\tikz@lib@cal@if@else@code{#1}{#2}}}%
|
| 369 |
+
\def\tikz@lib@cal@if@else@opt#1#2[#3]{\tikz@lib@cal@if@else@code{#1}{#2}{\tikzset{#3}}}
|
| 370 |
+
\def\tikz@lib@cal@if@else@code#1#2#3{%
|
| 371 |
+
\expandafter\def\expandafter\tikz@lib@cal@ifs\expandafter{\tikz@lib@cal@ifs\ifdate{#1}{#2}{#3}}%
|
| 372 |
+
\tikz@lib@cal@scanner%
|
| 373 |
+
}
|
| 374 |
+
\def\tikz@lib@cal@stop{%
|
| 375 |
+
\pgftransformshift{\tikz@node@at}%
|
| 376 |
+
\expandafter\pgfcalendar\expandafter{\tikz@fig@name}{\tikz@lib@cal@start}{\tikz@lib@cal@end}%
|
| 377 |
+
{%
|
| 378 |
+
\tikz@before@day%
|
| 379 |
+
\scope%
|
| 380 |
+
\tikz@atbegin@day%
|
| 381 |
+
\tikz@lib@cal@ifs%
|
| 382 |
+
\tikzdaycode%
|
| 383 |
+
\tikz@atend@day%
|
| 384 |
+
\endscope%
|
| 385 |
+
\tikz@after@day%
|
| 386 |
+
}%
|
| 387 |
+
\endgroup%
|
| 388 |
+
}
|
| 389 |
+
|
| 390 |
+
\tikzoption{if}{%
|
| 391 |
+
\let\tikz@lib@cal@scanner@orig=\tikz@lib@cal@scanner%
|
| 392 |
+
\let\tikz@lib@cal@scanner=\relax%
|
| 393 |
+
\tikz@lib@cal@if f#1\relax%
|
| 394 |
+
\let\tikz@lib@cal@scanner=\tikz@lib@cal@scanner@orig}
|
| 395 |
+
|
| 396 |
+
|
| 397 |
+
|
| 398 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarychains.code.tex
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\ProvidesFileRCS{tikzlibrarychains.code.tex}
|
| 3 |
+
|
| 4 |
+
\usetikzlibrary{positioning}%
|
| 5 |
+
|
| 6 |
+
\tikzset{start chain/.default=,
|
| 7 |
+
start chain/.code={%
|
| 8 |
+
\tikz@lib@chain@parse{#1}%
|
| 9 |
+
\ifx\tikz@lib@chain@name\pgfutil@empty%
|
| 10 |
+
\def\tikz@lib@chain@name{chain}%
|
| 11 |
+
\fi%
|
| 12 |
+
\ifx\tikz@lib@chain@direction\relax%
|
| 13 |
+
\let\tikz@lib@chain@direction=\tikz@lib@chain@default@direction%
|
| 14 |
+
\fi%
|
| 15 |
+
\expandafter\ifx\csname tikz@lib@chain@active@\tikz@lib@chain@name\endcsname\relax%
|
| 16 |
+
\expandafter\let\csname tikz@lib@chain@active@\tikz@lib@chain@name\endcsname=\pgfutil@empty%
|
| 17 |
+
\expandafter\global\expandafter\let\csname tikz@lib@chain@exists@\tikz@lib@chain@name\endcsname=\pgfutil@empty%
|
| 18 |
+
\expandafter\gdef\csname tikz@lib@chain@count@\tikz@lib@chain@name\endcsname{0}%
|
| 19 |
+
\expandafter\global\expandafter\let\csname tikz@lib@chain@dir@\tikz@lib@chain@name\endcsname\tikz@lib@chain@direction%
|
| 20 |
+
\let\tikz@lib@current@chain=\tikz@lib@chain@name%
|
| 21 |
+
\let\chainin=\tikz@lib@chainin%
|
| 22 |
+
\else%
|
| 23 |
+
\tikzerror{Chain ``\tikz@lib@chain@name'' is already active}%
|
| 24 |
+
\fi%
|
| 25 |
+
},
|
| 26 |
+
continue chain/.default=,
|
| 27 |
+
continue chain/.code={%
|
| 28 |
+
\tikz@lib@chain@parse{#1}%
|
| 29 |
+
\ifx\tikz@lib@chain@name\pgfutil@empty%
|
| 30 |
+
\let\tikz@lib@chain@name\tikz@lib@current@chain%
|
| 31 |
+
\fi%
|
| 32 |
+
\expandafter\ifx\csname tikz@lib@chain@exists@\tikz@lib@chain@name\endcsname\relax%
|
| 33 |
+
\tikzerror{Unknown chain ``#1''}%
|
| 34 |
+
\else%
|
| 35 |
+
\let\tikz@lib@current@chain=\tikz@lib@chain@name%
|
| 36 |
+
\expandafter\let\csname tikz@lib@chain@active@\tikz@lib@chain@name\endcsname=\pgfutil@empty%
|
| 37 |
+
\ifx\tikz@lib@chain@direction\relax%
|
| 38 |
+
\else%
|
| 39 |
+
\expandafter\global\expandafter\let\csname tikz@lib@chain@dir@\tikz@lib@chain@name\endcsname\tikz@lib@chain@direction%
|
| 40 |
+
\fi%
|
| 41 |
+
\fi%
|
| 42 |
+
},
|
| 43 |
+
join/.code=\tikz@lib@parse@join{#1},
|
| 44 |
+
join/.default={}%
|
| 45 |
+
}%
|
| 46 |
+
|
| 47 |
+
\def\tikz@lib@chain@parse#1{%
|
| 48 |
+
\pgfutil@in@{going }{#1}%
|
| 49 |
+
\ifpgfutil@in@%
|
| 50 |
+
\tikz@lib@chain@going#1\pgf@stop%
|
| 51 |
+
\else%
|
| 52 |
+
\pgfutil@in@{placed }{#1}%
|
| 53 |
+
\ifpgfutil@in@%
|
| 54 |
+
\tikz@lib@chain@positioning#1\pgf@stop%
|
| 55 |
+
\else%
|
| 56 |
+
\def\tikz@lib@chain@name{#1}%
|
| 57 |
+
\let\tikz@lib@chain@direction\relax%
|
| 58 |
+
\fi%
|
| 59 |
+
\fi%
|
| 60 |
+
}%
|
| 61 |
+
|
| 62 |
+
\def\tikz@lib@chain@going#1going #2\pgf@stop{%
|
| 63 |
+
\def\tikz@lib@chain@name{#1}%
|
| 64 |
+
\ifx\tikz@lib@chain@name\pgfutil@empty%
|
| 65 |
+
\else%
|
| 66 |
+
\tikz@lib@chain@strip#1\pgf@stop%
|
| 67 |
+
\fi%
|
| 68 |
+
\tikz@lib@chain@is@goingtrue%
|
| 69 |
+
\def\tikz@lib@chain@direction{%
|
| 70 |
+
\ifx\tikzchainprevious\pgfutil@empty%
|
| 71 |
+
\else%
|
| 72 |
+
\tikz@lib@chain@place{#2}%
|
| 73 |
+
\fi%
|
| 74 |
+
}%
|
| 75 |
+
}%
|
| 76 |
+
|
| 77 |
+
\def\tikz@lib@chain@positioning#1placed #2\pgf@stop{%
|
| 78 |
+
\def\tikz@lib@chain@name{#1}%
|
| 79 |
+
\ifx\tikz@lib@chain@name\pgfutil@empty%
|
| 80 |
+
\else%
|
| 81 |
+
\tikz@lib@chain@strip#1\pgf@stop%
|
| 82 |
+
\fi%
|
| 83 |
+
\tikz@lib@chain@is@goingfalse%
|
| 84 |
+
\def\tikz@lib@chain@direction{\tikz@lib@chain@place{#2}}%
|
| 85 |
+
}%
|
| 86 |
+
\newif\iftikz@lib@chain@is@going
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
\tikzset{/tikz/chain default direction/.code=%
|
| 90 |
+
{%
|
| 91 |
+
\tikz@lib@chain@parse{#1}%
|
| 92 |
+
\let\tikz@lib@chain@default@direction=\tikz@lib@chain@direction%
|
| 93 |
+
},%
|
| 94 |
+
/tikz/chain default direction=going right
|
| 95 |
+
}%
|
| 96 |
+
|
| 97 |
+
\def\tikz@lib@current@chain{chain}%
|
| 98 |
+
|
| 99 |
+
\pgfutil@g@addto@macro\tikz@node@reset@hook{\let\tikz@lib@chain@caller=\relax}%
|
| 100 |
+
\pgfutil@g@addto@macro\tikz@node@begin@hook{\tikz@lib@chain@caller}%
|
| 101 |
+
|
| 102 |
+
\tikzset{
|
| 103 |
+
on chain/.default=,
|
| 104 |
+
on chain/.code=\tikz@lib@on@chain{#1}%
|
| 105 |
+
}%
|
| 106 |
+
\def\tikz@lib@on@chain#1{%
|
| 107 |
+
\tikz@lib@chain@parse{#1}%
|
| 108 |
+
\ifx\tikz@lib@chain@name\pgfutil@empty%
|
| 109 |
+
\let\tikz@lib@chain@name\tikz@lib@current@chain%
|
| 110 |
+
\fi%
|
| 111 |
+
\expandafter\ifx\csname tikz@lib@chain@exists@\tikz@lib@chain@name\endcsname\relax%
|
| 112 |
+
\tikzerror{Unknown chain ``\tikz@lib@chain@name''}%
|
| 113 |
+
\else%
|
| 114 |
+
\c@pgf@counta\csname tikz@lib@chain@count@\tikz@lib@chain@name\endcsname\relax%
|
| 115 |
+
\ifnum\c@pgf@counta=0\relax%
|
| 116 |
+
\global\let\tikzchainprevious=\pgfutil@empty%
|
| 117 |
+
\else
|
| 118 |
+
\xdef\tikzchainprevious{\tikz@lib@chain@name-\the\c@pgf@counta}%
|
| 119 |
+
\fi%
|
| 120 |
+
\advance\c@pgf@counta by1\relax%
|
| 121 |
+
\xdef\tikzchaincount{\the\c@pgf@counta}%
|
| 122 |
+
\ifx\tikz@lib@chain@direction\relax%
|
| 123 |
+
\csname tikz@lib@chain@dir@\tikz@lib@chain@name\endcsname%
|
| 124 |
+
\else%
|
| 125 |
+
\tikz@lib@chain@direction%
|
| 126 |
+
\fi%
|
| 127 |
+
\edef\tikz@lib@chain@caller{\noexpand\tikz@lib@chain@last@found{\tikz@lib@chain@name}}%
|
| 128 |
+
\fi%
|
| 129 |
+
}%
|
| 130 |
+
\def\tikz@lib@chain@last@found#1{%
|
| 131 |
+
\c@pgf@counta\csname tikz@lib@chain@count@#1\endcsname\relax%
|
| 132 |
+
\advance\c@pgf@counta by1\relax%
|
| 133 |
+
\xdef\tikzchaincurrent{#1-\the\c@pgf@counta}%
|
| 134 |
+
\expandafter\xdef\csname tikz@lib@chain@count@#1\endcsname{\the\c@pgf@counta}%
|
| 135 |
+
\ifnum\c@pgf@counta=1\relax%
|
| 136 |
+
\tikzset{alias/.expanded={#1-begin}} %
|
| 137 |
+
\fi%
|
| 138 |
+
\tikzset{alias/.expanded={#1-end}} %
|
| 139 |
+
\tikzset{alias/.expanded={#1-\the\c@pgf@counta}} %
|
| 140 |
+
\tikz@lib@chain@direction%
|
| 141 |
+
\tikzset{every on chain/.try}%
|
| 142 |
+
}%
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
\def\tikz@lib@chain@place#1{%
|
| 146 |
+
\pgfutil@in@{=}{#1}%
|
| 147 |
+
\ifpgfutil@in@%
|
| 148 |
+
\tikzset{#1}%
|
| 149 |
+
\else%
|
| 150 |
+
\tikzset{#1=of \tikzchainprevious}%
|
| 151 |
+
\fi%
|
| 152 |
+
}%
|
| 153 |
+
|
| 154 |
+
\def\tikz@lib@chain@strip#1 \pgf@stop{%
|
| 155 |
+
\def\tikz@lib@chain@name{#1}%
|
| 156 |
+
}%
|
| 157 |
+
|
| 158 |
+
\def\tikz@lib@parse@join#1{%
|
| 159 |
+
\def\tikz@temp{#1}%
|
| 160 |
+
\ifx\tikz@temp\pgfutil@empty%
|
| 161 |
+
\tikz@lib@parse@join@by by \pgf@stop%
|
| 162 |
+
\else%
|
| 163 |
+
\pgfutil@in@{with }{#1}%
|
| 164 |
+
\ifpgfutil@in@%
|
| 165 |
+
\pgfutil@in@{by }{#1}%
|
| 166 |
+
\ifpgfutil@in@%
|
| 167 |
+
\tikz@lib@parse@join@with@by#1\pgf@stop%
|
| 168 |
+
\else%
|
| 169 |
+
\tikz@lib@parse@join@with@by#1 by \pgf@stop%
|
| 170 |
+
\fi%
|
| 171 |
+
\else%
|
| 172 |
+
\tikz@lib@parse@join@by#1\pgf@stop%
|
| 173 |
+
\fi%
|
| 174 |
+
\fi%
|
| 175 |
+
}%
|
| 176 |
+
\def\tikz@lib@parse@join@with@by with #1 by #2\pgf@stop{%
|
| 177 |
+
\tikzset{after node path={(#1)edge[every join,#2](\tikzchaincurrent)}}%
|
| 178 |
+
}%
|
| 179 |
+
\def\tikz@lib@parse@join@by by #1\pgf@stop{%
|
| 180 |
+
\tikzset{after node path={\ifx\tikzchainprevious\pgfutil@empty\else (\tikzchainprevious)edge[every join,#1](\tikzchaincurrent)\fi}}%
|
| 181 |
+
}%
|
| 182 |
+
\tikzset{every join/.style=}%
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
\def\tikz@lib@chainin#1(#2){\pgfutil@ifnextchar[{\tikz@lib@chainin@{#2}}{\tikz@lib@chainin@{#2}[]}}%
|
| 186 |
+
\def\tikz@lib@chainin@#1[#2]{\path[late options={name=#1,on chain,every chain in/.try,#2}]}%
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
\tikzset{start branch/.code={%
|
| 191 |
+
\let\tikz@lib@save@current\tikz@lib@current@chain%
|
| 192 |
+
\pgfkeysalso{/tikz/start chain/.expand once=\tikz@lib@current@chain/#1}%
|
| 193 |
+
\path[late options={name=\tikz@lib@save@current-end,on chain}];%
|
| 194 |
+
}%
|
| 195 |
+
}%
|
| 196 |
+
\tikzset{continue branch/.style={continue chain/.expand once=\tikz@lib@current@chain/#1}}%
|
| 197 |
+
|
| 198 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarydecorations.code.tex
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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@name,
|
| 7 |
+
/pgf/decoration/.unknown/.code=%
|
| 8 |
+
\pgfifdecoration{\pgfkeyscurrentname}{\edef\tikz@decoration@name{\pgfkeyscurrentname}}
|
| 9 |
+
{\pgfifmetadecoration{\pgfkeyscurrentname}{\edef\tikz@decoration@name{\pgfkeyscurrentname}}
|
| 10 |
+
{\pgfkeys{/errors/unknown
|
| 11 |
+
key/.expanded={/pgf/decoration/\pgfkeyscurrentname}{\pgfutil@unexpanded{#1}}}}},%
|
| 12 |
+
/pgf/decoration/raise/.code={\def\tikz@dec@shift{\pgftransformyshift{#1}}\tikz@dec@trans},
|
| 13 |
+
/pgf/decoration/mirror/.code={%
|
| 14 |
+
\csname if#1\endcsname
|
| 15 |
+
\def\tikz@dec@mirror{\pgftransformyscale{-1}}%
|
| 16 |
+
\else%
|
| 17 |
+
\let\tikz@dec@mirror=\relax%
|
| 18 |
+
\fi%
|
| 19 |
+
\tikz@dec@trans%
|
| 20 |
+
},
|
| 21 |
+
/pgf/decoration/mirror/.default=true,
|
| 22 |
+
/pgf/decoration/transform/.code={%
|
| 23 |
+
{%
|
| 24 |
+
\pgftransformreset%
|
| 25 |
+
\def\tikz@transform{}%
|
| 26 |
+
\pgfkeysalso{/tikz/.cd, #1}%
|
| 27 |
+
\expandafter\gdef\expandafter\tikz@g@temptransform\expandafter{\tikz@transform}%
|
| 28 |
+
}%
|
| 29 |
+
\let\tikz@dec@user@transform=\tikz@g@temptransform%
|
| 30 |
+
\tikz@dec@trans%
|
| 31 |
+
},%
|
| 32 |
+
/pgf/decoration/pre/.initial=lineto,
|
| 33 |
+
/pgf/decoration/post/.initial=lineto,
|
| 34 |
+
/pgf/decoration/pre length/.initial=0pt,
|
| 35 |
+
/pgf/decoration/post length/.initial=0pt,
|
| 36 |
+
}%
|
| 37 |
+
|
| 38 |
+
\let\tikz@decoration@name=\tikz@nonetext
|
| 39 |
+
|
| 40 |
+
\def\tikz@dec@trans{\pgfsetdecorationsegmenttransformation{\tikz@dec@user@transform\tikz@dec@mirror\tikz@dec@shift}}%
|
| 41 |
+
\let\tikz@dec@user@transform=\relax
|
| 42 |
+
\let\tikz@dec@shift=\relax
|
| 43 |
+
\let\tikz@dec@mirror=\relax
|
| 44 |
+
|
| 45 |
+
\pgfdeclaremetadecoration{tikz@internal}{pre}{%
|
| 46 |
+
\state{pre}[width=\pgfkeysvalueof{/pgf/decoration/pre length}, next state=main]
|
| 47 |
+
{
|
| 48 |
+
\tikz@dec@trans
|
| 49 |
+
\decoration{\pgfkeysvalueof{/pgf/decoration/pre}}
|
| 50 |
+
}%
|
| 51 |
+
\state{main}[width=\pgfmetadecoratedremainingdistance-\pgfkeysvalueof{/pgf/decoration/post length}, next state=final]
|
| 52 |
+
{
|
| 53 |
+
\tikz@dec@trans
|
| 54 |
+
\decoration{\tikz@decoration@name}
|
| 55 |
+
}%
|
| 56 |
+
\state{final}
|
| 57 |
+
{
|
| 58 |
+
\tikz@dec@trans
|
| 59 |
+
\decoration{\pgfkeysvalueof{/pgf/decoration/post}}
|
| 60 |
+
}%
|
| 61 |
+
}%
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
\newif\iftikz@metadecoration
|
| 65 |
+
|
| 66 |
+
\def\tikz@lib@dec@addtomacro#1#2{\expandafter\def\expandafter#1\expandafter{#1#2}}%
|
| 67 |
+
|
| 68 |
+
\def\tikz@lib@decoration[#1]{%
|
| 69 |
+
\begingroup%
|
| 70 |
+
\tikzset{#1}%
|
| 71 |
+
\ifx\tikz@decoration@name\tikz@nonetext%
|
| 72 |
+
\else
|
| 73 |
+
\expandafter\tikz@lib@do@dec%
|
| 74 |
+
\fi%
|
| 75 |
+
\pgfutil@ifnextchar\bgroup{%
|
| 76 |
+
\begingroup%
|
| 77 |
+
\tikz@auto@end@pathfalse%
|
| 78 |
+
\aftergroup\tikz@enddecoration%
|
| 79 |
+
\afterassignment\tikz@scan@next@command%
|
| 80 |
+
\let\tikz@lib@next%
|
| 81 |
+
}%
|
| 82 |
+
{%
|
| 83 |
+
\tikzerror{A decoration must begin with a brace}%
|
| 84 |
+
\tikz@enddecoration%
|
| 85 |
+
}%
|
| 86 |
+
}%
|
| 87 |
+
\def\tikz@lib@do@dec{%
|
| 88 |
+
\pgfifmetadecoration{\tikz@decoration@name}%
|
| 89 |
+
{\expandafter\pgfmetadecoration\expandafter{\tikz@decoration@name}}%
|
| 90 |
+
{%
|
| 91 |
+
\pgfifdecoration{\tikz@decoration@name}%
|
| 92 |
+
{\tikz@lib@dec@startdecoration}%
|
| 93 |
+
{\tikzerror{Unknown (meta-)decoration '\tikz@decoration@name'. Perhaps you
|
| 94 |
+
misspelled it?}}%
|
| 95 |
+
}%
|
| 96 |
+
\ifx\pgfdecorateexistingpath\pgfutil@empty%
|
| 97 |
+
\pgfpathmoveto{\pgfqpoint{\the\tikz@lastxsaved}{\the\tikz@lastysaved}}%
|
| 98 |
+
\fi%
|
| 99 |
+
}%
|
| 100 |
+
\newbox\tikz@lib@dec@box
|
| 101 |
+
\def\tikz@enddecoration{%
|
| 102 |
+
\global\setbox\tikz@lib@dec@box=\box\tikz@tempbox%
|
| 103 |
+
\ifx\tikz@decoration@name\tikz@nonetext%
|
| 104 |
+
\else
|
| 105 |
+
\iftikz@metadecoration%
|
| 106 |
+
\endpgfmetadecoration%
|
| 107 |
+
\else%
|
| 108 |
+
\tikz@lib@dec@stopdecoration%
|
| 109 |
+
\fi%
|
| 110 |
+
\fi
|
| 111 |
+
\endgroup%
|
| 112 |
+
\setbox\tikz@tempbox=\box\tikz@lib@dec@box%
|
| 113 |
+
}%
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
\def\tikz@lib@dec@decorate@path{%
|
| 117 |
+
\ifx\tikz@decoration@name\tikz@nonetext%
|
| 118 |
+
\else%
|
| 119 |
+
\pgfgetpath\tikz@lib@dec@currentpath%
|
| 120 |
+
\pgfsetpath\pgfutil@empty%
|
| 121 |
+
\pgfifmetadecoration{\tikz@decoration@name}
|
| 122 |
+
{
|
| 123 |
+
\expandafter\pgfmetadecoration\expandafter{\tikz@decoration@name}%
|
| 124 |
+
\pgfsetpath\tikz@lib@dec@currentpath%
|
| 125 |
+
\endpgfmetadecoration%
|
| 126 |
+
}
|
| 127 |
+
{
|
| 128 |
+
\pgfifdecoration{\tikz@decoration@name}
|
| 129 |
+
{
|
| 130 |
+
\tikz@lib@dec@startdecoration%
|
| 131 |
+
\pgfsetpath\tikz@lib@dec@currentpath%
|
| 132 |
+
\tikz@lib@dec@stopdecoration%
|
| 133 |
+
}
|
| 134 |
+
{
|
| 135 |
+
\tikzerror{Unknown (meta-)decoration '\tikz@decoration@name'. Perhaps
|
| 136 |
+
you misspelled it?}
|
| 137 |
+
}
|
| 138 |
+
}
|
| 139 |
+
\fi%
|
| 140 |
+
}%
|
| 141 |
+
|
| 142 |
+
\def\tikz@lib@dec@zpttext{0pt}%
|
| 143 |
+
|
| 144 |
+
\newif\iftikz@lib@dec@temp
|
| 145 |
+
\def\tikz@lib@dec@startdecoration{%
|
| 146 |
+
\pgfkeysgetvalue{/pgf/decoration/pre length}{\tikz@lib@pre}%
|
| 147 |
+
\pgfkeysgetvalue{/pgf/decoration/post length}{\tikz@lib@post}%
|
| 148 |
+
\tikz@lib@dec@tempfalse%
|
| 149 |
+
\ifx\tikz@lib@pre\tikz@lib@dec@zpttext%
|
| 150 |
+
\ifx\tikz@lib@post\tikz@lib@dec@zpttext%
|
| 151 |
+
\else%
|
| 152 |
+
\tikz@lib@dec@temptrue%
|
| 153 |
+
\fi%
|
| 154 |
+
\else%
|
| 155 |
+
\tikz@lib@dec@temptrue%
|
| 156 |
+
\fi%
|
| 157 |
+
\iftikz@lib@dec@temp%
|
| 158 |
+
\pgfmetadecoration{tikz@internal}%
|
| 159 |
+
\else%
|
| 160 |
+
\expandafter\pgfdecoration\expandafter{\expandafter{\tikz@decoration@name}{\pgfdecoratedpathlength}{}{}}%
|
| 161 |
+
\fi%
|
| 162 |
+
}%
|
| 163 |
+
|
| 164 |
+
\def\tikz@lib@dec@stopdecoration{%
|
| 165 |
+
\iftikz@lib@dec@temp%
|
| 166 |
+
\endpgfmetadecoration%
|
| 167 |
+
\else%
|
| 168 |
+
\endpgfdecoration%
|
| 169 |
+
\fi%
|
| 170 |
+
}%
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarydecorations.footprints.code.tex
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\usetikzlibrary{decorations}%
|
| 3 |
+
\usepgflibrary{decorations.footprints}%
|
| 4 |
+
|
| 5 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarydecorations.fractals.code.tex
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\usetikzlibrary{decorations}%
|
| 3 |
+
\usepgflibrary{decorations.fractals}%
|
| 4 |
+
|
| 5 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarydecorations.markings.code.tex
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\usetikzlibrary{decorations}%
|
| 3 |
+
\usepgflibrary{decorations.markings}%
|
| 4 |
+
|
| 5 |
+
\def\pgf@lib@dec@doarrowhead{%
|
| 6 |
+
\pgfutil@ifnextchar[{\tikz@lib@dec@doarrowhead}{\tikz@lib@dec@doarrowhead[]}%
|
| 7 |
+
}%
|
| 8 |
+
\def\tikz@lib@dec@doarrowhead[#1]#2{%
|
| 9 |
+
\scope[#1]
|
| 10 |
+
\pgf@lib@dec@arrowhead{1}{#2}%
|
| 11 |
+
\endscope
|
| 12 |
+
}%
|
| 13 |
+
\def\pgf@lib@dec@doarrowheadrev{%
|
| 14 |
+
\pgfutil@ifnextchar[{\tikz@lib@dec@doarrowheadrev}{\tikz@lib@dec@doarrowheadrev[]}%
|
| 15 |
+
}%
|
| 16 |
+
\def\tikz@lib@dec@doarrowheadrev[#1]#2{%
|
| 17 |
+
\scope[#1]
|
| 18 |
+
\pgf@lib@dec@arrowhead{-1}{#2}%
|
| 19 |
+
\endscope
|
| 20 |
+
}%
|
| 21 |
+
|
| 22 |
+
\endinput
|
preprints/Uniform-Stability-of-the-Spherical-Laughlin-Gap-October-5-2026/build/tools/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarydecorations.pathmorphing.code.tex
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
\usetikzlibrary{decorations}%
|
| 3 |
+
\usepgflibrary{decorations.pathmorphing}%
|
| 4 |
+
|
| 5 |
+
\endinput
|