Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using TexLive under Windows 8 & TexMaker, when I tried to run this code snippet,

\documentclass{article}
\usepackage{chessboard}
\storechessboardstyle{4x4}{maxfield=d4}
\begin{document}
\chessboard[style=4x4,setwhite={Qa1,Qd2},showmover=false]
\end{document}

It didn't produce any result, instead a warning said \usepgfmodule{shapes} is obsolete. Any idea?

This package is obsolete. Use \usepgfmodule{shapes} instead

Is there any package for chessboard available in TikZ?

share|improve this question
1  
My compilation produces output. However, this should be submitted as a bug report to Ulrike (IMO). –  Werner Feb 2 '13 at 20:52
    
@Werner: Thanks. So is there any alternative for drawing chessboard that I'm not aware of? –  Chan Feb 2 '13 at 20:55
    
In the style you're after (different from 8x8), there's not much. See Game packages on CTAN. Ulrike is around here... somewhere... –  Werner Feb 2 '13 at 20:57
    
@Werner: Got it, thanks again. –  Chan Feb 2 '13 at 21:19
    
@Chan: The example works fine for me on a current miktex 2.9. Also the warning is (currently) harmless. Add \listfiles at the start of your example. Then compile with pdflatex and put the log-file somewhere for inspection. –  Ulrike Fischer Feb 3 '13 at 10:46
show 1 more comment

2 Answers

up vote 2 down vote accepted

Alternatively, you can use skak package. Here is a sample:

\documentclass{article}
\usepackage{skak}

\begin{document}
\section*{Chess}

\newgame
\mainline{1.e4 e5 2. Nf3 Nc6 3.Bb5}
\[ \showboard \]
\mainline{3...a6} Rarely used these days,
\variation{3...Nf6} is more in fashion since blah blah... \\
\mainline{4.Ba4}
\[ \showboard \]

\end{document}

enter image description here

share|improve this answer
1  
So how about a 4x4 style chessboard? –  Werner Feb 2 '13 at 20:59
    
@Werner, well, my bad. I didn't notice the 4x4 part in the code of the question and I'm not sure if skak or xskak support that. Should I remove the answer? –  Pouya Feb 2 '13 at 21:11
add comment

You can try the "diagram" package:

\documentclass{scrartcl}
\usepackage{diagram}
\usepackage{hyperref}

\begin{document}
\begin{diagram}[4x4] 
\pieces{wDa1, wDd2} 
\end{diagram}
\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.