[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnugo-devel] Postscript from sgf files

From: bump
Subject: [gnugo-devel] Postscript from sgf files
Date: Tue, 26 Nov 2002 13:28:04 -0800

A program called sgf2mpost.c is available at:

This produces a metapost file from an sgf files. Running
metapost (standard with TeTeX, Web2C and probably other
TeX distributions) will produce an encapsulated postscript
file which can be included in a TeX document.

USAGE: -i <inputfile> -o <outputfile> [-s <from>] [-e <until>] [-n]
       [-l <left column number>] [-r <right column number>]
       [-b <bottom row number>] [-t <top row number>]

Assuming "from" < "until", it will create a metapost file
diagramming the moves between "from" and "until". The moves
before "from" are unnumbered. The moves after "from" are

If -n is used, the numbered stones begin with 1; otherwise
the begin with the absolute move number. 

You may also make a diagram from just a portion of the board
by specifying the top and/or bottom rows and the left and/or
right columns to bound the diagram.

If your output file is called [filename].mp, then 'mpost'
will produce an encapulated postscript file called 'filename.1'
diagramming the position and the moves between "from" and "until".

This may be included in a TeX document. Your tex file must include:

\input epsf

After this, include the diagram with \epsffile{[filename].1}.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]