Skip to content

Having multiple cells with %%tikz does not work #8

@candlelightner

Description

@candlelightner

System: Win11 + MikTeX

If I use the cell magic %%tikz in one cell that is positioned above the second (actual order of execution does not matter), I get the desired result:

%%tikz
\begin{tikzpicture}
  \node {1};
\end{tikzpicture}
\begin{tikzpicture}
  \node {2}
  child {node {1}};
\end{tikzpicture}
\begin{tikzpicture}
  \node {3}
  child {node {1}}
  child {node {2}};
\end{tikzpicture}
\begin{tikzpicture}
  \node {4}
  child {node {3}
    child {node {1}}
  }
  child {node {2}};
\end{tikzpicture}
\begin{tikzpicture}
  \node {5}
  child {node {4}
    child {node {1}}
    child {node {3}}
  }
  child {node {2}};
\end{tikzpicture}

results in

image

However, if I try the following in the cell below:

%%tikz
\begin{tikzpicture}
  \node {test}
  child {node {aa}}
  child {node {2}};
\end{tikzpicture}

this for some reason results in

image

This is not an error of my latex compiler, as the generated tex files compile fine (and to their desired result).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions