Re: [LyX master] Fix display of counters for included listings.

2024-02-11 Thread Richard Kimberly Heck
On 2/10/24 22:34, Jürgen Spitzmüller wrote: Am Samstag, dem 10.02.2024 um 12:17 -0500 schrieb Richard Kimberly Heck: Oh, shoot. Should I revert it? Or notify people there is one new string? I'd go for the latter. I think an untranslated string is better than a wrong one. Done. Riki -- lyx-

Re: [LyX master] Fix display of counters for included listings.

2024-02-10 Thread Jürgen Spitzmüller
Am Samstag, dem 10.02.2024 um 12:17 -0500 schrieb Richard Kimberly Heck: > Oh, shoot. Should I revert it? Or notify people there is one new > string? I'd go for the latter. I think an untranslated string is better than a wrong one. -- Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org htt

Re: [LyX master] Fix display of counters for included listings.

2024-02-10 Thread Richard Kimberly Heck
On 2/10/24 18:21, Pavel Sanda wrote: On Sat, Feb 10, 2024 at 12:17:57PM -0500, Richard Kimberly Heck wrote: On 2/10/24 03:45, Jürgen Spitzmüller wrote: Am Samstag, dem 10.02.2024 um 00:55 + schrieb Richard Kimberly Heck: The branch, master, has been updated. You are aware that this broke

Re: [LyX master] Fix display of counters for included listings.

2024-02-10 Thread Pavel Sanda
On Sat, Feb 10, 2024 at 12:17:57PM -0500, Richard Kimberly Heck wrote: > On 2/10/24 03:45, Jürgen Spitzmüller wrote: > >Am Samstag, dem 10.02.2024 um 00:55 + schrieb Richard Kimberly > >Heck: > >>The branch, master, has been updated. > >You are aware that this broke the string freeze, right? So

Re: [LyX master] Fix display of counters for included listings.

2024-02-10 Thread Richard Kimberly Heck
On 2/10/24 03:45, Jürgen Spitzmüller wrote: Am Samstag, dem 10.02.2024 um 00:55 + schrieb Richard Kimberly Heck: The branch, master, has been updated. You are aware that this broke the string freeze, right? So translators should be informed to update once more before the final release. Oh

Re: [LyX master] Fix display of counters for included listings.

2024-02-10 Thread Jürgen Spitzmüller
gt; - Log --- > -- > > commit 91bd457a674579e1bc9e61aab19c272cd0d342dd > Author: Richard Kimberly Heck > Date:   Fri Feb 9 19:53:55 2024 -0500 > >     Fix display of counters for included listings. > > diff --git a/lib/layouts/stdcounters

Re: Manage counters

2020-10-13 Thread Richard Kimberly Heck
On 10/13/20 12:00 PM, racoon wrote: > On 2020-10-13 17:49, Richard Kimberly Heck wrote: >> On 10/13/20 1:43 AM, Daniel wrote: >>> On 2020-10-13 00:24, Richard Kimberly Heck wrote: On 10/12/20 4:58 AM, Daniel wrote: > I think it's nice to have the inset available but its use is limited

Re: Manage counters

2020-10-13 Thread racoon
On 2020-10-13 17:49, Richard Kimberly Heck wrote: On 10/13/20 1:43 AM, Daniel wrote: On 2020-10-13 00:24, Richard Kimberly Heck wrote: On 10/12/20 4:58 AM, Daniel wrote: I think it's nice to have the inset available but its use is limited for me. In particular, it seems not a feature to "direc

Re: Manage counters

2020-10-13 Thread Richard Kimberly Heck
On 10/13/20 1:43 AM, Daniel wrote: > On 2020-10-13 00:24, Richard Kimberly Heck wrote: >> On 10/12/20 4:58 AM, Daniel wrote: >>> I think it's nice to have the inset available but its use is limited >>> for me. In particular, it seems not a feature to "directly" change the >>> counter of numbered el

Re: Manage counters

2020-10-12 Thread Daniel
On 2020-10-13 00:24, Richard Kimberly Heck wrote: On 10/12/20 4:58 AM, Daniel wrote: I have just played a bit with Edit > Manage Counter Values. It's a nice feature to have available. However, it was not what I expected at first. It seems to be "just" a counter inset which sets the counter at th

