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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I try to compile this,


    \node [rectangle, % <-- there's a syntax error
    \node [rectangle] (a) {};

compilation never stops. Is this a bug in TikZ/PGF?

I use this version of latex:

pdfTeX 3.1415926-2.3-1.40.12 (TeX Live 2012/dev/Debian)
share|improve this question

closed as not a real question by egreg, Werner, percusse, Jake, Martin Scharrer Apr 6 '12 at 11:45

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

The input has an obvious syntax error. – egreg Apr 5 '12 at 22:47
I know. But shouldn't I get an error message? – helami Apr 5 '12 at 22:48
Please, state your question more clearly, then. – egreg Apr 5 '12 at 22:50
you can even simplify your example to \documentclass{article}\usepackage{tikz}\begin{document}\tikz\node [\node] (a) {};\end{document} and it will show the same behavior. The reason seems to be the search for the path to apply the second node code however the second bracket completes the options declaration and the error-check cannot understand the nature of the problem while searching for the path. – percusse Apr 5 '12 at 22:58
@helami: Maybe you you could file a bug report/feature request at sourceforge.net/tracker/?group_id=142562&atid=752792 – Jake Apr 6 '12 at 7:50