TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I open a new project in LyX, i cannot pass LaTeX functions inside my text. e.g. \sqrt A or \frac{A}b etc. As i know and i have seen in many video presentations when the user insert a LaTeX formula in LyX editor this is compiled directly to a "understood-mathematical" output. Should i activate something?

** (I am new to LaTeX and LyX; until now i was using MS Word. First I tried to install MikTeX, but ran into problems; now I have installed TEXlive and LyX to do my job. It is working nice but the installation TEXlive takes time (~2h))

share|improve this question
up vote 10 down vote accepted

You have to be in math mode. Type Ctrl + M. Then do \frac{x}{y}. After you type \frac LyX will convert it into its internal representation.

If you want to type LaTeX directly, you could alternatively insert it with Ctrl + L (or Insert > TeX Code).

Finally, note that in LyX 2.1 you will be able to paste LaTeX code in and it will be converted. This was already true of math but now you can paste, for example, \textbf{hello}. To do that, go to edit > paste > LaTeX text (this name might be different on release but it should be in that place).

share|improve this answer

You can put directly a math formula, type Ctrl + L and put your formula inside two $$.

If you want to do \frac{x}{y}, then type Ctrl + L $\frac{x}{y}$.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.