Uwe Stöhr <[EMAIL PROTECTED]> writes: > Jean-Marc Lasgouttes schrieb: > >> If you are going this route, please investigate all the theorems >> environments of all layouts (it is not so difficult, probably only a >> handful need to be fixed). > > I'll do this.
Thanks, but I'd like input from others on the general idea. >> In general, what I do not like much in this solution is that we handle >> a particular layout and give it unexpected behaviour. For example, if >> you use Return at the _end_ of a theorem, it will happily add empty >> lines. Kind of return to msword time. > > I don't understand. It is valid LaTeX to have empty environments, and > in the case I described in the bug report you need this to start > environments at the first theorem line. OK, consider the following file created today's trunk (a theorem with 8 empty paragraphs in the middle). LyX should not allow to create this (especially since it does not make anything on DVI output). >> I agree that the problem that is handled there is real [*], but I do >> not like much the solution. I think I'd prefer reverting the trunk >> patch that propagating to branch. > > But this is in contrary to what you wrote above. Ah, you noticed :) To word it differently, I understand that doing that is important to some people, but I really do not like it. > >> [*] actually, now that I think of it, my main problem with theorem and >> enumerations in LaTeX have always been that I had to force >> manually a return. > > But don't need to do this. What exactly do you mean? I always do in such cases \begin{thm}\mbox{} \begin{itemize} \item ... \end{itemize} to force a break before the first bullet. > Personally I also don't like having environments started at the first > Theorem line, but this is no reason to forbid this. I was contacted by > a math professor who needs this output. > My patch doesn't change the idea of LyX of WYSIWYM and inserting > environments to theorems is the same as before. It just allows what > LaTeX allows. But it creates problems in different places. JMarc
newfile5.lyx
Description: Binary data