add begin/end{preview} to tex output
authorAdam Megacz <megacz@cs.berkeley.edu>
Sun, 15 May 2011 21:31:23 +0000 (14:31 -0700)
committerAdam Megacz <megacz@cs.berkeley.edu>
Sun, 15 May 2011 21:31:23 +0000 (14:31 -0700)
examples/GArrowTikZ.hs

index 54c31ee..6ebaded 100644 (file)
@@ -341,9 +341,11 @@ tikz example
           putStrLn "\\usepackage[tightpage,active]{preview}"
           putStrLn "\\begin{document}"
           putStrLn "\\setlength\\PreviewBorder{5pt}"
           putStrLn "\\usepackage[tightpage,active]{preview}"
           putStrLn "\\begin{document}"
           putStrLn "\\setlength\\PreviewBorder{5pt}"
+          putStrLn "\\begin{preview}"
           putStrLn $ "\\begin{tikzpicture}[every on chain/.style={join=by ->},yscale=-1]"
           putStrLn (toTikZ example)
           putStrLn "\\end{tikzpicture}"
           putStrLn $ "\\begin{tikzpicture}[every on chain/.style={join=by ->},yscale=-1]"
           putStrLn (toTikZ example)
           putStrLn "\\end{tikzpicture}"
+          putStrLn "\\end{preview}"
           --putStrLn "\\pagebreak"
           --putStrLn "\\begin{align*}"
           --putStr   (toTikZ' example)
           --putStrLn "\\pagebreak"
           --putStrLn "\\begin{align*}"
           --putStr   (toTikZ' example)