I'm using LyX on Windows (with Miktex installed) and I'm having problems exporting to PDF. I have successfully exported from LyX to PDF previously, on this computer, with this installation and in fact with a previous version of this file.

When I try to export, I get an error about a missing $ (to the best of my understanding, this means I've messed up the LaTeX code somehow, but I'm not sure how I could have done that since I used strictly the LyX interface (so I blame the program, perhaps irrationally). The attached image shows the error message. The error message confuses me in part because it seems like the compiler has fixed things for me, but then I try to export again and find that things are not fixed.

enter image description here

The offending code (first of several offenses) is as follows: % Preview source code for paragraph 24

\item [{
\int_{0}^{\infty}Ve^{-\delta t}dt=\left[-\dfrac{V}{\delta}e^{-\delta t}\right]_{t=0}^{t=\infty}=\dfrac{V}{\delta}.

In response to: how did I get here? I used the menus Insert -> Math -> Display Formula and then either typed the equation in (using standard keypresses) or pasted in using a cut and paste from an equation originally entered in inline mode. (I can't remember which is true for the offending equations; this is part of a much longer document that has been through multiple rounds of edits.)

  • 1
    You cannot have a display equation as part of the optional argument for your list \item. Could you should/explain how you got to this point?
    – Werner
    Feb 27, 2014 at 5:31
  • You've also added a list before adding the displayed math, and that is the problem here. Either by choosing Labeling in the style menu on the top left, or by clicking a button on the toolbar. Was that on purpose? Feb 27, 2014 at 15:47

1 Answer 1


In addition to the regular lists, LyX also provides a List, which outputs a lyxlist. Similar to a description, the first input is the item label. You can't insert a display math item here but you can insert an inline math equation:

enter image description here

I guess you have a couple of options (without knowing exactly what the text looks like):

  • Remove the List and insert the content in a regular paragraph
  • Use an inline math equation rather than a display one

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .