Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}

Chessboard Display Error

share|improve this question
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
show 5 more comments

2 Answers

up vote 14 down vote accepted

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}

enter image description here

share|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
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

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.