How do I use a exported TeX/PSTricks file in my TeX document?
\usepackage{pstricks} to the preamble of your TeX document. Then include your image as \begin{figure} \centering \input{filename.tex} \caption{A caption} \label{figure:alabel} \end{figure} in your document. Note: Up to and including version 0.86, Dia doesn’t deal correctly with some functions that PSTricks doesn’t implement. You may have to change the start of the generated file to look like this: Then uncomment the three commands in the generated TeX file (unless you have a PSTricks with this functionality implemented), so it looks like: % PSTricks TeX macro % Title: x500name.dia % Creator: Dia v0.86 % CreationDate: Thu Oct 5 11:25:54 2000 % For: a user % \usepackage{pstricks} \providecommand{\setlinejoinmode}[1]{} \providecommand{\setlinecaps}[1]{} \providecommand{\setfont}[2]{} … Note: PSTricks in the tetex-1.0.6-11 RPM (used in Red Hat Linux 6.2) is buggy. Easiest fix is to get pstricks.tex from CTAN and put it in /usr/share/texmf/tex/generic/pstricks/. • Q: I wish I had nice zig