This repository has been archived by the owner on Oct 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
tikz.isy
406 lines (386 loc) · 10.9 KB
/
tikz.isy
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
<!-- Copyright (C) 2016 Joseph Rabinoff
ipe2tikz is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your option)
any later version.
ipe2tikz is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with
ipe2tikz; if not, you can find it at "http://www.gnu.org/copyleft/gpl.html",
or write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA
02139, USA.
-->
<?xml version="1.0"?>
<!DOCTYPE ipestyle SYSTEM "ipe.dtd">
<ipestyle name="tikz">
<!-- use the TikZ default path settings -->
<pathstyle cap="0" join="0" fillrule="wind"/>
<!-- standard colors from xcolor -->
<color name="red" value="1 0 0"/>
<color name="green" value="0 1 0"/>
<color name="blue" value="0 0 1"/>
<color name="brown" value=".75 .5 .25"/>
<color name="lime" value=".75 1 0"/>
<color name="orange" value="1 .5 0"/>
<color name="pink" value="1 .75 .75"/>
<color name="purple" value=".75 0 .25"/>
<color name="teal" value="0 .5 .5"/>
<color name="violet" value=".5 0 .5"/>
<color name="cyan" value="0 1 1"/>
<color name="magenta" value="1 0 1"/>
<color name="yellow" value="1 1 0"/>
<color name="olive" value=".5 .5 0"/>
<color name="darkgray" value=".25 .25 .25"/>
<color name="gray" value=".5 .5 .5"/>
<color name="lightgray" value=".75 .75 .75"/>
<!-- Line widths predefined in TikZ. In TikZ these are in TeX's points, which
are slightly smaller than usual points used in ipe, but it shouldn't be
noticeable. -->
<pen name="ultra thin" value="0.1"/>
<pen name="very thin" value="0.2"/>
<pen name="thin" value="0.4"/> <!-- the default -->
<pen name="semithick" value="0.6"/>
<pen name="thick" value="0.8"/>
<pen name="very thick" value="1.2"/>
<pen name="ultra thick" value="1.6"/>
<!-- Dash patterns predefined in TikZ. These can't be directly
reproduced in ipe, since the length of a dot in TikZ is the
line width. -->
<dashstyle name="solid" value="[] 0"/>
<dashstyle name="dotted" value="[1 3] 0"/>
<dashstyle name="densely dotted" value="[1 1] 0"/>
<dashstyle name="loosely dotted" value="[1 4] 0"/>
<dashstyle name="dashed" value="[3] 0"/>
<dashstyle name="densely dashed" value="[3 2] 0"/>
<dashstyle name="loosely dashed" value="[3 6] 0"/>
<dashstyle name="dash dot" value="[3 2 1 2] 0"/>
<dashstyle name="densely dash dot" value="[3 1 1 1] 0"/>
<dashstyle name="loosely dash dot" value="[3 4 1 4] 0"/>
<dashstyle name="dash dot dot" value="[3 2 1 2 1 2] 0"/>
<dashstyle name="densely dash dot dot" value="[3 1 1 1 1 1] 0"/>
<dashstyle name="loosely dash dot dot" value="[3 4 1 4 1 4] 0"/>
<!-- Opacities predefined in TikZ -->
<opacity name="transparent" value="0.001"/>
<opacity name="ultra nearly transparent" value="0.05"/>
<opacity name="very nearly transparent" value="0.1"/>
<opacity name="nearly transparent" value="0.25"/>
<opacity name="semitransparent" value="0.5"/>
<opacity name="nearly opaque" value="0.75"/>
<opacity name="very nearly opaque" value="0.9"/>
<opacity name="ultra nearly opaque" value="0.95"/>
<opacity name="opaque" value="1"/>
<!-- Tiling patterns predefined in TikZ's patterns library, which can be
recreated in ipe's restrictive tiling syntax. Again these should be in TeX
points and not normal ones, but it shouldn't be noticeable. -->
<tiling name="horizontal lines" angle="0" width=".4" step="3"/>
<tiling name="vertical lines" angle="90" width=".4" step="3"/>
<tiling name="north east lines" angle="45" width=".4" step="2.1213"/>
<tiling name="north west lines" angle="135" width=".4" step="2.1213"/>
<!-- These translate into "ipe mark *" keys -->
<symbolsize name="small" value="2"/>
<symbolsize name="tiny" value="1.1"/>
<symbolsize name="large" value="5"/>
<!-- These translate into "ipe *" pic keys -->
<symbol name="mark/circle(sx)" transformations="translations">
<path fill="sym-stroke">
0.6 0 0 0.6 0 0 e
0.4 0 0 0.4 0 0 e
</path></symbol>
<symbol name="mark/disk(sx)" transformations="translations">
<path fill="sym-stroke">
0.6 0 0 0.6 0 0 e
</path></symbol>
<symbol name="mark/fdisk(sfx)" transformations="translations">
<group><path fill="sym-fill">
0.5 0 0 0.5 0 0 e
</path><path fill="sym-stroke" fillrule="eofill">
0.6 0 0 0.6 0 0 e
0.4 0 0 0.4 0 0 e
</path></group></symbol>
<symbol name="mark/box(sx)" transformations="translations">
<path fill="sym-stroke" fillrule="eofill">
-0.6 -0.6 m
0.6 -0.6 l
0.6 0.6 l
-0.6 0.6 l
h
-0.4 -0.4 m
0.4 -0.4 l
0.4 0.4 l
-0.4 0.4 l
h
</path></symbol>
<symbol name="mark/square(sx)" transformations="translations">
<path fill="sym-stroke">
-0.6 -0.6 m
0.6 -0.6 l
0.6 0.6 l
-0.6 0.6 l
h
</path></symbol>
<symbol name="mark/fsquare(sfx)" transformations="translations">
<group><path fill="sym-fill">
-0.5 -0.5 m
0.5 -0.5 l
0.5 0.5 l
-0.5 0.5 l
h
</path>
<path fill="sym-stroke" fillrule="eofill">
-0.6 -0.6 m
0.6 -0.6 l
0.6 0.6 l
-0.6 0.6 l
h
-0.4 -0.4 m
0.4 -0.4 l
0.4 0.4 l
-0.4 0.4 l
h
</path></group></symbol>
<symbol name="mark/cross(sx)" transformations="translations">
<group><path fill="sym-stroke">
-0.43 -0.57 m
0.57 0.43 l
0.43 0.57 l
-0.57 -0.43 l
h
</path>
<path fill="sym-stroke">
-0.43 0.57 m
0.57 -0.43 l
0.43 -0.57 l
-0.57 0.43 l
h
</path>
</group></symbol>
<!-- These are just approximations of TikZ arrows with standard line width;
TikZ's arrow processing is much more complicated. -->
<symbol name="arrow/normal(spx)"> <!-- Same as To -->
<path join="1" cap="1" pen="sym-pen" stroke="sym-stroke">
-2.07224 2.39104 m
-1.69365 0.95639
-0.84999 0.27895
0.0 0.0 c
-0.84999 -0.27895
-1.69365 -0.95639
-2.07224 -2.39104 c
</path>
</symbol>
<symbol name="arrow/To(spx)">
<path join="1" cap="1" pen="sym-pen" stroke="sym-stroke">
-2.07224 2.39104 m
-1.69365 0.95639
-0.84999 0.27895
0.0 0.0 c
-0.84999 -0.27895
-1.69365 -0.95639
-2.07224 -2.39104 c
</path>
</symbol>
<symbol name="arrow/To To(spx)">
<group>
<path join="1" cap="1" pen="sym-pen" stroke="sym-stroke">
-2.07224 2.39104 m
-1.69365 0.95639
-0.84999 0.27895
0.0 0.0 c
-0.84999 -0.27895
-1.69365 -0.95639
-2.07224 -2.39104 c
</path>
<path matrix="1 0 0 1 -2.47075 0" join="1" cap="1" pen="sym-pen" stroke="sym-stroke">
-2.07224 2.39104 m
-1.69365 0.95639
-0.84999 0.27895
0.0 0.0 c
-0.84999 -0.27895
-1.69365 -0.95639
-2.07224 -2.39104 c
</path>
</group>
</symbol>
<symbol name="arrow/Latex(spx)">
<path matrix="1 0 0 1 -3.7613 0" join="0" cap="0"
pen="sym-pen" stroke="sym-stroke" fill="sym-stroke">
3.7613 0.0 m
3.2994 0.11273
1.26901 0.75153
0.0 1.44672 c
0.0 -1.44672 l
1.26901 -0.75153
3.2994 -0.11273
3.7613 0.0 c
h
</path>
</symbol>
<symbol name="arrow/Latex[open](spx)">
<path matrix="1 0 0 1 -3.7613 0" join="0" cap="0"
pen="sym-pen" stroke="sym-stroke" fill="white">
3.7613 0.0 m
3.2994 0.11273
1.26901 0.75153
0.0 1.44672 c
0.0 -1.44672 l
1.26901 -0.75153
3.2994 -0.11273
3.7613 0.0 c
h
</path>
</symbol>
<symbol name="arrow/Stealth(spx)">
<path matrix="1 0 0 1 -4.21463 0" join="0" cap="0"
pen="sym-pen" stroke="sym-stroke" fill="sym-stroke">
4.21463 0.0 m
0.64343 1.34572 l
1.8178 0.0 l
0.64343 -1.34572 l
h
</path>
</symbol>
<symbol name="arrow/Stealth[open](spx)">
<path matrix="1 0 0 1 -4.21463 0" join="0" cap="0"
pen="sym-pen" stroke="sym-stroke" fill="white">
4.21463 0.0 m
0.64343 1.34572 l
1.8178 0.0 l
0.64343 -1.34572 l
h
</path>
</symbol>
<symbol name="arrow/Triangle(spx)">
<path matrix="1 0 0 1 -3.17348 0" join="0" cap="0"
pen="sym-pen" stroke="sym-stroke" fill="sym-stroke">
3.17348 0.0 m
0.19925 1.76338 l
0.19925 0.0 l
0.19925 -1.76338 l
h
</path>
</symbol>
<symbol name="arrow/Triangle[open](spx)">
<path matrix="1 0 0 1 -3.17348 0" join="0" cap="0"
pen="sym-pen" stroke="sym-stroke" fill="white">
3.17348 0.0 m
0.19925 1.76338 l
0.19925 0.0 l
0.19925 -1.76338 l
h
</path>
</symbol>
<symbol name="arrow/Kite(spx)">
<path matrix="1 0 0 1 -5.10841 0" join="0" cap="0"
pen="sym-pen" stroke="sym-stroke" fill="sym-stroke">
5.10841 0.0 m
1.48842 1.20667 l
0.28177 0.0 l
1.48842 -1.20667 l
h
</path>
</symbol>
<symbol name="arrow/Kite[open](spx)">
<path matrix="1 0 0 1 -5.10841 0" join="0" cap="0"
pen="sym-pen" stroke="sym-stroke" fill="white">
5.10841 0.0 m
1.48842 1.20667 l
0.28177 0.0 l
1.48842 -1.20667 l
h
</path>
</symbol>
<symbol name="arrow/Hooks(spx)">
<path join="0" cap="0" pen="sym-pen" stroke="sym-stroke">
0 2.09215 m
0.57773 2.09215
1.04607 1.62381
1.04607 1.04607 c
1.04607 0.46834
0.57773 0
0 0 c
0.57773 0
1.04607 -0.46834
1.04607 -1.04607 c
1.04607 -1.62381
0.57773 -2.09215
0 -2.09215 c
</path>
</symbol>
<!-- Note that these will stick out beyond the path in ipe but not in TikZ (ipe
doesn't shorten the path to accommodate the arrow) -->
<symbol name="arrow/Hooks[harpoon](spx)">
<path join="0" cap="0" pen="sym-pen" stroke="sym-stroke">
0 2.09215 m
0.57773 2.09215
1.04607 1.62381
1.04607 1.04607 c
1.04607 0.46834
0.57773 0
0 0 c
</path>
</symbol>
<symbol name="arrow/Hooks[harpoon,swap](spx)">
<path join="0" cap="0" pen="sym-pen" stroke="sym-stroke">
0 0 m
0.57773 0
1.04607 -0.46834
1.04607 -1.04607 c
1.04607 -1.62381
0.57773 -2.09215
0 -2.09215 c
</path>
</symbol>
<symbol name="arrow/Bar(spx)">
<path join="0" cap="0" pen="sym-pen" stroke="sym-stroke">
0.0 2.29141 m
0.0 -2.29141 l
</path>
</symbol>
<symbol name="arrow/To Bar(spx)">
<group>
<path matrix="1 0 0 1 -.3985 0" join="1" cap="1" pen="sym-pen" stroke="sym-stroke">
-2.07224 2.39104 m
-1.69365 0.95639
-0.84999 0.27895
0.0 0.0 c
-0.84999 -0.27895
-1.69365 -0.95639
-2.07224 -2.39104 c
</path>
<path join="0" cap="0" pen="sym-pen" stroke="sym-stroke">
0.0 2.29141 m
0.0 -2.29141 l
</path>
</group>
</symbol>
<!-- The arrow paths above are in their natural size -->
<arrowsize name="normal" value="1"/>
<arrowsize name="small" value=".7"/>
<arrowsize name="tiny" value=".4"/>
<arrowsize name="large" value="1.4"/>
<!-- Same as basic.isy -->
<textsize name="large" value="\large"/>
<textsize name="Large" value="\Large"/>
<textsize name="LARGE" value="\LARGE"/>
<textsize name="huge" value="\huge"/>
<textsize name="Huge" value="\Huge"/>
<textsize name="small" value="\small"/>
<textsize name="footnote" value="\footnotesize"/>
<textsize name="tiny" value="\tiny"/>
<gridsize name="4 pts" value="4"/>
<gridsize name="8 pts (~3 mm)" value="8"/>
<gridsize name="16 pts (~6 mm)" value="16"/>
<gridsize name="32 pts (~12 mm)" value="32"/>
<gridsize name="10 pts (~3.5 mm)" value="10"/>
<gridsize name="20 pts (~7 mm)" value="20"/>
<gridsize name="14 pts (~5 mm)" value="14"/>
<gridsize name="28 pts (~10 mm)" value="28"/>
<gridsize name="56 pts (~20 mm)" value="56"/>
<anglesize name="90 deg" value="90"/>
<anglesize name="60 deg" value="60"/>
<anglesize name="45 deg" value="45"/>
<anglesize name="30 deg" value="30"/>
<anglesize name="22.5 deg" value="22.5"/>
<!-- Ignore "textstyle" -->
</ipestyle>