1

I am trying to use moverstyle=squarearrow on Xskak/chessboard. code is like this :

\usepackage{pifont,graphicx}
\usepackage{xskak}
\usepackage{chessboard}
\usepackage{texmate}

\newchesgame
\chessboard{moverstyle=squarearrow}

It works if i keep texmate, removing texmate it throw an error "undefined control sequence" and show only the arrow.

This is the result with/without texmate

1
  • Show a small but complete example. That makes it much easier to test. Jun 24 at 7:12
1

The undefined command is \square. This command is provided by the amssymb package, which is loaded by texmate. You can also load it yourself:

\documentclass{article}
\usepackage{pifont,graphicx}
\usepackage{amssymb}
\usepackage{xskak}
\usepackage{chessboard}
\begin{document}
\newchessgame
\chessboard[moverstyle=squarearrow]
\end{document}

Note that chessboard itself (i.e., Ulrike Fischer) made the decision not to load amssymb, as explained in the changelog in the manual:

2011-03-17 (Version 1.7) Changed definition of the triangle mover style. It now uses tikz and no longer amssymb. chessboard no longer loads amssymb (it clashes with xunicode).

So apparently there could be some incompatibilities - but the MWE above works ok and produces the same output as your first picture.

3
  • 1
    hm, somebody should notify the maintainer ;-) Jun 24 at 21:15
  • So to avoid incompatibilities is better not use amssymb ? and pick another moverstyle ?
    – Nico Lopez
    Jun 25 at 2:05
  • @NicoLopez it is probably safe to use amssymb. You can just write your document with this moverstyle, and only change it if you actually encounter an incompatibility. Possibly Ulrike will update the package in the mean time to fix the problem completely, which would mean that you can use your original code without errors.
    – Marijn
    Jun 25 at 8:19

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.