Re: [PATCH] Customizable Enumeration Counters

2009-07-14 Thread Jean-Marc Lasgouttes
Le 2 juin 09 à 23:47, Richard Heck a écrit : And the problem is probably that we cannot have "Chapter 1" and "Chapitre 2" in the same document anymore (but this is my fault, not your patch's). here, I think. Still, this is not going to be the normal case, so there must be a way to handle

Re: [PATCH] Customizable Enumeration Counters

2009-06-02 Thread Jean-Marc Lasgouttes
And the problem is probably that we cannot have "Chapter 1" and "Chapitre 2" in the same document anymore (but this is my fault, not your patch's). here, I think. Still, this is not going to be the normal case, so there must be a way to handle it. E.g., check if the paragraph language is

Re: [PATCH] Customizable Enumeration Counters

2009-06-02 Thread Richard Heck
Jean-Marc Lasgouttes wrote: One idea would be to do it when we calculate the flat label string, but we don't have information on the paragraph language at that point, so that would be less than ideal. But I don't really see what else we can do. Does it mean that this flat label stuff needs to

Re: [PATCH] Customizable Enumeration Counters

2009-06-02 Thread Jean-Marc Lasgouttes
Le 2 juin 09 à 19:11, rgheck a écrit : I've worked on this a bit, but it is a bit harder than it seemed it might be. I don't think there's anything we can reliably translate where you put the FIXME. We do this: counterLabel(it->second.flatLabelString(appendix())) but flatLabelString() is ca

Re: [PATCH] Customizable Enumeration Counters

2009-06-02 Thread rgheck
ive way of outlining, an excellent enumeration method for documentation. It would be a nice extra to be able to have some outlines in the doc follow the preceding protocol, while others follow other protocols. It wouldn't be an earth shaking feature like character styles, but it would be a

Re: [PATCH] Customizable Enumeration Counters

2009-06-02 Thread rgheck
Jean-Marc Lasgouttes wrote: rgheck writes: The point of this patch is that sometimes one wants enumerations that behave differently, even within a single document. E.g, I've got an Enumerati environment that gives me enumerations with \roman, \Roman, \alph, \Alph, and I'd like to see them th

Re: [PATCH] Customizable Enumeration Counters

2009-06-02 Thread Steve Litt
to see them that way. Your solution changes > everything globally. > > Richard In 7th grade they taught us to outline like this: I. Top level A. Second level 1. Third level a. Forth level i. Fifth level I'd

Re: [PATCH] Customizable Enumeration Counters

2009-06-02 Thread Jean-Marc Lasgouttes
ead the layout counter for enumrations). Starting from the patch below, it is easy to define the enumeration that you describe here. It might end up a bit longer than what you describe here, but at least we do not have to add ad-hoc layout syntax. This patch can probably go to 1.6.4 actually (up

Re: [PATCH] Customizable Enumeration Counters

2009-06-02 Thread rgheck
Jean-Marc Lasgouttes wrote: rgheck writes: The following patch does as advertised. I think it's fairly straightforward, but any comments? Yes: your are making things unnecessarily complicated :) I did not do anything because I had to think about the implications in terms of upgrade

Re: [PATCH] Customizable Enumeration Counters

2009-06-02 Thread Jean-Marc Lasgouttes
rgheck writes: > The following patch does as advertised. I think it's fairly > straightforward, but any comments? Yes: your are making things unnecessarily complicated :) I did not do anything because I had to think about the implications in terms of upgrade compatibility of layout files (proba

Re: [PATCH] Customizable Enumeration Counters

2009-06-02 Thread rgheck
Pavel Sanda wrote: Richard Heck wrote: +# Incremented to format 16, 2 June 2009 by rgh +# Add new tags LabelStringI through LabelStringIV for use with +# enumeration counters. + # Do not forget to document format change in Customization # Manual (section "Declaring a new text

Re: [PATCH] Customizable Enumeration Counters

2009-06-02 Thread Pavel Sanda
Richard Heck wrote: > +# Incremented to format 16, 2 June 2009 by rgh > +# Add new tags LabelStringI through LabelStringIV for use with > +# enumeration counters. > + > # Do not forget to document format change in Customization > # Manual (section "Dec

[PATCH] Customizable Enumeration Counters

2009-06-02 Thread rgheck
--- lib/scripts/layout2layout.py (revision 29903) +++ lib/scripts/layout2layout.py (working copy) @@ -49,13 +49,17 @@ # Rename I18NPreamble to BabelPreamble and add LangPreamble # Incremented to format 15, 28 May 2009 by lasgouttes -# Add new tag OutputFormat; m

Re: [PATCH] Bug 2445: Do not decrease environment depth when parent is not enumeration

2006-09-15 Thread Jean-Marc Lasgouttes
> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: Enrico> The patch seems to work. However, I follow the instructions in Enrico> bug 2445, and after BAR and ENTER, I select Standard. What now Enrico> I type seems to be still part of the proof and I have to Enrico> decrease the enviro

Re: [PATCH] Bug 2445: Do not decrease environment depth when parent is not enumeration

2006-09-14 Thread Enrico Forestieri
On Thu, Sep 14, 2006 at 05:34:33PM +0200, Jean-Marc Lasgouttes wrote: > > http://bugzilla.lyx.org/show_bug.cgi?id=2445 > > This is what I think to be the right fix for this bug. I contains > martin's fixed for 1.5, but adds another part. > > I want that in 1.4.3. Testers please (see the file in

[PATCH] Bug 2445: Do not decrease environment depth when parent is not enumeration

2006-09-14 Thread Jean-Marc Lasgouttes
http://bugzilla.lyx.org/show_bug.cgi?id=2445 This is what I think to be the right fix for this bug. I contains martin's fixed for 1.5, but adds another part. I want that in 1.4.3. Testers please (see the file indent.lyx from pol). JMarc Index: src/paragraph_funcs.C ===

Re: [PATCH] bug 465: enumeration counter not reset between table cells

2005-08-01 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> The free-standing functions, but as said I am unsure aboutthis. Just tell me when you have made up your mind, then. I could not think of another way to do what I wanted. I mean, it is of course possible, but kind of ugly. JMar

Re: [PATCH] bug 465: enumeration counter not reset between table cells

2005-08-01 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> The only think I am unsure about is opening up the dociterator | Lars> interface (protected -> public.) > | Note that LCursor has push() and pop() that are just public wrapp

Re: [PATCH] bug 465: enumeration counter not reset between table cells

2005-08-01 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> The only think I am unsure about is opening up the dociterator Lars> interface (protected -> public.) Note that LCursor has push() and pop() that are just public wrappers around push_bacl() and pop_back(). It looks a bit silly

Re: [PATCH] bug 465: enumeration counter not reset between table cells

2005-08-01 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | This is a fix for | http://bugzilla.lyx.org/show_bug.cgi?id=465 > | What this does is to basically rewrite the setCounter code to use | proper ParIterator and fix nesting of enumerate and itemize when they | are in nested insets. This is demonstra

[PATCH] bug 465: enumeration counter not reset between table cells

2005-07-31 Thread Jean-Marc Lasgouttes
// Maybe we have to increment the item depth. - incrementItemDepth(it.plist(), it.pit(), 0); } + // Compute the item depth of the paragraph + par.itemdepth = getItemDepth(it); + // erase what was there before par.params().labelString(string()); @@ -414,9 +414,6 @@ void setCounter(Buffer const &a

Re: inability to control enumeration counter with ERT

2003-06-28 Thread Juergen Spitzmueller
[EMAIL PROTECTED] wrote: > In a LyX document, you cannot insert the raw latex command > > \setcounter{enumi}{3} (for example) > > into any position where it will change the label of the first enumerated > point in a list. http://www.mail-archive.com/[EMAIL PROTECTED]/msg07142.html Regard

inability to control enumeration counter with ERT

2003-06-27 Thread larry
In a LyX document, you cannot insert the raw latex command \setcounter{enumi}{3} (for example) into any position where it will change the label of the first enumerated point in a list. If you insert it before the first point, which is outside the list environment, it has no effect.

Re: enumeration failure

2002-11-08 Thread Dekel Tsur
On Mon, Nov 04, 2002 at 10:50:09AM -0500, Dr. Richard E. Hawkins wrote: > At about page eleven (Conducting a Chi-square test), lyx displays the > enumeration as 0 for each entry. The latex output renders correctly. > > Also, ^G to insert a greek character seems to have stopped work

Re: enumeration failure

2002-11-04 Thread Martin Vermeer
On Mon, Nov 04, 2002 at 05:08:51PM +0100, Andre Poenitz wrote: > > On Mon, Nov 04, 2002 at 10:58:52AM -0500, Dr. Richard E. Hawkins wrote: > > > > Those who desire to give up Freedom in order to gain Security, > > > will not have, nor do they deserve, either one. (T. Jefferson) > > > > Are you s

Re: enumeration failure

2002-11-04 Thread Andre Poenitz
On Mon, Nov 04, 2002 at 10:58:52AM -0500, Dr. Richard E. Hawkins wrote: > I thought that last time we went through this, it came out that > it *wasn't* my personal setting, and that it had made it into > default bindings sometime along the way (I'm certain that it > wasn't originally bound to tha

Re: enumeration failure

2002-11-04 Thread Dr. Richard E. Hawkins
On Mon, Nov 04, 2002 at 04:53:35PM +0100, Andre Poenitz wrote: > On Mon, Nov 04, 2002 at 10:50:09AM -0500, Dr. Richard E. Hawkins wrote: > > Also, ^G to insert a greek character seems to have stopped working. > Was this some personal setting of you? > Default is M-m g, and this seems to work wel

Re: enumeration failure

2002-11-04 Thread Andre Poenitz
On Mon, Nov 04, 2002 at 10:50:09AM -0500, Dr. Richard E. Hawkins wrote: > Also, ^G to insert a greek character seems to have stopped working. Was this some personal setting of you? Default is M-m g, and this seems to work well. Andre' -- Those who desire to give up Freedom in order to gain Se

enumeration failure

2002-11-04 Thread Dr. Richard E. Hawkins
At about page eleven (Conducting a Chi-square test), lyx displays the enumeration as 0 for each entry. The latex output renders correctly. Also, ^G to insert a greek character seems to have stopped working. Did a recent update clobber config files or some such? -- Richard E. Hawkins, Asst

Re: enumeration miscount

2002-08-27 Thread Dr. Richard E. Hawkins
> > > * text2.C: fixed enumeration mis-count as reported by > > > Dr. Richard Hawkins. > > oh, dear. If this kind of entry is made, My name will be in there > > more than half the developers :) > This is called 'motivating' :) Now wait a mi

