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?




Chessboard Display Error

  • 3
    @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
  • 3
    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
  • 1
    @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:




enter image description here

|improve this answer|||||
  • 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.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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