latexmathtype

How to write this mathematical formulas into latex


I want to change this formula into Latex code: enter image description here

the latex code generated by MathType is below:

\[\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)} }}\]

but when i insert this code into vim-latex, somes errors happens, so that vim-latex cannot accept it:

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\} <++>

How to solve this problem ?


Solution

  • I use the follow code to solve this problem:

    \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)}}