Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Consider following code:

   \tikzstyle{box}=[draw, fill=brown!40, text width=7em,
        text centered, minimum height=7em, rounded corners]
    \tikzstyle{usb}=[draw, fill=blue!40, text width=3em,
        text centered, minimum height=3em]
    \pgfdeclareimage[width=10em]{smarthomes}{smarthomes}
    \pgfdeclareimage[width=10em]{ekg}{ekg}
    \pgfdeclareimage[width=10em]{quadro}{quadro}

    \begin{tikzpicture}
        \node (and) [box] {first device};
        \path (and)+(5.5em,0) node (usb) [usb] {USB};
        \path (and)+(11em,0) node (mk) [box,fill=green!40] {second device};


        \path (and)+(25em,10em) node (home) [] {\pgftext{\pgfuseimage{smarthomes}}};
        \path (and)+(25em,0) node (quadro) [] {\pgfbox[center,center]{\pgfuseimage{quadro}}};
        \path (and)+(25em,-10em) node (ekg) [] {\pgfbox[center,center]{\pgfuseimage{ekg}}};

        \draw [thick] (mk.east) to ($(home) - (5em,0)$);
        \draw [thick] (mk.east) to ($(quadro) - (5em,0)$);
        \draw [thick] (mk.east) to ($(ekg) - (5em,0)$);

   \end{tikzpicture}

When I use PDFLaTeX all is right, but if I use XeLaTeX images in appropriate nodes are not positioned.

share|improve this question
2  
Note: TeXLive's XeLaTeX does not support clipping. MikTeX' XeLaTeX does not support clipping and opacity. –  I am who I say I am May 22 '12 at 18:04
1  
It seems like a bug in the XeTeX driver. If I use \includegraphics (but no \pfgtext or \pgfbox) the images are correctly placed. –  egreg Jul 7 '12 at 23:18
    
@egreg I'd say that your comment is the answer here: could you convert it? –  Joseph Wright Aug 11 '12 at 13:10
add comment

1 Answer

It seems like a bug in the XeTeX driver. If I use \includegraphics (but no \pfgtext or \pgfbox) the images are correctly placed.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.