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.

When I compile the following :

\documentclass{article}
\usepackage{chessboard}
\usepackage{diagram}
\usepackage[ps]{skak}
\begin{document}
\begin{diagram}[4x4]
\pieces{}
\end{diagram}
\begin{diagram}[3x4]
\pieces{}
\end{diagram}
\end{document}

enter image description here

appears information that do not interest me. How to delete them?

share|improve this question
1  
This does not compile for me (please explain your compilation routine of complete the example). Don't know the packages, but does \begin{diagram*} exist? This would be the first thing I'd try in order to get rid of the numbers. –  LaRiFaRi Jul 15 at 7:08
    
Perhaps it is better to use xskak instead of skak package? –  Christian Hupfer Jul 15 at 7:29
    
If you exit \begin {diagram}, when complia disappears the Board –  benedito Jul 15 at 7:32
    
OK, diagram* does not work. Do you even need skak and chessboard for the picture you have shown us? Still can't compile if I leave \pieces{} empty –  LaRiFaRi Jul 15 at 7:32
    
You can put any piece. I can compile like this, but the extra information continue to appear –  benedito Jul 15 at 7:40
show 2 more comments

1 Answer 1

up vote 7 down vote accepted

The commands needed to get rid of the additional informations are described in the documentation of diagram.

diagram clashes with skak and chessboard as it tries to (re)define the command \boardfont. You can avoid the error by loading chessboard before diagram and "undefining" the command so that diagram can overwrite it. This won't affect chessboard but break the \showboard command of skak:

\documentclass{article}
\usepackage{skak}
\usepackage{chessboard}
\let\boardfont\undefinedcommand
\usepackage{diagram}

\begin{document}
\setboolean{showcomputer}{false}
\setboolean{piececounter}{false}
\specialdiagnum{}
\begin{diagram}[4x4]
\pieces{wKd3}
\end{diagram}

\newgame\mainline{1. e4} 
\chessboard
\showboard
\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.