Selaa lähdekoodia

used standalone instead of preview

Martin Thoma 13 vuotta sitten
vanhempi
commit
dd8dd8921e
1 muutettua tiedostoa jossa 2 lisäystä ja 6 poistoa
  1. 2 6
      documents/chess-chessboard-4x4/chess-chessboard-4x4.tex

+ 2 - 6
documents/chess-chessboard-4x4/chess-chessboard-4x4.tex

@@ -1,14 +1,10 @@
-\documentclass{article}
-\usepackage[pdftex,active,tightpage]{preview}
-\setlength\PreviewBorder{2mm}
+\documentclass[varwidth=true, border=0pt]{standalone}
 % Source: http://tex.stackexchange.com/a/15278/5645
 
 \usepackage{chessboard}
 \storechessboardstyle{4x4}{maxfield=d4}
 
 \begin{document}
-\begin{preview}
 % showmover shows which player is to move
-\chessboard[style=4x4,setwhite={Qa1,Qd2},showmover=false]
-\end{preview}
+\chessboard[style=4x4, setwhite={Qa1,Qd2}, showmover=false]
 \end{document}