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?
Asked
Active
Viewed 3,507 times
10
-
What package(s) are you using? – Gonzalo Medina Aug 14 '12 at 19:13
-
Yes. You can set boardfontsize to whatever value you want. – Ulrike Fischer Aug 14 '12 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. – chessaddict Aug 14 '12 at 19:42
-
Yes you can. And how to do is described in the documention in the section about labels. – Ulrike Fischer Aug 14 '12 at 21:07
-
@chessaddict please see my updated answer. – Gonzalo Medina Aug 15 '12 at 12:20
2 Answers
12
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}

Gonzalo Medina
- 505,128
6
If you're using skak, you can scale the output (\showboard) using \scalebox{1.05} from graphicx:

\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.
Werner
- 603,163