13 August, 2016

Lyx Debugging

Getting an error in Lyx is pretty normal. That is when you try to compile to .dvi or .pdf. But how can you edit an error in myfile.lyx in line 666? From inside Lyx it's not possible to edit the source. As far as I know, that is.

So, the quick a dirty solution is:
  1. Get out of the file in Lyx.
  2. Open the file in your favorite editor (vi, nano, gedit ... etc.)
  3. Go to the line with an error. 
  4. Fix or remove whatever seems wrong. 
  5. Save and open the file in Lyx again.
  6. Compile ... and hope for the best.
Sometimes the error may have it's origin from a bibtex file. Same recipe here.

No comments: