LyX FAQ

This page is about problems I've run into running LyX on the two Unix servers at the Hebrew University's Math department (v1.2.0 on Solaris and v1.3.2 on linux). It might also be useful if you're having problems with other versions of LyX on other unix platforms (probably not so useful for windows users). Be warned, though, that it's a little out of date, and I'm more a mechanic than an expert. If you have any suggestions or comments, please let me know!

See the LyX website for more tips and tricks than you will ever use. And LyX's online documentation for the basics. This page is mainly about special problems i've run into.

How do i install LyX on Unix/Linux/Windows?

go to the LyX website .

How do i get hebrew to work?

try my lyx configuration page (Note: this page is specific for the Hebrew University math department's computers). Or try Dekel Tsur's LyX page .

There's nothing wrong but LyX keeps reporting errors ("undefined control sequences") when i try to complie. What's wrong?

if you accidentally type a capital letter in a hebrew document in text (not math) mode, no character will appear on screen, but an invisible character is inserted, and it will cause a compilation failure. if you are getting strange messages like "undefined control sequence at ..." where you don't see a control sequence at all, that is probably the problem.

solution: delete the invisible control character! go to the beginning of the paragraph and use the arrow keys to move one letter at a time through the paragraph. when you press the key and the cursor doesn't move, you have stepped on the invisible character. delete it at once. This is probably a keymap problem. solution, anyone?

How do i start an english document?

Open a new document (Ctrl-N). From the menu choose Layout->Document. Click on the Language tab and choose english from the list, and click Apply. Next choose the Document tab and choose the document class you want (Hint: AMS article) and click apply, then Ok.

Note that the order of operations is important. If you choose the document class first and then set the language you may get into trouble.

How do i write english text in a hebrew document?

Sorry, i don't have a good answer for that one. For one-word text you can use the math environment: Type Ctrl-M once to get into math mode, and Ctrl-M again to switch to roman font.

for long pieces of text open a TeX environment (Ctrl-L). Note that in order to get the direction of the text to be left-to-right, you must enclose your text in \L{...your text...}.

When i try to import a tex document the text direction gets reversed.

The solution is to import the file into LyX when lyx isn't in hebrew mode. To do this, open a shell and run LyX woith the commend

> 'lyx'

(Note the quotes!). Import the .tex file and save it as a LyX file. Exit and run LyX again as usual. When you open the saved .lyx file now it should be alright..

Which document class should i use?

currently you will want to use either the hebrew article, hebrew AMS article or hebrew AMS book document classes for writing in hebrew.

the AMS variety enables ams math symbols, and encludes all the environments that hebrew article does, plus some which fake the ams theorem environments (which aren't available in hebrew article). however the AMS-style classes are somewhat experimental and may have some bugs (let me know if you find any). note that i can't currently get the real ams environments (theorem*, etc.) to work with hebrew (this is a problem with hebrew latex that i don't know how to fix). that is why the hebrew AMS article/book classes exist. if you know a solution to this please let me know!

How do i get lyx to display different kinds of text in those funky colors?

LyX can display different text types in different colors on the screen. for example io use blue for math text, red for tex, and black for regular text. My configuraion files set the colors to blue for math, black for plain text, rel for tex.

to change your color settings go to edit->preferences->look&feel->colors. select the text type whose color you want to change from the list, and change the color as you like. then click modify and apply, and go on to the next color.

Note:in order to change the math-mode and tex-mode text colors, put the cursor inside a math-mode box (ie inside mathematical text) before openning the preferences dialogue. why it doesn't work otherwise is anyone's guess.

How do i customize the keybindings?

if you have installed my configuration, your key-bindings are defined in ~/.lyx/SERVER/bind/my-bindings.bind (SERVER = sundial or math1.ma.huji.ac.il).

my keybindings are mostly compatible with the standard lyx bindings. if you want to go back to the old biindings (or define your own), run lyx and go to edit->preferences->look&feel->interface' and type cua (or something else) instead of my-bindings in the bind file box.

to see how my bindings work, have a look at the files in ~/.lyx/SERVER/bind. Lyx's online help might be usefull too.

Could i have found a bug in LyX?

Very likely so. LyX still has some idiosyncrocies: beware!

a more detailed list of bugs, including bugs relating to latex, can be found here

there are other bugs. if you identify one and have a fix for it, email me at: mhochman at math.huji.ac.il!


department home

my home