Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

2 Answers 2

up vote 9 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.