TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Okay so I used to do a table for chess moves and import a picture from some online service to write chess stuff in LaTeX. Now I found xskak, and that is really a lot nicer and easier. But I can't trick xskak into accepting 0-0 for a move, why is that? It gives me a ZZ directly before the move in the output and my later diagram shows up without that move. Is ther some other notation for castling?

share|improve this question
As far as I can see, it's O-O (letter "O", not zero). – egreg Oct 22 '12 at 15:24
awesome, why I didn't figure that out myself I am not entirely sure. But thanks anyway. – Tobias Oct 22 '12 at 21:26

According to Wikipedia, castling is denoted in Portable Game Notation (PGN) by O-O and O-O-O rather than 0-0 and 0-0-0 (the former are letters "O", the latter digits "0").

Apparently xskak adheres to PGN.

So the answer is "use O-O and O-O-O".

share|improve this answer
Addition: Ulrike wrote in the xskakdocumentation: “The package xskak is an extension for the package skak. The package skak is a package from Torben Hoffmann which can parse and print chess games given in (a subset of) the PGN notation.” – Speravir Oct 22 '12 at 22:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.