| 1 |
% !TeX spellcheck = en_US |
| 2 |
% !TeX root = tikz-ext-manual.tex |
| 3 |
% Copyright 2022 by Qrrbrbirlbel |
| 4 |
% |
| 5 |
% This file may be distributed and/or modified |
| 6 |
% |
| 7 |
% 1. under the LaTeX Project Public License and/or |
| 8 |
% 2. under the GNU Free Documentation License. |
| 9 |
% |
| 10 |
\newcommand*\tikzextname{Ti\textit kZ-Extensions} |
| 11 |
%\includeonly{ |
| 12 |
% tikz-ext-manual-en-intro, |
| 13 |
% tikz-ext-manual-en-library-arrows-plus, |
| 14 |
% tikz-ext-manual-en-library-beamer, |
| 15 |
% tikz-ext-manual-en-library-calendar-plus, |
| 16 |
% tikz-ext-manual-en-library-layers, |
| 17 |
% tikz-ext-manual-en-library-node-families, |
| 18 |
% tikz-ext-manual-en-library-nodes, |
| 19 |
% tikz-ext-manual-en-library-paths.arcto, |
| 20 |
% tikz-ext-manual-en-library-paths.ortho, |
| 21 |
% tikz-ext-manual-en-library-paths.timer, |
| 22 |
% tikz-ext-manual-en-library-patterns.images, |
| 23 |
% tikz-ext-manual-en-library-positioning-plus, |
| 24 |
% tikz-ext-manual-en-library-scalepicture, |
| 25 |
% tikz-ext-manual-en-library-topaths.arcthrough, |
| 26 |
% tikz-ext-manual-en-library-topaths.autobend, |
| 27 |
% tikz-ext-manual-en-library-trans, |
| 28 |
% tikz-ext-manual-en-pgf-arrows, |
| 29 |
% tikz-ext-manual-en-pgf-trans, |
| 30 |
% tikz-ext-manual-en-pgf-shapes-circlearrow, |
| 31 |
% tikz-ext-manual-en-pgf-shapes-circlecrosssplit, |
| 32 |
% tikz-ext-manual-en-pgf-shapes-heatmark, |
| 33 |
% tikz-ext-manual-en-pgf-shapes-rectround, |
| 34 |
% tikz-ext-manual-en-pgf-shapes-superellipse, |
| 35 |
% tikz-ext-manual-en-pgf-shapes-uncentered, |
| 36 |
% tikz-ext-manual-en-calendar, |
| 37 |
% tikz-ext-manual-en-library-pgffor, |
| 38 |
% tikz-ext-manual-en-library-misc, |
| 39 |
%} |
| 40 |
\begin{document} |
| 41 |
{\colorlet{blue}{black}% links shall be black |
| 42 |
\title{\bfseries The \tikzextname\space Package\\ |
| 43 |
\large Manual for version \tikzextversion\space (\tikzextversionnumber)\\[1mm] |
| 44 |
\large\href{https://github.com/Qrrbrbirlbel/tikz-extensions} |
| 45 |
{\texttt{https://github.com/Qrrbrbirlbel/tikz-extensions}} |
| 46 |
\author{Qrrbrbirlbel}} |
| 47 |
|
| 48 |
\maketitle |
| 49 |
\label{table-of-contents} |
| 50 |
|
| 51 |
\tableofcontents |
| 52 |
} |
| 53 |
\include{tikz-ext-manual-en-intro} |
| 54 |
% |
| 55 |
\part{\tikzname\space Libraries} |
| 56 |
\label{part:tikz} |
| 57 |
|
| 58 |
These libraries only work with \tikzname. |
| 59 |
\vspace{1em} |
| 60 |
\begin{center}\tikzsetnextfilename{main-cover} |
| 61 |
\begin{tikzpicture}[ |
| 62 |
very thick, |
| 63 |
scale=2.7, |
| 64 |
grow cyclic, |
| 65 |
level distance=1cm, |
| 66 |
level/.style={ |
| 67 |
level distance/.expanded=\ifnum#1>1 \tikzleveldistance/1.5\else\tikzleveldistance\fi, |
| 68 |
nodes/.expanded={\ifodd#1 fill\else fill=none\fi} |
| 69 |
}, |
| 70 |
level 1/.style={sibling angle=120}, |
| 71 |
level 2/.style={sibling angle=90}, |
| 72 |
level 3/.style={sibling angle=90}, |
| 73 |
level 4/.style={sibling angle=45}, |
| 74 |
nodes={circle,draw,inner sep=+0pt, minimum size=+5pt}, |
| 75 |
] |
| 76 |
|
| 77 |
\path[rotate=30] |
| 78 |
node {} |
| 79 |
child foreach \cntI in {1,...,3} { |
| 80 |
node {} |
| 81 |
child foreach \cntII in {1,...,2} { |
| 82 |
node {} |
| 83 |
child foreach \cntIII in {1,...,2} { |
| 84 |
node {} |
| 85 |
child foreach \cntIV in {1,...,2} { |
| 86 |
node {} |
| 87 |
child foreach \cntV in {1,...,2} {} |
| 88 |
} |
| 89 |
} |
| 90 |
} |
| 91 |
}; |
| 92 |
\end{tikzpicture} |
| 93 |
\end{center} |
| 94 |
|
| 95 |
\tikzsetfigurename{arrows-plus} \include{tikz-ext-manual-en-library-arrows-plus} |
| 96 |
\include{tikz-ext-manual-en-library-beamer} |
| 97 |
\tikzsetfigurename{calendar-plus} \include{tikz-ext-manual-en-library-calendar-plus} |
| 98 |
\tikzsetfigurename{layers} \include{tikz-ext-manual-en-library-layers} |
| 99 |
\tikzsetfigurename{node-families} \include{tikz-ext-manual-en-library-node-families} |
| 100 |
\tikzsetfigurename{nodes} \include{tikz-ext-manual-en-library-nodes} |
| 101 |
\tikzsetfigurename{paths.arcto} \include{tikz-ext-manual-en-library-paths.arcto} |
| 102 |
\tikzsetfigurename{paths.ortho} \include{tikz-ext-manual-en-library-paths.ortho} |
| 103 |
\tikzsetfigurename{paths.timer} \include{tikz-ext-manual-en-library-paths.timer} |
| 104 |
\tikzsetfigurename{patterns.images} \include{tikz-ext-manual-en-library-patterns.images} |
| 105 |
\tikzsetfigurename{positioning-plus} |
| 106 |
\include{tikz-ext-manual-en-library-positioning-plus} |
| 107 |
\tikzsetfigurename{scalepicture} |
| 108 |
\include{tikz-ext-manual-en-library-scalepicture} |
| 109 |
\tikzsetfigurename{topaths} |
| 110 |
\include{tikz-ext-manual-en-library-topaths.arcthrough} |
| 111 |
\include{tikz-ext-manual-en-library-topaths.autobend} |
| 112 |
\tikzsetfigurename{trans} |
| 113 |
\include{tikz-ext-manual-en-library-trans} |
| 114 |
% |
| 115 |
\part{\pgfname\space Libraries} |
| 116 |
\label{part:pgf} |
| 117 |
These libraries (should) work with both \pgfname\space and \tikzname. |
| 118 |
|
| 119 |
\begin{center}\tikzsetnextfilename{main-graph} |
| 120 |
\begin{codeexample}[width=10cm,preamble=% |
| 121 |
\usetikzlibrary{graphs,graphdrawing,ext.misc} \usegdlibrary{force}] |
| 122 |
\tikzset{ |
| 123 |
mynode/.style={ |
| 124 |
circle, minimum size=10mm, draw, densely dashdotted, thick, |
| 125 |
decide color/.expand once=#1}, |
| 126 |
decide color/.style 2 args={ |
| 127 |
/utils/ext/if=c#1 |
| 128 |
{/utils/ext/ifnum={#2<5}{bluelight}{bluedark}} |
| 129 |
{/utils/ext/ifnum={#2<8}{light}{dark}}}, |
| 130 |
light/.style={fill=gray!20}, bluelight/.style={fill=blue!10}, |
| 131 |
dark/.style ={fill=gray!60}, bluedark/.style ={fill=blue!30}} |
| 132 |
\tikz\graph[ |
| 133 |
spring electrical layout, vertical=c2 to p13, |
| 134 |
node distance=1.5cm, typeset=$n_{\tikzgraphnodetext}$, |
| 135 |
nodes={mynode=\tikzgraphnodetext}] { |
| 136 |
% outer ring |
| 137 |
c2 -- {p1, p11, p6}; |
| 138 |
p1 -- {p8, c6, p11}; |
| 139 |
p8 -- {p3, p10, c6}; |
| 140 |
p3 -- {p13, p15, p10}; |
| 141 |
p13 -- {p15, c7}; |
| 142 |
c7 -- {c3, c4, p15}; |
| 143 |
c3 -- {p14, c4}; |
| 144 |
p14 -- {p7, c4}; |
| 145 |
p7 -- {p9, p2, c4}; |
| 146 |
p9 -- {c5, p12, p2}; |
| 147 |
c5 -- {c1, p4, p12}; |
| 148 |
c1 -- {p6, p4}; |
| 149 |
p6 -- {p11, p4}; |
| 150 |
% inner ring |
| 151 |
p11 -- {c6, p12, p4}; |
| 152 |
p5 -- {c6 -- {p10, p12}, p10 -- p15, p15 -- c4, c4 -- p2, p2 -- p12, p12 -- p4}; |
| 153 |
}; |
| 154 |
\end{codeexample} |
| 155 |
\end{center} |
| 156 |
|
| 157 |
\tikzsetfigurename{PGF.arrows}\include{tikz-ext-manual-en-pgf-arrows} |
| 158 |
\tikzsetfigurename{PGF.trans}\include{tikz-ext-manual-en-pgf-trans} |
| 159 |
\tikzsetfigurename{PGF.shapes}% |
| 160 |
\include{tikz-ext-manual-en-pgf-shapes-circlearrow} |
| 161 |
\include{tikz-ext-manual-en-pgf-shapes-circlecrosssplit} |
| 162 |
\include{tikz-ext-manual-en-pgf-shapes-heatmark} |
| 163 |
\include{tikz-ext-manual-en-pgf-shapes-rectround} |
| 164 |
\include{tikz-ext-manual-en-pgf-shapes-superellipse} |
| 165 |
\include{tikz-ext-manual-en-pgf-shapes-uncentered} |
| 166 |
|
| 167 |
\part{Utilities} |
| 168 |
|
| 169 |
\label{part:misc} |
| 170 |
\vfill\tikzsetnextfilename{main-misc} |
| 171 |
\begin{codeexample}[width=6cm, preamble=\usetikzlibrary{ext.misc}] |
| 172 |
\begin{tikzpicture}[ |
| 173 |
declare function={bigR(\n)=smallR+.05*\n;}, |
| 174 |
ext/declare constant={smallR=1; segments=20;}, |
| 175 |
ext/full arc=segments] |
| 176 |
\foreach \iN[evaluate={\endRadius=bigR(\iN+1);}, ext/use int=0 to segments-1] |
| 177 |
\filldraw[fill=gray!50] (\iN R:\endRadius) |
| 178 |
arc [radius=\endRadius, start angle=\iN R, delta angle=+1R] -- (\iN R+1R:smallR) |
| 179 |
arc [radius=smallR, end angle=\iN R, delta angle=-1R] -- cycle; |
| 180 |
|
| 181 |
\node {$\phi^2$}; |
| 182 |
\node at (north west:{sqrt 2 * bigR(segments/2)}) {$\{\Omega\}_{i=1}^n$}; |
| 183 |
\node[rotate=-.5R, right] at (-.5R: bigR segments) {$\partial \varphi$}; |
| 184 |
|
| 185 |
\tikzset{yshift=-5cm, ext/declare constant={segments=25;}, ext/full arc=segments} |
| 186 |
\filldraw[fill=gray!50] (right:smallR) |
| 187 |
\foreach \iN[evaluate={\endRadius=bigR(\iN+1);}, ext/use int=0 to segments-1] { |
| 188 |
-- (\iN R:\endRadius) arc[radius=\endRadius, start angle=\iN R, delta angle=1R]} |
| 189 |
-- (right:smallR) arc[radius=smallR, start angle=0, delta angle=-360]; |
| 190 |
|
| 191 |
\node {$\phi^2$}; |
| 192 |
\node at (north west:{sqrt 2 * bigR(segments/2)}) {$\{\Omega\}_{i=1}^n$}; |
| 193 |
\node[rotate=-.5R, right] at (-.5R: bigR segments) {$\partial \varphi$}; |
| 194 |
\end{tikzpicture} |
| 195 |
\end{codeexample} |
| 196 |
\vfill |
| 197 |
|
| 198 |
\tikzsetfigurename{misc.calendar}\include{tikz-ext-manual-en-calendar} |
| 199 |
\tikzsetfigurename{misc.pgffor}\include{tikz-ext-manual-en-library-pgffor} |
| 200 |
\tikzsetfigurename{misc.misc}\include{tikz-ext-manual-en-library-misc} |
| 201 |
|
| 202 |
%% END |
| 203 |
\newcommand*{\addPackage}[1]{Added package \texttt{#1-ext}.} |
| 204 |
\newcommand*{\addTikz}[1]{Added \tikzname\space library \texttt{ext.#1}.} |
| 205 |
\newcommand*{\addPGF}[1]{Added \pgfname\space library \texttt{ext.#1}.} |
| 206 |
\newcommand*{\addPGFkeys}[1]{Added \pgfname keys library \texttt{ext.#1}.} |
| 207 |
\newcommand*{\addShape}[2][]{Added shape \texttt{\ifx\\#1\\#2\else#1\fi}\\(\pgfname\space library \texttt{ext.shapes.#2}).} |
| 208 |
\part{Changelog, Index \& References} |
| 209 |
\section*{Changelog}\addcontentsline{toc}{section}{Changelog} |
| 210 |
\begin{multicols}{2}\raggedright |
| 211 |
\noindent |
| 212 |
Version \tikzextversion\ (\the\year-\ifnum\month<10 0\fi\the\month-\ifnum\day<10 0\fi\the\day) |
| 213 |
\begin{itemize} |
| 214 |
\item Bugfix to and slight refactoring of |ext.paths.ortho|. |
| 215 |
\item Bugfix to |pgffor-ext|/|ext.misc|. |
| 216 |
\item Added better support for |graphs| library for |ext.beamer|. |
| 217 |
\end{itemize} |
| 218 |
Version 0.6.1 (2025-04-12) |
| 219 |
\begin{itemize} |
| 220 |
\item \addTikz{beamer} |
| 221 |
\item Added new tips |ext_Double Cap|, |ext_Double Stealth| and |ext_Double Triange|. |
| 222 |
\item Bugfix to |ext.arrows-plus|. \cite{GH18} |
| 223 |
\end{itemize} |
| 224 |
Version 0.6 (2025-03-18) |
| 225 |
\begin{itemize} |
| 226 |
\item Added \texttt{\textbackslash tikzextset}, |
| 227 |
\texttt{\textbackslash tikzextversion} and |
| 228 |
\texttt{\textbackslash tikzextversionnumber} |
| 229 |
\item Added six new |auto| placement mechanisms: |
| 230 |
|ext/above|, |ext/below|, |ext/west|, |ext/east|, |ext/north| and |ext/south|. |
| 231 |
\item Added |ext/auto offset| for |auto| placement. |
| 232 |
\item Added |ext/precise auto angle|. |
| 233 |
\item \addTikz{arrows-plus} |
| 234 |
\item \addTikz{topaths.autobend} |
| 235 |
\item Made |ext.node-families| and |ext.scalepicture| memoizable. |
| 236 |
\end{itemize} |
| 237 |
Version 0.5.1 (2023-04-02) |
| 238 |
\begin{itemize} |
| 239 |
\item \addPGF{arrows} |
| 240 |
\item Bugfix to |ext.pgfkeys-plus|. \cite{GH6} |
| 241 |
\end{itemize} |
| 242 |
Version 0.5 (2023-03-17) |
| 243 |
\begin{itemize} |
| 244 |
\item \addPackage{pgffor} |
| 245 |
\item \addTikz{nodes} |
| 246 |
\item \addTikz{layers} |
| 247 |
\item Bugfixes to |ext.calendar-plus|. |
| 248 |
\item Allow the original |rectangle| timer with |ext.paths.timer|. |
| 249 |
\end{itemize} |
| 250 |
Version 0.4.2 (2022-10-30) |
| 251 |
\begin{itemize} |
| 252 |
\item \addTikz{scalepicture} |
| 253 |
\item Bugfixes to |shapes.uncenteredrectangle|, |paths.ortho|, |positioning-plus| and |pgfcalender-ext|. |
| 254 |
\end{itemize} |
| 255 |
Version 0.4.1 (2022-10-23) |
| 256 |
\begin{itemize} |
| 257 |
\item Cleaned up directory structure of documentary. |
| 258 |
\item \addPGFkeys{pgfkeys-plus} |
| 259 |
\item \addShape[uncentered rectangle]{uncenteredrectangle} |
| 260 |
\item Fixed |ext.paths.arcto| -- again \cite{GH2}. |
| 261 |
\end{itemize} |
| 262 |
Version 0.4 (2022-10-10) |
| 263 |
\begin{itemize} |
| 264 |
\item CTAN version of 0.3.1 |
| 265 |
\end{itemize} |
| 266 |
Version 0.3.1 (2022-10-09) |
| 267 |
\begin{itemize} |
| 268 |
\item Fixed |ext.paths.ortho| keys |only vertical first| and |only horizontal first|. |
| 269 |
\item Moved all (except the |to path|s) to namespace |/tikz/ortho|. |
| 270 |
|/tikz/hvvh| and |/tikz/udlr| are considered deprecated. |
| 271 |
\item Fixed |\pgfcalendarjulianyeartoweek|. |
| 272 |
\item Added more calendar tests. |
| 273 |
\item Added directory structure. |
| 274 |
\end{itemize} |
| 275 |
Version 0.3 (2022-09-24) |
| 276 |
\begin{itemize} |
| 277 |
\item \addShape[circle arrow]{circlearrow} |
| 278 |
\item \addShape[circle cross split]{circlecrosssplit} |
| 279 |
\item \addShape{heatmark} |
| 280 |
\item \addShape[rectangle with rounded corners]{rectangleroundedcorners} |
| 281 |
\item \addShape{superellipse} |
| 282 |
\item \addTikz{node-families.shapes.geometric} |
| 283 |
\item Fixed |ext.node-families|' key |size|. |
| 284 |
\item Renamed internal macros to use custom namespace starting with |\tikzext@|. |
| 285 |
\item Added some references. |
| 286 |
\end{itemize} |
| 287 |
Version 0.2 (2022-08-21) |
| 288 |
\begin{itemize} |
| 289 |
\item \addTikz{positioning-plus} |
| 290 |
\item \addTikz{node-families} |
| 291 |
\end{itemize} |
| 292 |
Version 0.1 (2022-08-16) |
| 293 |
\begin{itemize} |
| 294 |
\item \addTikz{calendar-plus} |
| 295 |
\item \addTikz{misc} |
| 296 |
\item \addTikz{paths.arcto} |
| 297 |
\item \addTikz{paths.ortho} |
| 298 |
\item \addTikz{paths.timer} |
| 299 |
\item \addTikz{patterns.images} |
| 300 |
\item \addTikz{topaths.arcthrough} |
| 301 |
\item \addTikz{transformations.mirror} |
| 302 |
\item \addPGF{transformations.mirror} |
| 303 |
\end{itemize} |
| 304 |
\end{multicols} |
| 305 |
\printindex |
| 306 |
|
| 307 |
\makeatletter |
| 308 |
\def\url#1{% |
| 309 |
\in@{/16595}{#1}% |
| 310 |
\ifin@ |
| 311 |
\hyper@linkurl{\expandafter\Hurl\expandafter{\strip@url#1\relax}}{#1}% |
| 312 |
\else |
| 313 |
\hyper@linkurl{\Hurl{#1}}{#1}% |
| 314 |
\fi |
| 315 |
} |
| 316 |
\def\strip@url#1/16595\relax{#1} |
| 317 |
\makeatother |
| 318 |
\printbibliography[heading=bibintoc] |
| 319 |
%\typeout{Examples: \the\codeexamplecount}% |
| 320 |
\end{document} |