Chessboard Display Error

When displaying chessboards using the Chessboard Package, the border at the top of board does not line up with the actual top of the board. Relevant code and picture below. Thoughts?

\documentclass{amsart}
\usepackage{chessboard}
\begin{document}

\chessboard

\end{document}


-
@pgaf: The display is okay if one switches from amsart to article. –  lockstep Mar 13 '11 at 17:56
Then what does amsart do to make that look wrong? –  Caramdir Mar 13 '11 at 18:04
I guess from the QED mark that the underlying implementation uses a theorem or similar. The AMS code alters a lot of math stuff, so this is the likely cause. I'd be tempted to report it to the package author. –  Joseph Wright Mar 13 '11 at 18:06
@Joseph I think the QED is from amsart. The chessboard package doesn't create any theoremlike environmnents. And if you load amsthm with article instead of amsart then the border is correct. –  Alan Munn Mar 13 '11 at 18:36
@pgaf I have a problem with this ECM, without the package skak' I get only the chessboard and not the pieces. –  Alain Matthes Mar 13 '11 at 21:45

amsart has an additional lineskip which must be set to 0pt inside the chessboard:

\documentclass{amsart}
\usepackage{xskak,chessboard}
\begin{document}

{\normallineskip=0pt
\setchessboard{smallboard,showmover=false}
\newchessgame
\chessboard}

\end{document}


-
Thanks for the analysis. (The problem is not so much with \normallineskip which is non-zero in article too, but with \normallineskiplimit.) But I have no idea why it only affects amsart. Perhaps because amsmath is messing around with arrays and this affect the \parbox. I will add a correction. –  Ulrike Fischer Mar 14 '11 at 10:12
@Ulrike Very nice package for an old chess player like me! –  Alain Matthes Mar 14 '11 at 16:26

The style amsbook is also affected. The border at the top of board does not line up with the actual top of the board. The solution \normallineskip=0pt` works equally in this case.

-