Re: Cases environment
On 08/20/2009 08:57 AM, Sam Liddicott wrote: In a display-equation environment I can't get the cases environment to work properly, unless I just use the first column. I get the error: Misplaced alignment tab character. s s\end{cases}$ I can't figure out why you would want to use a tab mark here. If you just want an ampersand, the remedy is simple: Just type `I\' now. But if some right brace up above has ended a previous alignment prematurely, you're probably due for more error messages, and you might try typing `S' now just to see what is salvageable. Furthermore, if I just use the left column, then it is displayed all on one line. Has someone got this to do anything useful? I've just done a simple one, attached. You want to attach what you are trying to do? rh #LyX 1.6.4svn created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header \textclass paper \begin_preamble \usepackage{heck} \end_preamble \use_default_options false \language english \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize 11 \spacing onehalf \use_hyperref false \papersize letterpaper \use_geometry true \use_amsmath 1 \use_esint 0 \cite_engine natbib_authoryear \use_bibtopic false \paperorientation portrait \leftmargin 1in \topmargin 1in \rightmargin 1in \bottommargin 1in \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip smallskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \author \author \end_header \begin_body \begin_layout Standard \begin_inset Formula \[ \begin{cases} a b\\ d c\end{cases}\] \end_inset \end_layout \end_body \end_document
Re: Cases environment
* rgheck wrote, On 20/08/09 14:02: On 08/20/2009 08:57 AM, Sam Liddicott wrote: In a display-equation environment I can't get the cases environment to work properly, unless I just use the first column. .. Furthermore, if I just use the left column, then it is displayed all on one line. Has someone got this to do anything useful? I've just done a simple one, attached. You want to attach what you are trying to do? Thanks. Looks like I needed to add: \usepackage{amsmath} to my pre-amble, I didn't have Use AMS match package automatically ticked. Sam
Re: Cases environment
On 08/20/2009 10:07 AM, Sam Liddicott wrote: * rgheck wrote, On 20/08/09 14:02: On 08/20/2009 08:57 AM, Sam Liddicott wrote: In a display-equation environment I can't get the cases environment to work properly, unless I just use the first column. .. Furthermore, if I just use the left column, then it is displayed all on one line. Has someone got this to do anything useful? I've just done a simple one, attached. You want to attach what you are trying to do? Thanks. Looks like I needed to add: \usepackage{amsmath} to my pre-amble, I didn't have Use AMS match package automatically ticked. Just tick that, unless you have some reason not to do so. rh
Re: Cases environment
* rgheck wrote, On 20/08/09 15:15: On 08/20/2009 10:07 AM, Sam Liddicott wrote: I didn't have Use AMS match package automatically ticked. Just tick that, unless you have some reason not to do so. I think it was because I had imported a latex document to Lyx, and it wasn't ticked. It seems to be ticked by default on new documents. I guess I should file it as a bug? If we don't want to tick it for imported options, then it ought to raise a warning at the point where it would have included it... ? Sam
RE: Cases environment
I think it was because I had imported a latex document to Lyx, and it wasn't ticked. It seems to be ticked by default on new documents. I guess I should file it as a bug? If we don't want to tick it for imported options, then it ought to raise a warning at the point where it would have included it... ? No need to report a bug. It has already been changed: http://www.lyx.org/trac/changeset/30118 Sam Vincent
Re: Cases environment
On 08/20/2009 08:57 AM, Sam Liddicott wrote: In a display-equation environment I can't get the cases environment to work properly, unless I just use the first column. I get the error: Misplaced alignment tab character. s s\end{cases}$ I can't figure out why you would want to use a tab mark here. If you just want an ampersand, the remedy is simple: Just type `I\' now. But if some right brace up above has ended a previous alignment prematurely, you're probably due for more error messages, and you might try typing `S' now just to see what is salvageable. Furthermore, if I just use the left column, then it is displayed all on one line. Has someone got this to do anything useful? I've just done a simple one, attached. You want to attach what you are trying to do? rh #LyX 1.6.4svn created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header \textclass paper \begin_preamble \usepackage{heck} \end_preamble \use_default_options false \language english \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize 11 \spacing onehalf \use_hyperref false \papersize letterpaper \use_geometry true \use_amsmath 1 \use_esint 0 \cite_engine natbib_authoryear \use_bibtopic false \paperorientation portrait \leftmargin 1in \topmargin 1in \rightmargin 1in \bottommargin 1in \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip smallskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \author \author \end_header \begin_body \begin_layout Standard \begin_inset Formula \[ \begin{cases} a b\\ d c\end{cases}\] \end_inset \end_layout \end_body \end_document
Re: Cases environment
* rgheck wrote, On 20/08/09 14:02: On 08/20/2009 08:57 AM, Sam Liddicott wrote: In a display-equation environment I can't get the cases environment to work properly, unless I just use the first column. .. Furthermore, if I just use the left column, then it is displayed all on one line. Has someone got this to do anything useful? I've just done a simple one, attached. You want to attach what you are trying to do? Thanks. Looks like I needed to add: \usepackage{amsmath} to my pre-amble, I didn't have Use AMS match package automatically ticked. Sam
Re: Cases environment
On 08/20/2009 10:07 AM, Sam Liddicott wrote: * rgheck wrote, On 20/08/09 14:02: On 08/20/2009 08:57 AM, Sam Liddicott wrote: In a display-equation environment I can't get the cases environment to work properly, unless I just use the first column. .. Furthermore, if I just use the left column, then it is displayed all on one line. Has someone got this to do anything useful? I've just done a simple one, attached. You want to attach what you are trying to do? Thanks. Looks like I needed to add: \usepackage{amsmath} to my pre-amble, I didn't have Use AMS match package automatically ticked. Just tick that, unless you have some reason not to do so. rh
Re: Cases environment
* rgheck wrote, On 20/08/09 15:15: On 08/20/2009 10:07 AM, Sam Liddicott wrote: I didn't have Use AMS match package automatically ticked. Just tick that, unless you have some reason not to do so. I think it was because I had imported a latex document to Lyx, and it wasn't ticked. It seems to be ticked by default on new documents. I guess I should file it as a bug? If we don't want to tick it for imported options, then it ought to raise a warning at the point where it would have included it... ? Sam
RE: Cases environment
I think it was because I had imported a latex document to Lyx, and it wasn't ticked. It seems to be ticked by default on new documents. I guess I should file it as a bug? If we don't want to tick it for imported options, then it ought to raise a warning at the point where it would have included it... ? No need to report a bug. It has already been changed: http://www.lyx.org/trac/changeset/30118 Sam Vincent
Re: Cases environment
On 08/20/2009 08:57 AM, Sam Liddicott wrote: In a display-equation environment I can't get the cases environment to work properly, unless I just use the first column. I get the error: Misplaced alignment tab character&. s& s\end{cases}$ I can't figure out why you would want to use a tab mark here. If you just want an ampersand, the remedy is simple: Just type `I\&' now. But if some right brace up above has ended a previous alignment prematurely, you're probably due for more error messages, and you might try typing `S' now just to see what is salvageable. Furthermore, if I just use the left column, then it is displayed all on one line. Has someone got this to do anything useful? I've just done a simple one, attached. You want to attach what you are trying to do? rh #LyX 1.6.4svn created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header \textclass paper \begin_preamble \usepackage{heck} \end_preamble \use_default_options false \language english \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize 11 \spacing onehalf \use_hyperref false \papersize letterpaper \use_geometry true \use_amsmath 1 \use_esint 0 \cite_engine natbib_authoryear \use_bibtopic false \paperorientation portrait \leftmargin 1in \topmargin 1in \rightmargin 1in \bottommargin 1in \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip smallskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \author "" \author "" \end_header \begin_body \begin_layout Standard \begin_inset Formula \[ \begin{cases} a & b\\ d & c\end{cases}\] \end_inset \end_layout \end_body \end_document
Re: Cases environment
* rgheck wrote, On 20/08/09 14:02: > On 08/20/2009 08:57 AM, Sam Liddicott wrote: >> In a display-equation environment I can't get the cases environment to >> work properly, unless I just use the first column. .. >> Furthermore, if I just use the left column, then it is displayed all on >> one line. >> >> Has someone got this to do anything useful? >> >> > I've just done a simple one, attached. You want to attach what you are > trying to do? Thanks. Looks like I needed to add: \usepackage{amsmath} to my pre-amble, I didn't have "Use AMS match package automatically" ticked. Sam
Re: Cases environment
On 08/20/2009 10:07 AM, Sam Liddicott wrote: * rgheck wrote, On 20/08/09 14:02: On 08/20/2009 08:57 AM, Sam Liddicott wrote: In a display-equation environment I can't get the cases environment to work properly, unless I just use the first column. .. Furthermore, if I just use the left column, then it is displayed all on one line. Has someone got this to do anything useful? I've just done a simple one, attached. You want to attach what you are trying to do? Thanks. Looks like I needed to add: \usepackage{amsmath} to my pre-amble, I didn't have "Use AMS match package automatically" ticked. Just tick that, unless you have some reason not to do so. rh
Re: Cases environment
* rgheck wrote, On 20/08/09 15:15: > On 08/20/2009 10:07 AM, Sam Liddicott wrote: >> I didn't have "Use AMS match package automatically" >> ticked. >> > Just tick that, unless you have some reason not to do so. I think it was because I had imported a latex document to Lyx, and it wasn't ticked. It seems to be ticked by default on new documents. I guess I should file it as a bug? If we don't want to tick it for imported options, then it ought to raise a warning at the point where it would have included it... ? Sam
RE: Cases environment
>I think it was because I had imported a latex document >to Lyx, and it wasn't ticked. It seems to be ticked by >default on new documents. >I guess I should file it as a bug? If we don't want to >tick it for imported options, then it ought to raise a >warning at the point where it would have included it... ? No need to report a bug. It has already been changed: http://www.lyx.org/trac/changeset/30118 >Sam Vincent
Re: cases environment does not exist in the default document style.
On Sat, Oct 05, 2002 at 10:49:43PM -0500, Bo Peng wrote: This is not a big prolem but it would be better to avoid this kind of problem by adding amsmath to the default style. No good as some people don't want AMS... Note that you can switch on AMS using the preferences dialog. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: cases environment does not exist in the default document style.
On Mon, Oct 07, 2002 at 10:04:02AM +0200, Andre Poenitz wrote: On Sat, Oct 05, 2002 at 10:49:43PM -0500, Bo Peng wrote: This is not a big prolem but it would be better to avoid this kind of problem by adding amsmath to the default style. No good as some people don't want AMS... Note that you can switch on AMS using the preferences dialog. I do not know how to swith on AMS ... but this is not a big deal to me. Maybe lyx can solve this problem by: once a user uses cases environment, lyx adds ams support automatically. What I am thinking is: if I am a first time lyx user, I open a document, insert cases, error! I would instantly be scared away. -- Bo Peng
Re: cases environment does not exist in the default document style.
On Mon, Oct 07, 2002 at 10:24:28AM -0500, Bo Peng wrote: I do not know how to swith on AMS ... but this is not a big deal to me. Maybe lyx can solve this problem by: once a user uses cases environment, lyx adds ams support automatically. This problem is unsolvable by clever guessing. I was arguing that this is the wrong way to go a week or so ago. Have a look at lyx-devel's archives if you are intreseted. What I am thinking is: if I am a first time lyx user, I open a document, insert cases, error! I would instantly be scared away. That's why ams should be on by default. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: cases environment does not exist in the default document style.
Andre Poenitz wrote: On Mon, Oct 07, 2002 at 10:24:28AM -0500, Bo Peng wrote: I do not know how to swith on AMS ... but this is not a big deal to me. Maybe lyx can solve this problem by: once a user uses cases environment, lyx adds ams support automatically. This problem is unsolvable by clever guessing. I was arguing that this I do not agree! You have most of the amsstuff in lib/symbols, f.ex. ... yenmsa 85 0 mathord x checkmark msa 88 0 mathord x circledR msa 114 0 mathord x ... hexagonwasy 55 0 xx ... it is no problem to add another (optional) column where you define a package to which the symbol or command depends. It is not only amsmath which is irritating to new users, wasysym f.ex. too. That's why ams should be on by default. no, should be _controlled_ by LyX Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: cases environment does not exist in the default document style.
On Mon, Oct 07, 2002 at 05:39:30PM +0200, Herbert Voss wrote: I do not agree! You have most of the amsstuff in lib/symbols, f.ex. ... hexagonwasy 55 0 xx Nevertheless it breaks if a user does not want AMS but uses a hexagon macro of his own. In this case LyX decides to use AMS and the user has no way to switch it off. Actually I really have better things to do than to have this argument again. Nothing - really NOTHING as far as I am concerned - is going to change in this area until 1.3 is out. So if anybody want to have a discussion again please talk to /dev/null or tell me to unsubscribe (again) from the list. it is no problem to add another (optional) column where you define a package to which the symbol or command depends. It is not only amsmath which is irritating to new users, wasysym f.ex. too. Yes, that would be a good idea if we want to stick to the guessing mechanism. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: cases environment does not exist in the default document style.
On Mon, Oct 07, 2002 at 05:43:41PM +0200, Andre Poenitz wrote: Yes, that would be a good idea if we want to stick to the guessing mechanism. I did not know that this has already been discussed in lyx-devl, and I do not have any better idea than you guys. If lyx refuses to guess, maybe it can do better when error occurs. (If cases + error -amsmath, remind user to add it.) This also involves big amount of work though. -- Bo Peng
Re: cases environment does not exist in the default document style.
On Sat, Oct 05, 2002 at 10:49:43PM -0500, Bo Peng wrote: This is not a big prolem but it would be better to avoid this kind of problem by adding amsmath to the default style. No good as some people don't want AMS... Note that you can switch on AMS using the preferences dialog. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: cases environment does not exist in the default document style.
On Mon, Oct 07, 2002 at 10:04:02AM +0200, Andre Poenitz wrote: On Sat, Oct 05, 2002 at 10:49:43PM -0500, Bo Peng wrote: This is not a big prolem but it would be better to avoid this kind of problem by adding amsmath to the default style. No good as some people don't want AMS... Note that you can switch on AMS using the preferences dialog. I do not know how to swith on AMS ... but this is not a big deal to me. Maybe lyx can solve this problem by: once a user uses cases environment, lyx adds ams support automatically. What I am thinking is: if I am a first time lyx user, I open a document, insert cases, error! I would instantly be scared away. -- Bo Peng
Re: cases environment does not exist in the default document style.
On Mon, Oct 07, 2002 at 10:24:28AM -0500, Bo Peng wrote: I do not know how to swith on AMS ... but this is not a big deal to me. Maybe lyx can solve this problem by: once a user uses cases environment, lyx adds ams support automatically. This problem is unsolvable by clever guessing. I was arguing that this is the wrong way to go a week or so ago. Have a look at lyx-devel's archives if you are intreseted. What I am thinking is: if I am a first time lyx user, I open a document, insert cases, error! I would instantly be scared away. That's why ams should be on by default. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: cases environment does not exist in the default document style.
Andre Poenitz wrote: On Mon, Oct 07, 2002 at 10:24:28AM -0500, Bo Peng wrote: I do not know how to swith on AMS ... but this is not a big deal to me. Maybe lyx can solve this problem by: once a user uses cases environment, lyx adds ams support automatically. This problem is unsolvable by clever guessing. I was arguing that this I do not agree! You have most of the amsstuff in lib/symbols, f.ex. ... yenmsa 85 0 mathord x checkmark msa 88 0 mathord x circledR msa 114 0 mathord x ... hexagonwasy 55 0 xx ... it is no problem to add another (optional) column where you define a package to which the symbol or command depends. It is not only amsmath which is irritating to new users, wasysym f.ex. too. That's why ams should be on by default. no, should be _controlled_ by LyX Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: cases environment does not exist in the default document style.
On Mon, Oct 07, 2002 at 05:39:30PM +0200, Herbert Voss wrote: I do not agree! You have most of the amsstuff in lib/symbols, f.ex. ... hexagonwasy 55 0 xx Nevertheless it breaks if a user does not want AMS but uses a hexagon macro of his own. In this case LyX decides to use AMS and the user has no way to switch it off. Actually I really have better things to do than to have this argument again. Nothing - really NOTHING as far as I am concerned - is going to change in this area until 1.3 is out. So if anybody want to have a discussion again please talk to /dev/null or tell me to unsubscribe (again) from the list. it is no problem to add another (optional) column where you define a package to which the symbol or command depends. It is not only amsmath which is irritating to new users, wasysym f.ex. too. Yes, that would be a good idea if we want to stick to the guessing mechanism. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: cases environment does not exist in the default document style.
On Mon, Oct 07, 2002 at 05:43:41PM +0200, Andre Poenitz wrote: Yes, that would be a good idea if we want to stick to the guessing mechanism. I did not know that this has already been discussed in lyx-devl, and I do not have any better idea than you guys. If lyx refuses to guess, maybe it can do better when error occurs. (If cases + error -amsmath, remind user to add it.) This also involves big amount of work though. -- Bo Peng
Re: cases environment does not exist in the default document style.
On Sat, Oct 05, 2002 at 10:49:43PM -0500, Bo Peng wrote: > This is not a big prolem but it would be better to avoid this kind of > problem by adding amsmath to the default style. No good as some people don't want AMS... Note that you can "switch on" AMS using the preferences dialog. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: cases environment does not exist in the default document style.
On Mon, Oct 07, 2002 at 10:04:02AM +0200, Andre Poenitz wrote: > On Sat, Oct 05, 2002 at 10:49:43PM -0500, Bo Peng wrote: > > This is not a big prolem but it would be better to avoid this kind of > > problem by adding amsmath to the default style. > No good as some people don't want AMS... > Note that you can "switch on" AMS using the preferences dialog. I do not know how to "swith on" AMS ... but this is not a big deal to me. Maybe lyx can solve this problem by: once a user uses cases environment, lyx adds ams support automatically. What I am thinking is: if I am a first time lyx user, I open a document, insert cases, error! I would instantly be scared away. -- Bo Peng
Re: cases environment does not exist in the default document style.
On Mon, Oct 07, 2002 at 10:24:28AM -0500, Bo Peng wrote: > I do not know how to "swith on" AMS ... but this is not a big deal to > me. Maybe lyx can solve this problem by: once a user uses cases > environment, lyx adds ams support automatically. This problem is unsolvable by clever guessing. I was arguing that this is the wrong way to go a week or so ago. Have a look at lyx-devel's archives if you are intreseted. > What I am thinking is: if I am a first time lyx user, I open a document, > insert cases, error! I would instantly be scared away. That's why ams should be on by default. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: cases environment does not exist in the default document style.
Andre Poenitz wrote: > On Mon, Oct 07, 2002 at 10:24:28AM -0500, Bo Peng wrote: > >>I do not know how to "swith on" AMS ... but this is not a big deal to >>me. Maybe lyx can solve this problem by: once a user uses cases >>environment, lyx adds ams support automatically. >> > > This problem is unsolvable by clever guessing. I was arguing that this I do not agree! You have most of the amsstuff in lib/symbols, f.ex. ... yenmsa 85 0 mathord x checkmark msa 88 0 mathord x circledR msa 114 0 mathord x ... hexagonwasy 55 0 xx ... it is no problem to add another (optional) column where you define a package to which the symbol or command depends. It is not only amsmath which is irritating to new users, wasysym f.ex. too. > That's why ams should be on by default. no, should be _controlled_ by LyX Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: cases environment does not exist in the default document style.
On Mon, Oct 07, 2002 at 05:39:30PM +0200, Herbert Voss wrote: > I do not agree! You have most of the amsstuff in lib/symbols, f.ex. > ... > hexagonwasy 55 0 xx Nevertheless it breaks if a user does not want AMS but uses a "hexagon" macro of his own. In this case LyX decides to use AMS and the user has no way to switch it off. Actually I really have better things to do than to have this argument again. Nothing - really NOTHING as far as I am concerned - is going to change in this area until 1.3 is out. So if anybody want to have a discussion again please talk to /dev/null or tell me to unsubscribe (again) from the list. > it is no problem to add another (optional) column > where you define a package to which the symbol or > command depends. It is not only amsmath which is > irritating to new users, wasysym f.ex. too. Yes, that would be a good idea if we want to stick to the guessing mechanism. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: cases environment does not exist in the default document style.
On Mon, Oct 07, 2002 at 05:43:41PM +0200, Andre Poenitz wrote: > Yes, that would be a good idea if we want to stick to the guessing > mechanism. I did not know that this has already been discussed in lyx-devl, and I do not have any better idea than you guys. If lyx refuses to guess, maybe it can do better when error occurs. (If cases + error -amsmath, remind user to add it.) This also involves big amount of work though. -- Bo Peng