On Wed, Mar 10, 2010 at 12:36 PM, Chaka Ben<[email protected]> wrote:
Hello Lyx-Users,
I am a total newbie to LyX from Germany. I really appreciate the ability of LyX
as an WYSIWYG-Program and the possibility to see how LyX converts inputs to the
LaTeX-Code.
But is there a possibility to change the LaTeX-Code within LyX? If not, how do
you change the LaTeX-Code if necessary?
This is not possible. You can enter raw LaTeX code where you need it
using Insert>TeX Code. And if you want to make large scale
changes---say, some search and replace on the LaTeX---then you can
export to LaTeX, do what you need to do, and then import the result back
into LyX. But the results may not always be what you expect. All of this
is because LyX's own internal format is not LaTeX. (Look at a LyX file
in a text editor to see what I mean.) And that is because LyX is not
*just* a front-end to LaTeX. It can also create DocBook files, and LyX
2.0 will be able to export HTML natively. So in a sense LyX aims to be
format-neutral.
Richard