could somebody tell me why I get an error by using the second equation in the added lyx-file?

\layout Standard
If I take the second equation out, dvi gives no error. \layout Standard
\begin_inset Formula R=Rh/2+(ZZ-4)
\end_inset \layout Standard
but with this one it gives errors
\layout Standard
\begin_inset Formula R=Rh/2+(ZZ-4)+K_{ab} \end_inset

When exporting your document to LaTeX, you will see, that the formulas in LyX are not formulas in LaTeX:


-------------------------------------------------------
\begin{document}
If I take the second equation out, dvi gives no error.

R=Rh/2+(ZZ-4)

but with this one it gives errors

R=Rh/2+(ZZ-4)+K_{ab}

\end{document}
-------------------------------------------------------

I've never seen that before. This seems to be a bug. What have you done to create the formulas? When you put the cursor in the formula, LyX status bar says Type: none. I tried to reproduce this but failed.

When inserting a formula by Insert->Math, the characters should appear as blue italic.

The second equation gives errors, because it is not a formula in LaTeX. And subscripts are not allowed in normal text.

Btw. Your can avoid the preamble stuff, when using the class 'scrbook' instead of 'book' and set the option 'idxtotoc' (both in the menu Layout->Document->Layout->Document Class/Options).

regards Uwe

Reply via email to