My goal is to have an image created with gastex and include an image (a png,jpg,pdf,.. image) into the gastex one. For example, draw an automaton with a smiley picture in a state.
I've read around about including images using latex+dvipdf. From what I've seen (here) it's not possible to include images using these two tools. My problem is that gastex compiles only with these two tools and not with pdflatex. So I'm stuck..
This is my code (red-x.jpg is a standard jpg image):
\documentclass{beamer}
\usepackage{gastex}
\usepackage{graphicx}
\begin{document}
\begin{frame}
\begin{picture}(40,20)(-25,-28)
\gasset{Nw=6,Nh=6,Nmr=10} %nWidth nHeight
\node(A)(25,0){}
\node[linewidth=0.4,linecolor=orange](B)(12,-10){}
\end{picture}
\begin{figure}
\includegraphics{red-x.jpg}
\end{figure}
\end{frame}
\end{document}
In order to compile with latex+dvipdf you need to use: \includegraphics[bb=0 0 20 20]{red-x.jpg}. Using xelatex, the gastex image does not show and only the red-x shows.
Suggestion?

xelatexinstead – Jun 04 '12 at 20:51xelatexdoesn't compile mygasteximage. I.e., the image appears with no lines/nodes/... I'm using Ubuntu if it helps.. – Guy Jun 04 '12 at 21:02** WARNING ** Interpreting PS code failed!!! Output might be broken!!!, when compiling withxelatex. – egreg Jun 04 '12 at 21:59latex+dvipdfI getGPL Ghostscript 8.71: Unrecoverable error, exit code 1and a stack trace which is not informative. – Guy Jun 05 '12 at 08:23gastexis not compatible with XeLaTeX, because it uses low level specials thatxdvipdfmxcan't understand. – egreg Jun 05 '12 at 10:31