PDA

View Full Version : Help : editing in LyX


Lovok
January 21st, 2009, 05:24 PM
Simple question :
While in LyX, one can view the LaTeX source code being used. How can I edit this code?

This is my situation : I wrote a document in French, but when I export it to .pdf, the date is in English (even if LyX is set to French).
I see \documentclass[english]{article} in the source, and I want to change that [english] to [french], but I can't seem to find out how. Can this be done?

Thank in advance.

tommers
January 21st, 2009, 09:48 PM
I would like to know about this as well.

In the past, I have deleted sections that were not imported into LyX correctly and inserted a TeX box into the document with the correct LaTeX - but it would be much easier to just edit the LaTeX code directly.

I remember looking through the LyX wiki, but not finding much help. It might be worth checking there... just in case.

IanH
January 21st, 2009, 10:13 PM
Have you checked the language tab in the document settings? I suspect settings there would control that line.

As for editing the tex code, I don't think it's possible short of exporting to tex and editing that file. You can insert tex code in the document (Insert->TeXCode), but that won't overwrite the generated code.

Lovok
January 22nd, 2009, 10:03 AM
Have you checked the language tab in the document settings? I suspect settings there would control that line.

That did exactly what I needed, thank you good sir.

eljalill
January 22nd, 2009, 02:38 PM
Is there specific reason why you need to edit it in LyX?
You could just open the source file in gedit or another editor, and change that bit there. Or does LyX change it back then?

Lovok
January 22nd, 2009, 03:24 PM
I just checked, and the changes I made to the language in gedit were carried over to LyX.
If I need to play with the source, I will do it this way from now on, thanks.