Re: Problems with program listings and captions/labels

2008-03-21 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > You mean that you have to point to a particular place in a given > paragraph, or would a label pointing to a given paragraph be enough? The former. Jürgen

Re: Problems with program listings and captions/labels

2008-03-21 Thread Herbert Voss
Bo Peng schrieb: > Could you elaborate? To what do these labels refer? As a recent example, I got reviewers' comments for a submitted paper and need to write a response that refers to the revised paper. I marked reviewers' comments as 'comment_1_1', 'comment_3_10' etc and inserted them as labe

Re: Problems with program listings and captions/labels

2008-03-21 Thread Richard Heck
Jean-Marc Lasgouttes wrote: Herbert Voss <[EMAIL PROTECTED]> writes: Jean-Marc Lasgouttes schrieb: "Bo Peng" <[EMAIL PROTECTED]> writes: Obviously I am one of those 1%, exactly with regard to the case you outlined: pageref to a given argumentation inside some longer section

Re: Problems with program listings and captions/labels

2008-03-21 Thread Jean-Marc Lasgouttes
Herbert Voss <[EMAIL PROTECTED]> writes: > Jean-Marc Lasgouttes schrieb: >> "Bo Peng" <[EMAIL PROTECTED]> writes: >> Obviously I am one of those 1%, exactly with regard to the case you outlined: pageref to a given argumentation inside some longer section and paragraph. Why

Re: Problems with program listings and captions/labels

2008-03-21 Thread Bo Peng
> > Could you elaborate? To what do these labels refer? As a recent example, I got reviewers' comments for a submitted paper and need to write a response that refers to the revised paper. I marked reviewers' comments as 'comment_1_1', 'comment_3_10' etc and inserted them as labels to my manuscrip

Re: Problems with program listings and captions/labels

2008-03-21 Thread Herbert Voss
Jean-Marc Lasgouttes schrieb: "Bo Peng" <[EMAIL PROTECTED]> writes: Obviously I am one of those 1%, exactly with regard to the case you outlined: pageref to a given argumentation inside some longer section and paragraph. Why should we limit ourself wrt label use compared to LaTeX? And there

Re: Problems with program listings and captions/labels

2008-03-21 Thread Jean-Marc Lasgouttes
"Bo Peng" <[EMAIL PROTECTED]> writes: >> Obviously I am one of those 1%, exactly with regard to the case you >> outlined: >> pageref to a given argumentation inside some longer section and paragraph. >> Why should we limit ourself wrt label use compared to LaTeX? > > And there are reasons to h

Re: Problems with program listings and captions/labels

2008-03-21 Thread Bo Peng
> Obviously I am one of those 1%, exactly with regard to the case you outlined: > pageref to a given argumentation inside some longer section and paragraph. > Why should we limit ourself wrt label use compared to LaTeX? And there are reasons to have more than one references in a paragraph, for

Re: Problems with program listings and captions/labels

2008-03-21 Thread Jean-Marc Lasgouttes
Jürgen Spitzmüller <[EMAIL PROTECTED]> writes: > Obviously I am one of those 1%, exactly with regard to the case you outlined: > pageref to a given argumentation inside some longer section and paragraph. > Why should we limit ourself wrt label use compared to LaTeX? You mean that you have to po

Re: Problems with program listings and captions/labels

2008-03-21 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > We should maybe reconsider the label-as-an-inset strategy and make the > label a paragraph property. This will loose some flexibility for the > 1% of people who know that their label should be at position 47 of the > paragraph (for a pageref?), but makes more sense and

Re: Problems with program listings and captions/labels

2008-03-21 Thread Andre Poenitz
On Fri, Mar 21, 2008 at 10:31:21AM +0100, Jean-Marc Lasgouttes wrote: > "Bo Peng" <[EMAIL PROTECTED]> writes: > > >> from what I understand, it looks pretty well done and > >> works, too. > > > > Thank you for testing. A polished patch has been submitted to trunk, > > and a patch for branch is a

Re: Problems with program listings and captions/labels

2008-03-21 Thread Jean-Marc Lasgouttes
"Bo Peng" <[EMAIL PROTECTED]> writes: >> from what I understand, it looks pretty well done and >> works, too. > > Thank you for testing. A polished patch has been submitted to trunk, > and a patch for branch is attached. I have to say that I do no like much the principle of this patch (post-pro

Re: Problems with program listings and captions/labels

2008-03-21 Thread Jürgen Spitzmüller
Bo Peng wrote: > Thank you for testing. A polished patch has been submitted to trunk, > and a patch for branch is attached. > > Jurgen? OK. Jürgen

Re: Problems with program listings and captions/labels

2008-03-20 Thread Bo Peng
> Something like this same approach might also work for some of the > problems we've been having with labels in section headings, etc. Bug nubmers? test documents? Bo

Re: Problems with program listings and captions/labels

2008-03-20 Thread Bo Peng
> from what I understand, it looks pretty well done and > works, too. Thank you for testing. A polished patch has been submitted to trunk, and a patch for branch is attached. Jurgen? Bo Index: src/insets/InsetListings.cpp === ---

Re: Problems with program listings and captions/labels

2008-03-20 Thread Dominik Böhm
On Thu, Mar 20, 2008 at 4:28 PM, Bo Peng <[EMAIL PROTECTED]> wrote: > > > I see the problem now. Will fix soon. > > It is too late, and unwise to disable label inside listings caption, > so the only solution is to process listings parameter afterwards. I think that's the right approach. The L

Re: Problems with program listings and captions/labels

2008-03-20 Thread Bo Peng
> > I see the problem now. Will fix soon. It is too late, and unwise to disable label inside listings caption, so the only solution is to process listings parameter afterwards. The attached patch does this. It will be applied to trunk if there is no objection. Jurgen: OK for branch? Bo Index:

Re: Problems with program listings and captions/labels

2008-03-20 Thread Dominik Böhm
On Thu, Mar 20, 2008 at 3:17 PM, Bo Peng <[EMAIL PROTECTED]> wrote: > > As you can see, the \label-command is inside the caption definition. > > The listings package doesn't seem to like it that way. > > I see the problem now. Will fix soon. That's great, thanks! Dominik

Re: Problems with program listings and captions/labels

2008-03-20 Thread Bo Peng
> As you can see, the \label-command is inside the caption definition. > The listings package doesn't seem to like it that way. I see the problem now. Will fix soon. Bo

Re: Problems with program listings and captions/labels

2008-03-20 Thread Dominik Böhm
On Thu, Mar 20, 2008 at 4:00 AM, Bob Lounsbury <[EMAIL PROTECTED]> wrote: > > Hopefully someone with more knowledge will respond soon. LyX 1.6 is > still in svn, so I can't open you're lyx file and importing the tex > file makes it more confusing. It's not only an LyX 1.6.0 issue, just tried it