How do I best preview my figures? I have one file with this:
\begin{figure}
\begin{tikzpicture} %if tikz
...
\end{tikzpicture}
\includegraphics{...} %if eps
\caption{...}
\label{fig:..}
\end{figure}
and I can use it in my papers with \input{...}, but to preview my figure, I need some compilable wrapper like this:
\documentclass[a4paper]{article}
\pagestyle{empty}
\usepackage{tikz}
\begin{document}
\input{FIGURENAME}
\end{document}
Is there a way to write this wrapper in a way, so it can be used for all my figures? or is there a better way to do this? shellscript?
figureis a float andstandaloneusespreviewby default which removes all white space around it, but can't handle floats. It stores the content in a box which doesn't work with floats. See also my recent answer to Nested standalone files with standalone package. – Martin Scharrer Oct 17 '11 at 16:09previewpackage. Try withpreview=falseas class option in the pictures files. This won't crop the white space but avoid this things. – Martin Scharrer Oct 18 '11 at 07:52standalonewhich provides a new optioncropas alternative topreview. It should fix certain problems with thepreviewoption. There is also afloatoption to allow floating environments inside subfiles (but they are turned to non-floats in standalone mode). Both new options are turned on by default in v1.0. – Martin Scharrer Dec 21 '11 at 16:21