Le Thursday 13 March 2008 13:23:06 Aditya Mahajan, vous avez écrit : > On Thu, 13 Mar 2008, Morgan Brassel wrote: > > Hi everyone, > > > > I read carefully the two 'My Way' from Aditya regarding math alignment > > (thank you for those, they were extremely useful to me, and should maybe > > get even more visibility on the wiki), and I have some questions about > > it: > > > > > > 1) Is there a way to modify interline spacing in 'cases' environment? I > > find it a bit short when using the displaystyle option. > > There is no clean way to do this at the moment. You can force a looser > interline by adding \noalign{\vskip ...} after \NR.
Ok, I'll do that. This is the \needspace command described in your 'My Way', isn't it? I should have remembered it! > > 2) I noticed that the interline spacing is not the same in the 'align' > > and 'aligned' environment (it's larger in 'align'). Is there a way to > > make 'aligned' use the spacing of align? It looks better with > > displaystyle maths. > > I do not like the definition of aligned using matrices that I have > presented in the 'My Way'. Matrices try very hard to have a compact > interline spacing, while in a aligned environment you need the opposite. > At some point, I played with some of the internals of core-mat, and had > a working definition of aligned. I cannot find it at the moment :( Maybe another solution would be to add left and right options directly to the align environment. But of course I have no idea if it is possible... Anyway, if you find your new definition back, I would be glad to test it! > > 3) Aditya, I saw your remark in your 'My Way' concerning the 'multline' > > environment. I must admit I would really be glad to see it appear in > > ConTeXt! I'm afraid I'm not able to implement it myself... I use it a > > lot with amsmath: when a formula is just too long for one line, I put it > > on two with multline. The first part of the formula is left aligned on > > the first line, and the second part is right aligned on the second line. > > It seems impossible to get the same result with only 'align'. Would it be > > difficult to make it available in ConTeXt? > > No, multline is probably the simplest of all math environments. I do not > really understand what all features it should have. If you can explain > everything you want from a multiline environment, I can give a shot at > trying to implement that, and Hans and Taco could polish it up. > > Aditya Concerning multline, I only read the specification given in amsldoc.pdf: "3.3 Split equations without alignment". Multline does not support alignment, so you can't put '&' inside it, only '\\'. All it does is cut the equation into several lines: the first is left aligned, the last is right aligned, and all the intermediate are centered. I don't if this is sufficient as an explanation. Please let me know if I can help or test. And thank you for your time! Morgan ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________