LyX – The Document Processor
lyx.org
lyx.org
I remember reading their (excellent) tutorial on a laptop with a 700 MHz CPU and a few hundred MB of RAM in 2005 or so.
This reminded me to donate to them - their page is down, but you can send a donation via PayPal to donations@lyx.org.
A few weeks ago (Who am I kidding? It was before the pandemic started) a friend pickup my chromebook of all things and asked me where the "Google Docs app was?" Beyond the obvious humor, I, at that moment, realized that my document production workflow was just LyX and I didn't even keep a shortcut to the gDoc web app anymore. What would I need it for?
It feels like it has been that way for at least a decade. Amazing software can really feel timeless. I'm going to donate as well.
I used LyX for all my work at university (over 20 years ago) and I vividly remember the difference in experience compared with my girlfriend at the time who used Word for all her work. LyX was such a stress-free experience in comparison, you could simply sit down and write, knowing that it would almost certainly look good at the end. In comparison, my gf would spend stressful hours battling to keep graphs in the righ place, sections structured properly, and references all managed correctly.
It warms my heart to know that LyX is still going all these years later, even though I have no need of it nowadays.
All seriousness aside, I am a LaTeX user, so I get it. But to me one drawback of LaTeX is that it isn't hierarchically structured in the same way that, say DocBook XML, is. That is, you can't automatically pull out a 3rd level section (all the text under a subsubsection) like you can using XML and an XSLT. Nor can you label such a subsubsection with a "role" (DocBook XML term) and either include it or not include it in your PDF, depending on a parameter that you provide on a command line. (We did that to produce technical and non-technical versions of PDFs.) Rather, I think you have to give what amounts to begin{} and end{} commands.
Correct me if I'm wrong!
BTW, another wysiwym editor is XMLmind--for XML (mostly DocBook), obviously. I think oXygen also does that, although I've only used XMLmind.
If that is not for you, then yes, a custom environment (`begin`/ `end`) would be my next attempt. As for the engine, definitely use lua(la)tex, where -- perhaps -- the Lua integration can come in handy for this too.
Wrote almost all my notes in undergrad in it. Wrote at least my first paper of my PhD in it, before moving to latex directly for more control.
I still use LyX today if I need to do some mathematical working. Being able to cut and paste math really is a huge enhancement. I can't imagine writing proofs without it
Side note: my dad—to this day—still feels like a failure for using LaTeX; as he once put it: Real scholars use TeX.
I always felt like failing to move to LaTeX from my own set of macros in Plain TeX mostly because I had my own stuff for ToC generation, code snippet syntax highlighting and cross-page continuation, and image embedding that I felt lazy to learn LaTeX.
This was over ten years ago, and YMMV.
LyX's preview rendered simple math expressions alright, but it couldn't really render the custom math expressions (which required LaTeX math packages) that I needed for my dissertation. I eventually just settled on full LaTeX -- there's a slight learning curve, but ironically LaTeX felt easier to use and slightly more predictable than LyX because I didn't have to work around a bunch of limitations around displaying the final output (through ERTs).
Also, aesthetics mattered to me. The LyX rendering was an approximation of the final output (WYSIWYM), whereas the LaTeX generated PDF was actually the final output. The latter actually looked beautiful and I'd rather be able to see the actual final product than a WYSIWYM approximation of it (LyX does produce a PDF but it always felt like there was an additional abstraction layer separating the writing and the output, whereas LaTeX was more straightforward).
This mattered to me because I was writing long mathematical arguments with complicated expressions, which I had to inspect for correctness. I was also using TikZ a lot for diagrams and working with TikZ via ERTs wasn't ideal.
No knock on LyX -- it does serve a certain niche. But I also want to say to those who struggle with LyX, it may be worth the investment to write LaTeX directly.
* A critical and unfortunately very well hidden feature of LyX is "instant preview" (disabled by default, you have to enable it in preferences). This runs each individual equation through LaTeX so the equations you see are not some rough approximation of the PDF but very literally what you'll see. You can also manually make preview environments to wrap around ERTs like your TikZ diagrams. In both cases, when you actually edit the equation or ERT you'll still get the classic editor. Apart from that, it makes it feel like you're really editing the PDF directly.
* Another useful well-hidden feature is math macros. These are a lot like LaTeX's \newcommand, except that in LyX a math macro has three parts: the command name (plus any arguments), what literal LaTeX should be output, and a visual approximation to show up in equations that you're editing. That means that if there's some command in a package that LyX doesn't recognise (e.g. \foo) then you can make your own name for it (e.g. \myfoo), map its real LaTeX to \foo and its LyX display to whatever LyX-recognised features look vaguely like the real thing and then use that macro in your equations. Admittedly, this does require more upfront effort than using the LaTeX package directly but I think the payoff can be worth it.
I eventually discovered, after some introspection, that I preferred finer-grained control vs a WYSIWYM interface, because I enjoy working with code and don't mind markup all that much. It's a preference that I'd arrived at for myself but certainly appreciate that there are diverse positions on this.
It doesn't render like tex in the editor, but it is logically correct.
LyX has a "tag" for plain tex, which allows you to insert any tex file into your document. That is a practical way of working with TikZ, for example.
I was lucky enough to do it the opposite way round to you: I learned LaTeX first and typeset a few documents in it (including an undergraduate thesis) before coming across LaTeX, and that's how I'd recommend others learn it (well, maybe without typesetting a whole thesis in LaTeX!). I found the increase in productivity was literally a factor of three: I was writing up notes for a course in LaTeX and found they took roughly 9 hours for each 3 hour lecture, whereas when I switched to LyX I could write up each lecture in 3 hours. Ultimately I wrote my PhD thesis in LyX, and that took many months so I shudder to think what would've happened if I had had to use LaTeX!
I have do say I was always fascinated by the idea of Lyx, but ended up using Emacs + AUCTex (I think?) for authoring my papers... but it was a different time and LyX was perhaps a bit to late to arrive for me gain any use from it. I think I was about done with my studies when I became aware of it, at least.
Great to see others posting positive experiences about working with it because it "sounded" about right for authoring and yet not having to fiddle excessively with details and/or formatting issues.
"Some of the outstanding features of TeXstudio are an integrated pdf viewer with (almost) word-level synchronization, live inline preview, advanced syntax-highlighting, live checking of references, citations, latex commands, spelling and grammar."
Other than that, the second part of "integrated pdf viewer with (almost) word-level synchronization" is not really TeXStudio's achievement, if they leverage SyncTeX [0] for this.
LyX requires a LaTeX (or LuaTeX/XeTeX) installation, and comes with its lot of pros and cons. Access to massive universe of *TeX packages. LyX seems more widely used.
TeX is not several GB. It was designed for systems running under intense resource constraints, and it is tiny.
Most widely used TeX installations (TeXLive is the big one) bundle lots of the most popularly used packages by default, but that's an option, and they can be installed on demand as needed. Even granting the reasonable point that modern TeX is functionally useless without packages (and other essential accouterments such as PDFTeX rather than Knuth's original code), I stripped down TeXLive to the packages I actually need (which is an easy choice in the installer, not some arcane hack), and it's about 300 MB.
These days I'm using org-mode [1] because I can easily dump something in Latex/PDF (which I prefer) and export that in Word or odt (which I don't like) but is standard in the corporate world. However, when I see someone is struggling with Latex (or is scared of it), I suggest LyX with all my heart. I believe LyX can be a good entry for Latex world.
What I found torturous about LyX was trying to configure the underlying LaTeX generator, so that it used the style files I was made to use. If I remember correctly, there was some layer of conversion that I wasted a lot of time on.
Can I haz LyX without so much LaTeX :P?
If I am making a to-do list (and not using taskwarrior), vim is it.
Now if I was doing something math related I'd probably try a combination of pandoc markdown with mathjax.