13.07.2015 Views

xskak.pdf.

xskak.pdf.

xskak.pdf.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

and then\variation{2...c6} %error\end{document}To tell the truth, I’m not sure that this a very good idea. In any case: the package <strong>xskak</strong> overwritesthe responsable definitions of the package skak. With the package <strong>xskak</strong> \variationcurrently doesn’t parse games (and so also can’t show moves in long algebraic notation – ifyou want this you will have to start with the commands described later in this documentationa new game with another id). So the above example works fine with the package<strong>xskak</strong>.2.8. The exampleAlmost all examples use as starting point a new game. But in some cases the followingposition is used, which allows to show almost all special cases (like enpassant, promotion,capture, castling, ambiguous moves). The position is stored under the name “example” andso can be retrieved e.g. with the key restorefen=example from chessboard or the command\restoregame{example} of the package skak 1 :Example 3: The standard example position\newchessgame[id=example,castling=Q,setwhite={pa2,pc7,pg5,ph2,pe4,ke1,ra1,bg4},addblack={pb4,ph7,pd5,ke8,rh8,bh3,nf6,ne5},storefen=example]%\mbox{\Xskakexampleinitfen}\chessboard4k2r/2P4p/5n2/3pn1P1/1p2P1B1/7b/P6P/R3K3 w Q- - 0 180Z0ZkZ0s7Z0O0Z0Zp60Z0Z0m0Z5Z0Zpm0O040o0ZPZBZ3Z0Z0Z0Zb2PZ0Z0Z0O1S0Z0J0Z0a b c d e f g h3. Improved parsing of commentsThe package skak can handle comments in the input if they follow directly the move, if thecommands are robust and if the spaces that separate moves and numbers are not swallowedby a command.1 One could also use key tag to store the position and key reffen to retrieve it.October 20, 2008 7 <strong>xskak</strong> v1.2

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

Saved successfully!

Ooh no, something went wrong!