next up previous contents
Next: Matrices Up: The Math Panel Previous: Fractions   Contents

TEX mode: Limits, log, sin and others

Because letters in math mode are considered to be variables, if you type ``sin'' in math mode, LYX thinks you're typing the product of the three variables s, i, and n. The three letters will be typeset in italics, when what you really wanted was the word ``sin'' typeset in Roman. In addition, LYX won't put a space between the word ``sin'' and the ``x'' (typing Space will just exit math mode). So how do you get ``sin x'' instead of ``sinx''?

Click on ``sin'' in the Functions list in the Math Panel. The word ``sin'' is written in black, in upright roman type. The whole word is treated as one symbol, so if you type Backspace, it will delete the whole word. Now type ``x'', which will be written in blue italics, like you expect in Mathed. In the dvi file, the expression will be correctly typeset. Try it.

Other commands you need to type in TEX mode using the Functions box include other trigonometric functions and their inverses, hyperbolic functions, logarithms, limits, and quite a few others. These functions can take subscripts and superscripts, important for typing `` cos2$ \theta$'' or `` $ \lim_{{n\rightarrow\infty}}^{}$''.

Exercise: Put equation 3 of example_raw.lyx into math mode.


next up previous contents
Next: Matrices Up: The Math Panel Previous: Fractions   Contents
Jay Bolton 2004-04-15