MathType生成的乳胶代码如下:
\[\widetilde v(i) = \frac{{\sum\nolimits_{j \in {N_i}(D)} {w(i,j)v(j)} }}{{\sum\nolimits_{j \in {N_i}(D)} {w(i,j)} }}\]
但是当我将此代码插入vim-latex时,会发生一些错误,因此vim-latex无法接受它:
mypaper.tex|559 error| LaTeX Error: Bad math environment delimiter.
mypaper.tex|559 error| Missing delimiter (. inserted). \endgroup \[\widetilde v(i) = \frac\left\{ \sum\nolimits_{j \in {N_i}(D)} {w(i,j...
mypaper.tex|559 error| Missing \right. inserted. \right . \[\widetilde v(i) = \frac\left\{ \sum\nolimits_{j \in {N_i}(D)} {w(i,j...
mypaper.tex|559 error| Extra }, or forgotten $. ...\nolimits_{j \in {N_i}(D)} {w(i,j)v(j)} } }\left\{ \sum\nolimits_{j ...
mypaper.tex|559 error| Extra }, or forgotten $. ...nolimits_{j \in {N_i}(D)} {w(i,j)v(j)} }} \left\{ \sum\nolimits_{j \...
mypaper.tex|559 error| Extra }, or forgotten \right. ...\sum\nolimits_{j \in {N_i}(D)} {w(i,j)} } }\] \right\}<++> \right\}<++>
mypaper.tex|559 error| Extra }, or forgotten \right. ...sum\nolimits_{j \in {N_i}(D)} {w(i,j)} }} \] \right\}<++> \right\}<++>
mypaper.tex|559 error| LaTeX Error: Bad math environment delimiter.
mypaper.tex|559 error| Extra \right. ...}(D)} {w(i,j)} }}\] \right\}<++> \right\} <++>
如何解决这个问题?
答案 0 :(得分:1)
用$$
符号围绕您的数学代码。
例如:
$$ sin^2(\theta) +cos^2(\theta) = 1 $$
将产生您想要的等式。
答案 1 :(得分:0)
我使用以下代码来解决此问题:
\widetilde v(i) = \frac{ \sum\nolimits_{j \in {N_i}(D)} {w(i,j)v(j)} }{ \sum\nolimits_{j \in {N_i}(D)} {w(i,j)}}
答案 2 :(得分:-1)
\begin{document}
\begin{equation}
\tilde{v}(\it {i})=\frac{\Sigma_{j\epsilon N_iD}
W(\it{i,j})v(\it{j})}{{\Sigma_{j\epsilon N_iD} W(\it{i,j})}}
\end{equation}
\end{document}
这似乎可行。