I have a code that works on another computer, and on another it is prompting an error:
Missing $ inserted. };
This is the .tex :
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}[grow=right]
\node {}
child [sibling distance=20ex] { node {T}
child [sibling distance=10ex] { node {T}
child [sibling distance=5ex]
{ node [anchor=west] { T $\cdots$ (T,T,T)\; $p = \frac{1}{8}$ } }
child [sibling distance=5ex]
{ node [anchor=west] { H $\cdots$ (T,T,H)\; $p = \frac{1}{8}$ } }
}
child [sibling distance=10ex] { node {H}
child [sibling distance=5ex]
{ node [anchor=west] { T $\cdots$ (T,H,T)\; $p = \frac{1}{8}$ } }
child [sibling distance=5ex]
{ node [anchor=west] { H $\cdots$ (T,H,H)\; $p = \frac{1}{8}$ } }
}
}
child [sibling distance=20ex] { node {H}
child [sibling distance=10ex] { node {T}
child [sibling distance=5ex]
{ node [anchor=west] { T $\cdots$ (H,T,T)\; $p = \frac{1}{8}$ } }
child [sibling distance=5ex]
{ node [anchor=west] { H $\cdots$ (H,T,H)\; $p = \frac{1}{8}$ } }
}
child [sibling distance=10ex] { node {H}
child [sibling distance=5ex]
{ node [anchor=west] { T $\cdots$ (H,H,T)\; $p = \frac{1}{8}$ } }
child [sibling distance=5ex]
{ node [anchor=west] { H $\cdots$ (H,H,H)\; $p = \frac{1}{8}$ } }
}
};
\end{tikzpicture}
\end{document}
I get this from a TikzPictures package in Julia to create probability outcome graph. But it can't work in either Julia or LaTeX.
What is the problem with this tex code? On another computer it is working.
\;
cause this, iirc, those weren't always defined for text mode.