% tightpage.tex
% Patrick Simianer <p@simianer.de>
% YYYY-MM-DD
\documentclass{article}

\usepackage[graphics,tightpage,active]{preview}
\usepackage{tikz}
\PreviewEnvironment{X}
\newlength{\imagewidth}
\newlength{\imagescale}

\begin{document}


\begin{X}
%input
\end{X}


\end{document}

