2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/documents/chess-skak-simple-example/chess-skak-simple-example.tex

17 lines
359 B
TeX
Raw Normal View History

2012-09-11 07:47:28 +02:00
\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{5mm}
\usepackage{skak}
\begin{document}
\begin{preview}
% sets the internal board or a new game
2012-09-11 08:57:19 +02:00
\newgame%
2012-09-11 07:47:28 +02:00
% typesets the moves and updates the board
\mainline{1.e4 e5 2. Nf3 Nc6 3.Bb5}\\
% show the current board position
2012-09-11 08:57:19 +02:00
\showboard%
2012-09-11 07:47:28 +02:00
\end{preview}
\end{document}