8

Is it possible to change the size of a \chessboard size. I know it has fixed sizes like tinyboard and so on. But if I just want to scale it down or up by 5%, is that possible?

5
  • What package(s) are you using? Aug 14, 2012 at 19:13
  • Yes. You can set boardfontsize to whatever value you want. Aug 14, 2012 at 19:16
  • Can I change the size of the labels (a..h and 1..8) as well? I tried to use fontsize, but I can't see any change in label size. Aug 14, 2012 at 19:42
  • Yes you can. And how to do is described in the documention in the section about labels. Aug 14, 2012 at 21:07
  • @chessaddict please see my updated answer. Aug 15, 2012 at 12:20

2 Answers 2

10

Using chessboard, you can set boardfontsize; labelfontsize will allow changes to the font size for the labels:

\documentclass{article}
\usepackage{xskak,chessboard}
\begin{document}

{\normallineskip=0pt
\setchessboard{boardfontsize=15pt}
\newchessgame
\chessboard}

{\normallineskip=0pt
\setchessboard{boardfontsize=10pt,labelfontsize=6pt}
\newchessgame
\chessboard}

\end{document}

enter image description here

6

If you're using skak, you can scale the output (\showboard) using \scalebox{1.05} from graphicx:

enter image description here

\documentclass{article}
\usepackage{graphicx}% http://ctan.org/pkg/graphicx
\usepackage{skak}% http://ctan.org/pkg/skak
\begin{document}
\fenboard{r5k1/1b1p1ppp/p7/1p1Q4/2p1r3/PP4Pq/BBP2b1P/R4R1K w - - 0 20}
\noindent\begin{tabular}{c@{\quad}c}
  100\% & 105\% \\[\bigskipamount]
  \showboard & \scalebox{1.05}{\showboard}
\end{tabular}
\end{document}​

Note that this scales the entire chess board, including the indices (rows/columns).

This approach should also work with texmate since it uses skak to produce the boards.

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.