# xskak and xelatex

\documentclass{article}

\usepackage{xltxtra}
\usepackage{skak}

\setmainfont{Arial}
\setmonofont{Courier New}

\usepackage{polyglossia}
\setmainlanguage{english}

\catcode"2654=\active
\catcode"2655=\active
\catcode"2656=\active
\catcode"2657=\active
\catcode"2658=\active
\catcode"2659=\active

\def\K{\fontspec{FigurineCB AriesSP}\char"00A2}

\let♔\K
\let♕\symqueen
\let♖\symrook
\let♗\symbishop
\let♘\symknight
\let♙\sympawn

\begin{document}

♔♕♖♗♘♙

♔♕♖♗♘♙

\end{document}


Why does xskak produce an incompatibility error when using XeLaTeX?

Error: \Finv already defined \{mathord}{AMSb}{"60}'


skak works fine.

-
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). –  Joseph Wright Jun 12 '12 at 10:33

This is an incompability from xunicode (loaded by fontspec/xltxtra) and amsymb loaded by chessboard/xskak).
But imho with a current version of xunicode the problem should be solved. I don't get the error on miktex 2.9. with
\ProvidesFile{xunicode.sty}[2011/09/09 v0.981

@hhdehaan: I just realized that you are trying to use a system chess font \fontspec{FigurineCB AriesSP}. That's okay if you want single, specific symbol from a specific font but I recommend to avoid this. These fonts don't use the standard encoding expected by skak and xskak and it is not possible to reencode them with xelatex (with lualatex` it will perhaps be possible in the future). It is better to stick to the standard type1 chess fonts. –  Ulrike Fischer Jun 12 '12 at 13:05