optional arguments in math. how to?
Hello, I've just been trying use the command \xrightarrow with it optional argument, e.g. \[ leftside \xright[down]{up} rightside \] Is it possible to do this (and in general use optional arguments in math/display mode)? I've tried writing it as regular text (without the \[ and \]) and turning it to a math/display mode. I've also tried to insert it manually in the .lyx file, but to no avail. I did manage to use it in an ERT box, but I would rather not write the whole equation that way. If it is indeed imposible, might it be better if there was an option within math mode to enter pure latex, without Lyx helping in the middle. Something like the ERT box in the regular text. I think (if I remember correctly) that it was possible in earlier version 1.1.6 (or so). Thanks for any help, Amir. P.S. I'm using Lyx 1.2.1 (Xforms)
Re: optional arguments in math. how to?
On Thu, Jul 10, 2003 at 05:10:17PM +0300, Amir Seginer wrote: Hello, I've just been trying use the command \xrightarrow with it optional argument, e.g. \[ leftside \xright[down]{up} rightside \] \xrightarrow is supported 'natively'. Just make sure to enable AMS. Is it possible to do this (and in general use optional arguments in math/display mode)? I've tried writing it as regular text (without the \[ and \]) Write it with the \[...\] and it should work. and turning it to a math/display mode. I've also tried to insert it manually in the .lyx file, but to no avail. Even that should work. If it is indeed imposible, might it be better if there was an option within math mode to enter pure latex, without Lyx helping in the middle. Even that work. Something like the ERT box in the regular text. I think (if I remember correctly) that it was possible in earlier version 1.1.6 (or so). It still is. I'm using Lyx 1.2.1 (Xforms) Brr... I think it should work there, too, but I've not checked. Especially the native xrightarrow support might be a 1.3.x feature. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: optional arguments in math. how to?
On Thu, Jul 10, 2003 at 05:10:17PM +0300, Amir Seginer wrote: Hello, I've just been trying use the command \xrightarrow with it optional argument, e.g. \[ leftside \xright[down]{up} rightside \] Is it possible to do this (and in general use optional arguments in math/display mode)? I've tried writing it as regular text (without the \[ and \]) and turning it to a math/display mode. I've also tried to insert it manually in the .lyx file, but to no avail. In LyX 1.3.x, you type \xrightarrow and then press space. Then, you can edit both arguments. I'm using Lyx 1.2.1 (Xforms) You should upgrade to the latest version.
Re: optional arguments in math. how to?
Thanks for the quick answer \xrightarrow is supported 'natively'. Just make sure to enable AMS. The problem is the optional argument, not just using \xrightarrow If it is indeed imposible, might it be better if there was an option within math mode to enter pure latex, without Lyx helping in the middle. Even that work. No it doesn't (for me), the moment I press [ to start the optional argument I'm out of LaTeX mode and into LyX's math mode. I would like something in which LyX will not interfere (like in the ERT box in plain text after pressing ctrl-L) - This should be used only for special cases. The use of \ to turn on math-mode is good (and much more convenient) for 99.99% of the cases. I'm using Lyx 1.2.1 (Xforms) Brr... I think it should work there, too, but I've not checked. Especially the native xrightarrow support might be a 1.3.x feature. Not the optional argument (just the text above the arrow). Thanks again, Amir. P.S. 1.3.x is not exactly an option, I would like to have compatibilty with the university computer.
Re: optional arguments in math. how to?
On Thu, Jul 10, 2003 at 05:37:21PM +0300, Amir Seginer wrote: Thanks for the quick answer \xrightarrow is supported 'natively'. Just make sure to enable AMS. The problem is the optional argument, not just using \xrightarrow What happens if you simply write a '[' there? What does the exported .tex look like? What the is the problem? No it doesn't (for me), the moment I press [ to start the optional argument I'm out of LaTeX mode and into LyX's math mode. Yes, and what's wrong with that? You write [] in LyX's math mode. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: optional arguments in math. how to?
On Thu, Jul 10, 2003 at 05:57:39PM +0300, Amir Seginer wrote: I'm sorry if I'm missing something, but see attached files. So this is bug in 1.2.x Best I can offer is attached. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...) #LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass article \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize a4paper \paperpackage a4 \use_geometry 0 \use_amsmath 1 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard I would like this \layout Standard \begin_inset ERT status Open \layout Standard \backslash [ leftside \backslash xrightarrow[down]{up} rightside \backslash ] \end_inset \layout Standard but I get \begin_inset ERT status Open \layout Standard \backslash def \backslash xr{ \backslash xrightarrow} \end_inset \begin_inset Formula \[ leftsidedown\xr [down]{up}rightside\] \end_inset \the_end
Re: optional arguments in math. how to?
On Thu, Jul 10, 2003 at 05:57:39PM +0300, Amir Seginer wrote: What happens if you simply write a '[' there? What does the exported .tex look like? What the is the problem? I'm sorry if I'm missing something, but see attached files. Its not very important, so if there is no simple solution, just leave it. The only solution for lyx 1.2 is to put \let\myrightarrow=\xrightarrow in the preamble, and then use \myrightarrow in the document.
optional arguments in math. how to?
Hello, I've just been trying use the command \xrightarrow with it optional argument, e.g. \[ leftside \xright[down]{up} rightside \] Is it possible to do this (and in general use optional arguments in math/display mode)? I've tried writing it as regular text (without the \[ and \]) and turning it to a math/display mode. I've also tried to insert it manually in the .lyx file, but to no avail. I did manage to use it in an ERT box, but I would rather not write the whole equation that way. If it is indeed imposible, might it be better if there was an option within math mode to enter pure latex, without Lyx helping in the middle. Something like the ERT box in the regular text. I think (if I remember correctly) that it was possible in earlier version 1.1.6 (or so). Thanks for any help, Amir. P.S. I'm using Lyx 1.2.1 (Xforms)
Re: optional arguments in math. how to?
On Thu, Jul 10, 2003 at 05:10:17PM +0300, Amir Seginer wrote: Hello, I've just been trying use the command \xrightarrow with it optional argument, e.g. \[ leftside \xright[down]{up} rightside \] \xrightarrow is supported 'natively'. Just make sure to enable AMS. Is it possible to do this (and in general use optional arguments in math/display mode)? I've tried writing it as regular text (without the \[ and \]) Write it with the \[...\] and it should work. and turning it to a math/display mode. I've also tried to insert it manually in the .lyx file, but to no avail. Even that should work. If it is indeed imposible, might it be better if there was an option within math mode to enter pure latex, without Lyx helping in the middle. Even that work. Something like the ERT box in the regular text. I think (if I remember correctly) that it was possible in earlier version 1.1.6 (or so). It still is. I'm using Lyx 1.2.1 (Xforms) Brr... I think it should work there, too, but I've not checked. Especially the native xrightarrow support might be a 1.3.x feature. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: optional arguments in math. how to?
On Thu, Jul 10, 2003 at 05:10:17PM +0300, Amir Seginer wrote: Hello, I've just been trying use the command \xrightarrow with it optional argument, e.g. \[ leftside \xright[down]{up} rightside \] Is it possible to do this (and in general use optional arguments in math/display mode)? I've tried writing it as regular text (without the \[ and \]) and turning it to a math/display mode. I've also tried to insert it manually in the .lyx file, but to no avail. In LyX 1.3.x, you type \xrightarrow and then press space. Then, you can edit both arguments. I'm using Lyx 1.2.1 (Xforms) You should upgrade to the latest version.
Re: optional arguments in math. how to?
Thanks for the quick answer \xrightarrow is supported 'natively'. Just make sure to enable AMS. The problem is the optional argument, not just using \xrightarrow If it is indeed imposible, might it be better if there was an option within math mode to enter pure latex, without Lyx helping in the middle. Even that work. No it doesn't (for me), the moment I press [ to start the optional argument I'm out of LaTeX mode and into LyX's math mode. I would like something in which LyX will not interfere (like in the ERT box in plain text after pressing ctrl-L) - This should be used only for special cases. The use of \ to turn on math-mode is good (and much more convenient) for 99.99% of the cases. I'm using Lyx 1.2.1 (Xforms) Brr... I think it should work there, too, but I've not checked. Especially the native xrightarrow support might be a 1.3.x feature. Not the optional argument (just the text above the arrow). Thanks again, Amir. P.S. 1.3.x is not exactly an option, I would like to have compatibilty with the university computer.
Re: optional arguments in math. how to?
On Thu, Jul 10, 2003 at 05:37:21PM +0300, Amir Seginer wrote: Thanks for the quick answer \xrightarrow is supported 'natively'. Just make sure to enable AMS. The problem is the optional argument, not just using \xrightarrow What happens if you simply write a '[' there? What does the exported .tex look like? What the is the problem? No it doesn't (for me), the moment I press [ to start the optional argument I'm out of LaTeX mode and into LyX's math mode. Yes, and what's wrong with that? You write [] in LyX's math mode. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: optional arguments in math. how to?
On Thu, Jul 10, 2003 at 05:57:39PM +0300, Amir Seginer wrote: I'm sorry if I'm missing something, but see attached files. So this is bug in 1.2.x Best I can offer is attached. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...) #LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass article \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize a4paper \paperpackage a4 \use_geometry 0 \use_amsmath 1 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard I would like this \layout Standard \begin_inset ERT status Open \layout Standard \backslash [ leftside \backslash xrightarrow[down]{up} rightside \backslash ] \end_inset \layout Standard but I get \begin_inset ERT status Open \layout Standard \backslash def \backslash xr{ \backslash xrightarrow} \end_inset \begin_inset Formula \[ leftsidedown\xr [down]{up}rightside\] \end_inset \the_end
Re: optional arguments in math. how to?
On Thu, Jul 10, 2003 at 05:57:39PM +0300, Amir Seginer wrote: What happens if you simply write a '[' there? What does the exported .tex look like? What the is the problem? I'm sorry if I'm missing something, but see attached files. Its not very important, so if there is no simple solution, just leave it. The only solution for lyx 1.2 is to put \let\myrightarrow=\xrightarrow in the preamble, and then use \myrightarrow in the document.
optional arguments in math. how to?
Hello, I've just been trying use the command \xrightarrow with it optional argument, e.g. \[ leftside \xright[down]{up} rightside \] Is it possible to do this (and in general use optional arguments in math/display mode)? I've tried writing it as regular text (without the \[ and \]) and turning it to a math/display mode. I've also tried to insert it manually in the .lyx file, but to no avail. I did manage to use it in an ERT box, but I would rather not write the whole equation that way. If it is indeed imposible, might it be better if there was an option within math mode to enter pure latex, without Lyx "helping" in the middle. Something like the ERT box in the regular text. I think (if I remember correctly) that it was possible in earlier version 1.1.6 (or so). Thanks for any help, Amir. P.S. I'm using Lyx 1.2.1 (Xforms)
Re: optional arguments in math. how to?
On Thu, Jul 10, 2003 at 05:10:17PM +0300, Amir Seginer wrote: > Hello, > > I've just been trying use the command \xrightarrow with it optional > argument, e.g. > > \[ leftside \xright[down]{up} rightside \] \xrightarrow is supported 'natively'. Just make sure to enable AMS. > Is it possible to do this (and in general use optional arguments in > math/display mode)? I've tried writing it as regular text (without the > \[ and \]) Write it with the \[...\] and it should work. > and turning it to a math/display mode. I've also tried to > insert it manually in the .lyx file, but to no avail. Even that should work. > If it is indeed imposible, might it be better if there was an option > within math mode to enter pure latex, without Lyx "helping" in the > middle. Even that work. > Something like the ERT box in the regular text. I think (if I > remember correctly) that it was possible in earlier version 1.1.6 (or so). It still is. > I'm using Lyx 1.2.1 (Xforms) Brr... I think it should work there, too, but I've not checked. Especially the native xrightarrow support might be a 1.3.x feature. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: optional arguments in math. how to?
On Thu, Jul 10, 2003 at 05:10:17PM +0300, Amir Seginer wrote: > Hello, > > I've just been trying use the command \xrightarrow with it optional > argument, e.g. > > \[ leftside \xright[down]{up} rightside \] > > Is it possible to do this (and in general use optional arguments in > math/display mode)? I've tried writing it as regular text (without the > \[ and \]) and turning it to a math/display mode. I've also tried to > insert it manually in the .lyx file, but to no avail. In LyX 1.3.x, you type \xrightarrow and then press . Then, you can edit both arguments. > > I'm using Lyx 1.2.1 (Xforms) You should upgrade to the latest version.
Re: optional arguments in math. how to?
Thanks for the quick answer \xrightarrow is supported 'natively'. Just make sure to enable AMS. The problem is the optional argument, not just using \xrightarrow If it is indeed imposible, might it be better if there was an option within math mode to enter pure latex, without Lyx "helping" in the middle. Even that work. No it doesn't (for me), the moment I press "[" to start the optional argument I'm out of LaTeX mode and into LyX's math mode. I would like something in which LyX will not "interfere" (like in the ERT box in plain text after pressing ctrl-L) - This should be used only for special cases. The use of "\" to turn on math-mode is good (and much more convenient) for 99.99% of the cases. I'm using Lyx 1.2.1 (Xforms) Brr... I think it should work there, too, but I've not checked. Especially the native xrightarrow support might be a 1.3.x feature. Not the optional argument (just the text above the arrow). Thanks again, Amir. P.S. 1.3.x is not exactly an option, I would like to have compatibilty with the university computer.
Re: optional arguments in math. how to?
On Thu, Jul 10, 2003 at 05:37:21PM +0300, Amir Seginer wrote: > Thanks for the quick answer > > > >\xrightarrow is supported 'natively'. > > > >Just make sure to enable AMS. > > The problem is the optional argument, not just using \xrightarrow What happens if you simply write a '[' there? What does the exported .tex look like? What the is the "problem"? > No it doesn't (for me), the moment I press "[" to start the optional > argument I'm out of LaTeX mode and into LyX's math mode. Yes, and what's wrong with that? You write [] in "LyX's math mode". Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: optional arguments in math. how to?
On Thu, Jul 10, 2003 at 05:57:39PM +0300, Amir Seginer wrote: > I'm sorry if I'm missing something, but see attached files. So this is bug in 1.2.x Best I can offer is attached. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...) #LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass article \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize a4paper \paperpackage a4 \use_geometry 0 \use_amsmath 1 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard I would like this \layout Standard \begin_inset ERT status Open \layout Standard \backslash [ leftside \backslash xrightarrow[down]{up} rightside \backslash ] \end_inset \layout Standard but I get \begin_inset ERT status Open \layout Standard \backslash def \backslash xr{ \backslash xrightarrow} \end_inset \begin_inset Formula \[ leftsidedown\xr [down]{up}rightside\] \end_inset \the_end
Re: optional arguments in math. how to?
On Thu, Jul 10, 2003 at 05:57:39PM +0300, Amir Seginer wrote: > > What happens if you simply write a '[' there? What does the exported > > .tex look like? What the is the "problem"? > > I'm sorry if I'm missing something, but see attached files. > > Its not very important, so if there is no simple solution, just leave it. The only solution for lyx 1.2 is to put \let\myrightarrow=\xrightarrow in the preamble, and then use \myrightarrow in the document.