-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.typ
More file actions
48 lines (44 loc) · 1.21 KB
/
example.typ
File metadata and controls
48 lines (44 loc) · 1.21 KB
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
#import "lib.typ": go-board, go-board-9, go-board-19
#set page(margin: 1cm, height: auto)
#align(center, {
box(stroke: black, width: 40%, go-board-9(stones: ("ab", "ac", "ef")))
h(1cm)
box(stroke: black, width: 40%, go-board(
size: 5,
// Stones stay positioned from the top left corner
stones: ((position: "ac", color: "white"), (position: "bb", skip-numbering: true), "cc", "ed", "ec", "dc"),
marks: ("db",),
mark-radius: 5%,
open-edges: ("left", "bottom"),
open-edges-added-length: 7%,
padding: 2mm,
board-fill: luma(90%),
black-stone: move(dx: -50%, dy: -50%, circle(
width: 100%,
fill: black,
stroke: white + 0.2pt,
)),
white-stone: move(dx: -50%, dy: -50%, circle(
width: 100%,
fill: white,
stroke: black + 0.2pt,
)),
stone-diameter-ratio: 0.8,
add-played-number: true,
))
})
#figure(
{
set text(size: 15pt, weight: "semibold")
block(width: 70%, go-board(
size: 10,
stones: ("cc", "dd", "dc", "ed", "be", "dg", "fb", "hd"),
add-played-number: true,
open-edges: ("right", "bottom"),
marks: ("dd", "jd"),
))
},
caption: [Example joseki],
kind: "goban",
supplement: [Goban],
)