2016-07-29 86 views
0

因此,我试图找到一个思维导图软件与乳胶支持和绊倒Freeplane。Freeplane - latexinput

对此非常满意,除了我似乎无法弄清楚如何从文件工作制作乳胶输入。

E.g.如果我想有这样的代码:

\textbf{$Alg_0$} 
\begin{tabular}{cl} 
    0 & \text{initialisation of $Alg_0$} \\ 
    1 & \text{do\ some\ first\ step}\\ 
    2 & \text{...} \\ 
\end{tabular} 

我可以将此复制到节点和渲染结果看上去如预期(尽管需要对\text{}是烦人)。

为了便于编写/修改,我希望不必每次都将它复制到Freeplane中。

Freeplane claims that's possible,与\latexinput{}命令,但“该文件必须是格式良好的XML文档,所以你必须要有一个根标签和逃避<,>和&”

通过这些实例,我添加文档标签和逃避&:

<doc> 
\textbf{$Alg_0$} 
\begin{tabular}{cl} 
    0 &amp; \text{initialisation of $Alg_0$} \\ 
    1 &amp; \text{do\ some\ first\ step}\\ 
    2 &amp; \text{...} \\ 
\end{tabular} 
<doc> 

在同一文件夹中保存这为alg_0.xml我已经把.mm文件,并创建一个节点与

\latexinput{alg_0.xml} 

改变其格式的LaTeX现在将显示:

Error setting the text for the following input: \latexinput{alg_0.xml}.

我该如何解决这个问题?

回答

1

快速回答:您可能不希望\ latexinput {...}其中只有 适用于出口。

你能做些什么来保存Freeplane打字乳胶代码是 定义一个宏(有一定的局限性通常LaTeX的语法)在首选项 >插件 - >的胶乳>常见的LaTeX宏[1]。 对于你的榜样,这个工程:

\newcommand{\exampleTable}{ 
\textbf{$Alg_0$} 
\begin{tabular}{cl} 
    0 & \text{initialisation of $Alg_0$} \\ 
    1 & \text{do\ some\ first\ step}\\ 
    2 & \text{...} \\ 
\end{tabular} 
} 

(当然你也可以使用参数)

- >粘贴到首选项的文本框>插件 - >乳胶。 - >使用\ example在您的节点中的表

\ latexinput {...}如何工作?

从这里[2]: “如果你的节点模式 \ latexinput {} 然后Freeplane将包括在 乳胶出口给定位置的给定文件匹配请注意,出口将如果文档失败不能被 读取。“

- >的想法是,我们的(优秀!)胶乳库(jlatexmath) 只能处理公式,你可以使用\ latexinput {} 包括乳胶是jlatexmath无法在地图 解析其将由乳胶(输入/书/文章) 导出处理。

出现此错误的原因: 设置以下输入文本时出错:\ latexinput {alg_0.xml}。 是jlatexmath无法解析这个。在Format = Unparsed LaTeX中使用节点(没有\ latex前缀) 。这将使freeplane忽略节点,但它将成为导出的一部分。

但是,使用Freeplane 1.5.x时,权限会受到更多限制,因此您会收到 “以下文件操作被禁止:读取/home/felix/src/alg_0.xml”。

我为此[3]创建了一篇文章,我认为它会在 1.5.x中修复。

请告诉我,如果wiki中的文档可以改进 (我也可以给你wiki权利)。

[1] http://www.freeplane.org/wiki/index.php/LaTeX_in_Freeplane#Commmon.2Fglobal_LaTeX_Macros

[2] http://www.freeplane.org/wiki/index.php/LaTeX_in_Freeplane#Including_LaTeX_content_from_file_system

[3] http://freeplane-developer.996965.n3.nabble.com/Permission-problem-when-Including-LaTeX-content-from-file-system-tt973.html

欢呼和问候, 菲利克斯

+0

的许可问题\ latexinput {...}是固定在freeplane 1.5.14。 –