\documentclass[11pt]{article}
% Custimize your packages here:
\usepackage{ifpdf}
\ifpdf
 \usepackage{tikz}
 \usepackage[dvipsnames]{graphicx}
\else
 \usepackage{pstricks}
 \usepackage[dvips]{graphicx}
 \usepackage{pst-slpe,pst-grad}
\fi
\usepackage{boxdims}
\usepackage{bold}
\usepackage{upgreek}
\usepackage{amssymb}
\usepackage{steinmetz}
\usepackage[amssymb,Gray,thinqspace,textstyle]{SIunits}
%\usepackage[dvipsnames]{xcolor}
%
\addtolength{\textwidth}{5cm}
%\addtolength{\textheight}{3cm}
\addtolength{\textheight}{30cm}
\setlength{\oddsidemargin}{0pt}
\setlength{\evensidemargin}{0pt}
\setlength{\hoffset}{-0.5in}
\setlength{\voffset}{-1in}
\newbox\graph
\pagestyle{empty}
\thispagestyle{empty}
%
\begin{document}
  \noindent\vspace{2ex}\input{test.tex}\box\graph
\end{document}
