【发布时间】:2017-03-21 17:50:50
【问题描述】:
我正在使用 Sublime sn-p 创建 Latex 状态机模板。但是,它什么也不做(当我键入“stmach”并按 Tab 时,stmach 消失但不包括 Latex 代码)。我不明白为什么,因为我所有其他的 sn-ps 都工作正常。
如果我删除 sn-p 中的一些行,它可以工作,但我需要整个块:/
<snippet>
<content><![CDATA[
\begin{center}
\begin{tikzpicture}[shorten >=1pt,node distance=4.5cm,on grid,auto]
\tikzstyle{every state}=[draw=blue!50,very thick,fill=blue!20] % Node color
\node[state,initial,initial text=reset, initial where=below] (configuration) {$conf$}; % Node name and position
\node[state] (init) [below right=of configuration] {$init$};
\path[->] % Arrow
(configuration)
edge [bend left] node {finishConfiguration=1} (init)
(init)
edge [bend left] node {} (configuration);
\end{tikzpicture}
\end{center}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>stmach</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.tex</scope>
请注意,Latex 代码可以正常工作,不会出现任何错误或警告。
【问题讨论】:
标签: sublimetext3 sublimetext-snippet