Re: Manage counters

2020-10-12 Thread Richard Kimberly Heck
On 10/12/20 4:58 AM, Daniel wrote: > I have just played a bit with Edit > Manage Counter Values. It's a > nice feature to have available. However, it was not what I expected at > first. It seems to be "just" a counter inset which sets the counter at > the place where it is inserted (which becomes c

Manage counters

2020-10-12 Thread Daniel
(Maybe someone wants to try to join forces or at least chip in some ideas?) I know that I can use the enumitem module for this. But it is unsatisfactory because it does not give the indication in the work area (with the exception for resuming counters). Also, as I imagine it, ideally, there

2.1dev HTML copy is incorrect for section counters

2013-09-01 Thread Scott Kostyshak
Help > Introduction Select and copy, for example: 2.1 The Format of the Manuals text/plain gives (correctly): 2.1 The Format of the Manuals text/html gives: 0.1 The Format of the Manuals How does the html copy work? Is the selection pasted to a temporary LyX buffer and then LyX's LyXHTML format

Re: [LyX features/rgh/CounterValue] Allow initial value of 0 for counters.

2013-06-01 Thread Richard Heck
a7769ee95c30be7 > Author: Richard Heck > Date: Sat Jun 1 10:32:06 2013 -0400 > > Allow initial value of 0 for counters. > > diff --git a/src/Counters.cpp b/src/Counters.cpp > index 7800856..917044a 100644 > --- a/src/Counters.cpp > +++ b/src/Counters.cpp > @@ -8

Re: [LyX features/rgh/CounterValue] Allow initial value of 0 for counters.

2013-06-01 Thread Kornel Benko
t Jun 1 10:32:06 2013 -0400 > > Allow initial value of 0 for counters. > > diff --git a/src/Counters.cpp b/src/Counters.cpp > index 7800856..917044a 100644 > --- a/src/Counters.cpp > +++ b/src/Counters.cpp > @@ -87,11 +87,15 @@ bool Counter::read(Lexer

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
Steve Litt wrote: 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 always assumed LyX could do that. It's a very expressive way of outli

Re: [PATCH] Customizable Enumeration Counters

2009-06-02 Thread rgheck
o see them that way. Your solution changes everything globally. What I would do is work in a more latex-ish way: define a new set of counters "myenumi"..."myenumiv" with the corresponding labelstring and set Enumerati to use "myenum" as counter (which means that

Re: [PATCH] Customizable Enumeration Counters

2009-06-02 Thread Steve Litt
On Tuesday 02 June 2009 10:49:27 am rgheck wrote: > 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

Re: [PATCH] Customizable Enumeration Counters

2009-06-02 Thread Jean-Marc Lasgouttes
hat way. Your solution changes > everything globally. What I would do is work in a more latex-ish way: define a new set of counters "myenumi"..."myenumiv" with the corresponding labelstring and set Enumerati to use "myenum" as counter (which means that we will have to r

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: Changing display of environment counters in Lyx?

2009-05-06 Thread Stefano Franchi
ommand{\theenumii}{\arabic{enumii}} > > \renewcommand{\theenumiii}{\arabic{enumiii}} > > \renewcommand{\theenumiv}{\arabic{enumiv}} > > > > But where do I operate to change the LyX display? > > This is something that should be doable by changing the LabelString of

Re: Changing display of environment counters in Lyx?

2009-05-06 Thread Jean-Marc Lasgouttes
newcommand{\theenumiv}{\arabic{enumiv}} > > But where do I operate to change the LyX display? This is something that should be doable by changing the LabelString of the enumi* counters to the right thing like Counter enumi Labelstring "\\arabic{enumi}" End Unfortunately, it does not

Re: Changing display of environment counters in Lyx?

2009-05-01 Thread rgheck
Stefano Franchi wrote: Dear Lyx developers, I am reposting here a question I asked on the users lists, with no success. I'll have a look at this later. No time right now. rh

Changing display of environment counters in Lyx?

2009-05-01 Thread Stefano Franchi
for details). This must be given if Labeltype is > Counter. The Enumerate environment, on the contrary, has no such field defined. Moreover, there are four different counters for the Enumerate environment, so I am not clear exactly what value would be assigned to the LabelCounter field. Where is

Re: possible recursion in labelstring for counters

2008-02-23 Thread Bernhard Roider
== --- src/Counters.cpp(revision 23138) +++ src/Counters.cpp(working copy) @@ -340,22 +340,47 @@ docstring Counters::theCounter(docstring const & counter) { + std::set callers; + return theCounter(counter, callers); +} + +docstring Counters::theCounter(docstring c

Re: possible recursion in labelstring for counters

2008-02-22 Thread Bernhard Roider
rc/Counters.cpp === --- src/Counters.cpp(revision 23138) +++ src/Counters.cpp(working copy) @@ -338,24 +338,51 @@ } -docstring Counters::theCounter(docstring const & counter) +docstring Counters::theCounter(docstr

Re: possible recursion in labelstring for counters

2008-02-22 Thread Andre Poenitz
; > ok to commit? > > bernhard > Index: src/Counters.cpp > === > --- src/Counters.cpp (revision 23138) > +++ src/Counters.cpp (working copy) > @@ -338,24 +338,51 @@ > } > > > -docstring Counters::theC

possible recursion in labelstring for counters

2008-02-22 Thread Bernhard Roider
23138) +++ src/Counters.cpp(working copy) @@ -338,24 +338,51 @@ } -docstring Counters::theCounter(docstring const & counter) +docstring Counters::theCounter(docstring const & counter, + std::set * callers) {

Re: [PATCH] more work on counters

2007-08-16 Thread Andre Poenitz
On Thu, Aug 16, 2007 at 03:57:40PM +0200, Abdelrazak Younes wrote: > Jean-Marc Lasgouttes wrote: > >Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > > >>The following patch introduces LabelString for counters. This > >>labelstring will be used in sev

Re: [PATCH] more work on counters

2007-08-16 Thread Enrico Forestieri
On Thu, Aug 16, 2007 at 06:09:47PM +0200, Edwin Leuven wrote: > >> O tempora, o mores... > > > > Not everybody understand Latin either ;-) > > i think tempora is a japanese dish... > > so it must mean something like > > "oh, how i love deep fried battered veggies" > > or something like that..

