Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Screen shot

I'm new to LyX. I have just given it a try and written my first article.

I discovered a panel from Menu > View > View Source. It shows the source code of my article. But as far as I see, I am not able to edit this code preview panel. I want to edit both the panels. I want the other panel automatically update itself as I type one panel (like the split panels of code/design in Adobe Dreamweaver). If editing both the panels is not possible, at least I want to do it on the reverse; I only want to work on code and see its preview real time.

Is this possible in LyX?

share|improve this question
e-birk has a good answer. You cannot edit the code in the preview like in Dreamweaver's view source. For this to work, LyX would have to re-import the LaTeX every time you edited it (into it's own internal representation). That's a difficult task. – scottkosty Mar 20 at 17:12

1 Answer

up vote 5 down vote accepted

There is the possibility in LyX to preview graphics and math formulas. The settings can be found under "Tools > Preferences..." then "Look & Feel > Display". (Internally, LyX uses the preview package of LaTeX, see http://wiki.lyx.org/LyX/InstantPreview.)

instant preview of math formula This is how your example looks with instant preview on.

Furthermore, LyX is a document processor that generates LaTeX code. As you have discovered you can preview the generated code but you cannot edit this. Nevertheless, you can

  • insert LaTeX code via "TeX code/ERT" (Ctrl+L), or
  • insert entire LaTeX files via "Insert > File > Child Document...".
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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