Debian Codegraph @

texmf-dist/doc/latex/pgf-go/en/pgfgo-marks.tex

raw
1 \section{Marks}
2
3 Marks are graphical elements placed at the intersections of the board to highlight specific positions, indicate points of interest, or number sequences without the need to add stones. \pgfgoname\ offers versatile commands and options to customize these marks, ranging from predefined shapes to custom labels.
4
5 \begin{command}{\mark\opt{\oarg{options}}\marg{intersection}}
6
7 Draws an individual mark at the specified intersection (e.g., "C3"). Options allow defining its shape, color, and other attributes.
8 \end{command}
9
10 \begin{command}{\marks\opt{\oarg{options}}\marg{intersection \opt{, intersection, ...}}}
11
12 Similar to |\mark|, but applies the same mark to multiple intersections using the coordinate syntax.
13 \end{command}
14
15 \begin{key}{/pgfgogo/mark = \meta{options} (default cross)}
16
17 Defines the type of mark to be placed, with a cross ("cross") as the default value if no other option is specified.
18
19 \begin{codeexample}[]
20 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
21
22 \begin{goban}
23 \stones[b]{C2,D3}
24 \stone[w]{B4}
25 \end{goban}
26
27 \begin{goban}
28 \stones[b]{C2,D3}
29 \stone[w]{B4}
30 \mark{C3}
31 \end{goban}
32 \end{codeexample}
33 \end{key}
34
35 \begin{key}{/pgfgo/mark/circle}
36
37 Places a hollow circle as a mark.
38
39 \begin{codeexample}[]
40 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
41
42 \begin{goban}
43 \stones[b]{C2,D3}
44 \stone[w]{B4}
45 \end{goban}
46
47 \begin{goban}
48 \stones[b]{C2,D3}
49 \stone[w]{B4}
50 \mark[circle]{C3}
51 \end{goban}
52 \end{codeexample}
53 \end{key}
54
55 \begin{key}{/pgfgo/mark/triangle}
56
57 Draws a hollow triangle.
58
59 \begin{codeexample}[]
60 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
61
62 \begin{goban}
63 \stones[b]{C2,D3}
64 \stone[w]{B4}
65 \end{goban}
66
67 \begin{goban}
68 \stones[b]{C2,D3}
69 \stone[w]{B4}
70 \mark[triangle]{C3}
71 \end{goban}
72 \end{codeexample}
73 \end{key}
74
75 \begin{key}{/pgfgo/mark/square}
76
77 Places a hollow square.
78
79 \begin{codeexample}[]
80 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
81
82 \begin{goban}
83 \stones[b]{C2,D3}
84 \stone[w]{B4}
85 \end{goban}
86
87 \begin{goban}
88 \stones[b]{C2,D3}
89 \stone[w]{B4}
90 \mark[square]{C3}
91 \end{goban}
92 \end{codeexample}
93 \end{key}
94
95 \begin{key}{/pgfgo/mark/cross}
96
97 Draws a cross.
98
99 \begin{codeexample}[]
100 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
101
102 \begin{goban}
103 \stones[b]{C2,D3}
104 \stone[w]{B4}
105 \end{goban}
106
107 \begin{goban}
108 \stones[b]{C2,D3}
109 \stone[w]{B4}
110 \mark[cross]{C3}
111 \end{goban}
112 \end{codeexample}
113 \end{key}
114
115 \begin{key}{/pgfgo/mark/filled square}
116
117 Places a filled square.
118
119 \begin{codeexample}[]
120 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
121
122 \begin{goban}
123 \stones[b]{C2,D3}
124 \stone[w]{B4}
125 \end{goban}
126
127 \begin{goban}
128 \stones[b]{C2,D3}
129 \stone[w]{B4}
130 \mark[filled square]{C3}
131 \end{goban}
132 \end{codeexample}
133 \end{key}
134
135 \begin{key}{/pgfgo/mark/filled circle}
136
137 Draws a filled circle.
138
139 \begin{codeexample}[]
140 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
141
142 \begin{goban}
143 \stones[b]{C2,D3}
144 \stone[w]{B4}
145 \end{goban}
146
147 \begin{goban}
148 \stones[b]{C2,D3}
149 \stone[w]{B4}
150 \mark[filled circle]{C3}
151 \end{goban}
152 \end{codeexample}
153 \end{key}
154
155 \begin{key}{/pgfgo/mark/t-circle}
156
157 Places a small circle with a thicker border, specifically designed for marking territories.
158
159 \begin{codeexample}[]
160 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
161
162 \begin{goban}
163 \stones[b]{C2,D3}
164 \stone[w]{B4}
165 \end{goban}
166
167 \begin{goban}
168 \stones[b]{C2,D3}
169 \stone[w]{B4}
170 \mark[t-circle]{C3}
171 \end{goban}
172 \end{codeexample}
173 \end{key}
174
175 \begin{key}{/pgfgo/mark/t-square}
176
177 Draws a small square with a thick border, similar to "t-circle," used to mark territories.
178
179 \begin{codeexample}[]
180 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
181
182 \begin{goban}
183 \stones[b]{C2,D3}
184 \stone[w]{B4}
185 \end{goban}
186
187 \begin{goban}
188 \stones[b]{C2,D3}
189 \stone[w]{B4}
190 \mark[t-square]{C3}
191 \end{goban}
192 \end{codeexample}
193 \end{key}
194
195 \begin{key}{/pgfgo/mark/hatched lines}
196
197 Places a pattern of crossed (hatched) lines.
198
199 \begin{codeexample}[]
200 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
201
202 \begin{goban}
203 \stones[b]{C2,D3}
204 \stone[w]{B4}
205 \end{goban}
206
207 \begin{goban}
208 \stones[b]{C2,D3}
209 \stone[w]{B4}
210 \mark[hatched lines]{C3}
211 \end{goban}
212 \end{codeexample}
213 \end{key}
214
215 \begin{key}{/pgfgo/mark/sequence=\meta{options}(default false, initial false)}
216 Allows numbering a series of marks in order.
217 \end{key}
218
219 \begin{key}{/pgfgo/mark/sequence/use}
220 Displays the |sequence| mark on the board.
221 \end{key}
222
223 \begin{key}{/pgfgo/mark/sequence/from=\meta{number}}
224
225 Sets the starting number of a numbered mark sequence, allowing continuation from a specific point instead of 1.
226
227 \begin{codeexample}[]
228 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
229
230 \begin{goban}
231 \stones[b]{C2,D3}
232 \stone[w]{B4}
233 \end{goban}
234
235 \begin{goban}
236 \stones[b]{C2,D3}
237 \stone[w]{B4}
238 \marks[sequence = {use, from = 3}]{C3,B3,C4}
239 \end{goban}
240 \end{codeexample}
241 \end{key}
242
243 \begin{key}{/pgfgo/mark/custom=\meta{token list}}
244
245 Allows defining a custom mark using text or symbols (e.g., "!" or "?") and even images.
246
247 \begin{codeexample}[]
248 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
249
250 \begin{goban}
251 \stones[b]{C2,D3}
252 \stone[w]{B4}
253 \end{goban}
254
255 \begin{goban}
256 \stones[b]{C2,D3}
257 \stone[w]{B4}
258 \mark[custom = {!}]{C3}
259 \end{goban}
260
261 \begin{goban}
262 \stones[b]{C2,D3}
263 \stone[w]{B4}
264 \mark[custom = {\tikz{\node[rounded corners, draw, inner sep = 1em, red]{\dots};}}]{C3}
265 \end{goban}
266 \end{codeexample}
267 \end{key}
268
269 \begin{key}{/pgfgo/mark/line = \meta{option} (default true)}
270 Controls the outline of the mark.
271 \end{key}
272
273 \begin{key}{/pgfgo/mark/line/color = \meta{color}}
274 Defines the outline color of the mark.
275
276 \begin{codeexample}[]
277 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
278
279 \begin{goban}
280 \stones[b]{C2,D3}
281 \stone[w]{B4}
282 \end{goban}
283
284 \begin{goban}
285 \stones[b]{C2,D3}
286 \stone[w]{B4}
287 \mark[triangle, line = {color = red}]{C3}
288 \end{goban}
289 \end{codeexample}
290 \end{key}
291
292 \begin{key}{/pgfgo/mark/line/width = \meta{dimension}}
293
294 Adjusts the thickness of the mark’s outline.
295
296 \begin{codeexample}[]
297 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
298
299 \begin{goban}
300 \stones[b]{C2,D3}
301 \stone[w]{B4}
302 \mark[triangle]{C3}
303 \end{goban}
304
305 \begin{goban}
306 \stones[b]{C2,D3}
307 \stone[w]{B4}
308 \mark[triangle, line = {width = 0.1pt}]{C3}
309 \end{goban}
310 \end{codeexample}
311 \end{key}
312
313 \begin{key}{/pgfgo/mark/fill = \meta{options} (default true)}
314 Controls the fill of a mark.
315 \end{key}
316
317 \begin{key}{/pgfgo/mark/fill/color = \meta{color}}
318
319 Sets the fill color of a mark.
320
321 \begin{codeexample}[]
322 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
323
324 \begin{goban}
325 \stones[b]{C2,D3}
326 \stone[w]{B4}
327 \end{goban}
328
329 \begin{goban}
330 \stones[b]{C2,D3}
331 \stone[w]{B4}
332 \mark[circle, fill = {color = red}]{C3}
333 \end{goban}
334 \end{codeexample}
335 \end{key}
336
337 \begin{key}{/pgfgo/mark/label = \meta{option}}
338 Controls the appearance of labels for marks that have them.
339 \end{key}
340
341 \begin{key}{/pgfgo/mark/label/color = \meta{color}}
342
343 Controls the color of the text or symbol in custom marks (e.g., with |custom|).
344
345 \begin{codeexample}[]
346 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
347
348 \begin{goban}
349 \stones[b]{C2,D3}
350 \stone[w]{B4}
351 \end{goban}
352
353 \begin{goban}
354 \stones[b]{C2,D3}
355 \stone[w]{B4}
356 \mark[custom = {!}, label = {color = red}]{C3}
357 \end{goban}
358 \end{codeexample}
359 \end{key}
360
361 \begin{key}{/pgfgo/mark/label/format=\meta{options} (default arabic)}
362
363 Controls the numbering style of enumeration labels (e.g., |sequence|), with options such as Arabic numerals, letters, or Roman numerals.
364 \end{key}
365
366 \begin{key}{/pgfgo/mark/label/format/arabic}
367
368 Uses Arabic numerals for sequences.
369
370 \begin{codeexample}[]
371 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
372
373 \begin{goban}
374 \stones[b]{C2,D3}
375 \stone[w]{B4}
376 \end{goban}
377
378 \begin{goban}
379 \stones[b]{C2,D3}
380 \stone[w]{B4}
381 \marks[label = {format = arabic}, sequence]{C3,B3,C4}
382 \end{goban}
383 \end{codeexample}
384 \end{key}
385
386 \begin{key}{/pgfgo/mark/label/format/alph}
387
388 Uses lowercase letters for the sequence.
389
390 \begin{codeexample}[]
391 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
392
393 \begin{goban}
394 \stones[b]{C2,D3}
395 \stone[w]{B4}
396 \end{goban}
397
398 \begin{goban}
399 \stones[b]{C2,D3}
400 \stone[w]{B4}
401 \marks[label = {format = alph}, sequence]{C3,B3,C4}
402 \end{goban}
403 \end{codeexample}
404 \end{key}
405
406 \begin{key}{/pgfgo/mark/label/format/Alph}
407
408 Uses uppercase letters.
409
410 \begin{codeexample}[]
411 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
412
413 \begin{goban}
414 \stones[b]{C2,D3}
415 \stone[w]{B4}
416 \end{goban}
417
418 \begin{goban}
419 \stones[b]{C2,D3}
420 \stone[w]{B4}
421 \marks[label = {format = Alph}, sequence]{C3,B3,C4}
422 \end{goban}
423 \end{codeexample}
424 \end{key}
425
426 \begin{key}{/pgfgo/mark/label/format/roman}
427
428 Uses lowercase Roman numerals.
429
430 \begin{codeexample}[]
431 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
432
433 \begin{goban}
434 \stones[b]{C2,D3}
435 \stone[w]{B4}
436 \end{goban}
437
438 \begin{goban}
439 \stones[b]{C2,D3}
440 \stone[w]{B4}
441 \marks[label = {format = roman}, sequence]{C3,B3,C4}
442 \end{goban}
443 \end{codeexample}
444 \end{key}
445
446 \begin{key}{/pgfgo/mark/label/format/Roman}
447
448 Uses uppercase Roman numerals.
449
450 \begin{codeexample}[]
451 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
452
453 \begin{goban}
454 \stones[b]{C2,D3}
455 \stone[w]{B4}
456 \end{goban}
457
458 \begin{goban}
459 \stones[b]{C2,D3}
460 \stone[w]{B4}
461 \marks[label = {format = Roman}, sequence]{C3,B3,C4}
462 \end{goban}
463 \end{codeexample}
464 \end{key}
465
466 \begin{key}{/pgfgo/mark/black}
467
468 Applies the properties of the first player (black) to the mark.
469
470 \begin{codeexample}[]
471 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
472
473 \begin{goban}
474 \stones[b]{C2,D3}
475 \stone[w]{B4}
476 \mark[triangle]{C3}
477 \end{goban}
478
479 \begin{goban}
480 \stones[b]{C2,D3}
481 \stone[w]{B4}
482 \mark[black, t-square]{C3}
483 \end{goban}
484 \end{codeexample}
485 \end{key}
486
487 \begin{key}{/pgfgo/mark/white}
488
489 Applies the properties of the second player (white) to the mark.
490 \end{key}
491
492 \begin{key}{/pgfgo/mark/neutral}
493
494 Keeps the mark unassociated with any player.
495 \end{key}