So I've tried to find a mind-mapping software with latex support and stumbled across Freeplane.
Pretty satisfied with it, except I cannot seem to figure out how to make latex input from file work.
E.g. if I want to include a code like this:
\textbf{$Alg_0$}
\begin{tabular}{cl}
0 & \text{initialisation of $Alg_0$} \\
1 & \text{do\ some\ first\ step}\\
2 & \text{...} \\
\end{tabular}
I can copy this to the node and the rendered result looks as expected (though the need for the \text{}
is annoying).
Now for sake of easier writing/modification, I should like to not have to copy it into Freeplane every time.
Freeplane claims that's possible, with the \latexinput{}
command but "the file must be a well-formed XML document, so you must have a root tag and escape <, > and &"
Following their example, I add doc tags and escape &:
<doc>
\textbf{$Alg_0$}
\begin{tabular}{cl}
0 & \text{initialisation of $Alg_0$} \\
1 & \text{do\ some\ first\ step}\\
2 & \text{...} \\
\end{tabular}
<doc>
save this as alg_0.xml
in the same folder I've put the .mm
file and create a node with
\latexinput{alg_0.xml}
Changing its format to LaTeX will now display:
Error setting the text for the following input: \latexinput{alg_0.xml}.
How do I resolve this?