# LyX@wisdom  FAQ

Written by Eran Tromer, last update 2004-02-16.
Thanks go to Shai Mor, Yuval  Emek and, of course, the LyX developers team.

LyX is a GUI document processor which is closely related to LaTeX, both in semantics and implementation. It provides an attractive alternative to writing scientific documents directly in LaTeX, by providing an editable graphical rendering of the document and a graphical user interface for accessing various options and features. LyX can exports standard LaTeX files and uses LaTeX for producing its final output.

This document addresses some frequently asked questions about LyX, and particularly its use at the Faculty of Mathematics and Computer Science at the Weizmann Institute of Science.

### 1. Will this really save me from having to learn LaTeX?

No.

Eventually you'll know LaTeX, because the following situations will arise. First, you'll sometimes want to use LaTeX features (customizations and additional packages) which are not yet offered by LyX in a nice GUI way. Second, you'll sometimes need to write documents in cooperation with people who don't use LyX. In this light, you may wish to learn LaTeX now and forget about LyX (some good LaTeX editors are WinEdt, kile and good old emacs).

None the less, LyX is an excellent tool for getting starting with LaTeX, because you can use the GUI to achieve common tasks and then look at the exported LaTeX code to learn how to do it in raw LaTeX.  Moreover, even experienced LaTeX users may find that using LyX is more efficient, due to the graphical display and manipulation tools (especially where mathematical formulas are concerned), and the knowledge of LaTeX makes LyX even more powerful.

Note that in regard to using LaTeX features not supported by LyX, the situation is not quite drastic as it sounds, since LyX allows incorporation of arbitrary LaTeX code (menu option Insert | TeX). This code is copied verbatim when the .lyx file is converted to .tex (see below about the conversion process).

### 2. How do I run LyX on the faculty computers?

• Compile your own LyX in your Unix account on one of the new Linux hosts (eshkol, math01-lx to math10-lx, etc.):
2. Extracting the compile the sourcecode using "./configure --prefix=$HOME/local --with-frontend=qt; make; make install" 3. Run it using "~/local/bin/lyx". --> • Download a Windows version of LyX (also from here) and somehow install and use it. You'll need MiKTeX and an X server installed on your PC, but you probably already have both. • ### 3. How do I learn how to use it? The Help menu inside the application contains extensive documentation. The tutorial is highly recommended. ### 4. I get an error about the DISPLAY variable. Use telnet instead of use rlogin. rlogin fails to transfer the DISPLAY environment variable which tells applications what is the current X server. ### 5. I wrote a test document but I can't view it and I can't export it to LaTeX. There is an error in the user login scripts for faculty accounts opened prior to 2001-12-05. To fix this, edit your ~/.cshrc file and replace the line setenv TEXINPUTS .:$HOME/macros:/Tex/Macros
with the line

### 10. How do I insert claims, lemmas, proofs, etc. in a nice way?

In the Layout menu, choose Document and change Class from "Article " to "Article (AMS)". Additional mathematics-related environments are now available, and you can mark paragraphs as lemmas etc.

### 11. How do I created nested environments, such as nested lists?

Alt-P Rightarrow increases the nesting level while Alt-P Leftarrow decreases it. You'll also find these useful: Alt-P Space opens the dropdown list of environments, while Alt-P S chooses the Standard environment (i.e, normal text).

### 12. How do I print from LyX when I run it on the faculty's Linux servers?

See the list of available Unix/Linux printers here.

Alternatively, export your document to PostScript (using Alt-F E T) and then print file.ps file from another machine (silver and winter work well, and so do Windows boxes if a printer is configured -- see next question).

### 13. What was that about printing from Windows? How do I access the file?

Surely not using FTP -- that's very inconvenient. You can access your Unix home directory as a normal Windows share, namely "\\silver\username". However, you'll first need to ask Yorram Kalef (Ziskind room 21) to create a "Samba account" for you.