| 1 |
\section{Marcas} |
| 2 |
|
| 3 |
Las marcas son elementos gráficos que se colocan en las intersecciones del tablero para resaltar posiciones específicas, indicar puntos de interés o numerar secuencias, sin necesidad de añadir piedras. \pgfgoname\ ofrece comandos y opciones versátiles para personalizar estas marcas, desde formas predefinidas hasta etiquetas personalizadas. |
| 4 |
|
| 5 |
\begin{command}{\mark\opt{\oarg{options}}\marg{intersection}} |
| 6 |
|
| 7 |
Dibuja una marca individual en la intersección especificada (ej. «C3»). Las opciones permiten definir su forma, color y otros atributos. |
| 8 |
\end{command} |
| 9 |
|
| 10 |
\begin{command}{\marks\opt{\oarg{options}}\marg{intersection \opt{, intersection, ...}}} |
| 11 |
|
| 12 |
Similar a |\mark|, pero aplica la misma marca a múltiples intersecciones mediante la sintaxis de coordenadas. |
| 13 |
\end{command} |
| 14 |
|
| 15 |
\begin{key}{/pgfgogo/mark = \meta{options} (default cross)} |
| 16 |
|
| 17 |
Define el tipo de marca a colocar, con una cruz («cross») como valor predeterminado si no se especifica otra opción. |
| 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 |
Coloca un círculo hueco como marca. |
| 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 |
Dibuja un triángulo hueco. |
| 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 |
Coloca un cuadrado hueco. |
| 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 |
Dibuja una cruz. |
| 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 |
Coloca un cuadrado relleno. |
| 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 |
Dibuja un círculo relleno. |
| 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 |
Coloca un círculo pequeño con un borde más grueso, diseñado específicamente para marcar territorios. |
| 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 |
Dibuja un cuadrado pequeño con borde grueso, similar a «t-circle», usado para señalar territorios. |
| 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 |
Coloca un patrón de líneas cruzadas (tramado). |
| 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 |
Permite numerar una serie de marcas en orden. |
| 217 |
\end{key} |
| 218 |
|
| 219 |
\begin{key}{/pgfgo/mark/sequence/use} |
| 220 |
Muestra la marca |sequence| sobre el tablero. |
| 221 |
\end{key} |
| 222 |
|
| 223 |
\begin{key}{/pgfgo/mark/sequence/from=\meta{number}} |
| 224 |
|
| 225 |
Establece el número inicial de la secuencia de marcas numeradas, permitiendo continuar desde un punto específico en lugar de 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 |
|
| 244 |
|
| 245 |
|
| 246 |
\begin{key}{/pgfgo/mark/custom=\meta{token list}} |
| 247 |
|
| 248 |
Permite definir una marca personalizada usando texto o símbolos (como «!» o «?») e incluso im\'agenes. |
| 249 |
|
| 250 |
\begin{codeexample}[] |
| 251 |
\pgfgoset{goban = {5, partial = {from = B2 to D4}}} |
| 252 |
|
| 253 |
\begin{goban} |
| 254 |
\stones[b]{C2,D3} |
| 255 |
\stone[w]{B4} |
| 256 |
\end{goban} |
| 257 |
|
| 258 |
\begin{goban} |
| 259 |
\stones[b]{C2,D3} |
| 260 |
\stone[w]{B4} |
| 261 |
\mark[custom = {!}]{C3} |
| 262 |
\end{goban} |
| 263 |
|
| 264 |
\begin{goban} |
| 265 |
\stones[b]{C2,D3} |
| 266 |
\stone[w]{B4} |
| 267 |
\mark[custom = {\tikz{\node[rounded corners, draw, inner sep = 1em, red]{\dots};}}]{C3} |
| 268 |
\end{goban} |
| 269 |
\end{codeexample} |
| 270 |
\end{key} |
| 271 |
|
| 272 |
|
| 273 |
\begin{key}{/pgfgo/mark/line = \meta{option} (default true)} |
| 274 |
Controla el contorno de la marca. |
| 275 |
\end{key} |
| 276 |
|
| 277 |
|
| 278 |
\begin{key}{/pgfgo/mark/line/color = \meta{color}} |
| 279 |
Define el color del contorno de la marca. |
| 280 |
|
| 281 |
\begin{codeexample}[] |
| 282 |
\pgfgoset{goban = {5, partial = {from = B2 to D4}}} |
| 283 |
|
| 284 |
\begin{goban} |
| 285 |
\stones[b]{C2,D3} |
| 286 |
\stone[w]{B4} |
| 287 |
\end{goban} |
| 288 |
|
| 289 |
\begin{goban} |
| 290 |
\stones[b]{C2,D3} |
| 291 |
\stone[w]{B4} |
| 292 |
\mark[triangle, line = {color = red}]{C3} |
| 293 |
\end{goban} |
| 294 |
\end{codeexample} |
| 295 |
\end{key} |
| 296 |
|
| 297 |
|
| 298 |
\begin{key}{/pgfgo/mark/line/width = \meta{dimension}} |
| 299 |
|
| 300 |
Ajusta el grosor del contorno de las marcas. |
| 301 |
|
| 302 |
\begin{codeexample}[] |
| 303 |
\pgfgoset{goban = {5, partial = {from = B2 to D4}}} |
| 304 |
|
| 305 |
\begin{goban} |
| 306 |
\stones[b]{C2,D3} |
| 307 |
\stone[w]{B4} |
| 308 |
\mark[triangle]{C3} |
| 309 |
\end{goban} |
| 310 |
|
| 311 |
\begin{goban} |
| 312 |
\stones[b]{C2,D3} |
| 313 |
\stone[w]{B4} |
| 314 |
\mark[triangle, line = {width = 0.1pt}]{C3} |
| 315 |
\end{goban} |
| 316 |
\end{codeexample} |
| 317 |
\end{key} |
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
\begin{key}{/pgfgo/mark/fill = \meta{options} (default true)} |
| 322 |
Controla el relleno de una marca |
| 323 |
\end{key} |
| 324 |
|
| 325 |
\begin{key}{/pgfgo/mark/fill/color = \meta{color}} |
| 326 |
|
| 327 |
Establece el color de relleno de una marca. |
| 328 |
|
| 329 |
\begin{codeexample}[] |
| 330 |
\pgfgoset{goban = {5, partial = {from = B2 to D4}}} |
| 331 |
|
| 332 |
\begin{goban} |
| 333 |
\stones[b]{C2,D3} |
| 334 |
\stone[w]{B4} |
| 335 |
\end{goban} |
| 336 |
|
| 337 |
\begin{goban} |
| 338 |
\stones[b]{C2,D3} |
| 339 |
\stone[w]{B4} |
| 340 |
\mark[circle, fill = {color = red}]{C3} |
| 341 |
\end{goban} |
| 342 |
\end{codeexample} |
| 343 |
\end{key} |
| 344 |
|
| 345 |
|
| 346 |
\begin{key}{/pgfgo/mark/label = \meta{option}} |
| 347 |
Controla la apariencia de las etiquetas de las marcas que las tengan. |
| 348 |
\end{key} |
| 349 |
|
| 350 |
|
| 351 |
\begin{key}{/pgfgo/mark/label/color = \meta{color}} |
| 352 |
|
| 353 |
Controla el color del texto o símbolo en marcas personalizadas (como con |custom|). |
| 354 |
|
| 355 |
\begin{codeexample}[] |
| 356 |
\pgfgoset{goban = {5, partial = {from = B2 to D4}}} |
| 357 |
|
| 358 |
\begin{goban} |
| 359 |
\stones[b]{C2,D3} |
| 360 |
\stone[w]{B4} |
| 361 |
\end{goban} |
| 362 |
|
| 363 |
\begin{goban} |
| 364 |
\stones[b]{C2,D3} |
| 365 |
\stone[w]{B4} |
| 366 |
\mark[custom = {!}, label = {color = red}]{C3} |
| 367 |
\end{goban} |
| 368 |
\end{codeexample} |
| 369 |
\end{key} |
| 370 |
|
| 371 |
\begin{key}{/pgfgo/mark/label/format=\meta{options} (default arabic)} |
| 372 |
|
| 373 |
Controla el estilo de numeración de las etiquetas de enumeraci\'on (como |sequence|), con opciones como números arábigos, letras o romanos. |
| 374 |
\end{key} |
| 375 |
|
| 376 |
\begin{key}{/pgfgo/mark/label/format/arabic} |
| 377 |
|
| 378 |
Usa números arábigos para secuencias. |
| 379 |
|
| 380 |
\begin{codeexample}[] |
| 381 |
\pgfgoset{goban = {5, partial = {from = B2 to D4}}} |
| 382 |
|
| 383 |
\begin{goban} |
| 384 |
\stones[b]{C2,D3} |
| 385 |
\stone[w]{B4} |
| 386 |
\end{goban} |
| 387 |
|
| 388 |
\begin{goban} |
| 389 |
\stones[b]{C2,D3} |
| 390 |
\stone[w]{B4} |
| 391 |
\marks[label = {format = arabic}, sequence]{C3,B3,C4} |
| 392 |
\end{goban} |
| 393 |
\end{codeexample} |
| 394 |
\end{key} |
| 395 |
|
| 396 |
\begin{key}{/pgfgo/mark/label/format/alph} |
| 397 |
|
| 398 |
Usa letras minúsculas para la secuencia. |
| 399 |
|
| 400 |
\begin{codeexample}[] |
| 401 |
\pgfgoset{goban = {5, partial = {from = B2 to D4}}} |
| 402 |
|
| 403 |
\begin{goban} |
| 404 |
\stones[b]{C2,D3} |
| 405 |
\stone[w]{B4} |
| 406 |
\end{goban} |
| 407 |
|
| 408 |
\begin{goban} |
| 409 |
\stones[b]{C2,D3} |
| 410 |
\stone[w]{B4} |
| 411 |
\marks[label = {format = alph}, sequence]{C3,B3,C4} |
| 412 |
\end{goban} |
| 413 |
\end{codeexample} |
| 414 |
\end{key} |
| 415 |
|
| 416 |
\begin{key}{/pgfgo/mark/label/format/Alph} |
| 417 |
|
| 418 |
Usa letras mayúsculas. |
| 419 |
|
| 420 |
\begin{codeexample}[] |
| 421 |
\pgfgoset{goban = {5, partial = {from = B2 to D4}}} |
| 422 |
|
| 423 |
\begin{goban} |
| 424 |
\stones[b]{C2,D3} |
| 425 |
\stone[w]{B4} |
| 426 |
\end{goban} |
| 427 |
|
| 428 |
\begin{goban} |
| 429 |
\stones[b]{C2,D3} |
| 430 |
\stone[w]{B4} |
| 431 |
\marks[label = {format = Alph}, sequence]{C3,B3,C4} |
| 432 |
\end{goban} |
| 433 |
\end{codeexample} |
| 434 |
\end{key} |
| 435 |
|
| 436 |
\begin{key}{/pgfgo/mark/label/format/roman} |
| 437 |
|
| 438 |
Usa números romanos minúsculos. |
| 439 |
|
| 440 |
\begin{codeexample}[] |
| 441 |
\pgfgoset{goban = {5, partial = {from = B2 to D4}}} |
| 442 |
|
| 443 |
\begin{goban} |
| 444 |
\stones[b]{C2,D3} |
| 445 |
\stone[w]{B4} |
| 446 |
\end{goban} |
| 447 |
|
| 448 |
\begin{goban} |
| 449 |
\stones[b]{C2,D3} |
| 450 |
\stone[w]{B4} |
| 451 |
\marks[label = {format = roman}, sequence]{C3,B3,C4} |
| 452 |
\end{goban} |
| 453 |
\end{codeexample} |
| 454 |
\end{key} |
| 455 |
|
| 456 |
\begin{key}{/pgfgo/mark/label/format/Roman} |
| 457 |
|
| 458 |
Usa números romanos mayúsculos. |
| 459 |
|
| 460 |
\begin{codeexample}[] |
| 461 |
\pgfgoset{goban = {5, partial = {from = B2 to D4}}} |
| 462 |
|
| 463 |
\begin{goban} |
| 464 |
\stones[b]{C2,D3} |
| 465 |
\stone[w]{B4} |
| 466 |
\end{goban} |
| 467 |
|
| 468 |
\begin{goban} |
| 469 |
\stones[b]{C2,D3} |
| 470 |
\stone[w]{B4} |
| 471 |
\marks[label = {format = Roman}, sequence]{C3,B3,C4} |
| 472 |
\end{goban} |
| 473 |
\end{codeexample} |
| 474 |
\end{key} |
| 475 |
|
| 476 |
|
| 477 |
|
| 478 |
\begin{key}{/pgfgo/mark/black} |
| 479 |
|
| 480 |
Aplica las propiedades del primer jugador (negro) a la marca. |
| 481 |
|
| 482 |
\begin{codeexample}[] |
| 483 |
\pgfgoset{goban = {5, partial = {from = B2 to D4}}} |
| 484 |
|
| 485 |
\begin{goban} |
| 486 |
\stones[b]{C2,D3} |
| 487 |
\stone[w]{B4} |
| 488 |
\mark[triangle]{C3} |
| 489 |
\end{goban} |
| 490 |
|
| 491 |
\begin{goban} |
| 492 |
\stones[b]{C2,D3} |
| 493 |
\stone[w]{B4} |
| 494 |
\mark[black, t-square]{C3} |
| 495 |
\end{goban} |
| 496 |
\end{codeexample} |
| 497 |
\end{key} |
| 498 |
|
| 499 |
\begin{key}{/pgfgo/mark/white} |
| 500 |
|
| 501 |
Aplica las propiedades del segundo jugador (blanco) a la marca. |
| 502 |
\end{key} |
| 503 |
|
| 504 |
\begin{key}{/pgfgo/mark/neutral} |
| 505 |
|
| 506 |
Mantiene la marca sin asociarla a ningún jugador. |
| 507 |
\end{key} |
| 508 |
|