Re: [PATCH] more work on counters

2007-08-16 Thread Edwin Leuven
O tempora, o mores... Not everybody understand Latin either ;-) i think tempora is a japanese dish... so it must mean something like "oh, how i love deep fried battered veggies" or something like that... ;-)

Re: [PATCH] more work on counters

2007-08-16 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Thu, Aug 16, 2007 at 05:18:12PM +0200, Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: Abdelrazak Younes <[EMAIL PROTECTED]> writes: (Counters::theCounter): return a representation of a given counter using its labelstring I'd wri

Re: [PATCH] more work on counters

2007-08-16 Thread Enrico Forestieri
On Thu, Aug 16, 2007 at 05:18:12PM +0200, Abdelrazak Younes wrote: > Jean-Marc Lasgouttes wrote: > > Abdelrazak Younes <[EMAIL PROTECTED]> writes: > > > >>(Counters::theCounter): return a representation of a given > >>counter using its labelstring

Re: [PATCH] more work on counters

2007-08-16 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Abdelrazak Younes <[EMAIL PROTECTED]> writes: Isn't new a reserved word? Indeed. What about newItem()? In general I think that members should have explicit naming (I know this is not your doing). Rather than doing that, I think I'd prefer to expose a map-like

Re: [PATCH] more work on counters

2007-08-16 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Abdelrazak Younes <[EMAIL PROTECTED]> writes: (Counters::theCounter): return a representation of a given counter using its labelstring I'd write Counters::get() for the same reason as above. It is now what the method does reall

Re: [PATCH] more work on counters

2007-08-16 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > (Counters::theCounter): return a representation of a given > counter using its labelstring > > I'd write Counters::get() for the same reason as above. It is now what the method does really. It is an equivalent to

Re: [PATCH] more work on counters

