chess-skak-simple-example.tex 359 B

1234567891011121314151617
  1. \documentclass{article}
  2. \usepackage[pdftex,active,tightpage]{preview}
  3. \setlength\PreviewBorder{5mm}
  4. \usepackage{skak}
  5. \begin{document}
  6. \begin{preview}
  7. % sets the internal board or a new game
  8. \newgame%
  9. % typesets the moves and updates the board
  10. \mainline{1.e4 e5 2. Nf3 Nc6 3.Bb5}\\
  11. % show the current board position
  12. \showboard%
  13. \end{preview}
  14. \end{document}