Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-05 Thread José Matos
On Monday 05 February 2007 10:58:23 am Jean-Marc Lasgouttes wrote: > So the label should be in the same paragraph as the section, right? Yes. > I guess this is important for hyperlinks too. Among others, but this example captures the usefulness of this behaviour. > JMarc -- José Abílio

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-05 Thread Jean-Marc Lasgouttes
> "José" == José Matos <[EMAIL PROTECTED]> writes: José> On Sunday 04 February 2007 4:21:47 pm Jean-Marc Lasgouttes José> wrote: >> Also, I wonder what it does to docbook (we are not only doing >> latex) José> Every element can have an id, so that it can be referenced by José> that name aft

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-05 Thread José Matos
On Sunday 04 February 2007 4:21:47 pm Jean-Marc Lasgouttes wrote: > Also, I wonder what it does to docbook (we are not only doing latex) Every element can have an id, so that it can be referenced by that name afterwards. At a certain point I used to catch the label as the first paragraph e

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-04 Thread Andre Poenitz
On Thu, Feb 01, 2007 at 09:05:18PM +0100, Abdelrazak Younes wrote: > Why would a user put a label in the middle of the section title? LyX is > about automatic formatting. It is about doing _the_ _right_ _thing_. > There is no logic to put the label in the middle of the text for a section. Could

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-04 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> Besides, could you give me one single reason as to why it Abdelrazak> is _so_ important to place the label inside the section as Abdelrazak> opposed to rightly after. The end-result will be 100% the Abdelrazak> same be

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-03 Thread Michael Gerz
Georg Baum schrieb: In the Cross reference dialog, list in addition to existing labels all sections, figures etc. (maybe in different lists). If the user chooses to reference such a section, insert a normal label in that section und use that. Then the user can for example change the automaticiall

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Enrico Forestieri
On Fri, Feb 02, 2007 at 01:46:27PM +0100, Abdelrazak Younes wrote: > Enrico Forestieri wrote: > > On Fri, Feb 02, 2007 at 12:32:11PM +0100, Abdelrazak Younes wrote: > >> Besides, could you give me one single reason as to why it is _so_ > >> important to place the label inside the section as oppose

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Jean-Marc Lasgouttes
> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: >> You seem to miss the fact this is all about a LateX limitation, not >> LyX. Enrico> Abdel, do you know LaTeX? Since I am a cheap oldtimer, I only have the original LaTeX 2.09 documentation. However, at page 187, it says: "\label

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Fri, Feb 02, 2007 at 12:21:25PM +0100, Abdelrazak Younes wrote: Enrico Forestieri wrote: Once, someone noted that he didn't succeed in trying to convince latex people to switch to lyx. If lyx starts getting in the way such that I cannot do what I could directly do i

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> Jean-Marc Lasgouttes wrote: >> No the question is to understand _why_ a reference causes a problem >> there. My understanding was that it was because the argument to >> \section is a moving argument, and I thus propose

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Enrico Forestieri
On Fri, Feb 02, 2007 at 01:35:12PM +0100, Abdelrazak Younes wrote: > Enrico Forestieri wrote: > > On Fri, Feb 02, 2007 at 12:32:11PM +0100, Abdelrazak Younes wrote: > > >> The end-result will be 100% the same because this is how LateX works. > > > > LaTeX let me do what I want, LyX not anymore. >

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Enrico Forestieri
On Fri, Feb 02, 2007 at 12:21:25PM +0100, Abdelrazak Younes wrote: > Enrico Forestieri wrote: > > > Once, someone noted that he didn't succeed in trying to convince latex > > people to switch to lyx. If lyx starts getting in the way such that I > > cannot do what I could directly do in latex, afte

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Fri, Feb 02, 2007 at 12:32:11PM +0100, Abdelrazak Younes wrote: Besides, could you give me one single reason as to why it is _so_ important to place the label inside the section as opposed to rightly after. Because I could have redefined the \label command to do so

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Fri, Feb 02, 2007 at 12:32:11PM +0100, Abdelrazak Younes wrote: The end-result will be 100% the same because this is how LateX works. LaTeX let me do what I want, LyX not anymore. Look at the log, it has been reverted since this morning... Abdel.

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Enrico Forestieri
On Fri, Feb 02, 2007 at 12:32:11PM +0100, Abdelrazak Younes wrote: > Enrico Forestieri wrote: > > On Thu, Feb 01, 2007 at 10:07:31PM +0100, Abdelrazak Younes wrote: > > > >> In the mean time, I still think that my commit is an improvement over > >> current situation. It is nice to say that we sho

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Thu, Feb 01, 2007 at 10:07:31PM +0100, Abdelrazak Younes wrote: In the mean time, I still think that my commit is an improvement over current situation. It is nice to say that we should educate the user but, IMHO, the less thing he has to learn in order to use LyX,

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Enrico Forestieri
On Fri, Feb 02, 2007 at 09:32:06AM +0100, Jean-Marc Lasgouttes wrote: > Labels could be turned to paragraph parameters, like we do in maths. I > do not know whether there are real cases where someone needs precise > placement. Whatever the solution you adopt, please consider the following. I don

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Abdelrazak Younes
Enrico Forestieri wrote: Once, someone noted that he didn't succeed in trying to convince latex people to switch to lyx. If lyx starts getting in the way such that I cannot do what I could directly do in latex, after more than ten years I may even consider to continue using lyx instead of some o

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Enrico Forestieri
On Fri, Feb 02, 2007 at 09:49:29AM +0100, Juergen Spitzmueller wrote: > Abdelrazak Younes wrote: > > > In the mean time, I still think that my commit is an improvement over > > current situation. It is nice to say that we should educate the user > > but, IMHO, the less thing he has to learn in ord

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Helge Hafting
Jean-Marc Lasgouttes wrote: "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: I strongly disagree. It is very natural to insert a label when the cursor is inside a section. The label is a _markup_... the concept is not very far from the numbering of the caption labels. Do we ha

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: No the question is to understand _why_ a reference causes a problem there. My understanding was that it was because the argument to \section is a moving argument, and I thus propose to just \protect the \ref. Now Uwe tells us that both Herbert and the hyperref author (

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Juergen Spitzmueller
Abdelrazak Younes wrote: > In the mean time, I still think that my commit is an improvement over > current situation. It is nice to say that we should educate the user > but, IMHO, the less thing he has to learn in order to use LyX, the better. > > What do others think? Since you ask (and it's f

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: >> I strongly disagree. It is very natural to insert a label when the >> cursor is inside a section. The label is a _markup_... the concept >> is not very far from the numbering of the caption labels. Do we >> have user complaining about not

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Georg Baum
Abdelrazak Younes wrote: > No, you misunderstood me. I mean there is no reason why a user would > prefer the label before, after or in the middle of the section; he > should not care and this should be done automatically for him. This is your opinion. But as you can see from Enricos answer users

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-02 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: >> The problem is definitely not that the section is numbered. Abdelrazak> In the LyX context that's definitely the problem. Do you have _one_ good reason to believe that?? Abdelrazak> But as I said in the comments, I can repl

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-01 Thread Enrico Forestieri
On Thu, Feb 01, 2007 at 10:07:31PM +0100, Abdelrazak Younes wrote: > In the mean time, I still think that my commit is an improvement over > current situation. It is nice to say that we should educate the user > but, IMHO, the less thing he has to learn in order to use LyX, the better. > > What

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-01 Thread Abdelrazak Younes
Abdelrazak Younes wrote: It is nice to say that we should educate the user but, IMHO, the less thing he has to learn in order to use LyX, the better. Especially so when the Tutorial doesn't teach the correct way: Let's mark our second section, whose title is "About This Document". Click at th

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-01 Thread Abdelrazak Younes
Georg Baum wrote: Am Donnerstag, 1. Februar 2007 21:05 schrieb Abdelrazak Younes: Why would a user put a label in the middle of the section title? LyX is about automatic formatting. It is about doing _the_ _right_ _thing_. There is no logic to put the label in the middle of the text for a se

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-01 Thread Georg Baum
Am Donnerstag, 1. Februar 2007 21:05 schrieb Abdelrazak Younes: > Why would a user put a label in the middle of the section title? LyX is > about automatic formatting. It is about doing _the_ _right_ _thing_. > There is no logic to put the label in the middle of the text for a section. So why

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-01 Thread Abdelrazak Younes
Abdelrazak Younes wrote: At least with this automatic label placement, the user knows that the label placement is not something that I prefer to teach the user that I guess I was about to say something miraculously clever here but I forgot what :-) Abdel.

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-01 Thread Abdelrazak Younes
Georg Baum wrote: Am Donnerstag, 1. Februar 2007 19:01 schrieb Abdelrazak Younes: Jean-Marc Lasgouttes wrote: Please, not more of these hacks!!! Sorry but this is not a hack. LyX should be intelligent in the placement of insets. In this case, the code is clear and simple, the output is 100% t

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-01 Thread Michael Gerz
Georg Baum schrieb: If inserting a label in a section is not possible, because the button is greyed out the user more likely sees that this was done on purpose. I really would prefer to educate the user rather than doing undocumented black magic (as I wrote here: http://bugzilla.lyx.org/show

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-01 Thread Georg Baum
Am Donnerstag, 1. Februar 2007 19:01 schrieb Abdelrazak Younes: > Jean-Marc Lasgouttes wrote: > > Please, not more of these hacks!!! > > Sorry but this is not a hack. LyX should be intelligent in the placement > of insets. In this case, the code is clear and simple, the output is > 100% the same

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-01 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "younes" == younes <[EMAIL PROTECTED]> writes: younes> Author: younes Date: Thu Feb 1 18:21:05 2007 New Revision: younes> 17010 younes> URL: http://www.lyx.org/trac/changeset/17010 Log: As explained younes> in the comments, this is a partial fix for bug 2154: youne

Re: [Cvslog] r17010 - /lyx-devel/trunk/src/text3.C

2007-02-01 Thread Jean-Marc Lasgouttes
> "younes" == younes <[EMAIL PROTECTED]> writes: younes> Author: younes Date: Thu Feb 1 18:21:05 2007 New Revision: younes> 17010 younes> URL: http://www.lyx.org/trac/changeset/17010 Log: As explained younes> in the comments, this is a partial fix for bug 2154: younes> http://bugzilla.lyx.or