LyX - the document processor

Something a bit different today - dipping into the technology pool.
So, why would your favorite scholarly scribe write about Lyx, the document processor? Well, to quote Obi-Wan, it is an elegant weapon for a more civilised age.

A lot of people who have published articles in academic journals will know the LaTeX markup language. This is particularly used in the natural sciences as LaTeX is extremely powerful for creating formulae and reaction diagrams.
Lyx is an attempt to bridge the gap between WYSIWYG - What You See Is What You Get, applications like Openoffice, Abiword, Microsoft Word and the like - and LaTeX, which, while creating some very elegant print-quality documents, is not particularly easy to get into. I have worked with LaTeX from time to time, and it takes quite a while to wrap your head around. LyX is not a text editor - in the sense that it is not just intended for entering text like you would do in an application like Vim, Emacs or the infamous Windows Notepad; the focus of LyX is to create documents ready for printing. Like LaTeX, it makes use of typographical conventions of using no more than a certain number of characters on a line to enhance readability, inserting spacing of a certain size in the text and so on. This makes for beautiful and very readable documents, but it also means that it restricts you to those conventions. For some, that is very challenging; if you are used to formatting freely, it can feel like a restriction.

The screenshots here are using LyX on my Slackware Linux laptop, but LyX is also available for Microsoft Windows, MacOS X and even OS/2. You can get it from the LyX download page. LyX is Free Software published under the GNU General Public License 2.
As a final note before I move into the main review, I should say that I am a linguist and writer, not a mathematician. This means that I will be focusing on what one will be using for document preparation, not the mathemagical features. For those interested in this, there is a brief mathematics intro on the LyX walkthrough. It seems to mostly use LaTeX syntax for that. LyX is quite well-documented for professional linguists, however - there is a dedicated LyX for linguists page.

As you see, the main screen is not much different from a lot of text processors. The interface can be accessed by using a mouse, but one will notice that holding the pointer over a button will show both the function and the keyboard shortcut; so the people behind the application encourage keeping your hands on the keyboard, which makes for less interruption in your work and less strain, which is a constantly increasing problem.

LyX follows the main principle of LaTeX, which means that the first things one does is define which kind of document it is - article, book, letter - and there are certain designs included as pre-defined article types to match the requirements of various journals or institutions.

After having defined the environment, you simply continue to define your text as you write it - as title matter, author, chapters. The system defines the layout as you go along, and it takes full advantage of LaTeX functions like footnotes and cross-references, margin notes for making overview of the text easier - and of course the various lists, such as table of contents, list of figures, list of tables etc. All things which can be har getting into with LaTeX, but is integrated in the LyX interface.

It is possible to insert a bibliography from a BibTeX file. This is the bibliography format associated with LaTeX, but LyX gives you additional options for manipulating the data. The BibTeX article in Wikipedia has a good example.

Actually, the area of bibliography is one of the places where LyX really shines; it is one of the places you can see that the system is intended for the academic community. The whole intention of these systems is to use some fairly simple files, mark them up to indicate what is to go where and then leave the system to output the materials in the format you want.
Lyx will import your bibliography file for reference. Using the citation manager, a citation for the relevant source will be inserted as an endnote. In this way, your bibliographical notes will be kept up to date as you move them around, add or remove. It is quite likely you will not want to use all the books you have been reading underway in your work, and this way the list will be kept correct - and formatted as your article or book style dictates it should be.

What you see here is the basic text editing window. As you see, the text indicates the features inserted there.
Personally, this reminds me of the Reveal Codes feature from WordPerfect. Again, more practical than LaTeX because it still keeps the text readable.

There are some very basic - and I believe this to be intentional - graphical effects. It is possible to insert images (extremely less complicated than with LaTeX), lines and boxes. The program is focused on text and text-derived graphics, which means that the functions for making tables and diagrams are well-equipped.

As I mentioned earlier, LyX has quite a bit of documentation, but this is not limited to the website. As an interesting approach, a lot of documentation is included as LyX files, which means that you can read the documentation as well see it in a final formatted version after processing it. Since LyX creates files for print, it focuses on export to print-oriented format. There are buttons on the toolbars for creating and updating DVI, PDF and PostScript files.
And so, the documentation documents also serve as example files.

If you are working on a thesis or a longer project, try out LyX. The application is quite powerful compared to the system resources it requires, and it scales remarkable well for very heavy documents, also working quite well with pulling in external documents. I have edited a very heavy lab manual for a biomedical conference with a lot of graphs and hi-res images on a fairly low-specification machine.

For an illustration, the first couple of chapters of my BA thesis - in LyX and PDF format.
Note Oct 3rd, 2012: A comment to this article on publishing a book with LyX linked to Holding Broadband Providers to Account: A Consumer Advocacy Manual - a beautiful book said to be done entirely in LyX.

6 thoughts on LyX - the document processor

  1. It has been awhile since I used Lyx last, but this post helped remind me how useful it is, and how powerful it is when it comes to organizing a large document. I have used it when writing a book, and keeping track of chapters as well as annotations is much easier than with a word processing program. As I am back in school writing research papers I will be reinstalling Lyx to help the process. Thanks for the reminder of this great program.

    By the way it also runs great on Windows.

  2. Thanks a lot. This is of great help to technological noobs like me.

  3. Glad to see it can be of use to you. In case you didn’t see it, like you I actually did a writeup on Jabref.

  4. Thanks for your great review!

    My opinion about LyX: On the one hand, it ſeems to be a great way to bring many advantages of the TeX backend, especially the idea of logical markup, to ‘normal’ WYSIWYG uſers. On the other hand, the produced .lyx file looks more or less like PlainTeX, which feels for me as a LaTeX uſer a litle bit bloated (or at least unfamiliar) since i prefer even shorter ’code’ (like writing inſtead \item with the alttex package)—but for Lyx to the rescue, the LaTeX export ſeems uſeable.

    So all in all, i’m not ſure if one ſhould recommend LyX to a existing La/Con/whatever-TeX uſer, but for someone from the WYSIWYG world who’s ſcared of learning the totally different “writing source code” approach of TeX, it’s a really nice, uſe- and powerfull alternative to get “the beſt of both worlds”.

    Finally a ſmall hint: There’s even a own lyx group at identi.ca, as i was recently told by ſomeone ;).

  5. I completely agree - I would never recommend LyX to a LaTeX user, unless it was one of the frustrated ones!
    I actually find it difficult to get an overview of LaTeX from the code, which is why I am interested in a project like Gummi, which makes for more easily readable LaTeX editing.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>