Re: enumeration miscount

2002-08-22 Thread Dr. Richard E. Hawkins
On Thu, Aug 22, 2002 at 08:13:16AM +0300, Martin Vermeer wrote: > 2002-08-22Martin Vermeer <[EMAIL PROTECTED]> > * text2.C: fixed enumeration mis-count as reported by > Dr. Richard Hawkins. oh, dear. If this kind of entry is made, My name will be in there mor

Re: enumeration miscount

2002-08-21 Thread Andre Poenitz
On Wed, Aug 21, 2002 at 11:27:50PM +0300, Martin Vermeer wrote: > - for (int i = par->enumdepth + 1; i < 4; i++) { > + for (int i = par->enumdepth; i < 4; i++) { As a matter of style: prefer pre-increment over post-increment. It does not really matter here (except for con

Re: enumeration miscount

2002-08-21 Thread Martin Vermeer
prefered. > > -- > Lgb 2002-08-22 Martin Vermeer <[EMAIL PROTECTED]> * text2.C: fixed enumeration mis-count as reported by Dr. Richard Hawkins. msg43357/pgp0.pgp Description: PGP signature

Re: enumeration miscount

2002-08-21 Thread Lars Gullik Bjønnes
I rewrite my syllabus, I find a display error in lyx. In the | > > > attached document, the enumeration under "Course Methods and Learning" | > > > displays the first element as 5, continuing the count from the previous | > > > enumeration. The postscript o

Re: enumeration miscount

2002-08-21 Thread Martin Vermeer
the > > > attached document, the enumeration under "Course Methods and Learning" > > > displays the first element as 5, continuing the count from the previous > > > enumeration. The postscript output is correct. Sloppy Martin, sloppy! You should have caught th

Re: enumeration miscount

2002-08-21 Thread Dr. Richard E. Hawkins
On Wed, Aug 21, 2002 at 05:43:48PM +0100, Angus Leeming wrote: > On Wednesday 21 August 2002 6:01 pm, Dr. Richard E. Hawkins wrote: > > As I rewrite my syllabus, I find a display error in lyx. In the > > attached document, the enumeration under "Course Methods and Learni

Re: enumeration miscount

2002-08-21 Thread Angus Leeming
On Wednesday 21 August 2002 6:01 pm, Dr. Richard E. Hawkins wrote: > As I rewrite my syllabus, I find a display error in lyx. In the > attached document, the enumeration under "Course Methods and Learning" > displays the first element as 5, continuing the count from the pre

enumeration miscount

2002-08-21 Thread Dr. Richard E. Hawkins
As I rewrite my syllabus, I find a display error in lyx. In the attached document, the enumeration under "Course Methods and Learning" displays the first element as 5, continuing the count from the previous enumeration. The postscript output is correct. -- Richard E. Hawkins, Asst

Re: enumeration miscount in lyx

2001-10-23 Thread Dekel Tsur
On Tue, Oct 23, 2001 at 03:43:23PM -0400, Richard E. Hawkins wrote: > > the fifth question on this document appears as 5. in lyx, but back to 1 > . in latex Here is a fixed file. The problem is that CVS lyx allows "infinite nesting": Start an enumerate paragraph, create two items, and press M-p

Re: "Comment" template in an "Enumeration" environment

2001-07-04 Thread Dekel Tsur
On Wed, Jul 04, 2001 at 05:35:48PM +0200, Saalfeld, Christoph wrote: > I tried to insert a "comment" in an "enumeration" environment. Because a > comment will not be visible in the final document, the enumeration should > continue with the next number. > >

"Comment" template in an "Enumeration" environment

2001-07-04 Thread Saalfeld, Christoph
Hi, I tried to insert a "comment" in an "enumeration" environment. Because a comment will not be visible in the final document, the enumeration should continue with the next number. For example: 1. Some stuff Comment: "Something only for me..." 2.

Re: enumeration depth

2000-10-19 Thread Lars Gullik Bjønnes
"Garst R. Reese" <[EMAIL PROTECTED]> writes: | Allan Rae wrote: | > | > On Thu, 19 Oct 2000, Staffan Ringbom wrote: | > | > > Thank you very much, I got the point! | > > | > > \renewcommand\labelenumi{\alph{enumi}.} | > > \renewcommand\labelenumii{\roman{enumii}.} | > > \renewcommand\labelenum

Re: enumeration depth

2000-10-19 Thread Allan Rae
gt; > > > Allan. (ARRae) > Sounds like a job for Super Preferences to me. No. Super-Document and Super-Paragraph perhaps but not Super-Preferences. These changes are the enumerate equivalent of the bullet selection and belong at document-global and paragraph scope. While you might

Re: enumeration depth

2000-10-19 Thread Garst R. Reese
Allan Rae wrote: > > On Thu, 19 Oct 2000, Staffan Ringbom wrote: > > > Thank you very much, I got the point! > > > > \renewcommand\labelenumi{\alph{enumi}.} > > \renewcommand\labelenumii{\roman{enumii}.} > > \renewcommand\labelenumiii{\roman{enumiii}.}, > > > > made the Job. > > > > Did not fin

Re: enumeration depth

2000-10-18 Thread Allan Rae
On Thu, 19 Oct 2000, Staffan Ringbom wrote: > Thank you very much, I got the point! > > \renewcommand\labelenumi{\alph{enumi}.} > \renewcommand\labelenumii{\roman{enumii}.} > \renewcommand\labelenumiii{\roman{enumiii}.}, > > made the Job. > > Did not find this in the User Gidd, although this

Re: enumeration use & bug report

2000-05-12 Thread Dekel Tsur
On Thu, May 11, 2000 at 01:42:21PM +0300, Lior Silberman wrote: > The two methods for empty enumeration points are radically different. > Putting a nonbreaking space gives (in the dvi) > 1. > (a) > (b) > > while using an empty {} gives: > (a) > (b) > >

Re: enumeration use & bug report

2000-05-11 Thread Garst R. Reese
Jean-Marc Lasgouttes wrote: > So it seems to me that Return (break-paragraph) can go back in depth > _if_ it changes the layout too. > > Comments? I suppose you mean environment instead of layout there. I remember being surprised when I first used verse. There are many more lines than stanzas,

Re: enumeration use & bug report

2000-05-11 Thread Jean-Marc Lasgouttes
>>>>> "Lior" == Lior Silberman <[EMAIL PROTECTED]> writes: Lior> Thanks for the help! First, I wanted to report a bug. When you Lior> are start the next point in an enumeration, I would expect the Lior> enumeration depth should remain as in the previo

enumeration use & bug report

2000-05-11 Thread Lior Silberman
Thanks for the help! First, I wanted to report a bug. When you are start the next point in an enumeration, I would expect the enumeration depth should remain as in the previous point (If I have 1a it's almost certain to be followed by 1b and not 2). I tried debugging the code, and foun

Re: enumeration

1999-03-11 Thread John Weiss
On Fri, Mar 05, 1999 at 11:04:35AM -0600, Bruce M Beach wrote: > On Fri, 5 Mar 1999, Amir Karger wrote: > > > On Thu, Mar 04, 1999 at 10:41:54PM -0600, Bruce M Beach wrote: > > > > > > Hello All > > > > > > To do something like > > > > > > 1. Statement 1 > > >substatem

Re: enumeration

1999-03-05 Thread Bruce M Beach
On Fri, 5 Mar 1999, Amir Karger wrote: > On Thu, Mar 04, 1999 at 10:41:54PM -0600, Bruce M Beach wrote: > > > > Hello All > > > > To do something like > > > > 1. Statement 1 > > substatement 1 > > substatement 1 > > 2. Statement 2 > >

Re: List troubles (Was: enumeration)

1999-03-05 Thread Bruce M Beach
[EMAIL PROTECTED] On Fri, 5 Mar 1999, Martin Vermeer wrote: > This only works if you put the "verses" one level deeper in the nested list > structure. It is the toolbar button that looks like a printed sheet with a > left and a right arrow. > In this case it worked well enought. > In

Re: enumeration

1999-03-05 Thread Amir Karger
On Thu, Mar 04, 1999 at 10:41:54PM -0600, Bruce M Beach wrote: > > Hello All > > To do something like > > 1. Statement 1 >substatement 1 >substatement 1 > 2. Statement 2 >substatement 2 >substatement 2 > do I h

List troubles (Was: enumeration)

1999-03-05 Thread Martin Vermeer
> > To do something like > > 1. Statement 1 >substatement 1 >substatement 1 > 2. Statement 2 >substatement 2 >substatement 2 > do I have to resort to latex or is there some > convienent way to do it in lyx >

enumeration

1999-03-04 Thread Bruce M Beach
Hello All To do something like 1. Statement 1 substatement 1 substatement 1 2. Statement 2 substatement 2 substatement 2 do I have to resort to latex or is there some convienent way to do it in ly