| 1 |
%% |
| 2 |
%% This is file `tikzlibrarypenrose.code.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% tilings_code.dtx (with options: `penrosedep') |
| 8 |
%% ---------------------------------------------------------------- |
| 9 |
%% tilings --- TikZ library for producing tilings |
| 10 |
%% E-mail: [email protected] |
| 11 |
%% Released under the LaTeX Project Public License v1.3c or later |
| 12 |
%% See http://www.latex-project.org/lppl.txt |
| 13 |
%% ---------------------------------------------------------------- |
| 14 |
%% |
| 15 |
\ProvidesFile {tikzlibrarypenrose.code.tex} |
| 16 |
[2023/06/01 v2.0 TikZ pics for Penrose tiles] |
| 17 |
\usetikzlibrary{tilings.penrose} |
| 18 |
\ExplSyntaxOn |
| 19 |
\NewDocumentCommand \SetPenrosePath { m } |
| 20 |
{ |
| 21 |
\__tilings_set_tiling_path:n {#1} |
| 22 |
} |
| 23 |
\NewDocumentCommand \BakePenroseTile {m} |
| 24 |
{ |
| 25 |
\__tilings_bake_tile:n {#1} |
| 26 |
} |
| 27 |
\NewDocumentCommand \MakePenroseTile {m} |
| 28 |
{ |
| 29 |
\__tilings_bake_tile:n {#1} |
| 30 |
} |
| 31 |
\NewDocumentCommand \UsePenroseTile {O{} m} |
| 32 |
{ |
| 33 |
\__tilings_use_tile:nn {#1}{#2} |
| 34 |
} |
| 35 |
\NewDocumentCommand \PenroseDecomposition { O{} m m m } |
| 36 |
{ |
| 37 |
\__tilings_tiling_decomposition:nnnn {#1}{#2}{#3}{#4} |
| 38 |
} |
| 39 |
\ExplSyntaxOff |
| 40 |
\tikzset{ |
| 41 |
save Penrose path/.forward to=/tikz/save tiling path, |
| 42 |
clone Penrose side path/.forward to=/tikz/clone tiling side path, |
| 43 |
spath/prefix/Penrose side/.forward to=/tikz/spath/prefix/tiling side, |
| 44 |
spath/suffix/Penrose side/.forward to=/tikz/spath/suffix/tiling side, |
| 45 |
clone Penrose tile path/.forward to=/tikz/clone tiling tile path, |
| 46 |
spath/prefix/Penrose tile/.forward to=/tikz/spath/prefix/tiling tile, |
| 47 |
spath/suffix/Penrose tile/.forward to=/tikz/spath/suffix/tiling tile, |
| 48 |
Penrose step/.forward to=/tikz/tiling step, |
| 49 |
every tile/.append style={ |
| 50 |
every Penrose tile/.try |
| 51 |
}, |
| 52 |
every tile clip/.append style={ |
| 53 |
every Penrose tile clip/.try |
| 54 |
}, |
| 55 |
every tile pic/.append style={ |
| 56 |
every Penrose pic/.try |
| 57 |
}, |
| 58 |
tile/.append style={ |
| 59 |
Penrose tile #1/.try, |
| 60 |
Penrose tile/.try=#1 |
| 61 |
} |
| 62 |
} |
| 63 |
%% |
| 64 |
%% Copyright (C) 2014-2023 by Andrew Stacey <[email protected]> |
| 65 |
%% |
| 66 |
%% This work may be distributed and/or modified under the |
| 67 |
%% conditions of the LaTeX Project Public License (LPPL), either |
| 68 |
%% version 1.3c of this license or (at your option) any later |
| 69 |
%% version. The latest version of this license is in the file: |
| 70 |
%% |
| 71 |
%% http://www.latex-project.org/lppl.txt |
| 72 |
%% |
| 73 |
%% This work is "maintained" (as per LPPL maintenance status) by |
| 74 |
%% Andrew Stacey. |
| 75 |
%% |
| 76 |
%% This work consists of the files penrose_code.dtx |
| 77 |
%% penrose.tex |
| 78 |
%% and the derived files penrose.ins |
| 79 |
%% penrose_code.pdf |
| 80 |
%% penrose.pdf |
| 81 |
%% tikzlibrarytilings.code.tex |
| 82 |
%% tikzlibrarytilings.penrose.code.tex |
| 83 |
%% tikzlibrarytilings.polykite.code.tex |
| 84 |
%% tikzlibrarypenrose.code.tex |
| 85 |
%% README.txt |
| 86 |
%% |
| 87 |
%% |
| 88 |
%% End of file `tikzlibrarypenrose.code.tex'. |