LyX is a document processor that uses a What You See Is What You Mean display so you type math and structure directly instead of raw tags. A LaTeX source editor shows code in one pane and compiles a PDF in another. Both use TeX underneath, but their workflows suit different writers.
The short answer: pick LyX if you want to write academic papers, theses or math-heavy notes without looking at LaTeX syntax. Pick a source editor if you need full control over every package, want to collaborate online with co-authors, or need to import complex existing LaTeX projects.
LyX is not a traditional word processor like Microsoft Word, nor is it a plain-text LaTeX editor. It follows a What You See Is What You Mean paradigm. When you type an equation, a fraction appears with a numerator and denominator instead of \frac{a}{b}. When you insert a section heading, the text renders in a bold, larger font immediately.
Under the hood, LyX translates your actions into clean LaTeX code and calls a TeX engine to produce the final PDF. You can view the generated source at any time in a separate window, but you do not edit that code directly during normal writing. If you need a custom LaTeX command that LyX does not support natively, you insert it as Evil Red Text, which passes raw code straight through to the compiler.
A source editor puts the raw LaTeX text front and centre. You see every command, brace, environment and package call. Editors like Texstudio, TeXworks, VS Code with LaTeX Workshop, or online platforms like Texeno give you a split view with your code on one side and a live PDF preview on the other.
Writing in raw source gives you absolute control. If a table needs a specific column width adjustment, a TikZ diagram needs a precise coordinate shift, or a bibliography requires a custom bst style, you change the code directly. There is no middle layer interpreting your actions or guessing how to render an unsupported package.
| Feature | LyX | LaTeX source editor |
|---|---|---|
| Primary interface | Visual WYSIWYM document processor | Plain-text source code and preview pane |
| Math entry | Graphical equation editor with immediate rendering | Typing raw LaTeX math commands with autocomplete |
| Viewing output | Approximate on-screen rendering; PDF compiled on demand | Live PDF preview updated on every compilation |
| Importing existing LaTeX | Difficult; imports often require manual cleanup | Native; opens any .tex file directly |
| Custom packages and code |
Typing long mathematical derivations in LyX is significantly faster than writing raw code because symbols, matrices and fractions render instantly as you type them. For solo students and researchers writing long documents from scratch, the lack of visual code clutter saves considerable screen space and cognitive load.
Importing an existing multi-file LaTeX project into LyX frequently breaks formatting or generates messy markup. Furthermore, co-authoring a paper with researchers who use standard LaTeX source editors is painful because LyX uses its own file format rather than standard .tex source files.
If your document relies heavily on complex custom TikZ graphics, algorithmic pseudocode packages, or journal-specific class files, a source editor lets you troubleshoot compilation errors directly by inspecting the exact line numbers in the log. Online source editors also enable real-time collaboration with co-authors without file conversion issues.
LyX can import LaTeX files, but the result is often imperfect. Complex formatting, custom macros and intricate table structures frequently fail to import cleanly, requiring manual cleanup in the LyX interface.
Yes. While LyX shields you from raw syntax during basic writing, you will eventually encounter situations where default layouts fall short. Knowing LaTeX is essential for writing custom preamble commands, fixing compilation errors and inserting raw code blocks.
LyX uses an interactive graphical equation editor where fractions, sub-scripts and integrals render visually as you type them. In a source editor, you write commands like \frac{a}{b} and wait for a recompile or preview update to see the rendered result.
No. LyX is a WYSIWYM (What You See Is What You Mean) editor. The screen shows an approximation of your document structure rather than the exact final typography, leaving the final typesetting entirely to the underlying TeX engine.
Not easily. LyX stores files in its own format and lacks built-in real-time cloud collaboration. LaTeX source editors, especially online platforms like Texeno, allow multiple authors to edit the same project simultaneously in the browser.
You can use online LaTeX editors like Texeno, which let you write, compile and collaborate in your browser with no local TeX Live installation required.
Start free, upload a project as a .zip and press Recompile. Upgrade when you need longer compiles.
Start writing| Supported natively anywhere in the file |
| Collaboration | Local files; difficult to co-author in real time | Supported on desktop via Git or online in editors like Texeno |
|---|
| Learning curve | Steep for custom layouts, easier for initial math entry | Steep initially for syntax, flexible once learned |
|---|