Re: [Patch] cases environment requires amsmath

2003-03-07 Thread Duncan Simpson
The cases environment defined by the ams package clashes with the plain TeX \cases command due to the implementation of \begin in LaTeX. If the AMS version was the right thing then I could live with this--unfortunately the AMS cases environemnt is a plain in the butt to use. Instead of $f(x)=\cas

Re: [Patch] cases environment requires amsmath

2003-03-06 Thread Dekel Tsur
On Thu, Mar 06, 2003 at 08:14:37AM +0100, Andre Poenitz wrote: > On Wed, Mar 05, 2003 at 04:28:27PM -0800, Ling Li wrote: > > The environment "cases" requires amsmath. Patch to math_casesinset.[Ch] > > and ChangeLog attached. The patch is against 1.3.1cvs. > > \cases is valid plain TeX and is used

Re: [Patch] cases environment requires amsmath

2003-03-06 Thread Andre Poenitz
On Thu, Mar 06, 2003 at 09:02:46AM +, John Levon wrote: > It might even be simpler for the user to understand. In fact, I think it > will. If I do the UI hacking etc. you can do the validate bits, ok ? Sure. Andre' -- Those who desire to give up Freedom in order to gain Security, will not h

Re: [Patch] cases environment requires amsmath

2003-03-06 Thread John Levon
On Thu, Mar 06, 2003 at 09:51:50AM +0100, Andre Poenitz wrote: > I'd like to have a tri-state: > >- never use AMS >- let LyX guess (i.e. use validate()) >- always use AMS > > with default on the second option. > > I think thsi is not much different from what you suggest, but simpler

Re: [Patch] cases environment requires amsmath

2003-03-06 Thread Andre Poenitz
On Thu, Mar 06, 2003 at 08:19:27AM +, John Levon wrote: > I think my suggested change stops you sighing, does it not ? If not seen an incarnation of your idea, > There would be params.use_amsmath (not visible in UI) and > params.autouse_amsmath (visible in UI). > > valildate() does > >

Re: [Patch] cases environment requires amsmath

2003-03-06 Thread John Levon
On Thu, Mar 06, 2003 at 09:09:55AM +0100, Andre Poenitz wrote: > *sigh* > > I bow to the majority. > > Your patch is in. I think my suggested change stops you sighing, does it not ? There would be params.use_amsmath (not visible in UI) and params.autouse_amsmath (visible in UI). valildate() d

Re: [Patch] cases environment requires amsmath

2003-03-06 Thread Andre Poenitz
On Wed, Mar 05, 2003 at 11:26:32PM -0800, Ling Li wrote: > So I guess the existence of \cases doesn't matter. *sigh* I bow to the majority. Your patch is in. 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: [Patch] cases environment requires amsmath

2003-03-06 Thread John Levon
On Thu, Mar 06, 2003 at 08:55:23AM +0100, Andre Poenitz wrote: > > Why this isn't "Automatically use AMS math package", default selected, I > > do not know. > > Because I don't know where I can switch this on by default. If I knew, this > would be in. My suggestion is slightly different from the

Re: [Patch] cases environment requires amsmath

2003-03-06 Thread Andre Poenitz
On Wed, Mar 05, 2003 at 09:53:53PM -0800, Ling Li wrote: > 1. if some environments which require the amsmath package, such as align > and cases, are included in a LyX file, amsmath should be automatically > included. > 2. if the user doesn't include anything that intrigues the > auto-inclusion of a

Re: [Patch] cases environment requires amsmath

2003-03-05 Thread Andre Poenitz
On Thu, Mar 06, 2003 at 05:37:29AM +, John Levon wrote: > There is a checkbox "Use AMS Math" in the doc setup (or prefs, I > forget). > > Why this isn't "Automatically use AMS math package", default selected, I > do not know. Because I don't know where I can switch this on by default. If I kn

Re: [Patch] cases environment requires amsmath

2003-03-05 Thread Ling Li
On Wed, 2003-03-05 at 23:14, Andre Poenitz wrote: > On Wed, Mar 05, 2003 at 04:28:27PM -0800, Ling Li wrote: > > The environment "cases" requires amsmath. Patch to math_casesinset.[Ch] > > and ChangeLog attached. The patch is against 1.3.1cvs. > > \cases is valid plain TeX and is used by some peop

Re: [Patch] cases environment requires amsmath

2003-03-05 Thread Andre Poenitz
On Wed, Mar 05, 2003 at 04:28:27PM -0800, Ling Li wrote: > The environment "cases" requires amsmath. Patch to math_casesinset.[Ch] > and ChangeLog attached. The patch is against 1.3.1cvs. \cases is valid plain TeX and is used by some people as such. validate() is intentionally almost non-function

Re: [Patch] cases environment requires amsmath

2003-03-05 Thread John Levon
On Wed, Mar 05, 2003 at 09:53:53PM -0800, Ling Li wrote: > > don't know if Andrew got an answer. > Sorry I didn't know that someone had done that before... That should be "Andrey" not Andrew, my fault... > > There is a checkbox "Use AMS Math" in the doc setup (or prefs, I > > forget). > Yes I

Re: [Patch] cases environment requires amsmath

2003-03-05 Thread Ling Li
On Wed, 2003-03-05 at 21:37, John Levon wrote: > Andre, this is the second time somebody has sent a patch like this. I > don't know if Andrew got an answer. Sorry I didn't know that someone had done that before... > > There is a checkbox "Use AMS Math" in the doc setup (or prefs, I > forget). Yes

Re: [Patch] cases environment requires amsmath

2003-03-05 Thread John Levon
On Wed, Mar 05, 2003 at 04:28:27PM -0800, Ling Li wrote: > The environment "cases" requires amsmath. Patch to math_casesinset.[Ch] > and ChangeLog attached. The patch is against 1.3.1cvs. Andre, this is the second time somebody has sent a patch like this. I don't know if Andrew got an answer. Li

[Patch] cases environment requires amsmath

2003-03-05 Thread Ling Li
The environment "cases" requires amsmath. Patch to math_casesinset.[Ch] and ChangeLog attached. The patch is against 1.3.1cvs. Basically I copied the validate() code from math_hullinset.[Ch]. However, I have two questions about code there: 1. in .h file, why many empty lines "///"? any particular