LyX produce a LaTeX file and then call to pdflatex
(or other compiler) to produce the PDF with this LaTeX file, so the results is the same. The point is decide if you are more comfortable editing directly the LaTeX source or the Lyx document.
No doubt, LyX is much more attractive than LaTeX for novices because is a WYSIWYM editor (see Werner answer) where is relatively easy to produce some documents without any experience. But this is rather a disadvantage than a advantage in a long-term, because hiding what happen behind the scenes prevents to understand how LaTeX works in the very first steps. Before or later, you will need a good LaTeX knowledge in order to make a custom preamble or add some complex LaTeX code that cannot be managed directly by LyX. Instead, starting with LaTeX you will have a hard initial learning curve, but you will understand quickly the LaTeX document structure and soon you will realize that use texdoc
profusely is a must.
Another great advantage of LyX is that prevent many writing code errors and common mistakes. But some day, for some odd reason, you will produce a non compilable LaTeX code with your nice WYSIWYM editor. Then the LyX file is a source of frustration. The solution could be very obscure for the naive LyX user (in spite of the "nice" TeX error messages) because you have no idea of what is wrong in the LaTeX source code nor even wich part ot the code is producing the error. Horror! But you need to print your 200 pages document for tomorrow morning, but suddenly LyX refuses to produce the damn PDF! What now? Even if the problem is identified correctly, you still need to guess how prevent this using the WYSIWYM environment (you can see the generated source code, but you cannot modify it directly).
On the other hand, the LaTeX user quickly learn that any mistyped command or wrong command sequence have serious consequences, so delimit the source of the problem, search & find the offending become a simple routine after some time (well, in most cases). Some LaTeX editors help a lot with this task, so, noo panic if you obtain a "undefined control sequence"!
LyX have the great feature of hide/unhide the content of ERT boxes as well as index entries, cites, etc. but hide that boxes is somewhat dangerous (a closed box is prone to accidental deletion) and show the boxes in a complex LyX document make the text not more readable/writable that a good formatted LaTeX source code with syntax highlighting.
Another source of frustration for the LyX user is when you have a layout (.layout
file) for some document class that is not available (no .cls
file) while you have tons of document classes in TeX Live that have not the corresponding LyX layout. Make yourself a LyX layout for some document class? A nightmare for the novice. Use only standard classes? You know ... Rather dead that plain. Instead, the LaTeX user simply can use any existing .cls
file ...and that is all.
In summary, everyone think that you can drive cars without a basic background about engines ... until the car stops. Then realize that one must learn mechanics and get your hands dirty.
Therefore, IMHO, the hard but right way is start with LaTeX, at least until you are able to make some complex document like an article with tables and figures, footnotes, headers, table of contents and bibliography. Only then you can fully understand what LyX are doing for you, and what to do when things go wrong. And only then you can decide fully aware if LyX makes your work easier or harder.
LyX
is a kind of compatibility layer onLaTeX
that let you use it like a text processor under the logic WYSIWYG. Personally I don't enjoy it, for me is worse for type maths and for use it well sometimes you need deeperLaTeX
knowledge for make some adjustments. BelowLyX
can beLaTeX
orConTeXt
, as @Herbert said.