33

I'm trying to export a PDF of a LyX document (it has never caused a problem before). Below I have posted pictures of the error message along with the equation LyX highlighted for me. I don't know what \hbox is, and I didn't use that in my code. Can someone please help me edit the equation so that I can export a PDF?

enter image description here

enter image description here

1
  • 1
    This \hbox thing is just an example for a typo, has nothing to do with your text!
    – vaettchen
    Commented Feb 1, 2013 at 16:57

1 Answer 1

50

The command \coloneqq is unknown, you need to load a package for this, such as mathtools, txfonts or pxfonts.

Add to your document preamble:

\usepackage{mathtools}

LyX 2.1 will have direct mathtools support.

3
  • 1
    Thank you. Where would I type this "\usepackage{mathtools}"? Commented Feb 2, 2013 at 4:21
  • 1
    The document preamble can be edited via the LyX menu: Document/ Settings.
    – Stefan Kottwitz
    Commented Feb 2, 2013 at 8:13
  • 2
    I'm using Lyx 2.2.2 and have to force the use of mathtools from Document / Settings, the auto detect setting seems broken.
    – Nobody
    Commented Dec 15, 2016 at 15:42

You must log in to answer this question.

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