3 # Copyright (C) 2001 The LyX Team.
5 # This file is distributed under the GPL license.
7 # This script will convert a chess position in the FEN
8 # format to a chunk of LaTeX to be used with the skak.sty
15 sys.stdin = open(sys.argv[1],"r")
16 sys.stdout = open(sys.argv[2],"w")
18 line = sys.stdin.readline()
22 print "\\fenboard{"+line+"}"