3

Using the package Chessboard, it is possible to make a drawing of a 9 x 9 chessboard, putting pieces, similar to the following drawing? enter image description here

I tried as follows, but it didn't work.

\documentclass{amsart}

\usepackage{skak,chessboard}

\begin{document}

\newchessgame

\chessboard[pgfstyle=9x9,setwhite={ra1, rb3, rc6, rd2, re4, rf7, rg3, rh5, ri8},showmover=false]

\end{document}

enter image description here

1 Answer 1

4

Section 3 (Setting the contents of the board) of the chessboard documentation says that to change the size of the board you should use the maxfield option. For a 9x9 board, maxfield=i9 does it.

To make the numbering start at zero, there's a zero option, which you can set to true. When you use this option, you don't need the maxfield=i9 anymore because the last place you'll want is h8. To change the bottom labels form alphabetic to arabic numbering you can use labelbottomformat.

enter image description here

\documentclass{amsart}

\usepackage{xskak,chessboard}

\begin{document}
\pagenumbering{gobble}

\newchessgame

\chessboard[
  % maxfield=i9, % 9x9 board
  zero=true, % numbering starts at zero
  labelbottomformat=\arabic{filelabel}, % bottom labels are numbered with arabic algarisms
  setwhite={ra1, rb3, rc6, rd2, re4, rf7, rg3, rh5, ri8},
  showmover=false
  ]

\end{document}
13
  • 9
    someone reading my documentation ;-). Oct 17, 2018 at 16:06
  • 1
    @UlrikeFischer :) Oct 17, 2018 at 16:06
  • 2
    \newchessgame would be defined it xskak instead of skak is loaded. Oct 17, 2018 at 16:07
  • Phelype Oleinik and Ulrike Fischer, Thanks for the help. But, there is still a small problem that I can't solve. The columns and rows, see in the drawing, must be numbered from 0 to 9. Oct 17, 2018 at 17:17
  • 1
    @BeneditoFreire If you like an answer and it was helpful, please consider upvoting (by clicking on the arrows next to the score) and marking it as accepted answer (by clicking on the checkmark ✓).
    – user30471
    Oct 24, 2018 at 10:41

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.