TeXMaker 与这棵 TikZ 树崩溃

TeXMaker 与这棵 TikZ 树崩溃
\node [rectangle,draw]  at (0,-13) {I:18};
\node [circle, draw] at (2,-13) {19}
    child{node[rectangle,draw] (left node) {S:9}}
    child{node[rectangle,draw] (right node) {M:10}};
\node [circle, draw] at (4, -13) {26}
    child{\node [rectangle,draw] (left node) {A:12}}
        child{\node [circle, draw] (right node) {14}
        child{node[rectangle,draw] (left node) {B:7}}
        child{node [circle, draw] {7}
            child{node[rectangle,draw] (left node) {Z:2}}
            child{node[rectangle,draw] (right node) {X:5}}
        }
    };

这段代码让我无法构建。我只是等啊等,直到我的笔记本电脑听起来要死机了。我正在使用 TikZ 来构建树。有人能看出代码中的错误吗?谢谢

答案1

删除第 6 行和第 7 行\之前的node应该会有所帮助。

相关内容