[Tex/LaTex] Is it possible to type LaTeX code and see its real time preview in LyX

lyxpreview

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?

Best Answer

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...".