1

Lyx produces an error message when compiling, but I cannot find where the error is in the document. When hovering over the errors it says clicking it would take me to the error in the document but it's not working. This makes it very difficult to debug the errors. Please help if you have found a solution to this problem.

Error message

The complete log view is shown below, but I have similar equations throughout the document and couldn't find which one is erroneous.

enter image description here

  • Welcome to the TeX.SE. I see an error. Peraphs you have written into your code \hobx instead of \hbox. – Sebastiano Jul 14 at 20:34
  • @Sebastiano No, that is not the actual error. It's just meant as an example. – Torbjørn T. Jul 14 at 20:35
  • Zelalem, you could try clicking "View complete log", and find the first occurrence of "undefined control sequence" in that file. Then you can see the entire error, and it would show you which command is the cause of the problem. – Torbjørn T. Jul 14 at 20:36
  • @TorbjørnT. I not use LyX. I thinked that was as the .log file of the errors. Excuse me. I have misunderstood. – Sebastiano Jul 14 at 20:37
  • @TorbjørnT, I tried to look into the complete log it shows part of the equation with the error. The problem is I have plenty of similar equations throughout the document so I can't tell which one is wrong. – Zelalem Jul 14 at 20:39
2

The ams alignments such as align read their entire body as a macro argument which means that without using lyx any errors that occur within the body of the alignment will be reported at the line number for \end{align} This probably makes it hard for a system like lyx to be more precise.

However the tex log will show you which command is undefined, as it says in the help text that you show this is the last command on the first line of the error log, presumably the "view complete log" button will show this (I don't have lyx to test)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.