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