2007-08-16 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > Some cosmetic comments on the code (all IMHO): > > @@ -922,14 +928,31 @@ void TextClass::readCounter(Lexer & lexr > switch (static_cast(le)) { > case CT_NAME: > lexrc.next(); > - n

Re: [PATCH] more work on counters

2007-08-16 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: The following patch introduces LabelString for counters. This labelstring will be used in several places: Here is the updated version of the patch, the shortcoming have been resolved and the layout files hav

Re: [PATCH] more work on counters

2007-08-16 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: The following patch introduces LabelString for counters. This labelstring will be used in several places: Here is the updated version of the patch, the shortcoming have been resolved and the layout files hav

Re: [PATCH] more work on counters

2007-08-16 Thread Jean-Marc Lasgouttes
Martin Vermeer <[EMAIL PROTECTED]> writes: > And I seem to remember that in some classes, symbols are used > like dagger, ddagger etc. Can the system (be made to) handle > that? I am not sure how to do that. Currently I have just removed the numbering in the cases where we output \thanks instead

Re: [PATCH] more work on counters

2007-08-16 Thread Martin Vermeer
On Thu, Aug 16, 2007 at 10:40:53AM +0200, Jean-Marc Lasgouttes wrote: > Richard Heck <[EMAIL PROTECTED]> writes: > > > Haven't studied it, and haven't worked with it, but I've seen the > > counters, and they are excellent. It'll make finding footn

Re: [PATCH] more work on counters

2007-08-16 Thread Jean-Marc Lasgouttes
Enrico Forestieri <[EMAIL PROTECTED]> writes: > On Thu, Aug 16, 2007 at 03:47:28AM -0400, Richard Heck wrote: > >> Haven't studied it, and haven't worked with it, but I've seen the counters, >> and they are excellent. It'll make finding footnote 22

Re: [PATCH] more work on counters

2007-08-16 Thread Jean-Marc Lasgouttes
Richard Heck <[EMAIL PROTECTED]> writes: > Haven't studied it, and haven't worked with it, but I've seen the > counters, and they are excellent. It'll make finding footnote 22 a > breeze, whereas it used to be a hassle. We will have to work on the docu

Re: [PATCH] more work on counters

2007-08-16 Thread Enrico Forestieri
On Thu, Aug 16, 2007 at 03:47:28AM -0400, Richard Heck wrote: > Haven't studied it, and haven't worked with it, but I've seen the counters, > and they are excellent. It'll make finding footnote 22 a breeze, whereas it > used to be a hassle. Never used reverse dvi search? -- Enrico

Re: [PATCH] more work on counters

2007-08-16 Thread Richard Heck
Jean-Marc Lasgouttes wrote: Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: The following patch introduces LabelString for counters. This labelstring will be used in several places: Here is the updated version

Re: [PATCH] more work on counters

2007-08-16 Thread Jean-Marc Lasgouttes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > >> The following patch introduces LabelString for counters. This >> labelstring will be used in several places: > > Here is the updated version of the patch,

Re: [PATCH] more work on counters

2007-08-15 Thread Jean-Marc Lasgouttes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > The following patch introduces LabelString for counters. This > labelstring will be used in several places: Here is the updated version of the patch, the shortcoming have been resolved and the layout files have been updated. For ex

Re: [PATCH] more work on counters

2007-08-14 Thread Jean-Marc Lasgouttes
Edwin Leuven <[EMAIL PROTECTED]> writes: > Jean-Marc Lasgouttes wrote: >> Yes, it would be easy. But I am not sure how to display that when >> there is a label. > > (# - label) > or something like that... I'll have to try. It may also be too large on screen. And it will not with previews witho

Re: [PATCH] more work on counters

2007-08-14 Thread Edwin Leuven
Jean-Marc Lasgouttes wrote: Yes, it would be easy. But I am not sure how to display that when there is a label. (# - label) or something like that...

Re: [PATCH] more work on counters

2007-08-14 Thread Jean-Marc Lasgouttes
Edwin Leuven <[EMAIL PROTECTED]> writes: > Jean-Marc Lasgouttes wrote: >> What is missing? Not much. > > does this mean that we will also get numbered formulas? Yes, it would be easy. But I am not sure how to display that when there is a label. JMarc

Re: [PATCH] more work on counters

2007-08-14 Thread Edwin Leuven
Jean-Marc Lasgouttes wrote: What is missing? Not much. does this mean that we will also get numbered formulas?

[PATCH] more work on counters

2007-08-13 Thread Jean-Marc Lasgouttes
The following patch introduces LabelString for counters. This labelstring will be used in several places: - everytime a layout LabelString contains \thesomething, the labelString of counter something is used (currently no layout uses that) - InsetCaption also uses this for numbering. As an

Re: Please report counters bugs

2005-09-01 Thread Jean-Marc Lasgouttes
>>>>> "Jose'" == Jose' Matos <[EMAIL PROTECTED]> writes: Jose'> On Wednesday 03 August 2005 21:56, Jean-Marc Lasgouttes wrote: >> I am sure there remains one or two bugs related to counters in >> HEAD. Please report them! I know Jose&

Re: Please report counters bugs

2005-08-09 Thread Helge Hafting
On Wed, Aug 03, 2005 at 10:56:20PM +0200, Jean-Marc Lasgouttes wrote: > > I am sure there remains one or two bugs related to counters in HEAD. > Please report them! I know Jose' showed me one in Paris, but I forgot > what it was... > > The only problem I am aware of i

Re: Please report counters bugs

2005-08-09 Thread Jose' Matos
On Wednesday 03 August 2005 21:56, Jean-Marc Lasgouttes wrote: > I am sure there remains one or two bugs related to counters in HEAD. > Please report them! I know Jose' showed me one in Paris, but I forgot > what it was... It involved the bibliography, and it is a funny one.

Please report counters bugs

2005-08-03 Thread Jean-Marc Lasgouttes
I am sure there remains one or two bugs related to counters in HEAD. Please report them! I know Jose' showed me one in Paris, but I forgot what it was... The only problem I am aware of is that Captions are not numbered, whereas we have all we need to make it happen (with some update o

Re: scrlttr and counters, LyX 1.3.x

2004-05-04 Thread Juergen Spitzmueller
Angus Leeming wrote: > Bug still exists. This is scrlttr, not scrlttr2. The bug was also present in scrlttr2. But thanks for fixing the other bug. Regards, Jürgen.

Re: scrlttr and counters, LyX 1.3.x

2004-05-03 Thread Angus Leeming
Angus Leeming wrote: > Jean-Marc Lasgouttes wrote: >> Juergen> Angus Leeming wrote: >>>> I notice that counters on the LyX screen are broken in the koma >>>> letter class. All itemize entries begin '0. '. >> >> Juergen> Fix attached. OK

Re: scrlttr and counters, LyX 1.3.x

2004-05-03 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Juergen> Angus Leeming wrote: >>> I notice that counters on the LyX screen are broken in the koma >>> letter class. All itemize entries begin '0. '. > > Juergen> Fix attached. OK to apply to 1.3 and 1.4? Jürgen. Bug

Re: scrlttr and counters, LyX 1.3.x

2004-05-03 Thread Jean-Marc Lasgouttes
>>>>> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Angus Leeming wrote: >> I notice that counters on the LyX screen are broken in the koma >> letter class. All itemize entries begin '0. '. Juergen> Fix attached. OK to apply to 1.3 and 1.4? Jürgen. Yes. JMarc

Re: scrlttr and counters, LyX 1.3.x

2004-05-02 Thread Juergen Spitzmueller
Angus Leeming wrote: > I notice that counters on the LyX screen are broken in the koma letter > class. All itemize entries begin '0. '. Fix attached. OK to apply to 1.3 and 1.4? Jürgen. Index: layouts/scrlttr2.layout

scrlttr and counters, LyX 1.3.x

2004-05-01 Thread Angus Leeming
I notice that counters on the LyX screen are broken in the koma letter class. All itemize entries begin '0. '. -- Angus

Re: Counters in latex8.layout

2004-02-09 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | Lars, do you have ideas on the subject? Lars> Probably, but it has to wait some 14 days. That's OK. JMarc

Re: Counters in latex8.layout

2004-02-06 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >>>>>> "Ling" == Ling Li <[EMAIL PROTECTED]> writes: > | Ling> The standard counters (stdcounters.inc) don't work in | Ling> latex8.layout. I couldn't figure out how to define a layout |

Re: Counters in latex8.layout

2004-02-06 Thread Jean-Marc Lasgouttes
>>>>> "Ling" == Ling Li <[EMAIL PROTECTED]> writes: Ling> The standard counters (stdcounters.inc) don't work in Ling> latex8.layout. I couldn't figure out how to define a layout Ling> counter so I am not sure what the reason is. Here're

Counters in latex8.layout

2004-01-30 Thread Ling Li
The standard counters (stdcounters.inc) don't work in latex8.layout. I couldn't figure out how to define a layout counter so I am not sure what the reason is. Here're what i know 1) latex8 uses "\Section" instead of "\section" so latexname is redefined in la

Re: Counters for docbook, a new tail.

2003-11-03 Thread Angus Leeming
Andre Poenitz wrote: > I seem to have missed the first post o this thread... Find it here: http://article.gmane.org/gmane.editors.lyx.devel:29901 -- Angus

Re: Counters for docbook, a new tail.

2003-11-03 Thread Andre Poenitz
IL PROTECTED]> writes: > >>>>>>>> "Jose'" == Jose' Matos <[EMAIL PROTECTED]> writes: > >>> > | Lars> | Jose'> It looks like the counters expect the style name to be > | Lars> the | Jose'> same as LaTeXName. I

Re: Counters for docbook, a new tail.

2003-10-30 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >>>>>>>> "Jose'" == Jose' Ma

Re: Counters for docbook, a new tail.

2003-10-30 Thread Jean-Marc Lasgouttes
>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >>>>>>> "Jose'" == Jose' Matos <[EMAIL PROTECTED]> writes: >> Lars> | Jose'&

Re: Counters for docbook, a new tail.

2003-10-30 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >>>>>> "Jose'" == Jose' Matos <[EMAIL PROTECTED]> writes: > | Jose'>It looks like the counters expect the style name to be the | Jose'> same as LaTeXName. I add

Re: Counters for docbook, a new tail.

2003-10-30 Thread Jean-Marc Lasgouttes
>>>>> "Jose'" == Jose' Matos <[EMAIL PROTECTED]> writes: Jose'> It looks like the counters expect the style name to be the Jose'> same as LaTeXName. I add a new file to layouts like this: Do they? This is stupid... Could somebody tell

Counters for docbook, a new tail.

2003-10-23 Thread Jose' Matos
Hi, One of the most visible problems for docbook in 1.3 and 1.4 are the absence of counters for section ( and those from family). It looks like the counters expect the style name to be the same as LaTeXName. I add a new file to layouts like this: # This include file contains

Re: watch counters go wrong

2003-10-08 Thread Lars Gullik Bjønnes
aragraphList::iterator pit, + ParagraphList::iterator firstpit, + Counters & counters) +{ + if (pit == firstpit) + return; + + int const cur_depth = pit->getDepth(); + ParagraphList::iterator prev_pit = boost::prior(pit); + while (true) { + int const prev_depth = prev_pit->getDepth()

Re: watch counters go wrong

2003-10-08 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: | Have a look. > | Of itself this is obviously an improvement, but I wonder if you could | make use of BufferParams::user_defined_bullet? Not now. (as you can see from my comments, this has been thought of) | I know, I'

Re: watch counters go wrong

2003-10-08 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Wed, Oct 08, 2003 at 01:58:13PM +0200, Lars Gullik Bjønnes wrote: >> Angus Leeming <[EMAIL PROTECTED]> writes: >> >> | Lars Gullik Bjønnes wrote: >> >> Ok, I have a patch... not the nicest one, but it seems to work, and >> >> I need others to thest i

Re: watch counters go wrong

2003-10-08 Thread Angus Leeming
Lars Gullik Bjønnes wrote: >>> | Have a look. Of itself this is obviously an improvement, but I wonder if you could make use of BufferParams::user_defined_bullet? I know, I'm probably shifting your goal posts. + string itemlabel; + switch (pit->itemdepth) { +

Re: watch counters go wrong

2003-10-08 Thread Andre Poenitz
On Wed, Oct 08, 2003 at 01:58:13PM +0200, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > | Lars Gullik Bjønnes wrote: > >> Ok, I have a patch... not the nicest one, but it seems to work, and > >> I need others to thest it. > > > | You seem to have lost the 'Bibliographi

Re: watch counters go wrong

2003-10-08 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> | Initialise itemdepth when constructing it. >> eh? > | Paragraph::Paragraph() | : y(0), pimpl_(new Paragraph::Pimpl(this)), itemdepth(0) | {} I am only removing things... (in this part of the code), expect a patch

Re: watch counters go wrong

2003-10-08 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Since I am not able to compile 1.4.0cvs (hint!) That was a stern hint. (whimper...) Have you tried with STLport? (mr. innocent strikes again) |, I'll ask directly: | does the patch still allows to increase the depth of a paragraph | to nest it

Re: watch counters go wrong

2003-10-08 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > | Initialise itemdepth when constructing it. > eh? Paragraph::Paragraph() : y(0), pimpl_(new Paragraph::Pimpl(this)), itemdepth(0) {} > | I think you should add a decent comment about itemdepth in the > | deader file. > > what dead file? s/d/h/ and no, that

Re: watch counters go wrong

2003-10-08 Thread Lars Gullik Bjønnes
a decent comment about itemdepth in the deader | file. what dead file? | Will this approach continue to work for (say) figure counters, | or would they have their own counter? It is not counters, it is item depth. | Be nice to people following after you: | if (type == LABEL_

Re: watch counters go wrong

2003-10-08 Thread Jean-Marc Lasgouttes
Since I am not able to compile 1.4.0cvs (hint!), I'll ask directly: does the patch still allows to increase the depth of a paragraph to nest it inside an environment? The goal is to obtain latex code like \begin{theorem} The following facts are equivalent \begin{itemize} \item Foo is Bar \item Ba

Re: watch counters go wrong

2003-10-08 Thread Angus Leeming
ment about itemdepth in the deader file. Will this approach continue to work for (say) figure counters, or would they have their own counter? Be nice to people following after you: if (type == LABEL_ENUMERATE) + // Maybe we have to increment the enumeration depth. +

Re: watch counters go wrong

2003-10-08 Thread Lars Gullik Bjønnes
else if (prev_depth == cur_depth) { + if (prev_labeltype == labelType) { +pit->itemdepth = prev_pit->itemdepth; +break; + } + } + if (prev_pit == first_pit) + break; + + --prev_pit; + } } +void resetEnumCounterIfNeeded(ParagraphList::iterator pit, + ParagraphLis

Re: watch counters go wrong

2003-10-08 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > Hrmmpff! black-mail tactics! Hey, you started it. (Whine!) I counter your counter with one of my own. > I guess ok. Augh. Thanks Lars. -- Angus

Re: watch counters go wrong

2003-10-08 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> I think I'll clean up the patch a bit and just check it in, easier >> to get people to test it then. I tried it with the UserGuide, and >> could not see any mistakes. > | So what about my lyxlib.C proposal ;-) Hrmmpff! blac

Re: watch counters go wrong

2003-10-08 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > I think I'll clean up the patch a bit and just check it in, easier > to get people to test it then. I tried it with the UserGuide, and > could not see any mistakes. So what about my lyxlib.C proposal ;-) -- Angus

Re: watch counters go wrong

2003-10-08 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> I think you are right, but I want to know if I got the enumdepth >> part right, and also the resetting of the enum counters. > | Why not ask on the users' list? Someone is bound to have a comple

Re: watch counters go wrong

2003-10-08 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > I think you are right, but I want to know if I got the enumdepth > part right, and also the resetting of the enum counters. Why not ask on the users' list? Someone is bound to have a complex example of this stuff. -- Angus

Re: watch counters go wrong

2003-10-08 Thread Lars Gullik Bjønnes
} > | then I think that those first two big blocks could be collapsed into a | single function taking the LYX_LABEL_TYPES type as an arg. Maybe I'm | wrong... I think you are right, but I want to know if I got the enumdepth part right, and also the resetting of the enum counte

Re: watch counters go wrong

2003-10-08 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > Ok, I have a patch... not the nicest one, but it seems to work, and > I need others to thest it. You seem to have lost the 'Bibliographies can't have their depth changed' bit entirely. Other than that the code is pretty understandable, although I'm not a fan of those

  1   2   3   >