| 1 |
% Copyright 2019 by Till Tantau |
| 2 |
% |
| 3 |
% This file may be distributed and/or modified |
| 4 |
% |
| 5 |
% 1. under the LaTeX Project Public License and/or |
| 6 |
% 2. under the GNU Free Documentation License. |
| 7 |
% |
| 8 |
% See the file doc/generic/pgf/licenses/LICENSE for more details. |
| 9 |
|
| 10 |
|
| 11 |
% pgf version is defined in \pgfversion in file |
| 12 |
% generic/pgf/utilities/pgfrcs.code.tex |
| 13 |
|
| 14 |
\def\xcolorversion{2.00} |
| 15 |
|
| 16 |
\usepackage[version=latest]{pgf} |
| 17 |
|
| 18 |
\usepackage{xkeyval,calc,listings,tikz,fp} |
| 19 |
|
| 20 |
\usepackage{imakeidx} |
| 21 |
\makeindex |
| 22 |
\usepackage{hyperref} |
| 23 |
\hypersetup{% |
| 24 |
colorlinks=false, % use true to enable colors below: |
| 25 |
linkcolor=blue,%red, |
| 26 |
filecolor=blue,%magenta, |
| 27 |
urlcolor=blue,%cyan, |
| 28 |
citecolor=blue, |
| 29 |
pdfborder=0 0 0, |
| 30 |
} |
| 31 |
|
| 32 |
% We need lots of libraries... |
| 33 |
\usetikzlibrary{ |
| 34 |
3d, |
| 35 |
arrows, |
| 36 |
arrows.spaced, |
| 37 |
arrows.meta, |
| 38 |
bending, |
| 39 |
babel, |
| 40 |
calc, |
| 41 |
fit, |
| 42 |
patterns, |
| 43 |
patterns.meta, |
| 44 |
plotmarks, |
| 45 |
shapes.geometric, |
| 46 |
shapes.misc, |
| 47 |
shapes.symbols, |
| 48 |
shapes.arrows, |
| 49 |
shapes.callouts, |
| 50 |
shapes.multipart, |
| 51 |
shapes.gates.logic.US, |
| 52 |
shapes.gates.logic.IEC, |
| 53 |
circuits.logic.US, |
| 54 |
circuits.logic.IEC, |
| 55 |
circuits.logic.CDH, |
| 56 |
circuits.ee.IEC, |
| 57 |
datavisualization, |
| 58 |
datavisualization.polar, |
| 59 |
datavisualization.formats.functions, |
| 60 |
er, |
| 61 |
automata, |
| 62 |
backgrounds, |
| 63 |
chains, |
| 64 |
topaths, |
| 65 |
trees, |
| 66 |
petri, |
| 67 |
mindmap, |
| 68 |
matrix, |
| 69 |
calendar, |
| 70 |
folding, |
| 71 |
fadings, |
| 72 |
shadings, |
| 73 |
spy, |
| 74 |
through, |
| 75 |
turtle, |
| 76 |
positioning, |
| 77 |
scopes, |
| 78 |
decorations.fractals, |
| 79 |
decorations.shapes, |
| 80 |
decorations.text, |
| 81 |
decorations.pathmorphing, |
| 82 |
decorations.pathreplacing, |
| 83 |
decorations.footprints, |
| 84 |
decorations.markings, |
| 85 |
shadows, |
| 86 |
lindenmayersystems, |
| 87 |
intersections, |
| 88 |
fixedpointarithmetic, |
| 89 |
fpu, |
| 90 |
svg.path, |
| 91 |
external, |
| 92 |
graphs, |
| 93 |
graphs.standard, |
| 94 |
quotes, |
| 95 |
math, |
| 96 |
angles, |
| 97 |
views, |
| 98 |
animations, |
| 99 |
rdf, |
| 100 |
perspective, |
| 101 |
} |
| 102 |
|
| 103 |
\usepackage{iftex} |
| 104 |
\newif\ifgdccodebasic |
| 105 |
\newif\ifgdccodeogdf |
| 106 |
|
| 107 |
\ifluatex |
| 108 |
|
| 109 |
\usetikzlibrary{graphdrawing} |
| 110 |
\usegdlibrary{trees,circular,layered,examples,force,phylogenetics,routing} |
| 111 |
|
| 112 |
% Test whether C code is available: |
| 113 |
\directlua{ |
| 114 |
if pcall(require,'pgf_gd_examples_c_SimpleDemoC') then |
| 115 |
tex.print('\string\\gdccodebasictrue') |
| 116 |
end |
| 117 |
} |
| 118 |
|
| 119 |
\ifgdccodebasic |
| 120 |
\usegdlibrary{pgf_gd_examples_c_SimpleDemoC,pgf_gd_examples_c_SimpleDemoCPlusPlus} |
| 121 |
|
| 122 |
% Test whether OGDF code is available: |
| 123 |
\directlua{ |
| 124 |
if pcall(require,'pgf_gd_ogdf_c_SimpleDemoOGDF') then |
| 125 |
tex.print('\string\\gdccodeogdftrue') |
| 126 |
end |
| 127 |
} |
| 128 |
|
| 129 |
\ifgdccodeogdf |
| 130 |
\usegdlibrary{pgf_gd_ogdf_c_SimpleDemoOGDF,ogdf} |
| 131 |
\fi |
| 132 |
|
| 133 |
\fi |
| 134 |
|
| 135 |
\fi |
| 136 |
|
| 137 |
\def\LuaTeX{Lua\TeX}% |
| 138 |
|
| 139 |
|
| 140 |
\newif\ifpgfmanualexternalize |
| 141 |
\pgfmanualexternalizefalse |
| 142 |
\ifpgfmanualexternalize |
| 143 |
\tikzexternalize[ |
| 144 |
mode=list only,export=true,% simply skips EVERY picture -> good for debugging the text. |
| 145 |
]{pgfmanual} |
| 146 |
|
| 147 |
\tikzifexternalizing{% |
| 148 |
\pgfkeys{/pdflinks/codeexample links=false}% |
| 149 |
}{}% |
| 150 |
\fi |
| 151 |
|
| 152 |
|
| 153 |
\usepackage[a4paper,left=2.25cm,right=2.25cm,top=2.5cm,bottom=2.5cm,nohead]{geometry} |
| 154 |
\usepackage{amsmath,amssymb} |
| 155 |
\usepackage{xxcolor} |
| 156 |
\usepackage{pifont} |
| 157 |
|
| 158 |
\ifluatex |
| 159 |
% \usepackage[no-math]{fontspec} |
| 160 |
% \usepackage{luatextra} |
| 161 |
|
| 162 |
% TT: I have commented luatextra since it loads fontspec, which |
| 163 |
% currently breaks "$\mathrm{\Omega}$" (nothing is |
| 164 |
% shown). Also, fontspec loads so much stuff, I'm not really sure |
| 165 |
% any of it is needed... |
| 166 |
|
| 167 |
% \filedescription is defined in expl3, required by fontspec, |
| 168 |
% required by luatextra. Needs to be \relaxed since |
| 169 |
% pgfmanual-en-macros.tex defines an environment named filedescription |
| 170 |
\let\filedescription\relax |
| 171 |
\else |
| 172 |
\usepackage[T1]{fontenc} |
| 173 |
\fi |
| 174 |
|
| 175 |
% Promote `Missing character` reports to full errors |
| 176 |
% require texlive 2021 or above |
| 177 |
\tracinglostchars=3 |
| 178 |
|
| 179 |
\graphicspath{{images/}} |
| 180 |
\input{pgfmanual-en-macros} |
| 181 |
|
| 182 |
\usepackage{todonotes} |
| 183 |
\newcommand\todosp[2][]{% % Stefan Pinnow |
| 184 |
\todo[ |
| 185 |
disable, |
| 186 |
color=blue!40, |
| 187 |
#1]{#2} |
| 188 |
} |
| 189 |
|
| 190 |
\makeatletter |
| 191 |
\renewcommand*\l@section[2]{% |
| 192 |
\ifnum \c@tocdepth >\z@ |
| 193 |
\addpenalty\@secpenalty |
| 194 |
\addvspace{1.0em \@plus\p@}% |
| 195 |
\setlength\@tempdima{2.5em}% |
| 196 |
\begingroup |
| 197 |
\parindent \z@ \rightskip \@pnumwidth |
| 198 |
\parfillskip -\@pnumwidth |
| 199 |
\leavevmode \bfseries |
| 200 |
\advance\leftskip\@tempdima |
| 201 |
\hskip -\leftskip |
| 202 |
#1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par |
| 203 |
\endgroup |
| 204 |
\fi} |
| 205 |
\renewcommand*\l@subsection{\@dottedtocline{2}{2.5em}{3.3em}} |
| 206 |
\renewcommand*\l@subsubsection{\@dottedtocline{3}{5.8em}{4.2em}} |
| 207 |
\def\@pnumwidth{2.2em} |
| 208 |
\makeatother |
| 209 |
|
| 210 |
%\includeonly{pgfmanual-en-library-profiler} |
| 211 |
|
| 212 |
% Global styles: |
| 213 |
\tikzset{ |
| 214 |
every plot/.style={prefix=plots/pgf-}, |
| 215 |
shape example/.style={ |
| 216 |
color=black!30, |
| 217 |
draw, |
| 218 |
fill=yellow!30, |
| 219 |
line width=.5cm, |
| 220 |
inner xsep=2.5cm, |
| 221 |
inner ysep=0.5cm} |
| 222 |
} |
| 223 |
|
| 224 |
\index{Options for graphics|see{Graphic options and styles}} |
| 225 |
\index{Styles for graphics|see{Graphic options and styles}} |
| 226 |
\index{Options for packages|see{Package options}} |
| 227 |
\index{Handlers for keys|see{Key handlers}} |
| 228 |
\index{File|see{Packages and files}} |
| 229 |
\index{Layout|see{Page layout}} |
| 230 |
\index{Node|see{Predefined node}} |
| 231 |
\index{Data formats|see{Formats}} |
| 232 |
|
| 233 |
|
| 234 |
% Animations: |
| 235 |
|
| 236 |
\tikzset{make snapshot if necessary} |
| 237 |
|
| 238 |
% Detect changed labels |
| 239 |
% by David Carlisle https://tex.stackexchange.com/a/169245 |
| 240 |
\makeatletter |
| 241 |
\def\@testdef#1#2#3{% |
| 242 |
\def\reserved@a{#3}% |
| 243 |
\expandafter\ifx\csname #1@#2\endcsname\reserved@a\else |
| 244 |
\typeout{^^JLabel `#2' changed:^^J\meaning\reserved@a^^J\expandafter\meaning\csname #1@#2\endcsname^^J}% |
| 245 |
\@tempswatrue |
| 246 |
\fi} |
| 247 |
\makeatother |
| 248 |
|
| 249 |
%% ----------------------------------------------------------------------------- |
| 250 |
%\includeonly{ |
| 251 |
%% pgfmanual-en-introduction, |
| 252 |
%% pgfmanual-en-tutorial, |
| 253 |
%% pgfmanual-en-tutorial-nodes, |
| 254 |
%% pgfmanual-en-tutorial-Euclid, |
| 255 |
%% pgfmanual-en-tutorial-chains, |
| 256 |
%% pgfmanual-en-tutorial-map, |
| 257 |
%% pgfmanual-en-guidelines, |
| 258 |
%% pgfmanual-en-installation, |
| 259 |
%% pgfmanual-en-license, |
| 260 |
%% pgfmanual-en-drivers, |
| 261 |
%% pgfmanual-en-tikz-design, |
| 262 |
%% pgfmanual-en-tikz-scopes, |
| 263 |
%% pgfmanual-en-tikz-coordinates, |
| 264 |
%% pgfmanual-en-tikz-paths, |
| 265 |
%% pgfmanual-en-tikz-actions, |
| 266 |
%% pgfmanual-en-tikz-arrows, |
| 267 |
%% pgfmanual-en-tikz-shapes, |
| 268 |
%% pgfmanual-en-tikz-pics, |
| 269 |
%% pgfmanual-en-tikz-graphs, |
| 270 |
%% pgfmanual-en-tikz-matrices, |
| 271 |
%% pgfmanual-en-tikz-trees, |
| 272 |
%% pgfmanual-en-tikz-plots, |
| 273 |
%% pgfmanual-en-tikz-transparency, |
| 274 |
%% pgfmanual-en-tikz-decorations, |
| 275 |
%% pgfmanual-en-tikz-transformations, |
| 276 |
%% pgfmanual-en-tikz-animations, |
| 277 |
%% pgfmanual-en-gd-overview, |
| 278 |
%% pgfmanual-en-gd-usage-tikz, |
| 279 |
%% pgfmanual-en-gd-usage-pgf, |
| 280 |
%% pgfmanual-en-gd-trees, |
| 281 |
%% pgfmanual-en-gd-layered, |
| 282 |
%% pgfmanual-en-gd-force, |
| 283 |
%% pgfmanual-en-gd-circular, |
| 284 |
%% pgfmanual-en-gd-phylogenetics, |
| 285 |
%% pgfmanual-en-gd-edge-routing, |
| 286 |
%%% pgfmanual-en-gd-ogdf, |
| 287 |
%% pgfmanual-en-gd-algorithm-layer, |
| 288 |
%% pgfmanual-en-gd-algorithms-in-c, |
| 289 |
%% pgfmanual-en-gd-display-layer, |
| 290 |
%% pgfmanual-en-gd-binding-layer, |
| 291 |
%% pgfmanual-en-library-angles, |
| 292 |
%% pgfmanual-en-library-arrows, |
| 293 |
%% pgfmanual-en-library-automata, |
| 294 |
%% pgfmanual-en-library-babel, |
| 295 |
%% pgfmanual-en-library-backgrounds, |
| 296 |
%% pgfmanual-en-library-calc, |
| 297 |
%% pgfmanual-en-library-calendar, |
| 298 |
%% pgfmanual-en-library-chains, |
| 299 |
%% pgfmanual-en-library-circuits, |
| 300 |
%% pgfmanual-en-library-decorations, |
| 301 |
%% pgfmanual-en-library-er, |
| 302 |
%% pgfmanual-en-library-external, |
| 303 |
%% pgfmanual-en-library-fadings, |
| 304 |
%% pgfmanual-en-library-fit, |
| 305 |
%% pgfmanual-en-library-fixedpoint, |
| 306 |
%% pgfmanual-en-library-fpu, |
| 307 |
%% pgfmanual-en-library-lsystems, |
| 308 |
%% pgfmanual-en-library-math, |
| 309 |
%% pgfmanual-en-library-matrices, |
| 310 |
%% pgfmanual-en-library-mindmaps, |
| 311 |
%% pgfmanual-en-library-folding, |
| 312 |
%% pgfmanual-en-library-patterns, |
| 313 |
%% pgfmanual-en-library-petri, |
| 314 |
%% pgfmanual-en-library-plot-handlers, |
| 315 |
%% pgfmanual-en-library-plot-marks, |
| 316 |
%% pgfmanual-en-library-profiler, |
| 317 |
%% pgfmanual-en-library-rdf, |
| 318 |
%% pgfmanual-en-library-shadings, |
| 319 |
%% pgfmanual-en-library-shadows, |
| 320 |
%% pgfmanual-en-library-shapes, |
| 321 |
%% pgfmanual-en-library-spy, |
| 322 |
%% pgfmanual-en-library-svg-path, |
| 323 |
%% pgfmanual-en-library-edges, |
| 324 |
%% pgfmanual-en-library-through, |
| 325 |
%% pgfmanual-en-library-trees, |
| 326 |
%% pgfmanual-en-library-turtle, |
| 327 |
%% pgfmanual-en-library-views, |
| 328 |
%% pgfmanual-en-dv-introduction, |
| 329 |
%% pgfmanual-en-dv-main, |
| 330 |
%% pgfmanual-en-dv-formats, |
| 331 |
%% pgfmanual-en-dv-axes, |
| 332 |
%% pgfmanual-en-dv-visualizers, |
| 333 |
%% pgfmanual-en-dv-stylesheets, |
| 334 |
%% pgfmanual-en-dv-polar, |
| 335 |
%% pgfmanual-en-dv-backend, |
| 336 |
%% pgfmanual-en-pgfkeys, |
| 337 |
%% pgfmanual-en-pgffor, |
| 338 |
%% pgfmanual-en-pgfcalendar, |
| 339 |
%% pgfmanual-en-pages, |
| 340 |
%% pgfmanual-en-xxcolor, |
| 341 |
%% pgfmanual-en-module-parser, |
| 342 |
%% pgfmanual-en-math-design, |
| 343 |
%% pgfmanual-en-math-parsing, |
| 344 |
%% pgfmanual-en-math-commands, |
| 345 |
%% pgfmanual-en-math-algorithms, |
| 346 |
%% pgfmanual-en-math-numberprinting, |
| 347 |
%% pgfmanual-en-oo, |
| 348 |
%% pgfmanual-en-base-design, |
| 349 |
%% pgfmanual-en-base-scopes, |
| 350 |
%% pgfmanual-en-base-points, |
| 351 |
%% pgfmanual-en-base-paths, |
| 352 |
%% pgfmanual-en-base-decorations, |
| 353 |
%% pgfmanual-en-base-actions, |
| 354 |
%% pgfmanual-en-base-arrows, |
| 355 |
%% pgfmanual-en-base-nodes, |
| 356 |
%% pgfmanual-en-base-matrices, |
| 357 |
%% pgfmanual-en-base-transformations, |
| 358 |
%% pgfmanual-en-base-patterns, |
| 359 |
%% pgfmanual-en-base-images, |
| 360 |
%% pgfmanual-en-base-external, |
| 361 |
%% pgfmanual-en-base-plots, |
| 362 |
%% pgfmanual-en-base-layers, |
| 363 |
%% pgfmanual-en-base-shadings, |
| 364 |
%% pgfmanual-en-base-transparency, |
| 365 |
%% pgfmanual-en-base-animations, |
| 366 |
%% pgfmanual-en-base-internalregisters, |
| 367 |
%% pgfmanual-en-base-quick, |
| 368 |
%% pgfmanual-en-pgfsys-overview, |
| 369 |
%% pgfmanual-en-pgfsys-commands, |
| 370 |
%% pgfmanual-en-pgfsys-paths, |
| 371 |
%% pgfmanual-en-pgfsys-protocol, |
| 372 |
%% pgfmanual-en-pgfsys-animations, |
| 373 |
%} |
| 374 |
%% ----------------------------------------------------------------------------- |
| 375 |
|
| 376 |
|
| 377 |
%%% Local Variables: |
| 378 |
%%% mode: latex |
| 379 |
%%% TeX-master: "pgfmanual" |
| 380 |
%%% End: |