-\latexonly{\begin{equation}\label{dequation}d = \sqrt{\frac{\displaystyle \sum_{i=1}^{n}{\sum_{j=1}^{m}{(p_{i,j} - r_{i,j})^2}}} {\displaystyle \sum_{i=1}^{n}{\sum_{j=1}^{m}{(p_{i,j} - \bar{p})^2}}}}\end{equation}}
-\latexonly{\begin{equation}\label{requation}r = \frac{\displaystyle \sum_{i=1}^{n}{\sum_{j=1}^{m}{|p_{i,j} - r_{i,j}|}}} {\displaystyle \sum_{i=1}^{n}{\sum_{j=1}^{m}{|p_{i,j}|}}}\end{equation}}
+%
+%Tex2RTF can not handle the any subscripts or superscripts for the inner summation unless
+% have a space character before the \sum
+\latexonly{\begin{equation}\label{dequation} d =\sqrt{\frac{\displaystyle \sum_{i=1}^{n}{ \sum_{j=1}^{m}{(p_{i,j} - r_{i,j})^2}}}{\displaystyle \sum_{i=1}^{n}{ \sum_{j=1}^{m}{(p_{i,j} - \bar{p})^2}}}}\end{equation}}
+\latexonly{\begin{equation}\label{requation}r = \frac{ \displaystyle \sum_{i=1}^{n}{ \sum_{j=1}^{m}{|p_{i,j} - r_{i,j}|}}}{ \displaystyle \sum_{i=1}^{n}{ \sum_{j=1}^{m}{|p_{i,j}|}}}\end{equation}}