忘記是在哪邊看到 avysk/psgo_emitter 這個套件,提供 TeX 語法輸出成圍棋棋盤的圖示,不過說明裡說只支援 Windows 平台:
psgo_emitter is a (Windows) console utility to create go diagrams for go life-and-death problems (tsumego).
可以只輸出角部,像是這段語法:
begin{psgopartialboard}{(1,1)(8,6)} stone{black}{b}{3} stone{black}{d}{3} stone{black}{b}{4} stone{white}{d}{5} stone{white}{g}{2} stone{black}{d}{2} stone{white}{b}{5} stone{white}{c}{4} stone{white}{e}{4} stone{white}{e}{3} stone{white}{e}{2} stone{black}{e}{1} end{psgopartialboard}
會輸出這樣的圖:
另外也可以把手順放進去:
begin{psgopartialboard}{(1,1)(8,6)} stone{black}{b}{3} stone[marklb{1}]{black}{a}{2} stone{black}{d}{3} stone{black}{b}{4} stone[marklb{8}]{white}{f}{1} stone[marklb{6}]{white}{d}{1} stone{white}{e}{2} stone{white}{g}{2} stone{black}{d}{2} stone{white}{b}{5} stone[marklb{7}]{black}{b}{2} stone[marklb{9}]{black}{a}{1} stone{white}{c}{4} stone[marklb{4}]{white}{c}{2} stone{white}{e}{4} stone[marklb{5}]{black}{c}{3} stone{white}{e}{3} stone[marklb{2}]{white}{b}{1} stone{white}{d}{5} stone[marklb{3}]{black}{a}{4} stone{black}{e}{1} end{psgopartialboard}
就會輸出:
套件還很新,不知道之後會發展成什麼樣子...