13.07.2015 Views

xskak.pdf.

xskak.pdf.

xskak.pdf.

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.1. Warnings<strong>xskak</strong> and skakThe package <strong>xskak</strong> doesn’t only define some new commands, it also changes some quitecentral internal commands of the package skak. This means• it can break standard commands of the package skak,• it will possibly not work together with future versions of the package skak,• loading <strong>xskak</strong>.sty can lead to problems with packages like texmate which use internallyskak.Local and global commandsIn the package chessboard almost every setting is local to the board. This was a quite naturaldecision as a board is a confined space. In <strong>xskak</strong> the situation is quite different: As a start skakalready sets and saves some informations globally and the data saved by <strong>xskak</strong> during theparsing must be saved globally or they wouldn’t never escape the \mainline. And secondly,as I wanted to use beamer and animate a lot of informations must be preserved from oneframe/picture to the next. So I decided to use in most cases global commands unless – likein the cases of styles – I could see a real advantage in keeping a setting local.So please be aware that settings made e.g. in a figure environment can affect the followingtext.2.2. Some historyWhile the commands \mainline and \hidemoves parse a chess game the package skakupdates an internal board and so can always show the current position. Sadly a lot of theinformations gathered during the parsing are thrown away after skak has updated the boardand has go on to the next move and so can not be used by the user. E.g. there is no way toget the field a piece came from or to store easily all positions of a game.Some years ago I tried to find out how to print a game in long algebraic notation and Irealized quite fast that I need some of these lost data to be able to do it, and that it would benecessary to patch some internal commands of the package skak to save the data. At thesame time I also tried to insert some code that allows the parsing of standard PGN-commentsigns. Due to lack of time the whole project didn’t got very far but I had a working beta. Thena new version of the package skak came. It had even a – sadly not fully working (as can beseen in example 1) – command \longmoves (and the counterpart \shortmoves) to switchto the long algebraic notation. But I hadn’t the time to test and adjust my package.October 20, 2008 4 <strong>xskak</strong> v1.2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!