Hi.. I'm having trouble with some simple math in the math editor.. I'm getting errors saying there are missing $, } etc.. I'm attaching a sample file here which has 2 lines of math text that gives me 15 errors. Please let me know what needs to be done to correct this (if it can be corrected by the user..)
The problem was in the second equation on the first line. To solve it I simply rewrote it (see attached file) --- I'm assuming you didn't want the right parenthasis in bold.
This kind of problem happens to me from time to time in lyx (mysterious errors which are solved by rewrting a small section).
In this case it might be the \mathrm in your equation which then includes \mathbf (maybe you pressed C-m by mistake within the equation?).
I should add however, that when I deleted by hand the \mathrm and its appropriate {} (second attached file), in the exported LaTeX file, running Latex on it gave me no problems but importing it back did give me problems
I Hope this helps,
Amir.
#LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble
\newcommand\myToday{\ifcase\month\or January\or February\or March\or April\or May\or June\or July\or August\or September\or October\or November\or December\fi \space\number\day, \number\year} \sloppy \newlength{\myDummy} \setlength{\myDummy}{0.75cm}% maybe different \newcommand\dummy{% \raisebox{-0.5\myDummy}{\rule{0pt}{\myDummy}}% } \end_preamble \language american \inputencoding auto \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize letterpaper \paperpackage a4 \use_geometry 1 \use_amsmath 1 \use_natbib 1 \use_numerical_citations 0 \paperorientation portrait \paperwidth 0pt \paperheight 0pt \leftmargin 1.25in \topmargin 1in \rightmargin 1.25in \bottommargin 0.5in \headheight 0pt \headsep 0in \footskip 0.5in \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard The variance of the quadratic form \begin_inset Formula $\mathbf{u^{\prime}}M\mathbf{u}$ \end_inset when \begin_inset Formula $\mathbf{u}\sim N_{p}(\mu_{\mathbf{u}},\Sigma_{\mathbf{u}})$ \end_inset is given by \layout Standard \begin_inset Formula \begin{eqnarray*} \textrm{Var}(\mathbf{u^{\prime}}M\mathbf{u}) & = & 2tr(M\Sigma_{u}M\Sigma_{u})+4\mu_{u}^{\prime}M\Sigma_{u}M\mu_{u}\end{eqnarray*} \end_inset \the_end
errors.tex
Description: TeX document