LyX, the Document Processor05/30/2000
Some weeks back, in the Linux word processing road map, I mentioned a new application for writing documents called LyX. In this column I'd like to present an overview, showing what you can use it for, how to get started using it, and where to go to learn more.
LyX has a GUI, but it isn't a traditional WYSIWYG ("What You See Is What You Get") word processor. In contrast to specifying exactly how each character in the document will look -- "make this word Helvetica Bold at 18 points" -- you can specify the structure of the text, such as whether a selection is a chapter heading, part of the body text, an index entry, and so forth.
LyX comes with many document classes already defined -- such as letter, article, report, and book -- containing definitions for the elements these document types may contain. You can change the look of each element and the look of the document as a whole -- and you can change the look of individual selections of text, but with these elements it's rarely necessary. Its authors call the new approach WYSIWYM, or "What You Say Is What You Mean."
Since LyX uses LaTeX as a back-end to do the actual typesetting, and it's capable of exporting documents to LaTeX input format, you can think of it as a way to write LaTeX input files in a GUI without having to know the LaTeX language commands.
But even those who do use LaTeX and related typesetting languages may find LyX useful: Many people find it quick and easy to make documents in LyX that are much harder to do in LaTeX -- such as a multi-column newsletter layout with illustrations. You can also import your LaTeX files (and plain text) into LyX for further layout or manipulation.
If you use Debian, you'll want to install the
package; otherwise, see if it is included with your Linux distribution
or get it from the LyX Web site, http://www.lyx.org/.
Features of LyX
When editing you'll see that LyX has all of the commands you'd expect from a word processor -- for example, some of the commands found on the Edit menu include Cut, Copy, Paste, Find and Replace, and Spell Check.
Here are some of its major features:
- Automatic generation of table of contents, nested lists, and numbering of section headings
- Easy insertion of PostScript figures and illustrations, which can be rotated, scaled and captioned
- Footnotes and margin notes
- Undo and Redo of any operation or sequence of operations
- All LyX functions can be executed from both keyboard commands and pull-down menus
- All keyboard bindings are configurable
Writing documents with LyX
LyX runs under X, and you start it in the usual way -- either by
choosing it from the applications menu provided by your window manager
or by typing
lyx in an xterm window.
To start a new document from scratch, you'd choose "New" from the File menu. You can also make a document from one of the many templates included with LyX, which have the basic layout and settings for a particular kind of document all set up for you -- just fill in the elements for your actual document. To make a new document from a template, choose "New from template" from the File menu and then select the name of the template to use.
The following is a list of some of the included template names and the kind of documents they're usually used for:
Documents suitable for submission to IEEE Transactions
Format suitable for papers submitted to Astronomy and Astrophysics
Template for letters formatted according to German conventions
Documents written in the SGML DocBook DTD
Movie scripts as they are formatted in the US film industry
Template for letters formatted according to Italian conventions
Article format suitable for submission to IEEE Conferences
Basic format for letters and correspondence
LinuxDoc-SGML documents as used by the Linux Documentation Project
Article format suitable for submission to publications of the American Physical Society (APS), American Institute of Physics (AIP), and Optical Society of America (OSA)
Format for producing slides and transparencies
To view what the document will look like when you print it, choose "View DVI" from the File menu. This command starts the xdvi tool, which previews the output on the screen.
To print the document, choose "Print" from the File menu. You can also export it to LaTeX, PostScript, DVI, or plain text formats; to do this, choose "Export" from the File menu and then select the format to export to. (If you plan on editing the document again in LyX, be sure to save the actual .lyx document file.)
Pages: 1, 2