However, when I write a particular tikzpicture, like the following:
Code: Select all
\begin{tikzpicture}
[ciclo/.style={circle,draw,fill=red!70,thick,inner sep=1pt},nociclo/.style={circle,draw,thick,inner sep=1pt}]
\node (uno) at (1,1) [ciclo] {$a_5$};
\node (dos) at (1,3) [ciclo] {$h_1$};
\node (tres) at (1,5) [ciclo] {$a_1$};
\node (cuatro) at (3,1) [ciclo] {$h_5$};
\node (cinco) at (3,3) [ciclo] {$a_2$};
\node (seis) at (3,5) [ciclo] {$h_2$};
\node (siete) at (5,1) [nociclo] {$h_3$};
\node (ocho) at (5,3) [nociclo] {$a_4$};
\node (nueve) at (7,1) [nociclo] {$a_3$};
\node (diez) at (7,3) [nociclo] {$h_4$};
\draw[->] (uno) -- (dos);
\draw[->] (dos) -- (tres);
\draw[->] (tres) -- (seis);
\draw[->] (seis) -- (cinco);
\draw[->] (cinco) -- (cuatro);
\draw[->] (cuatro) -- (uno);
\draw[->] (ocho) -- (seis);
\draw[->] (diez) -- (ocho);
\draw[->] (diez) -- (nueve);
\draw[->] (siete) -- (nueve);
\end{tikzpicture}
Code: Select all
!LaTeX Error: \begin{tikzpicture} on input line 150 ended by \end{document}
It turns out that when I ommit the \draw commands within the tikzpicture environment, the file is compiled without errors, and is the same case when I do not load the "babel" package with the "spanish" option and I include the \draw commands within tikzpicture.
I want to know whether the TikZ package supports the babel spanish option, and why when I do not write the \draw commands the file is correctly compiled?
Thanks,
Regards.
Eglucon