CTAN Comprehensive TeX Archive Network

Directory graphics/pgf/contrib/pgf-go

README.md

pgf-go — for drawing go games

Release 0.2026.10.23 2026/10/23

Description

pgf-go draws and comments on Go games with PGF/TikZ: boards, stones, moves, marks, arrows and territory. With Lua it also reads SGF files (a game on a board, diagrams as in books, animations and problems), removes captured stones and finds the territory.

License

The code may be distributed and/or modified under the terms of the Project Public License, version 1.3c or later. The manuals may be distributed and/or modified under the Project Public License and/or the GNU Free Documentation License.

Requirements

Lua is recommended (the compute kernel in Lua); with pdf the package works, but it cannot read SGF files, remove captured stones or find the territory by itself. It loads TikZ and xparse; \sgfanimation needs animate.

Installation

pgf-go comes with Live and MiK. Otherwise, copy the files of the folder latex/ to the folder of your document or to your tree.

Usage

\documentclass{article}
\usepackage{pgf-go}

\begin{document}
\begin{goban}
	\stones[b]{C3}
	\stones[w]{E5}
\end{goban}
\end{document}

Documentation

The manuals pgf-go-es.pdf (Spanish) and pgf-go-en.pdf (English), and the examples in doc/examples.

Changes

See CHANGELOG.md.

Author

Jonatán Perren, jonatan (dot) perren (at) gmail (dot) com

Download the contents of this package in one zip archive (6.1M).

PGF-go – Diagramming and commenting on Go games

A package for creating Go (Baduk) diagrams with ease. It can read SGF files, resolve captures, and count territory. It features an efficient coordinate-loading syntax to streamline workflows and offers flexible profile manipulation, allowing users to customize board layouts, stones, and annotations effortlessly. It also provides macros for easily arranging diagrams and problems.

PackagePGF-go
Version0.2026.10.23 2026-10-23
LicensesThe Project Public License 1.3c
Free Documentation License
Copyright2025–2026 Jonatán Perren
MaintainerJonatán Perren
Contained inTeX Live as pgf-go
MiKTeX as pgf-go
TopicsGo
Games
PGF
Use Lua
...
Guest Book Sitemap Contact Contact Author