What happens if you use ctrl-space, instead of space?
On 16/06/2008, Bob Lounsbury <[EMAIL PROTECTED]> wrote: > On Mon, Jun 16, 2008 at 9:04 AM, Friedrich Hagedorn <[EMAIL PROTECTED]> > wrote: >> On Mon, Jun 16, 2008 at 08:17:50AM -0600, Bob Lounsbury wrote: >>> On Mon, Jun 16, 2008 at 2:17 AM, Friedrich Hagedorn <[EMAIL PROTECTED]> >>> wrote: >>> > >>> > how can I add real latex commands in the math mode? I use Lyx 1.5.1 for >>> > Linux. >>> > >>> > E.g. I want to insert a >>> > >>> > \intertext{blah blah} >>> > >>> > before a equation, or add >>> > >>> > \\[2em] >>> > >>> > after a euqation. I tried Ctrl-l and '\' but this didnt work. >>> >>> A quick google search revealed that \intertext is used in the AMS math >>> environment. So you need to enable: >>> >>> Document->Settings->Math Options->Use AMS math package >>> >>> Then you should be able to use \intertext in at least the AMS 'align' >>> environment. You should probably research how and where this command >>> is used. AMS align is found under Insert->Math. >>> >>> I've attached a few screenshots showing the use of \intertext. >> >> Oh, thanks. Is the "and" in the second screenshot typed with the >> \intertext >> command or are theire two seperate math mode environments? > > This was using the \intertext command, not two seperate math mode > environments. > >>> I'm not sure why you would need to use \\[2em] in a math environment. >>> I show the use of it outside of the math environment. >> >> I know that. And i want to have the same possibility in the math mode. >> The \\[2em] was just an example (I need it some times ago in an array >> environment to correct the vertical spacing). >> >> I want to insert _arbitrary_ latex commands in the math mode. Otherwise >> I must type my equations in a latex-ERT box. >> >> Here is an other example. >> >> \documentclass[a4paper]{scrartcl} >> \usepackage{mathpazo} >> \usepackage[T1]{fontenc} >> \usepackage[utf8x]{inputenc} >> \usepackage{amsmath} >> >> \begin{document} >> >> This >> \begin{align*} >> f(z) & :=z^{2}\\ >> \intertext{with the substitution $z=\sqrt{x^2+y^2}$} & =x^2+y^2 >> \end{align*} >> is important. >> >> \end{document} >> >> How would you input the \intertext command with lyx? I started with >> >> "\intertext " >> "\{with " and now I am out of the brackets. > > It seems this \intertext command is not properly handled in LyX. I had > the same problem, when you press 'space' it jumps you out of the > command. You may want to file this as a bug or feature enhancement. > I'm not sure which it would be. > > You may be stuck to ERT for this true AMS functionality. > > Cheers, > /Bob >