This question already has an answer here:

Im having a little problem with the Tikz package. I don't know why it doesn't want to compile if i want to do arrows instead of lines. Im using the following code to create a diagram:



    \matrix [column sep=15mm, row sep=4mm, every node/.style={
         text width=3cm,
        minimum height=1.75cm,
        text centered,
        rounded corners,
        line/.style={draw, thick, <-},
    }] {
      \node (a1) {Controlador de solicitudes}; &
      \node (a2) {Receptor Satelital}; &
      \node (a3) {Alimentatión Inteligente}; \\
      \node (b2) {Decodificador NMAE}; &
      \node (b3) {Interfaz Web}; \\
      \node (c2) {Almacenamiento de Informacion}; &
      \node[xshift=15mm] (c3) {Autorizar y Autentificar}; \\
      \node (d2) {Transmisor con GMS/GPRS}; &
      \node (d3) {Servidor Web}; \\

    \begin{scope}[->, very thick]
      \draw (a1) -- (a2);
      \draw ([xshift=3mm]a1.south) |- ([yshift=3mm]d2.west);
      \draw (a2) -- (b2);
      \draw (b2) -- (c2);
      \draw (c2) -- (d2);
      \draw ([yshift=-3mm]d2.west) -| ([xshift=-3mm]a1.south);
      \draw[-, dashed] (d2) -- (d3);
      \draw ([xshift=5mm]b3.south) -- ([xshift=-10mm]c3.north);
      \draw ([xshift=-10mm]c3.south) -- ([xshift=5mm]d3.north);
      \draw ([xshift=-5mm]d3.north) -- ([xshift=-5mm]b3.south);


I realized that the problem is the -> after the \begin{scope}. If i delete that it compiles perfect.

What can it be? Im i loading the wrong package?

Thanks !

marked as duplicate by Torbjørn T., Svend Tveskæg, user13907, jub0bs, percusse tikz-pgf Aug 17 '14 at 23:27

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.