I want to put chess symbols inline in my document. I know that, using skak
, I can produce nice looking inline symbols with commands like \symking
, etc. However, these are only white, and I need white and black pieces. The skak
package also provides commands like \WhiteKingOnWhite
and \BlackKingOnWhite
, which look nice, but are way too big. I cannot find a way to resize them (I tried using the built-in \small
command, as well as packages like smaller
and relzise
). I also looked at using commands like \Pisymbol{fselch}{x}
, where x
is an integer, from a package I found called bartel-chess-fonts
, but it looks like this isn't included with TeXLive, and I don't want to mess with installing additional packages. Lastly, I tried \char"xxxx
, where xxxx
is the unicode specifier corresponding to the desired piece, but I get an error ! Bad character code (9812)
(not sure if this is relevant, but 9812 is the HTML code for the white king, which is the piece whose unicode representation I was trying to use when I got the error). What else can I try?
An acceptable answer may consist of one of the following:
- A method for resizing the
skak
symbols given by\ColorPieceOnWhite
, - A suggestion of another package included in TeXLive which can give me inline chess pieces,
- A solution to the
! Bad character code (9812)
error,
or something else which can give me the result I am looking for.
Minimal Working Example:
\documentclass{article}
\usepackage{skak}
\begin{document}
This king \WhiteKingOnWhite is way too big.
This king {\small\WhiteKingOnWhite} won't resize.
This king \symking is only available in white.
%This unicode king $\char"2654$ throws an error when uncommented.
\end{document}